github.com/gocaveman/caveman@v0.0.0-20191211162744-0ddf99dbdf6e/ddl/data-types_string.go (about)

     1  // Code generated by "stringer -type=DataType -output=data-types_string.go"; DO NOT EDIT.
     2  
     3  package ddl
     4  
     5  import "strconv"
     6  
     7  const _DataType_name = "InvalidCustomVarCharPKBigIntAutoPKVarCharFKBigIntFKIntIntUBigIntBigIntUDoubleDateTimeVarCharBoolTextBlob"
     8  
     9  var _DataType_index = [...]uint8{0, 7, 13, 22, 34, 43, 51, 54, 58, 64, 71, 77, 85, 92, 96, 100, 104}
    10  
    11  func (i DataType) String() string {
    12  	if i < 0 || i >= DataType(len(_DataType_index)-1) {
    13  		return "DataType(" + strconv.FormatInt(int64(i), 10) + ")"
    14  	}
    15  	return _DataType_name[_DataType_index[i]:_DataType_index[i+1]]
    16  }