Versions in this module Expand all Collapse all v7 v7.0.4 Jan 30, 2023 v7.0.2 Jan 30, 2023 Changes in this version + const DefaultFsp + const KindBinaryLiteral + const KindBytes + const KindFloat32 + const KindFloat64 + const KindInt64 + const KindInterface + const KindMaxValue + const KindMinNotNull + const KindMysqlBit + const KindMysqlDecimal + const KindMysqlDuration + const KindMysqlEnum + const KindMysqlJSON + const KindMysqlSet + const KindMysqlTime + const KindNull + const KindRaw + const KindString + const KindUint64 + var ZeroBinaryLiteral = BinaryLiteral + func Abs(n int64) int64 + func DefaultTypeForValue(value interface{}, tp *types.FieldType, charset string, collate string) + func SetBinChsClnFlag(ft *types.FieldType) + func StrLenOfInt64Fast(x int64) int + func StrLenOfUint64Fast(x uint64) int + type BinaryLiteral []byte + func ParseBitStr(s string) (BinaryLiteral, error) + func ParseHexStr(s string) (BinaryLiteral, error) + func (b BinaryLiteral) String() string + func (b BinaryLiteral) ToBitLiteralString(trimLeadingZero bool) string + func (b BinaryLiteral) ToString() string + type BitLiteral BinaryLiteral + func NewBitLiteral(s string) (BitLiteral, error) + func (b BitLiteral) ToString() string + type Datum struct + func MakeDatums(args ...interface{}) []Datum + func NewBytesDatum(b []byte) (d Datum) + func NewDatum(in interface{}) (d Datum) + func NewStringDatum(s string) (d Datum) + func (d *Datum) GetBinaryLiteral() BinaryLiteral + func (d *Datum) GetBytes() []byte + func (d *Datum) GetFloat32() float32 + func (d *Datum) GetFloat64() float64 + func (d *Datum) GetInt64() int64 + func (d *Datum) GetInterface() interface{} + func (d *Datum) GetMysqlDecimal() *MyDecimal + func (d *Datum) GetString() string + func (d *Datum) GetUint64() uint64 + func (d *Datum) GetValue() interface{} + func (d *Datum) Kind() byte + func (d *Datum) SetBinaryLiteral(b BinaryLiteral) + func (d *Datum) SetBytes(b []byte) + func (d *Datum) SetBytesAsString(b []byte) + func (d *Datum) SetFloat32(f float32) + func (d *Datum) SetFloat64(f float64) + func (d *Datum) SetInt64(i int64) + func (d *Datum) SetInterface(x interface{}) + func (d *Datum) SetMysqlDecimal(b *MyDecimal) + func (d *Datum) SetNull() + func (d *Datum) SetString(s string) + func (d *Datum) SetUint64(i uint64) + func (d *Datum) SetValue(val interface{}) + type HexLiteral BinaryLiteral + func NewHexLiteral(s string) (HexLiteral, error) + func (b HexLiteral) ToString() string + type MyDecimal struct + func (d *MyDecimal) FromString(str []byte) error + func (d *MyDecimal) String() string + func (d *MyDecimal) ToString() (str []byte) + type ParamMarkerExpr struct + InExecute bool + Offset int + Order int + func (n *ParamMarkerExpr) Accept(v ast.Visitor) (ast.Node, bool) + func (n *ParamMarkerExpr) Format(w io.Writer) + func (n *ParamMarkerExpr) Restore(ctx *format.RestoreCtx) error + func (n *ParamMarkerExpr) SetOrder(order int) + type ValueExpr struct + func (n *ValueExpr) Accept(v ast.Visitor) (ast.Node, bool) + func (n *ValueExpr) Format(w io.Writer) + func (n *ValueExpr) GetDatumString() string + func (n *ValueExpr) GetProjectionOffset() int + func (n *ValueExpr) Restore(ctx *format.RestoreCtx) error + func (n *ValueExpr) SetProjectionOffset(offset int)