Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TinyIntType = PrimitiveType{TINYINT} SmallIntType = PrimitiveType{SMALLINT} IntType = PrimitiveType{INT} BigIntType = PrimitiveType{BIGINT} DoubleType = PrimitiveType{DOUBLE} BooleanType = PrimitiveType{BOOLEAN} DateType = PrimitiveType{DATE} DateTimeType = PrimitiveType{DATETIME} TimestampType = PrimitiveType{TIMESTAMP} TimestampNtzType = PrimitiveType{TIMESTAMP_NTZ} StringType = PrimitiveType{STRING} FloatType = PrimitiveType{FLOAT} BinaryType = PrimitiveType{BINARY} IntervalDayTimeType = PrimitiveType{IntervalDayTime} IntervalYearMonthType = PrimitiveType{IntervalYearMonth} NullType = PrimitiveType{NULL} )
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.