Versions in this module Expand all Collapse all v0 v0.0.8 Feb 17, 2022 Changes in this version + const DateFormat + 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 ErrorLength + const GoDurationDay + const GoDurationWeek + const HourIndex + const HourMicrosecondMaxCnt + const HourMinuteMaxCnt + const HourSecondMaxCnt + 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 UnspecifiedFsp + const UnspecifiedLength + const VarStorageLen + const YearIndex + const YearMonthMaxCnt + const ZeroDateStr + const ZeroDatetimeStr + var BoundTimezone = gotime.UTC + var EmptyName = &FieldName + var ErrBadNumber = terror.ClassTypes.New(mysql.ErrBadNumber, mysql.MySQLErrName[mysql.ErrBadNumber]) + var ErrCastAsSignedOverflow = terror.ClassTypes.New(mysql.ErrCastAsSignedOverflow, ...) + var ErrCastNegIntAsUnsigned = terror.ClassTypes.New(mysql.ErrCastNegIntAsUnsigned, ...) + var ErrDataTooLong = terror.ClassTypes.New(mysql.ErrDataTooLong, mysql.MySQLErrName[mysql.ErrDataTooLong]) + var ErrDatetimeFunctionOverflow = terror.ClassTypes.New(mysql.ErrDatetimeFunctionOverflow, ...) + var ErrDivByZero = terror.ClassTypes.New(mysql.ErrDivisionByZero, mysql.MySQLErrName[mysql.ErrDivisionByZero]) + var ErrDuplicatedValueInType = terror.ClassTypes.New(mysql.ErrDuplicatedValueInType, ...) + var ErrIllegalValueForType = terror.ClassTypes.New(mysql.ErrIllegalValueForType, mysql.MySQLErrName[mysql.ErrIllegalValueForType]) + var ErrInvalidDefault = parser_types.ErrInvalidDefault + var ErrInvalidFieldSize = terror.ClassTypes.New(mysql.ErrInvalidFieldSize, mysql.MySQLErrName[mysql.ErrInvalidFieldSize]) + var ErrInvalidWeekModeFormat = terror.ClassTypes.New(mysql.ErrInvalidWeekModeFormat, ...) + var ErrInvalidYear = terror.ClassTypes.New(mysql.ErrInvalidYear, mysql.MySQLErrName[mysql.ErrInvalidYear]) + var ErrInvalidYearFormat = terror.ClassTypes.New(mysql.ErrInvalidYearFormat, mysql.MySQLErrName[mysql.ErrInvalidYearFormat]) + var ErrMBiggerThanD = terror.ClassTypes.New(mysql.ErrMBiggerThanD, mysql.MySQLErrName[mysql.ErrMBiggerThanD]) + var ErrOverflow = terror.ClassTypes.New(mysql.ErrDataOutOfRange, mysql.MySQLErrName[mysql.ErrDataOutOfRange]) + var ErrTooBigDisplayWidth = terror.ClassTypes.New(mysql.ErrTooBigDisplaywidth, mysql.MySQLErrName[mysql.ErrTooBigDisplaywidth]) + var ErrTooBigFieldLength = terror.ClassTypes.New(mysql.ErrTooBigFieldlength, mysql.MySQLErrName[mysql.ErrTooBigFieldlength]) + var ErrTooBigPrecision = terror.ClassTypes.New(mysql.ErrTooBigPrecision, mysql.MySQLErrName[mysql.ErrTooBigPrecision]) + var ErrTooBigScale = terror.ClassTypes.New(mysql.ErrTooBigScale, mysql.MySQLErrName[mysql.ErrTooBigScale]) + var ErrTooBigSet = terror.ClassTypes.New(mysql.ErrTooBigSet, mysql.MySQLErrName[mysql.ErrTooBigSet]) + var ErrTruncated = terror.ClassTypes.New(mysql.WarnDataTruncated, mysql.MySQLErrName[mysql.WarnDataTruncated]) + var ErrTruncatedWrongVal = terror.ClassTypes.New(mysql.ErrTruncatedWrongValue, mysql.MySQLErrName[mysql.ErrTruncatedWrongValue]) + var ErrWarnDataOutOfRange = terror.ClassTypes.New(mysql.ErrWarnDataOutOfRange, mysql.MySQLErrName[mysql.ErrWarnDataOutOfRange]) + var ErrWrongValue = terror.ClassTypes.New(mysql.ErrTruncatedWrongValue, mysql.MySQLErrName[mysql.ErrWrongValue]) + 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(1000, 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, shouldAdjust bool) (int64, error) + func CheckFsp(fsp int) (int8, error) + 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 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 json.BinaryJSON) (float64, error) + func ConvertJSONToInt(sc *stmtctx.StatementContext, j json.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 + func DecimalDiv(from1, from2, to *MyDecimal, fracIncr int) error + 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) (string, 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 EqualDatums(sc *stmtctx.StatementContext, a []Datum, b []Datum) (bool, error) + func EstimatedMemUsage(array []Datum, numOfRows int) int64 + func ExtractDatetimeNum(t *Time, unit string) (int64, error) + func ExtractDurationNum(d *Duration, unit string) (int64, error) + func FormatIntWidthN(num, n int) string + func GetFormatType(format string) (isDuration, isDate bool) + func GetFracIndex(s string) (index int) + func GetFsp(s string) int8 + func GetLastDay(year, month int) int + func GetMaxFloat(flen int, decimal int) float64 + 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 IsNonBinaryStr(ft *FieldType) bool + func IsString(tp byte) bool + func IsTemporalWithDate(tp byte) bool + func IsTypeFractionable(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 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 ParseDateFormat(format string) []string + func ParseDurationValue(unit string, format string) (y int64, m int64, d int64, n int64, _ error) + func ParseFrac(s string, fsp int8) (v int, overflow bool, err error) + func ParseYear(str string) (int16, error) + 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 int8) (gotime.Time, error) + func SetBinChsClnFlag(ft *FieldType) + func SortDatums(sc *stmtctx.StatementContext, datums []Datum) error + func StrToDuration(sc *stmtctx.StatementContext, str string, fsp int8) (d Duration, t Time, isDuration bool, err error) + func StrToFloat(sc *stmtctx.StatementContext, str string) (float64, error) + func StrToInt(sc *stmtctx.StatementContext, str string) (int64, error) + func StrToUint(sc *stmtctx.StatementContext, str string) (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 TruncateFrac(t gotime.Time, fsp int8) (gotime.Time, error) + func TruncateOverflowMySQLTime(d gotime.Duration) (gotime.Duration, 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 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) 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) (int, 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, length int) (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 json.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) CompareDatum(sc *stmtctx.StatementContext, ad *Datum) (int, error) + func (d *Datum) ConvertTo(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) 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() json.BinaryJSON + func (d *Datum) GetMysqlSet() Set + func (d *Datum) GetMysqlTime() Time + func (d *Datum) GetRaw() []byte + func (d *Datum) GetString() string + 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) 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) SetFloat32(f float32) + 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 json.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 json.BinaryJSON, err error) + func (d *Datum) ToString() (string, error) + func (d Datum) String() string + type Duration struct + Fsp int8 + func ExtractDurationValue(unit string, format string) (Duration, error) + func MaxMySQLDuration(fsp int8) Duration + func NewDuration(hour, minute, second, microsecond int, fsp int8) Duration + func NumberToDuration(number int64, fsp int8) (Duration, error) + func ParseDuration(sc *stmtctx.StatementContext, str string, fsp int8) (Duration, 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) 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 int8) (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 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 + OrigColName model.CIStr + OrigTblName model.CIStr + TblName model.CIStr + 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 HexLiteral BinaryLiteral + func NewHexLiteral(s string) (HexLiteral, error) + func (b HexLiteral) ToString() string + type MyDecimal struct + func ConvertDatumToDecimal(sc *stmtctx.StatementContext, d Datum) (*MyDecimal, error) + func ConvertJSONToDecimal(sc *stmtctx.StatementContext, j json.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) 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() (float64, 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) + type NameSlice []*FieldName + func (s NameSlice) Shallow() NameSlice + type RoundMode int32 + const DivFracIncr + const ModeHalfEven + const ModeTruncate + type RoundingType uint8 + const Ceiling + const Floor + type Set struct + Name string + Value uint64 + 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 int8) 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 int8) (Time, error) + func ParseTimeFromFloatString(sc *stmtctx.StatementContext, str string, tp byte, fsp int8) (Time, error) + func ParseTimeFromInt64(sc *stmtctx.StatementContext, num int64) (Time, error) + func ParseTimeFromNum(sc *stmtctx.StatementContext, num int64, tp byte, fsp int8) (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 int8) (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 int8) + 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) 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() int8 + func (t Time) InvalidZero() bool + func (t Time) IsZero() bool + func (t Time) RoundFrac(sc *stmtctx.StatementContext, fsp int8) (Time, error) + func (t Time) String() string + func (t Time) ToNumber() *MyDecimal + func (t Time) ToPackedUint() (uint64, error) + func (t Time) Type() uint8