Versions in this module Expand all Collapse all v0 v0.1.1 Jul 5, 2024 Changes in this version + const ASEDecimalDefaultPrecision + const ASEDecimalDefaultScale + const ASEMoneyPrecision + const ASEMoneyScale + const ASEShortMoneyPrecision + const ASEShortMoneyScale + var ByteSizes = map[DataType]int + var ErrDecimalPrecisionTooHigh = fmt.Errorf("precision is set to more than %d digits", aseMaxDecimalDigits) + var ErrDecimalPrecisionTooLow = fmt.Errorf("precision is set to less than 0 digits") + var ErrDecimalScaleBiggerThanPrecision = fmt.Errorf("scale is bigger then precision") + var ErrDecimalScaleTooHigh = fmt.Errorf("scale is set to more than %d digits", aseMaxDecimalDigits) + var LengthBytes = map[DataType]int + var ReflectTypes = map[DataType]reflect.Type + type DataType byte + const BIGDATETIMEN + const BIGTIMEN + const BINARY + const BIT + const BLOB + const BOUNDARY + const CHAR + const DATE + const DATEN + const DATETIME + const DATETIMEN + const DECN + const FLT4 + const FLT8 + const FLTN + const IMAGE + const INT1 + const INT2 + const INT4 + const INT8 + const INTERVAL + const INTN + const LONGBINARY + const LONGCHAR + const MONEY + const MONEYN + const NUMN + const SENSITIVITY + const SHORTDATE + const SHORTMONEY + const SINT1 + const TEXT + const TIME + const TIMEN + const UINT2 + const UINT4 + const UINT8 + const UINTN + const UNITEXT + const USER_IMAGE + const USER_TEXT + const USER_UNITEXT + const VARBINARY + const VARCHAR + const VOID + const XML + func (i DataType) String() string + func (t DataType) ByteSize() int + func (t DataType) Bytes(endian binary.ByteOrder, value interface{}, length int64) ([]byte, error) + func (t DataType) GoReflectType() reflect.Type + func (t DataType) GoValue(endian binary.ByteOrder, bs []byte) (interface{}, error) + func (t DataType) LengthBytes() int + func (t DataType) NullableType() (DataType, error) + type Decimal struct + Precision int + Scale int + func NewDecimal(precision, scale int) (*Decimal, error) + func NewDecimalString(precision, scale int, s string) (*Decimal, error) + func (dec *Decimal) Negate() + func (dec *Decimal) SetBytes(b []byte) + func (dec *Decimal) SetInt64(i int64) + func (dec *Decimal) SetString(s string) error + func (dec *Decimal) String() string + func (dec Decimal) ByteSize() int + func (dec Decimal) Bytes() []byte + func (dec Decimal) Cmp(other Decimal) bool + func (dec Decimal) Int() *big.Int + func (dec Decimal) IsNegative() bool + type NullBinary struct + ByteSlice []byte + Valid bool + func (nb *NullBinary) Scan(value interface{}) error + func (nb NullBinary) Value() (driver.Value, error) + type NullDecimal struct + Dec *Decimal + Valid bool + func (nd *NullDecimal) Scan(value interface{}) error + func (nd NullDecimal) Value() (driver.Value, error) + type NullFloat32 struct + Float32 float32 + Valid bool + func (nf *NullFloat32) Scan(value interface{}) error + func (nf NullFloat32) Value() (driver.Value, error) + type NullInt16 struct + Int16 int16 + Valid bool + func (ni *NullInt16) Scan(value interface{}) error + func (ni NullInt16) Value() (driver.Value, error) + type NullUint16 struct + Uint16 uint16 + Valid bool + func (ni NullUint16) Value() (driver.Value, error) + func (nu *NullUint16) Scan(value interface{}) error + type NullUint32 struct + Uint32 uint32 + Valid bool + func (ni NullUint32) Value() (driver.Value, error) + func (nu *NullUint32) Scan(value interface{}) error + type NullUint64 struct + Uint64 uint64 + Valid bool + func (ni NullUint64) Value() (driver.Value, error) + func (nu *NullUint64) Scan(value interface{}) error + type NullUint8 struct + Uint8 uint8 + Valid bool + func (nu *NullUint8) Scan(value interface{}) error + func (nu NullUint8) Value() (driver.Value, error) + type ValueConverter struct + var DefaultValueConverter ValueConverter + func (conv ValueConverter) ConvertValue(v interface{}) (driver.Value, error)