Versions in this module Expand all Collapse all v0 v0.0.1 Mar 31, 2023 Changes in this version + var BigIntType = PrimitiveType + var BinaryType = PrimitiveType + var BooleanType = PrimitiveType + var DateTimeType = PrimitiveType + var DateType = PrimitiveType + var DoubleType = PrimitiveType + var FloatType = PrimitiveType + var IntType = PrimitiveType + var IntervalDayTimeType = PrimitiveType + var IntervalYearMonthType = PrimitiveType + var NullType = PrimitiveType + var SmallIntType = PrimitiveType + var StringType = PrimitiveType + var TimestampType = PrimitiveType + var TinyIntType = PrimitiveType + func IsNullType(t DataType) bool + func IsTypeEqual(t1, t2 DataType) bool + type ArrayType struct + ElementType DataType + func NewArrayType(elementType DataType) ArrayType + func (a ArrayType) ID() TypeID + func (a ArrayType) Name() string + func (a ArrayType) String() string + type CharType struct + Length int + func NewCharType(length int) CharType + func (c CharType) ID() TypeID + func (c CharType) Name() string + func (c CharType) String() string + type ColumnDataType struct + type DataType interface + ID func() TypeID + Name func() string + func ParseDataType(name string) (DataType, error) + func TryConvertGoToOdpsType(i interface{}) (DataType, error) + type DecimalType struct + Precision int32 + Scale int32 + func NewDecimalType(precision, scale int32) DecimalType + func (d DecimalType) ID() TypeID + func (d DecimalType) Name() string + func (d DecimalType) String() string + type MapType struct + KeyType DataType + ValueType DataType + func NewMapType(keyType, valueType DataType) MapType + func (m MapType) ID() TypeID + func (m MapType) Name() string + func (m MapType) String() string + type PrimitiveType struct + TypeCode TypeID + func NewPrimitiveType(code TypeID) PrimitiveType + func (p PrimitiveType) ID() TypeID + func (p PrimitiveType) Name() string + func (p PrimitiveType) String() string + type StructFieldType struct + Name string + Type DataType + func NewStructFieldType(name string, _type DataType) StructFieldType + type StructFields []StructFieldType + func (s StructFields) Len() int + func (s StructFields) Less(i, j int) bool + func (s StructFields) Swap(i, j int) + type StructType struct + Fields []StructFieldType + func NewStructType(fields ...StructFieldType) StructType + func (s StructType) FieldType(fileName string) DataType + func (s StructType) ID() TypeID + func (s StructType) Name() string + func (s StructType) String() string + type TypeID int + const ARRAY + const BIGINT + const BINARY + const BOOLEAN + const CHAR + const DATE + const DATETIME + const DECIMAL + const DOUBLE + const FLOAT + const INT + const IntervalDayTime + const IntervalYearMonth + const MAP + const NULL + const SMALLINT + const STRING + const STRUCT + const TIMESTAMP + const TINYINT + const TypeUnknown + const VARCHAR + const VOID + func TypeCodeFromStr(s string) TypeID + func (t *TypeID) UnmarshalJSON(b []byte) error + func (t TypeID) String() string + type VarcharType struct + Length int + func NewVarcharType(length int) VarcharType + func (c VarcharType) ID() TypeID + func (c VarcharType) Name() string + func (c VarcharType) String() string