Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BigIntType = PrimitiveType{BIGINT}
View Source
var BinaryType = PrimitiveType{BINARY}
View Source
var BooleanType = PrimitiveType{BOOLEAN}
View Source
var DateTimeType = PrimitiveType{DATETIME}
View Source
var DateType = PrimitiveType{DATE}
View Source
var DoubleType = PrimitiveType{DOUBLE}
View Source
var FloatType = PrimitiveType{FLOAT}
View Source
var IntType = PrimitiveType{INT}
View Source
var IntervalDayTimeType = PrimitiveType{IntervalDayTime}
View Source
var IntervalYearMonthType = PrimitiveType{IntervalYearMonth}
View Source
var NullType = PrimitiveType{NULL}
View Source
var SmallIntType = PrimitiveType{SMALLINT}
View Source
var StringType = PrimitiveType{STRING}
View Source
var TimestampType = PrimitiveType{TIMESTAMP}
View Source
var TinyIntType = PrimitiveType{TINYINT}
Functions ¶
func IsNullType ¶
func IsTypeEqual ¶
Types ¶
type ColumnDataType ¶
type ColumnDataType struct {
DataType
}
type DecimalType ¶
func NewDecimalType ¶
func NewDecimalType(precision, scale int32) DecimalType
func (DecimalType) ID ¶
func (d DecimalType) ID() TypeID
func (DecimalType) Name ¶
func (d DecimalType) Name() string
func (DecimalType) String ¶
func (d DecimalType) String() string
type JsonType ¶ added in v0.2.4
type JsonType struct { }
func NewJsonType ¶ added in v0.2.4
func NewJsonType() JsonType
type MapType ¶
func NewMapType ¶
type PrimitiveType ¶
type PrimitiveType struct {
TypeCode TypeID
}
func NewPrimitiveType ¶
func NewPrimitiveType(code TypeID) PrimitiveType
func (PrimitiveType) ID ¶
func (p PrimitiveType) ID() TypeID
func (PrimitiveType) Name ¶
func (p PrimitiveType) Name() string
func (PrimitiveType) String ¶
func (p PrimitiveType) String() string
type StructFieldType ¶
func NewStructFieldType ¶
func NewStructFieldType(name string, _type DataType) StructFieldType
type StructFields ¶
type StructFields []StructFieldType
func (StructFields) Len ¶
func (s StructFields) Len() int
func (StructFields) Less ¶
func (s StructFields) Less(i, j int) bool
func (StructFields) Swap ¶
func (s StructFields) Swap(i, j int)
type StructType ¶
type StructType struct {
Fields []StructFieldType
}
func NewStructType ¶
func NewStructType(fields ...StructFieldType) StructType
func (StructType) FieldType ¶
func (s StructType) FieldType(fileName string) DataType
func (StructType) ID ¶
func (s StructType) ID() TypeID
func (StructType) Name ¶
func (s StructType) Name() string
func (StructType) String ¶
func (s StructType) String() string
type VarcharType ¶
type VarcharType struct {
Length int
}
func NewVarcharType ¶
func NewVarcharType(length int) VarcharType
func (VarcharType) ID ¶
func (c VarcharType) ID() TypeID
func (VarcharType) Name ¶
func (c VarcharType) Name() string
func (VarcharType) String ¶
func (c VarcharType) String() string
Click to show internal directories.
Click to hide internal directories.