Versions in this module Expand all Collapse all v0 v0.0.1 Mar 31, 2023 Changes in this version + const DateFormat + const DateTimeFormat + const TimeStampFormat + var InvalidDecimalErr = errors.New("invalid decimal") + var Null = NullData + func IsDataEqual(d1 Data, d2 Data) bool + type Array struct + func ArrayFromSlice(data ...interface{}) (*Array, error) + func NewArray() *Array + func NewArrayWithType(typ *datatype.ArrayType) *Array + func (a *Array) Append(data ...interface{}) error + func (a *Array) Index(i int) Data + func (a *Array) Len() int + func (a *Array) SafeAppend(data ...interface{}) error + func (a *Array) Scan(value interface{}) error + func (a *Array) SetType(typ *datatype.ArrayType) + func (a *Array) Sql() string + func (a *Array) String() string + func (a *Array) ToSlice() []Data + func (a *Array) Type() datatype.DataType + func (a *Array) TypeInfer() (datatype.DataType, error) + func (a *Array) UnSafeAppend(data ...Data) + type BigInt int64 + func (b *BigInt) Scan(value interface{}) error + func (b BigInt) Sql() string + func (b BigInt) String() string + func (b BigInt) Type() datatype.DataType + type Binary []byte + func (b *Binary) Scan(value interface{}) error + func (b Binary) Sql() string + func (b Binary) String() string + func (b Binary) Type() datatype.DataType + type Bool bool + func (b *Bool) Scan(value interface{}) error + func (b Bool) Sql() string + func (b Bool) String() string + func (b Bool) Type() datatype.DataType + type Char struct + func NewChar(length int, data string) (*Char, error) + func (c *Char) Data() string + func (c *Char) Scan(value interface{}) error + func (c *Char) Sql() string + func (c *Char) String() string + func (c *Char) Type() datatype.DataType + type CharOverflowError struct + func NewCharOverflowError(maxLen, realLen int) CharOverflowError + func (c CharOverflowError) Error() string + type Data interface + Sql func() string + Type func() datatype.DataType + func TryConvertGoToOdpsData(i interface{}) (Data, error) + type Date time.Time + func NewDate(s string) (Date, error) + func (d *Date) Scan(value interface{}) error + func (d Date) Sql() string + func (d Date) String() string + func (d Date) Time() time.Time + func (d Date) Type() datatype.DataType + type DateTime time.Time + func NewDateTime(s string) (DateTime, error) + func (d *DateTime) Scan(value interface{}) error + func (d DateTime) Sql() string + func (d DateTime) String() string + func (d DateTime) Time() time.Time + func (d DateTime) Type() datatype.DataType + type Decimal struct + func DecimalFromStr(value string) (*Decimal, error) + func NewDecimal(precision, scale int, value string) *Decimal + func (d *Decimal) Precision() int + func (d *Decimal) Scale() int + func (d *Decimal) Scan(value interface{}) error + func (d *Decimal) Sql() string + func (d *Decimal) String() string + func (d *Decimal) Type() datatype.DataType + func (d *Decimal) Value() string + type Double float64 + func (d *Double) Scan(value interface{}) error + func (d Double) Sql() string + func (d Double) String() string + func (d Double) Type() datatype.DataType + type Float float32 + func (f *Float) Scan(value interface{}) error + func (f Float) Sql() string + func (f Float) String() string + func (f Float) Type() datatype.DataType + type Int int32 + func (i *Int) Scan(value interface{}) error + func (i Int) Sql() string + func (i Int) String() string + func (i Int) Type() datatype.DataType + type IntervalDayTime struct + func NewIntervalDayTime(totalSeconds int64, nanos int32) IntervalDayTime + func (i *IntervalDayTime) Scan(value interface{}) error + func (i IntervalDayTime) Days() int32 + func (i IntervalDayTime) Hours() int32 + func (i IntervalDayTime) MillisecondsFraction() int32 + func (i IntervalDayTime) Minutes() int32 + func (i IntervalDayTime) NanosFraction() int32 + func (i IntervalDayTime) Seconds() int64 + func (i IntervalDayTime) SecondsFraction() int32 + func (i IntervalDayTime) Sql() string + func (i IntervalDayTime) String() string + func (i IntervalDayTime) Type() datatype.DataType + type IntervalYearMonth int32 + func (i *IntervalYearMonth) Scan(value interface{}) error + func (i IntervalYearMonth) Sql() string + func (i IntervalYearMonth) String() string + func (i IntervalYearMonth) Type() datatype.DataType + type Map struct + func MapFromGoMap(m interface{}) (*Map, error) + func NewMap() *Map + func NewMapWithType(typ *datatype.MapType) *Map + func (m *Map) SafeSet(keyI Data, valueI Data) error + func (m *Map) Scan(value interface{}) error + func (m *Map) Set(keyI interface{}, valueI interface{}) error + func (m *Map) Sql() string + func (m *Map) String() string + func (m *Map) ToGoMap() map[Data]Data + func (m *Map) Type() datatype.DataType + func (m *Map) TypeInfer() (datatype.DataType, error) + type NullData struct + func (n NullData) Scan(interface{}) error + func (n NullData) Sql() string + func (n NullData) String() string + func (n NullData) Type() datatype.DataType + type Record []Data + func NewRecord(columnNums int) Record + func (r *Record) Append(d Data) + func (r *Record) Get(i int) Data + func (r *Record) Len() int + func (r *Record) String() string + type SmallInt int16 + func (s SmallInt) Sql() string + func (s SmallInt) String() string + func (s SmallInt) Type() datatype.DataType + type String string + func (s *String) Scan(value interface{}) error + func (s *String) Sql() string + func (s *String) String() string + func (s *String) Type() datatype.DataType + type Struct struct + func NewStruct() *Struct + func NewStructWithTyp(typ *datatype.StructType) *Struct + func StructFromGoStruct(i interface{}) (*Struct, error) + func (s *Struct) Fields() []StructField + func (s *Struct) FillGoStruct(i interface{}) error + func (s *Struct) GetField(fieldName string) Data + func (s *Struct) SafeSetField(fieldName string, i interface{}) error + func (s *Struct) Scan(value interface{}) error + func (s *Struct) SetField(fieldName string, a interface{}) error + func (s *Struct) Sql() string + func (s *Struct) String() string + func (s *Struct) Type() datatype.DataType + func (s *Struct) TypeInfer() (datatype.DataType, error) + type StructField struct + Name string + Value Data + func NewStructField(name string, value Data) StructField + type Timestamp time.Time + func NewTimestamp(s string) (Timestamp, error) + func (t *Timestamp) Scan(value interface{}) error + func (t Timestamp) Sql() string + func (t Timestamp) String() string + func (t Timestamp) Time() time.Time + func (t Timestamp) Type() datatype.DataType + type TinyInt int8 + func (t *TinyInt) Scan(value interface{}) error + func (t TinyInt) Sql() string + func (t TinyInt) String() string + func (t TinyInt) Type() datatype.DataType + type VarChar struct + func NewVarChar(length int, data string) (*VarChar, error) + func (v *VarChar) Data() string + func (v *VarChar) Scan(value interface{}) error + func (v *VarChar) Sql() string + func (v *VarChar) String() string + func (v *VarChar) Type() datatype.DataType