Versions in this module Expand all Collapse all v7 v7.0.4 Jan 30, 2023 v7.0.2 Jan 30, 2023 v7.0.1 Jan 30, 2023 v7.0.0 Jan 30, 2023 Changes in this version + const DateFormat + const DateStr + const DateTimeStr + const DayHourMaxCnt + const DayIndex + const DayMicrosecondMaxCnt + const DayMinuteMaxCnt + const DaySecondMaxCnt + const DefaultFsp + const ETDatetime + const ETDecimal + const ETDuration + const ETInt + const ETJson + const ETReal + const ETString + const ETTimestamp + const EmptyDatumSize + const ErrorLength + const GoDurationDay + const GoDurationWeek + const HourIndex + const HourMicrosecondMaxCnt + const HourMinuteMaxCnt + const HourSecondMaxCnt + const JSONContainsPathAll + const JSONContainsPathOne + const JSONLiteralFalse + const JSONLiteralNil + const JSONLiteralTrue + 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 + const MaxDuration + const MaxFsp + const MaxTime + const MaxYear + const MicrosecondIndex + const MinFsp + const MinTime + const MinYear + const MinuteIndex + const MinuteMicrosecondMaxCnt + const MinuteSecondMaxCnt + const MonthIndex + const MyDecimalStructSize + const SecondIndex + const SecondMicrosecondMaxCnt + const TimeFSPFormat + const TimeFormat + const TimeMaxHour + const TimeMaxMinute + const TimeMaxSecond + const TimeMaxValue + const TimeMaxValueSeconds + const TimeStr + const TimeValueCnt + const TimestampStr + const UTCTimeFormat + const UnspecifiedFsp + const UnspecifiedLength + const VarStorageLen + const YearIndex + const YearMonthMaxCnt + const ZeroDateStr + const ZeroDatetimeStr + var BoundTimezone = gotime.UTC + var EmptyName = &FieldName + var ErrBadNumber = dbterror.ClassTypes.NewStd(mysql.ErrBadNumber) + var ErrCastAsSignedOverflow = dbterror.ClassTypes.NewStd(mysql.ErrCastAsSignedOverflow) + var ErrCastNegIntAsUnsigned = dbterror.ClassTypes.NewStd(mysql.ErrCastNegIntAsUnsigned) + var ErrDataTooLong = dbterror.ClassTypes.NewStd(mysql.ErrDataTooLong) + var ErrDatetimeFunctionOverflow = dbterror.ClassTypes.NewStd(mysql.ErrDatetimeFunctionOverflow) + var ErrDivByZero = dbterror.ClassTypes.NewStd(mysql.ErrDivisionByZero) + var ErrDuplicatedValueInType = dbterror.ClassTypes.NewStd(mysql.ErrDuplicatedValueInType) + var ErrIllegalValueForType = dbterror.ClassTypes.NewStd(mysql.ErrIllegalValueForType) + var ErrInvalidDefault = parser_types.ErrInvalidDefault + var ErrInvalidFieldSize = dbterror.ClassTypes.NewStd(mysql.ErrInvalidFieldSize) + var ErrInvalidJSONCharset = dbterror.ClassJSON.NewStd(mysql.ErrInvalidJSONCharset) + var ErrInvalidJSONContainsPathType = dbterror.ClassJSON.NewStd(mysql.ErrInvalidJSONContainsPathType) + var ErrInvalidJSONData = dbterror.ClassJSON.NewStd(mysql.ErrInvalidJSONData) + var ErrInvalidJSONPath = dbterror.ClassJSON.NewStd(mysql.ErrInvalidJSONPath) + var ErrInvalidJSONPathArrayCell = dbterror.ClassJSON.NewStd(mysql.ErrInvalidJSONPathArrayCell) + var ErrInvalidJSONPathMultipleSelection = dbterror.ClassJSON.NewStd(mysql.ErrInvalidJSONPathMultipleSelection) + var ErrInvalidJSONText = dbterror.ClassJSON.NewStd(mysql.ErrInvalidJSONText) + var ErrInvalidWeekModeFormat = dbterror.ClassTypes.NewStd(mysql.ErrInvalidWeekModeFormat) + var ErrInvalidYear = dbterror.ClassTypes.NewStd(mysql.ErrInvalidYear) + var ErrInvalidYearFormat = dbterror.ClassTypes.NewStd(mysql.ErrInvalidYearFormat) + var ErrJSONDocumentNULLKey = dbterror.ClassJSON.NewStd(mysql.ErrJSONDocumentNULLKey) + var ErrJSONDocumentTooDeep = dbterror.ClassJSON.NewStd(mysql.ErrJSONDocumentTooDeep) + var ErrJSONObjectKeyTooLong = dbterror.ClassTypes.NewStdErr(mysql.ErrJSONObjectKeyTooLong, ...) + var ErrMBiggerThanD = dbterror.ClassTypes.NewStd(mysql.ErrMBiggerThanD) + var ErrOverflow = dbterror.ClassTypes.NewStd(mysql.ErrDataOutOfRange) + var ErrPartitionColumnStatsMissing = dbterror.ClassTypes.NewStd(mysql.ErrPartitionColumnStatsMissing) + var ErrPartitionStatsMissing = dbterror.ClassTypes.NewStd(mysql.ErrPartitionStatsMissing) + var ErrSyntax = dbterror.ClassTypes.NewStdErr(mysql.ErrParse, mysql.MySQLErrName[mysql.ErrSyntax]) + var ErrTooBigDisplayWidth = dbterror.ClassTypes.NewStd(mysql.ErrTooBigDisplaywidth) + var ErrTooBigFieldLength = dbterror.ClassTypes.NewStd(mysql.ErrTooBigFieldlength) + var ErrTooBigPrecision = dbterror.ClassTypes.NewStd(mysql.ErrTooBigPrecision) + var ErrTooBigScale = dbterror.ClassTypes.NewStd(mysql.ErrTooBigScale) + var ErrTooBigSet = dbterror.ClassTypes.NewStd(mysql.ErrTooBigSet) + var ErrTruncated = dbterror.ClassTypes.NewStd(mysql.WarnDataTruncated) + var ErrTruncatedWrongVal = dbterror.ClassTypes.NewStd(mysql.ErrTruncatedWrongValue) + var ErrUnsupportedSecondArgumentType = dbterror.ClassJSON.NewStd(mysql.ErrUnsupportedSecondArgumentType) + var ErrWarnDataOutOfRange = dbterror.ClassTypes.NewStd(mysql.ErrWarnDataOutOfRange) + var ErrWrongFieldSpec = dbterror.ClassTypes.NewStd(mysql.ErrWrongFieldSpec) + var ErrWrongValue = dbterror.ClassTypes.NewStdErr(mysql.ErrTruncatedWrongValue, mysql.MySQLErrName[mysql.ErrWrongValue]) + var ErrWrongValue2 = dbterror.ClassTypes.NewStdErr(mysql.ErrWrongValue, mysql.MySQLErrName[mysql.ErrWrongValue]) + var ErrWrongValueForType = dbterror.ClassTypes.NewStdErr(mysql.ErrWrongValueForType, mysql.MySQLErrName[mysql.ErrWrongValueForType]) + var ExplainFormatBinary = "binary" + var ExplainFormatBrief = "brief" + var ExplainFormatCostTrace = "cost_trace" + var ExplainFormatDOT = "dot" + var ExplainFormatHint = "hint" + var ExplainFormatJSON = "json" + var ExplainFormatROW = "row" + var ExplainFormatTiDBJSON = "tidb_json" + var ExplainFormatTraditional = "traditional" + var ExplainFormatTrueCardCost = "true_card_cost" + var ExplainFormatVerbose = "verbose" + var ExplainFormats = []string + var IsTypeBlob = ast.IsTypeBlob + var IsTypeChar = ast.IsTypeChar + var MaxDatetime = FromDate(9999, 12, 31, 23, 59, 59, 999999) + var MaxTimestamp = NewTime(FromDate(2038, 1, 19, 3, 14, 7, 999999), mysql.TypeTimestamp, DefaultFsp) + var MinDatetime = FromDate(1, 1, 1, 0, 0, 0, 0) + var MinTimestamp = NewTime(FromDate(1970, 1, 1, 0, 0, 1, 0), mysql.TypeTimestamp, DefaultFsp) + var MonthNames = []string + var TypeStr = ast.TypeStr + var TypeToStr = ast.TypeToStr + var WeekdayNames = []string + var ZeroBinaryLiteral = BinaryLiteral + var ZeroCoreTime = CoreTime(0) + var ZeroDate = NewTime(ZeroCoreTime, mysql.TypeDate, DefaultFsp) + var ZeroDatetime = NewTime(ZeroCoreTime, mysql.TypeDatetime, DefaultFsp) + var ZeroDuration = Duration + var ZeroTime = Time + var ZeroTimestamp = NewTime(ZeroCoreTime, mysql.TypeTimestamp, DefaultFsp) + func AddDate(year, month, day int64, ot gotime.Time) (nt gotime.Time) + func AddDuration(a time.Duration, b time.Duration) (time.Duration, error) + func AddInt64(a int64, b int64) (int64, error) + func AddInteger(a uint64, b int64) (uint64, error) + func AddUint64(a uint64, b uint64) (uint64, error) + func AdjustYear(y int64, adjustZero bool) (int64, error) + func CheckFsp(fsp int) (int, error) + func CheckModifyTypeCompatible(origin *FieldType, to *FieldType) (canReorg bool, err error) + func CompareBinaryJSON(left, right BinaryJSON) int + func CompareDuration(x, y time.Duration) int + func CompareFloat64(x, y float64) int + func CompareInt64(x, y int64) int + func CompareString(x, y, collation string) int + func CompareUint64(x, y uint64) int + func ContainsBinaryJSON(obj, target BinaryJSON) bool + func ConvertBetweenCharAndVarchar(oldCol, newCol byte) bool + func ConvertDecimalToUint(sc *stmtctx.StatementContext, d *MyDecimal, upperBound uint64, tp byte) (uint64, error) + func ConvertFloatToInt(fval float64, lowerBound, upperBound int64, tp byte) (int64, error) + func ConvertFloatToUint(sc *stmtctx.StatementContext, fval float64, upperBound uint64, tp byte) (uint64, error) + func ConvertIntToInt(val int64, lowerBound int64, upperBound int64, tp byte) (int64, error) + func ConvertIntToUint(sc *stmtctx.StatementContext, val int64, upperBound uint64, tp byte) (uint64, error) + func ConvertJSONToFloat(sc *stmtctx.StatementContext, j BinaryJSON) (float64, error) + func ConvertJSONToInt(sc *stmtctx.StatementContext, j BinaryJSON, unsigned bool, tp byte) (int64, error) + func ConvertJSONToInt64(sc *stmtctx.StatementContext, j BinaryJSON, unsigned bool) (int64, error) + func ConvertUintToInt(val uint64, upperBound int64, tp byte) (int64, error) + func ConvertUintToUint(val uint64, upperBound uint64, tp byte) (uint64, error) + func DateDiff(startTime, endTime CoreTime) int + func DateFSP(date string) (fsp int) + func DateTimeIsOverflow(sc *stmtctx.StatementContext, date Time) (bool, error) + func DatumsToStrNoErr(datums []Datum) string + func DatumsToString(datums []Datum, handleSpecialValue bool) (string, error) + func DecimalAdd(from1, from2, to *MyDecimal) error + func DecimalBinSize(precision, frac int) (int, error) + func DecimalDiv(from1, from2, to *MyDecimal, fracIncr int) error + func DecimalLength2Precision(length int, scale int, hasUnsignedFlag bool) int + func DecimalMod(from1, from2, to *MyDecimal) error + func DecimalMul(from1, from2, to *MyDecimal) error + func DecimalPeak(b []byte) (int, error) + func DecimalSub(from1, from2, to *MyDecimal) error + func DefaultCharsetForType(tp byte) (defaultCharset string, defaultCollation string) + func DefaultParamTypeForValue(value interface{}, tp *FieldType) + func DefaultTypeForValue(value interface{}, tp *FieldType, char string, collate string) + func DivInt64(a int64, b int64) (int64, error) + func DivIntWithUint(a int64, b uint64) (uint64, error) + func DivUintWithInt(a uint64, b int64) (uint64, error) + func EOFAsNil(err error) error + func EstimatedMemUsage(array []Datum, numOfRows int) int64 + func ExtractDatetimeNum(t *Time, unit string) (int64, error) + func ExtractDurationNum(d *Duration, unit string) (res int64, err error) + func FormatIntWidthN(num, n int) string + func GetFormatType(format string) (isDuration, isDate bool) + func GetFracIndex(s string) (index int) + func GetFsp(s string) int + func GetLastDay(year, month int) int + func GetMaxFloat(flen int, decimal int) float64 + func GetTimezone(lit string) (idx int, tzSign, tzHour, tzSep, tzMinute string) + func IntergerSignedLowerBound(intType byte) int64 + func IntergerSignedUpperBound(intType byte) int64 + func IntergerUnsignedUpperBound(intType byte) uint64 + func InvOp2(x, y interface{}, o opcode.Op) (interface{}, error) + func IsBinaryStr(ft *FieldType) bool + func IsClockUnit(unit string) bool + func IsDateFormat(format string) bool + func IsDateUnit(unit string) bool + func IsMicrosecondUnit(unit string) bool + func IsNonBinaryStr(ft *FieldType) bool + func IsString(tp byte) bool + func IsTemporalWithDate(tp byte) bool + func IsTypeBit(ft *FieldType) bool + func IsTypeFloat(tp byte) bool + func IsTypeFractionable(tp byte) bool + func IsTypeInteger(tp byte) bool + func IsTypeNumeric(tp byte) bool + func IsTypePrefixable(tp byte) bool + func IsTypeTemporal(tp byte) bool + func IsTypeTime(tp byte) bool + func IsTypeUnspecified(tp byte) bool + func IsTypeVarchar(tp byte) bool + func IsVarcharTooBigFieldLength(colDefTpFlen int, colDefName, setCharset string) error + func KindStr(kind byte) (r string) + func MergeFieldType(a byte, b byte) byte + func MulInt64(a int64, b int64) (int64, error) + func MulInteger(a uint64, b int64) (uint64, error) + func MulUint64(a uint64, b uint64) (uint64, error) + func NeedRestoredData(ft *FieldType) bool + func OverlapsBinaryJSON(obj, target BinaryJSON) bool + func ParseDateFormat(format string) []string + func ParseDurationValue(unit string, format string) (y int64, m int64, d int64, n int64, fsp int, _ error) + func ParseFrac(s string, fsp int) (v int, overflow bool, err error) + func ParseYear(str string) (int16, error) + func PeekBytesAsJSON(b []byte) (n int, err error) + func Precision2LengthNoTruncation(length int, scale int, hasUnsignedFlag bool) int + func ProduceFloatWithSpecifiedTp(f float64, target *FieldType, sc *stmtctx.StatementContext) (_ float64, err error) + func ProduceStrWithSpecifiedTp(s string, tp *FieldType, sc *stmtctx.StatementContext, padZero bool) (_ string, err error) + func Round(f float64, dec int) float64 + func RoundFloat(f float64) float64 + func RoundFrac(t gotime.Time, fsp int) (gotime.Time, error) + func SetBinChsClnFlag(ft *FieldType) + func SetTypeFlag(flag *uint, flagItem uint, on bool) + func SortDatums(sc *stmtctx.StatementContext, datums []Datum) error + func StrToDuration(sc *stmtctx.StatementContext, str string, fsp int) (d Duration, t Time, isDuration bool, err error) + func StrToFloat(sc *stmtctx.StatementContext, str string, isFuncCast bool) (float64, error) + func StrToInt(sc *stmtctx.StatementContext, str string, isFuncCast bool) (int64, error) + func StrToUint(sc *stmtctx.StatementContext, str string, isFuncCast bool) (uint64, error) + func SubDuration(a time.Duration, b time.Duration) (time.Duration, error) + func SubInt64(a int64, b int64) (int64, error) + func SubIntWithUint(a int64, b uint64) (uint64, error) + func SubUint64(a uint64, b uint64) (uint64, error) + func SubUintWithInt(a uint64, b int64) (uint64, error) + func TimestampDiff(unit string, t1 Time, t2 Time) int64 + func ToString(value interface{}) (string, error) + func Truncate(f float64, dec int) float64 + func TruncateFloat(f float64, flen int, decimal int) (float64, error) + func TruncateFloatToString(f float64, dec int) string + func TruncateFrac(t gotime.Time, fsp int) (gotime.Time, error) + func TruncateOverflowMySQLTime(d gotime.Duration) (gotime.Duration, error) + func TryToFixFlenOfDatetime(resultTp *FieldType) + func UnquoteString(str string) (string, error) + func VecCompareII(x, y, res []int64) + func VecCompareIU(x []int64, y []uint64, res []int64) + func VecCompareUI(x []uint64, y, res []int64) + func VecCompareUU(x, y []uint64, res []int64) + type BinaryJSON struct + TypeCode JSONTypeCode + Value []byte + func CreateBinaryJSON(in interface{}) BinaryJSON + func CreateBinaryJSONWithCheck(in interface{}) (BinaryJSON, error) + func MergeBinaryJSON(bjs []BinaryJSON) BinaryJSON + func MergePatchBinaryJSON(bjs []*BinaryJSON) (*BinaryJSON, error) + func ParseBinaryJSONFromString(s string) (bj BinaryJSON, err error) + func (bj *BinaryJSON) UnmarshalJSON(data []byte) error + func (bj BinaryJSON) ArrayGetElem(idx int) BinaryJSON + func (bj BinaryJSON) ArrayInsert(pathExpr JSONPathExpression, value BinaryJSON) (res BinaryJSON, err error) + func (bj BinaryJSON) Copy() BinaryJSON + func (bj BinaryJSON) Extract(pathExprList []JSONPathExpression) (ret BinaryJSON, found bool) + func (bj BinaryJSON) GetDuration() Duration + func (bj BinaryJSON) GetElemCount() int + func (bj BinaryJSON) GetElemDepth() int + func (bj BinaryJSON) GetFloat64() float64 + func (bj BinaryJSON) GetInt64() int64 + func (bj BinaryJSON) GetKeys() BinaryJSON + func (bj BinaryJSON) GetOpaque() Opaque + func (bj BinaryJSON) GetOpaqueFieldType() byte + func (bj BinaryJSON) GetString() []byte + func (bj BinaryJSON) GetTime() Time + func (bj BinaryJSON) GetUint64() uint64 + func (bj BinaryJSON) GetValue() any + func (bj BinaryJSON) HashValue(buf []byte) []byte + func (bj BinaryJSON) IsZero() bool + func (bj BinaryJSON) MarshalJSON() ([]byte, error) + func (bj BinaryJSON) Modify(pathExprList []JSONPathExpression, values []BinaryJSON, mt JSONModifyType) (retj BinaryJSON, err error) + func (bj BinaryJSON) Remove(pathExprList []JSONPathExpression) (BinaryJSON, error) + func (bj BinaryJSON) Search(containType string, search string, escape byte, ...) (res BinaryJSON, isNull bool, err error) + func (bj BinaryJSON) String() string + func (bj BinaryJSON) Type() string + func (bj BinaryJSON) Unquote() (string, error) + func (bj BinaryJSON) Walk(walkFn BinaryJSONWalkFunc, pathExprList ...JSONPathExpression) (err error) + type BinaryJSONWalkFunc func(fullpath JSONPathExpression, bj BinaryJSON) (stop bool, err error) + type BinaryLiteral []byte + func NewBinaryLiteralFromUint(value uint64, byteSize int) BinaryLiteral + func ParseBitStr(s string) (BinaryLiteral, error) + func ParseHexStr(s string) (BinaryLiteral, error) + func (b BinaryLiteral) Compare(b2 BinaryLiteral) int + func (b BinaryLiteral) String() string + func (b BinaryLiteral) ToBitLiteralString(trimLeadingZero bool) string + func (b BinaryLiteral) ToInt(sc *stmtctx.StatementContext) (uint64, error) + func (b BinaryLiteral) ToString() string + type BitLiteral BinaryLiteral + func NewBitLiteral(s string) (BitLiteral, error) + func (b BitLiteral) ToString() string + type CoreTime uint64 + func FromDate(year int, month int, day int, hour int, minute int, second int, ...) CoreTime + func FromDateChecked(year, month, day, hour, minute, second, microsecond int) (CoreTime, bool) + func FromGoTime(t gotime.Time) CoreTime + func (t CoreTime) AdjustedGoTime(loc *gotime.Location) (gotime.Time, error) + func (t CoreTime) Day() int + func (t CoreTime) GoTime(loc *gotime.Location) (gotime.Time, error) + func (t CoreTime) Hour() int + func (t CoreTime) IsLeapYear() bool + func (t CoreTime) Microsecond() int + func (t CoreTime) Minute() int + func (t CoreTime) Month() int + func (t CoreTime) Second() int + func (t CoreTime) String() string + func (t CoreTime) Week(mode int) int + func (t CoreTime) Weekday() gotime.Weekday + func (t CoreTime) Year() int + func (t CoreTime) YearDay() int + func (t CoreTime) YearWeek(mode int) (year int, week int) + type Datum struct + func ChangeReverseResultByUpperLowerBound(sc *stmtctx.StatementContext, retType *FieldType, res Datum, ...) (Datum, error) + func CloneRow(dr []Datum) []Datum + func ComputePlus(a, b Datum) (d Datum, err error) + func GetMaxValue(ft *FieldType) (max Datum) + func GetMinValue(ft *FieldType) (min Datum) + func MakeDatums(args ...interface{}) []Datum + func MaxValueDatum() Datum + func MinNotNullDatum() Datum + func NewBinaryLiteralDatum(b BinaryLiteral) (d Datum) + func NewBytesDatum(b []byte) (d Datum) + func NewCollateMysqlEnumDatum(e Enum, collation string) (d Datum) + func NewCollationStringDatum(s string, collation string) (d Datum) + func NewDatum(in interface{}) (d Datum) + func NewDecimalDatum(dec *MyDecimal) (d Datum) + func NewDurationDatum(dur Duration) (d Datum) + func NewFloat32Datum(f float32) (d Datum) + func NewFloat64Datum(f float64) (d Datum) + func NewIntDatum(i int64) (d Datum) + func NewJSONDatum(j BinaryJSON) (d Datum) + func NewMysqlBitDatum(b BinaryLiteral) (d Datum) + func NewMysqlEnumDatum(e Enum) (d Datum) + func NewMysqlSetDatum(e Set, collation string) (d Datum) + func NewStringDatum(s string) (d Datum) + func NewTimeDatum(t Time) (d Datum) + func NewUintDatum(i uint64) (d Datum) + func (d *Datum) Clone() *Datum + func (d *Datum) Collation() string + func (d *Datum) Compare(sc *stmtctx.StatementContext, ad *Datum, comparer collate.Collator) (int, error) + func (d *Datum) ConvertTo(sc *stmtctx.StatementContext, target *FieldType) (Datum, error) + func (d *Datum) ConvertToMysqlYear(sc *stmtctx.StatementContext, target *FieldType) (Datum, error) + func (d *Datum) Copy(dst *Datum) + func (d *Datum) Frac() int + func (d *Datum) GetBinaryLiteral() BinaryLiteral + func (d *Datum) GetBinaryLiteral4Cmp() BinaryLiteral + func (d *Datum) GetBinaryStringDecoded(sc *stmtctx.StatementContext, chs string) (string, error) + func (d *Datum) GetBinaryStringEncoded() string + 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) GetMysqlBit() BinaryLiteral + func (d *Datum) GetMysqlDecimal() *MyDecimal + func (d *Datum) GetMysqlDuration() Duration + func (d *Datum) GetMysqlEnum() Enum + func (d *Datum) GetMysqlJSON() BinaryJSON + func (d *Datum) GetMysqlSet() Set + func (d *Datum) GetMysqlTime() Time + func (d *Datum) GetRaw() []byte + func (d *Datum) GetString() string + func (d *Datum) GetStringWithCheck(sc *stmtctx.StatementContext, chs string) (string, error) + func (d *Datum) GetUint64() uint64 + func (d *Datum) GetValue() interface{} + func (d *Datum) IsNull() bool + func (d *Datum) Kind() byte + func (d *Datum) Length() int + func (d *Datum) MarshalJSON() ([]byte, error) + func (d *Datum) MemUsage() (sum int64) + func (d *Datum) SetAutoID(id int64, flag uint) + func (d *Datum) SetBinaryLiteral(b BinaryLiteral) + func (d *Datum) SetBytes(b []byte) + func (d *Datum) SetBytesAsString(b []byte, collation string, length uint32) + func (d *Datum) SetCollation(collation string) + func (d *Datum) SetFloat32(f float32) + func (d *Datum) SetFloat32FromF64(f float64) + func (d *Datum) SetFloat64(f float64) + func (d *Datum) SetFrac(frac int) + func (d *Datum) SetInt64(i int64) + func (d *Datum) SetInterface(x interface{}) + func (d *Datum) SetLength(l int) + func (d *Datum) SetMinNotNull() + func (d *Datum) SetMysqlBit(b BinaryLiteral) + func (d *Datum) SetMysqlDecimal(b *MyDecimal) + func (d *Datum) SetMysqlDuration(b Duration) + func (d *Datum) SetMysqlEnum(b Enum, collation string) + func (d *Datum) SetMysqlJSON(b BinaryJSON) + func (d *Datum) SetMysqlSet(b Set, collation string) + func (d *Datum) SetMysqlTime(b Time) + func (d *Datum) SetNull() + func (d *Datum) SetRaw(b []byte) + func (d *Datum) SetString(s string, collation string) + func (d *Datum) SetUint64(i uint64) + func (d *Datum) SetValue(val interface{}, tp *types.FieldType) + func (d *Datum) SetValueWithDefaultCollation(val interface{}) + func (d *Datum) ToBool(sc *stmtctx.StatementContext) (int64, error) + func (d *Datum) ToBytes() ([]byte, error) + func (d *Datum) ToDecimal(sc *stmtctx.StatementContext) (*MyDecimal, error) + func (d *Datum) ToFloat64(sc *stmtctx.StatementContext) (float64, error) + func (d *Datum) ToInt64(sc *stmtctx.StatementContext) (int64, error) + func (d *Datum) ToMysqlJSON() (j BinaryJSON, err error) + func (d *Datum) ToString() (string, error) + func (d *Datum) UnmarshalJSON(data []byte) error + func (d Datum) EstimatedMemUsage() int64 + func (d Datum) String() string + type Duration struct + Fsp int + func ExtractDurationValue(unit string, format string) (Duration, error) + func MaxMySQLDuration(fsp int) Duration + func NewDuration(hour, minute, second, microsecond int, fsp int) Duration + func NumberToDuration(number int64, fsp int) (Duration, error) + func ParseDuration(sc *stmtctx.StatementContext, str string, fsp int) (Duration, bool, error) + func (d Duration) Add(v Duration) (Duration, error) + func (d Duration) Compare(o Duration) int + func (d Duration) CompareString(sc *stmtctx.StatementContext, str string) (int, error) + func (d Duration) ConvertToTime(sc *stmtctx.StatementContext, tp uint8) (Time, error) + func (d Duration) ConvertToTimeWithTimestamp(sc *stmtctx.StatementContext, tp uint8, ts gotime.Time) (Time, error) + func (d Duration) DurationFormat(layout string) (string, error) + func (d Duration) Hour() int + func (d Duration) MicroSecond() int + func (d Duration) Minute() int + func (d Duration) Neg() Duration + func (d Duration) RoundFrac(fsp int, loc *gotime.Location) (Duration, error) + func (d Duration) Second() int + func (d Duration) String() string + func (d Duration) Sub(v Duration) (Duration, error) + func (d Duration) ToNumber() *MyDecimal + type Enum struct + Name string + Value uint64 + func ParseEnum(elems []string, name string, collation string) (Enum, error) + func ParseEnumName(elems []string, name string, collation string) (Enum, error) + func ParseEnumValue(elems []string, number uint64) (Enum, error) + func (e Enum) Copy() Enum + func (e Enum) String() string + func (e Enum) ToNumber() float64 + type EvalType = ast.EvalType + func AggregateEvalType(fts []*FieldType, flag *uint) EvalType + type FieldName struct + ColName model.CIStr + DBName model.CIStr + Hidden bool + NotExplicitUsable bool + OrigColName model.CIStr + OrigTblName model.CIStr + Redundant bool + TblName model.CIStr + func (name *FieldName) MemoryUsage() (sum int64) + func (name *FieldName) String() string + type FieldType = ast.FieldType + func AggFieldType(tps []*FieldType) *FieldType + func NewFieldType(tp byte) *FieldType + func NewFieldTypeWithCollation(tp byte, collation string, length int) *FieldType + type FieldTypeBuilder struct + func NewFieldTypeBuilder() *FieldTypeBuilder + func (b *FieldTypeBuilder) AddFlag(flag uint) *FieldTypeBuilder + func (b *FieldTypeBuilder) Build() FieldType + func (b *FieldTypeBuilder) BuildP() *FieldType + func (b *FieldTypeBuilder) DelFlag(flag uint) *FieldTypeBuilder + func (b *FieldTypeBuilder) GetCharset() string + func (b *FieldTypeBuilder) GetCollate() string + func (b *FieldTypeBuilder) GetDecimal() int + func (b *FieldTypeBuilder) GetFlag() uint + func (b *FieldTypeBuilder) GetFlen() int + func (b *FieldTypeBuilder) GetType() byte + func (b *FieldTypeBuilder) SetArray(x bool) *FieldTypeBuilder + func (b *FieldTypeBuilder) SetCharset(charset string) *FieldTypeBuilder + func (b *FieldTypeBuilder) SetCollate(collate string) *FieldTypeBuilder + func (b *FieldTypeBuilder) SetDecimal(decimal int) *FieldTypeBuilder + func (b *FieldTypeBuilder) SetElems(elems []string) *FieldTypeBuilder + func (b *FieldTypeBuilder) SetFlag(flag uint) *FieldTypeBuilder + func (b *FieldTypeBuilder) SetFlen(flen int) *FieldTypeBuilder + func (b *FieldTypeBuilder) SetType(tp byte) *FieldTypeBuilder + func (b *FieldTypeBuilder) ToggleFlag(flag uint) *FieldTypeBuilder + type HexLiteral BinaryLiteral + func NewHexLiteral(s string) (HexLiteral, error) + func (b HexLiteral) ToString() string + type JSONModifyType byte + const JSONModifyInsert + const JSONModifyReplace + const JSONModifySet + type JSONPathExpression struct + func ParseJSONPathExpr(pathExpr string) (JSONPathExpression, error) + func (pe JSONPathExpression) CouldMatchMultipleValues() bool + func (pe JSONPathExpression) String() string + type JSONPathExpressionCache struct + type JSONTypeCode = byte + const JSONTypeCodeArray + const JSONTypeCodeDate + const JSONTypeCodeDatetime + const JSONTypeCodeDuration + const JSONTypeCodeFloat64 + const JSONTypeCodeInt64 + const JSONTypeCodeLiteral + const JSONTypeCodeObject + const JSONTypeCodeOpaque + const JSONTypeCodeString + const JSONTypeCodeTimestamp + const JSONTypeCodeUint64 + type MyDecimal struct + func ConvertDatumToDecimal(sc *stmtctx.StatementContext, d Datum) (*MyDecimal, error) + func ConvertJSONToDecimal(sc *stmtctx.StatementContext, j BinaryJSON) (*MyDecimal, error) + func DecimalNeg(from *MyDecimal) *MyDecimal + func NewDecFromFloatForTest(f float64) *MyDecimal + func NewDecFromInt(i int64) *MyDecimal + func NewDecFromStringForTest(s string) *MyDecimal + func NewDecFromUint(i uint64) *MyDecimal + func NewMaxOrMinDec(negative bool, prec, frac int) *MyDecimal + func ProduceDecWithSpecifiedTp(dec *MyDecimal, tp *FieldType, sc *stmtctx.StatementContext) (_ *MyDecimal, err error) + func (d *MyDecimal) Compare(to *MyDecimal) int + func (d *MyDecimal) FromBin(bin []byte, precision, frac int) (binSize int, err error) + func (d *MyDecimal) FromFloat64(f float64) error + func (d *MyDecimal) FromInt(val int64) *MyDecimal + func (d *MyDecimal) FromString(str []byte) error + func (d *MyDecimal) FromUint(val uint64) *MyDecimal + func (d *MyDecimal) GetDigitsFrac() int8 + func (d *MyDecimal) GetDigitsInt() int8 + func (d *MyDecimal) IsNegative() bool + func (d *MyDecimal) IsZero() bool + func (d *MyDecimal) MarshalJSON() ([]byte, error) + func (d *MyDecimal) PrecisionAndFrac() (precision, frac int) + func (d *MyDecimal) Round(to *MyDecimal, frac int, roundMode RoundMode) (err error) + func (d *MyDecimal) Shift(shift int) error + func (d *MyDecimal) String() string + func (d *MyDecimal) ToBin(precision, frac int) ([]byte, error) + func (d *MyDecimal) ToFloat64() (f float64, err error) + func (d *MyDecimal) ToHashKey() ([]byte, error) + func (d *MyDecimal) ToInt() (int64, error) + func (d *MyDecimal) ToString() (str []byte) + func (d *MyDecimal) ToUint() (uint64, error) + func (d *MyDecimal) UnmarshalJSON(data []byte) error + func (d *MyDecimal) WriteBin(precision, frac int, buf []byte) ([]byte, error) + type NameSlice []*FieldName + func (s NameSlice) FindAstColName(name *ast.ColumnName) bool + func (s NameSlice) Shallow() NameSlice + type Opaque struct + Buf []byte + TypeCode byte + type RoundMode int32 + const DivFracIncr + const ModeCeiling + const ModeHalfUp + const ModeTruncate + type RoundingType uint8 + const Ceiling + const Floor + type Set struct + Name string + Value uint64 + func ParseSet(elems []string, name string, collation string) (Set, error) + func ParseSetName(elems []string, name string, collation string) (Set, error) + func ParseSetValue(elems []string, number uint64) (Set, error) + func (e Set) Copy() Set + func (e Set) String() string + func (e Set) ToNumber() float64 + type Time struct + func CurrentTime(tp uint8) Time + func NewTime(coreTime CoreTime, tp uint8, fsp int) Time + func ParseDate(sc *stmtctx.StatementContext, str string) (Time, error) + func ParseDateFromNum(sc *stmtctx.StatementContext, num int64) (Time, error) + func ParseDatetime(sc *stmtctx.StatementContext, str string) (Time, error) + func ParseDatetimeFromNum(sc *stmtctx.StatementContext, num int64) (Time, error) + func ParseTime(sc *stmtctx.StatementContext, str string, tp byte, fsp int) (Time, error) + func ParseTimeFromDecimal(sc *stmtctx.StatementContext, dec *MyDecimal) (t Time, err error) + func ParseTimeFromFloat64(sc *stmtctx.StatementContext, f float64) (Time, error) + func ParseTimeFromFloatString(sc *stmtctx.StatementContext, str string, tp byte, fsp int) (Time, error) + func ParseTimeFromInt64(sc *stmtctx.StatementContext, num int64) (Time, error) + func ParseTimeFromNum(sc *stmtctx.StatementContext, num int64, tp byte, fsp int) (Time, error) + func ParseTimeFromYear(_ *stmtctx.StatementContext, year int64) (Time, error) + func ParseTimestamp(sc *stmtctx.StatementContext, str string) (Time, error) + func ParseTimestampFromNum(sc *stmtctx.StatementContext, num int64) (Time, error) + func StrToDateTime(sc *stmtctx.StatementContext, str string, fsp int) (Time, error) + func TimeFromDays(num int64) Time + func (t *Time) Add(sc *stmtctx.StatementContext, d Duration) (Time, error) + func (t *Time) Check(sc *stmtctx.StatementContext) error + func (t *Time) ConvertTimeZone(from, to *gotime.Location) error + func (t *Time) FromPackedUint(packed uint64) error + func (t *Time) SetCoreTime(ct CoreTime) + func (t *Time) SetFsp(fsp int) + func (t *Time) SetType(tp uint8) + func (t *Time) StrToDate(sc *stmtctx.StatementContext, date, format string) bool + func (t *Time) Sub(sc *stmtctx.StatementContext, t1 *Time) Duration + func (t *Time) UnmarshalJSON(data []byte) error + func (t Time) Clock() (hour int, minute int, second int) + func (t Time) Compare(o Time) int + func (t Time) CompareString(sc *stmtctx.StatementContext, str string) (int, error) + func (t Time) Convert(sc *stmtctx.StatementContext, tp uint8) (Time, error) + func (t Time) ConvertToDuration() (Duration, error) + func (t Time) CoreTime() CoreTime + func (t Time) DateFormat(layout string) (string, error) + func (t Time) FillNumber(dec *MyDecimal) + func (t Time) Fsp() int + func (t Time) InvalidZero() bool + func (t Time) IsZero() bool + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) RoundFrac(sc *stmtctx.StatementContext, fsp int) (Time, error) + func (t Time) String() string + func (t Time) ToNumber() *MyDecimal + func (t Time) ToPackedUint() (uint64, error) + func (t Time) Type() uint8 Other modules containing this package github.com/lemon-mint/tidb