Documentation ¶
Index ¶
- Constants
- Variables
- func CreateNewGetLock(ls *sql.LockSubsystem) func(e1, e2 sql.Expression) sql.Expression
- func GetLockingFuncs(ls *sql.LockSubsystem) []sql.Function
- func IsFreeLockFunc(_ *sql.Context, ls *sql.LockSubsystem, lockName string) (interface{}, error)
- func IsUsedLockFunc(ctx *sql.Context, ls *sql.LockSubsystem, lockName string) (interface{}, error)
- func NewAbsVal(e sql.Expression) sql.Expression
- func NewAcos(arg sql.Expression) sql.Expression
- func NewAddDate(args ...sql.Expression) (sql.Expression, error)
- func NewAscii(arg sql.Expression) sql.Expression
- func NewAsin(arg sql.Expression) sql.Expression
- func NewAtan(args ...sql.Expression) (sql.Expression, error)
- func NewBin(arg sql.Expression) sql.Expression
- func NewBinToUUID(args ...sql.Expression) (sql.Expression, error)
- func NewBitCount(arg sql.Expression) sql.Expression
- func NewBitlength(arg sql.Expression) sql.Expression
- func NewCeil(num sql.Expression) sql.Expression
- func NewChar(args ...sql.Expression) (sql.Expression, error)
- func NewCharLength(e sql.Expression) sql.Expression
- func NewCoalesce(args ...sql.Expression) (sql.Expression, error)
- func NewCoercibility(e sql.Expression) sql.Expression
- func NewCollation(e sql.Expression) sql.Expression
- func NewConcat(args ...sql.Expression) (sql.Expression, error)
- func NewConcatWithSeparator(args ...sql.Expression) (sql.Expression, error)
- func NewConnectionID() sql.Expression
- func NewConv(n, from, to sql.Expression) sql.Expression
- func NewConvertTz(dt, fromTz, toTz sql.Expression) sql.Expression
- func NewCos(arg sql.Expression) sql.Expression
- func NewCot(arg sql.Expression) sql.Expression
- func NewCrc32(arg sql.Expression) sql.Expression
- func NewCurrDate() sql.Expression
- func NewCurrTime(args ...sql.Expression) (sql.Expression, error)
- func NewCurrentDate() sql.Expression
- func NewCurrentUser() sql.Expression
- func NewDatabase() sql.Expression
- func NewDate(date sql.Expression) sql.Expression
- func NewDateAdd(args ...sql.Expression) (sql.Expression, error)
- func NewDateDiff(expr1, expr2 sql.Expression) sql.Expression
- func NewDateFormat(ex, value sql.Expression) sql.Expression
- func NewDateSub(args ...sql.Expression) (sql.Expression, error)
- func NewDatetime(args ...sql.Expression) (sql.Expression, error)
- func NewDay(date sql.Expression) sql.Expression
- func NewDayName(arg sql.Expression) sql.Expression
- func NewDayOfWeek(date sql.Expression) sql.Expression
- func NewDayOfYear(date sql.Expression) sql.Expression
- func NewDegrees(arg sql.Expression) sql.Expression
- func NewElt(args ...sql.Expression) (sql.Expression, error)
- func NewExp(arg sql.Expression) sql.Expression
- func NewExtract(e1, e2 sql.Expression) sql.Expression
- func NewField(args ...sql.Expression) (sql.Expression, error)
- func NewFindInSet(e1, e2 sql.Expression) sql.Expression
- func NewFloor(num sql.Expression) sql.Expression
- func NewFormat(args ...sql.Expression) (sql.Expression, error)
- func NewFoundRows() sql.Expression
- func NewFromBase64(e sql.Expression) sql.Expression
- func NewFromUnixtime(arg sql.Expression) sql.Expression
- func NewGreatest(args ...sql.Expression) (sql.Expression, error)
- func NewHex(arg sql.Expression) sql.Expression
- func NewHour(date sql.Expression) sql.Expression
- func NewIf(expr, ifTrue, ifFalse sql.Expression) sql.Expression
- func NewIfNull(ex, value sql.Expression) sql.Expression
- func NewInet6Aton(val sql.Expression) sql.Expression
- func NewInet6Ntoa(val sql.Expression) sql.Expression
- func NewInetAton(val sql.Expression) sql.Expression
- func NewInetNtoa(val sql.Expression) sql.Expression
- func NewInstr(str, substr sql.Expression) sql.Expression
- func NewIsBinary(e sql.Expression) sql.Expression
- func NewIsFreeLock(ls *sql.LockSubsystem) sql.CreateFunc1Args
- func NewIsIPv4(val sql.Expression) sql.Expression
- func NewIsIPv4Compat(val sql.Expression) sql.Expression
- func NewIsIPv4Mapped(val sql.Expression) sql.Expression
- func NewIsIPv6(val sql.Expression) sql.Expression
- func NewIsNull(e sql.Expression) sql.Expression
- func NewIsUUID(arg sql.Expression) sql.Expression
- func NewIsUsedLock(ls *sql.LockSubsystem) sql.CreateFunc1Args
- func NewLastInsertId(children ...sql.Expression) (sql.Expression, error)
- func NewLastInsertUuid(children ...sql.Expression) (sql.Expression, error)
- func NewLeast(args ...sql.Expression) (sql.Expression, error)
- func NewLeft(str, len sql.Expression) sql.Expression
- func NewLeftPad(e ...sql.Expression) (sql.Expression, error)
- func NewLeftTrim(str sql.Expression) sql.Expression
- func NewLength(e sql.Expression) sql.Expression
- func NewLoadFile(fileName sql.Expression) sql.Expression
- func NewLocate(exprs ...sql.Expression) (sql.Expression, error)
- func NewLog(args ...sql.Expression) (sql.Expression, error)
- func NewLogBase(base float64, e sql.Expression) sql.Expression
- func NewLogBaseFunc(base float64) func(e sql.Expression) sql.Expression
- func NewLower(e sql.Expression) sql.Expression
- func NewMD5(arg sql.Expression) sql.Expression
- func NewMicrosecond(arg sql.Expression) sql.Expression
- func NewMinute(date sql.Expression) sql.Expression
- func NewMod(args ...sql.Expression) (sql.Expression, error)
- func NewMonth(date sql.Expression) sql.Expression
- func NewMonthName(arg sql.Expression) sql.Expression
- func NewNow(args ...sql.Expression) (sql.Expression, error)
- func NewNullIf(ex1, ex2 sql.Expression) sql.Expression
- func NewOrd(arg sql.Expression) sql.Expression
- func NewPad(pType padType, args ...sql.Expression) (sql.Expression, error)
- func NewPi() sql.Expression
- func NewPower(e1, e2 sql.Expression) sql.Expression
- func NewQuarter(date sql.Expression) sql.Expression
- func NewRadians(arg sql.Expression) sql.Expression
- func NewRand(exprs ...sql.Expression) (sql.Expression, error)
- func NewRandomBytes(e sql.Expression) sql.Expression
- func NewRegexpLike(args ...sql.Expression) (sql.Expression, error)
- func NewRegexpReplace(args ...sql.Expression) (sql.Expression, error)
- func NewReleaseAllLocks(ls *sql.LockSubsystem) func() sql.Expression
- func NewReleaseLock(ls *sql.LockSubsystem) sql.CreateFunc1Args
- func NewRepeat(str sql.Expression, count sql.Expression) sql.Expression
- func NewReplace(str sql.Expression, fromStr sql.Expression, toStr sql.Expression) sql.Expression
- func NewReverse(e sql.Expression) sql.Expression
- func NewRight(str, len sql.Expression) sql.Expression
- func NewRightPad(e ...sql.Expression) (sql.Expression, error)
- func NewRightTrim(str sql.Expression) sql.Expression
- func NewRound(args ...sql.Expression) (sql.Expression, error)
- func NewRowCount() sql.Expression
- func NewSHA1(arg sql.Expression) sql.Expression
- func NewSHA2(arg, count sql.Expression) sql.Expression
- func NewSecond(date sql.Expression) sql.Expression
- func NewSign(arg sql.Expression) sql.Expression
- func NewSin(arg sql.Expression) sql.Expression
- func NewSleep(e sql.Expression) sql.Expression
- func NewSoundex(e sql.Expression) sql.Expression
- func NewSpace(arg sql.Expression) sql.Expression
- func NewSqrt(e sql.Expression) sql.Expression
- func NewStrCmp(e1, e2 sql.Expression) sql.Expression
- func NewStrToDate(args ...sql.Expression) (sql.Expression, error)
- func NewSubDate(args ...sql.Expression) (sql.Expression, error)
- func NewSubstring(args ...sql.Expression) (sql.Expression, error)
- func NewSubstringIndex(str, delim, count sql.Expression) sql.Expression
- func NewSysdate(args ...sql.Expression) (sql.Expression, error)
- func NewTan(arg sql.Expression) sql.Expression
- func NewTime(time sql.Expression) sql.Expression
- func NewTimeDiff(e1, e2 sql.Expression) sql.Expression
- func NewTimeFormat(ex, value sql.Expression) sql.Expression
- func NewTimeToSec(arg sql.Expression) sql.Expression
- func NewTimestamp(args ...sql.Expression) (sql.Expression, error)
- func NewTimestampDiff(u, e1, e2 sql.Expression) sql.Expression
- func NewToBase64(e sql.Expression) sql.Expression
- func NewTrim(str sql.Expression, pat sql.Expression, dir string) sql.Expression
- func NewUTCTimestamp(args ...sql.Expression) (sql.Expression, error)
- func NewUUIDFunc() sql.Expression
- func NewUUIDToBin(args ...sql.Expression) (sql.Expression, error)
- func NewUnhex(arg sql.Expression) sql.Expression
- func NewUnixTimestamp(args ...sql.Expression) (sql.Expression, error)
- func NewUpper(e sql.Expression) sql.Expression
- func NewUser() sql.Expression
- func NewValues(col sql.Expression) sql.Expression
- func NewVersion(versionPostfix string) func(...sql.Expression) (sql.Expression, error)
- func NewWeek(args ...sql.Expression) (sql.Expression, error)
- func NewWeekOfYear(arg sql.Expression) sql.Expression
- func NewWeekday(date sql.Expression) sql.Expression
- func NewYear(date sql.Expression) sql.Expression
- func NewYearWeek(args ...sql.Expression) (sql.Expression, error)
- func NoArgFuncWithChildren(fn sql.Expression, children []sql.Expression) (sql.Expression, error)
- func ReleaseLockFunc(ctx *sql.Context, ls *sql.LockSubsystem, lockName string) (interface{}, error)
- func SessionTimeZone(ctx *sql.Context) (string, error)
- type AbsVal
- func (*AbsVal) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (t *AbsVal) Description() string
- func (t *AbsVal) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (t *AbsVal) FunctionName() string
- func (t *AbsVal) IsNullable() bool
- func (t *AbsVal) String() string
- func (t *AbsVal) Type() sql.Type
- func (t *AbsVal) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Acos
- type AppendFuncWrapper
- type Ascii
- type Asin
- type Atan
- func (a *Atan) Children() []sql.Expression
- func (*Atan) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (a *Atan) Description() string
- func (a *Atan) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (a *Atan) FunctionName() string
- func (a *Atan) IsNullable() bool
- func (a *Atan) Resolved() bool
- func (a *Atan) String() string
- func (a *Atan) Type() sql.Type
- func (a *Atan) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Bin
- func (*Bin) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (b *Bin) Description() string
- func (h *Bin) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (b *Bin) FunctionName() string
- func (h *Bin) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type BinToUUID
- func (bu BinToUUID) Children() []sql.Expression
- func (BinToUUID) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (bu BinToUUID) Description() string
- func (bu BinToUUID) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (bu BinToUUID) FunctionName() string
- func (bu BinToUUID) IsNullable() bool
- func (bu BinToUUID) Resolved() bool
- func (bu BinToUUID) String() string
- func (bu BinToUUID) Type() sql.Type
- func (bu BinToUUID) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type BitCount
- func (b *BitCount) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (b *BitCount) Description() string
- func (b *BitCount) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (b *BitCount) FunctionName() string
- func (b *BitCount) String() string
- func (b *BitCount) Type() sql.Type
- func (b *BitCount) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Bitlength
- func (*Bitlength) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (b *Bitlength) Description() string
- func (h *Bitlength) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (b *Bitlength) FunctionName() string
- func (h *Bitlength) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Ceil
- func (*Ceil) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c *Ceil) Description() string
- func (c *Ceil) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c *Ceil) FunctionName() string
- func (c *Ceil) String() string
- func (c *Ceil) Type() sql.Type
- func (c *Ceil) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Char
- func (c *Char) Children() []sql.Expression
- func (c *Char) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c *Char) Description() string
- func (c *Char) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c *Char) FunctionName() string
- func (c *Char) IsNullable() bool
- func (c *Char) Resolved() bool
- func (c *Char) String() string
- func (c *Char) Type() sql.Type
- func (c *Char) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Coalesce
- func (c *Coalesce) Children() []sql.Expression
- func (c *Coalesce) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c *Coalesce) DebugString() string
- func (c *Coalesce) Description() string
- func (c *Coalesce) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c *Coalesce) FunctionName() string
- func (c *Coalesce) IsNullable() bool
- func (c *Coalesce) Resolved() bool
- func (c *Coalesce) String() string
- func (c *Coalesce) Type() sql.Type
- func (*Coalesce) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Coercibility
- func (*Coercibility) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c *Coercibility) Description() string
- func (c *Coercibility) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c *Coercibility) FunctionName() string
- func (c *Coercibility) String() string
- func (c *Coercibility) Type() sql.Type
- func (c *Coercibility) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Collation
- func (*Collation) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c *Collation) Description() string
- func (c *Collation) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c *Collation) FunctionName() string
- func (c *Collation) String() string
- func (c *Collation) Type() sql.Type
- func (c *Collation) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Concat
- func (c *Concat) Children() []sql.Expression
- func (c *Concat) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c *Concat) DebugString() string
- func (c *Concat) Description() string
- func (c *Concat) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c *Concat) FunctionName() string
- func (c *Concat) IsNullable() bool
- func (c *Concat) Resolved() bool
- func (c *Concat) String() string
- func (c *Concat) Type() sql.Type
- func (*Concat) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type ConcatWithSeparator
- func (f *ConcatWithSeparator) Children() []sql.Expression
- func (c *ConcatWithSeparator) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *ConcatWithSeparator) Description() string
- func (f *ConcatWithSeparator) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *ConcatWithSeparator) FunctionName() string
- func (f *ConcatWithSeparator) IsNullable() bool
- func (f *ConcatWithSeparator) Resolved() bool
- func (f *ConcatWithSeparator) String() string
- func (f *ConcatWithSeparator) Type() sql.Type
- func (*ConcatWithSeparator) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type ConnectionID
- func (ConnectionID) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c ConnectionID) Description() string
- func (c ConnectionID) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c ConnectionID) FunctionName() string
- func (c ConnectionID) IsNonDeterministic() bool
- func (c ConnectionID) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Conv
- func (c *Conv) Children() []sql.Expression
- func (*Conv) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c *Conv) Description() string
- func (c *Conv) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c *Conv) FunctionName() string
- func (c *Conv) IsNullable() bool
- func (c *Conv) Resolved() bool
- func (c *Conv) String() string
- func (c *Conv) Type() sql.Type
- func (c *Conv) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type ConvertTz
- func (c *ConvertTz) Children() []sql.Expression
- func (*ConvertTz) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c *ConvertTz) Description() string
- func (c *ConvertTz) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c *ConvertTz) FunctionName() string
- func (c *ConvertTz) IsNullable() bool
- func (c *ConvertTz) Resolved() bool
- func (c *ConvertTz) String() string
- func (c *ConvertTz) Type() sql.Type
- func (c *ConvertTz) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Cos
- type Cot
- type CountType
- type Crc32
- type CurrDate
- func (CurrDate) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c CurrDate) Description() string
- func (c CurrDate) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c CurrDate) IsNonDeterministic() bool
- func (c CurrDate) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type CurrTime
- func (c *CurrTime) Children() []sql.Expression
- func (*CurrTime) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c *CurrTime) Description() string
- func (c *CurrTime) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c *CurrTime) FunctionName() string
- func (c CurrTime) IsNonDeterministic() bool
- func (c *CurrTime) IsNullable() bool
- func (c *CurrTime) Resolved() bool
- func (c *CurrTime) String() string
- func (c *CurrTime) Type() sql.Type
- func (c *CurrTime) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Database
- func (db *Database) Children() []sql.Expression
- func (*Database) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (db *Database) Description() string
- func (db *Database) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (db *Database) FunctionName() string
- func (db *Database) IsNonDeterministic() bool
- func (db *Database) IsNullable() bool
- func (db *Database) Resolved() bool
- func (db *Database) String() string
- func (db *Database) Type() sql.Type
- func (db *Database) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Date
- func (*Date) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *Date) Description() string
- func (d *Date) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *Date) FunctionName() string
- func (d *Date) String() string
- func (d *Date) Type() sql.Type
- func (d *Date) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type DateAdd
- func (d *DateAdd) Children() []sql.Expression
- func (*DateAdd) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *DateAdd) Description() string
- func (d *DateAdd) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *DateAdd) FunctionName() string
- func (d *DateAdd) IsNullable() bool
- func (d *DateAdd) Resolved() bool
- func (d *DateAdd) String() string
- func (d *DateAdd) Type() sql.Type
- func (d *DateAdd) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type DateDiff
- func (*DateDiff) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *DateDiff) Description() string
- func (d *DateDiff) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *DateDiff) FunctionName() string
- func (d *DateDiff) String() string
- func (d *DateDiff) Type() sql.Type
- func (d *DateDiff) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type DateFormat
- func (*DateFormat) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *DateFormat) Description() string
- func (f *DateFormat) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *DateFormat) FunctionName() string
- func (f *DateFormat) IsNullable() bool
- func (f *DateFormat) String() string
- func (f *DateFormat) Type() sql.Type
- func (f *DateFormat) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type DateSub
- func (d *DateSub) Children() []sql.Expression
- func (*DateSub) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *DateSub) Description() string
- func (d *DateSub) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *DateSub) FunctionName() string
- func (d *DateSub) IsNullable() bool
- func (d *DateSub) Resolved() bool
- func (d *DateSub) String() string
- func (d *DateSub) Type() sql.Type
- func (d *DateSub) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type DatetimeConversion
- func (t *DatetimeConversion) Children() []sql.Expression
- func (*DatetimeConversion) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (t *DatetimeConversion) Description() string
- func (t *DatetimeConversion) Eval(ctx *sql.Context, r sql.Row) (interface{}, error)
- func (t *DatetimeConversion) FunctionName() string
- func (t *DatetimeConversion) IsNullable() bool
- func (t *DatetimeConversion) Resolved() bool
- func (t *DatetimeConversion) String() string
- func (t *DatetimeConversion) Type() sql.Type
- func (t *DatetimeConversion) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Day
- func (*Day) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *Day) Description() string
- func (d *Day) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *Day) FunctionName() string
- func (d *Day) String() string
- func (d *Day) Type() sql.Type
- func (d *Day) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type DayName
- func (*DayName) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *DayName) Description() string
- func (d *DayName) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *DayName) FunctionName() string
- func (d *DayName) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type DayOfWeek
- func (*DayOfWeek) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *DayOfWeek) Description() string
- func (d *DayOfWeek) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *DayOfWeek) FunctionName() string
- func (d *DayOfWeek) String() string
- func (d *DayOfWeek) Type() sql.Type
- func (d *DayOfWeek) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type DayOfYear
- func (*DayOfYear) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *DayOfYear) Description() string
- func (d *DayOfYear) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *DayOfYear) FunctionName() string
- func (d *DayOfYear) String() string
- func (d *DayOfYear) Type() sql.Type
- func (d *DayOfYear) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Degrees
- func (*Degrees) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *Degrees) Description() string
- func (d *Degrees) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *Degrees) FunctionName() string
- func (d *Degrees) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Elt
- func (e *Elt) Children() []sql.Expression
- func (e *Elt) CollationCoercibility(ctx *sql.Context) (sql.CollationID, byte)
- func (e *Elt) Description() string
- func (e *Elt) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (e *Elt) FunctionName() string
- func (e *Elt) IsNullable() bool
- func (e *Elt) Resolved() bool
- func (e *Elt) String() string
- func (e *Elt) Type() sql.Type
- func (*Elt) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Exp
- func (e *Exp) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (e *Exp) Description() string
- func (e *Exp) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (e *Exp) Type() sql.Type
- func (e *Exp) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Extract
- func (*Extract) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (td *Extract) Description() string
- func (td *Extract) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (td *Extract) FunctionName() string
- func (td *Extract) String() string
- func (td *Extract) Type() sql.Type
- func (td *Extract) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Field
- func (f *Field) Children() []sql.Expression
- func (f *Field) CollationCoercibility(ctx *sql.Context) (sql.CollationID, byte)
- func (f *Field) Description() string
- func (f *Field) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *Field) FunctionName() string
- func (f *Field) IsNullable() bool
- func (f *Field) Resolved() bool
- func (f *Field) String() string
- func (f *Field) Type() sql.Type
- func (*Field) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type FindInSet
- func (*FindInSet) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *FindInSet) Description() string
- func (f *FindInSet) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *FindInSet) FunctionName() string
- func (f *FindInSet) String() string
- func (f *FindInSet) Type() sql.Type
- func (f *FindInSet) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Floor
- func (*Floor) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *Floor) Description() string
- func (f *Floor) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *Floor) FunctionName() string
- func (f *Floor) String() string
- func (f *Floor) Type() sql.Type
- func (f *Floor) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Format
- func (f *Format) Children() []sql.Expression
- func (*Format) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *Format) Description() string
- func (f *Format) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *Format) FunctionName() string
- func (f *Format) IsNullable() bool
- func (f *Format) Resolved() bool
- func (f *Format) String() string
- func (f *Format) Type() sql.Type
- func (f *Format) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type FoundRows
- func (r FoundRows) Children() []sql.Expression
- func (FoundRows) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r FoundRows) Description() string
- func (r FoundRows) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r FoundRows) FunctionName() string
- func (r FoundRows) IsNonDeterministic() bool
- func (r FoundRows) IsNullable() bool
- func (r FoundRows) Resolved() bool
- func (r FoundRows) String() string
- func (r FoundRows) Type() sql.Type
- func (r FoundRows) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type FromBase64
- func (*FromBase64) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (t *FromBase64) Description() string
- func (t *FromBase64) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (t *FromBase64) FunctionName() string
- func (t *FromBase64) IsNullable() bool
- func (t *FromBase64) String() string
- func (t *FromBase64) Type() sql.Type
- func (t *FromBase64) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type FromUnixtime
- func (*FromUnixtime) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r *FromUnixtime) Description() string
- func (r *FromUnixtime) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r *FromUnixtime) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type GetLock
- func (*GetLock) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (gl *GetLock) Description() string
- func (gl *GetLock) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (gl *GetLock) FunctionName() string
- func (gl *GetLock) IsNullable() bool
- func (gl *GetLock) String() string
- func (gl *GetLock) Type() sql.Type
- func (gl *GetLock) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Greatest
- func (f *Greatest) Children() []sql.Expression
- func (f *Greatest) Description() string
- func (f *Greatest) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *Greatest) FunctionName() string
- func (f *Greatest) IsNullable() bool
- func (f *Greatest) Resolved() bool
- func (f *Greatest) String() string
- func (f *Greatest) Type() sql.Type
- func (f *Greatest) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Hex
- type Hour
- func (*Hour) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (h *Hour) Description() string
- func (h *Hour) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (h *Hour) FunctionName() string
- func (h *Hour) String() string
- func (h *Hour) Type() sql.Type
- func (h *Hour) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type If
- func (f *If) Children() []sql.Expression
- func (f *If) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *If) Description() string
- func (f *If) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *If) FunctionName() string
- func (f *If) IsNullable() bool
- func (f *If) Resolved() bool
- func (f *If) String() string
- func (f *If) Type() sql.Type
- func (f *If) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type IfNull
- func (f *IfNull) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *IfNull) Description() string
- func (f *IfNull) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *IfNull) FunctionName() string
- func (f *IfNull) IsNullable() bool
- func (f *IfNull) String() string
- func (f *IfNull) Type() sql.Type
- func (f *IfNull) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Inet6Aton
- func (*Inet6Aton) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i *Inet6Aton) Description() string
- func (i *Inet6Aton) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i *Inet6Aton) FunctionName() string
- func (i *Inet6Aton) String() string
- func (i *Inet6Aton) Type() sql.Type
- func (i *Inet6Aton) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Inet6Ntoa
- func (*Inet6Ntoa) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i *Inet6Ntoa) Description() string
- func (i *Inet6Ntoa) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i *Inet6Ntoa) FunctionName() string
- func (i *Inet6Ntoa) String() string
- func (i *Inet6Ntoa) Type() sql.Type
- func (i *Inet6Ntoa) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type InetAton
- func (*InetAton) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i *InetAton) Description() string
- func (i *InetAton) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i *InetAton) FunctionName() string
- func (i *InetAton) String() string
- func (i *InetAton) Type() sql.Type
- func (i *InetAton) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type InetNtoa
- func (*InetNtoa) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i *InetNtoa) Description() string
- func (i *InetNtoa) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i *InetNtoa) FunctionName() string
- func (i *InetNtoa) String() string
- func (i *InetNtoa) Type() sql.Type
- func (i *InetNtoa) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Instr
- func (i Instr) Children() []sql.Expression
- func (Instr) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i Instr) Description() string
- func (i Instr) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i Instr) FunctionName() string
- func (i Instr) IsNullable() bool
- func (i Instr) Resolved() bool
- func (i Instr) String() string
- func (Instr) Type() sql.Type
- func (i Instr) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type IsBinary
- func (*IsBinary) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (ib *IsBinary) Description() string
- func (ib *IsBinary) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (ib *IsBinary) FunctionName() string
- func (ib *IsBinary) String() string
- func (ib *IsBinary) Type() sql.Type
- func (ib *IsBinary) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type IsFreeLock
- func (*IsFreeLock) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i *IsFreeLock) Description() string
- func (i *IsFreeLock) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i *IsFreeLock) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type IsIPv4
- func (*IsIPv4) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i *IsIPv4) Description() string
- func (i *IsIPv4) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i *IsIPv4) FunctionName() string
- func (i *IsIPv4) String() string
- func (i *IsIPv4) Type() sql.Type
- func (i *IsIPv4) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type IsIPv4Compat
- func (*IsIPv4Compat) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i *IsIPv4Compat) Description() string
- func (i *IsIPv4Compat) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i *IsIPv4Compat) FunctionName() string
- func (i *IsIPv4Compat) String() string
- func (i *IsIPv4Compat) Type() sql.Type
- func (i *IsIPv4Compat) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type IsIPv4Mapped
- func (*IsIPv4Mapped) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i *IsIPv4Mapped) Description() string
- func (i *IsIPv4Mapped) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i *IsIPv4Mapped) FunctionName() string
- func (i *IsIPv4Mapped) String() string
- func (i *IsIPv4Mapped) Type() sql.Type
- func (i *IsIPv4Mapped) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type IsIPv6
- func (*IsIPv6) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i *IsIPv6) Description() string
- func (i *IsIPv6) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i *IsIPv6) FunctionName() string
- func (i *IsIPv6) String() string
- func (i *IsIPv6) Type() sql.Type
- func (i *IsIPv6) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type IsNull
- func (*IsNull) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (ib *IsNull) Description() string
- func (ib *IsNull) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (ib *IsNull) FunctionName() string
- func (ib *IsNull) String() string
- func (ib *IsNull) Type() sql.Type
- func (ib *IsNull) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type IsUUID
- func (u IsUUID) Children() []sql.Expression
- func (IsUUID) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (u IsUUID) Description() string
- func (u IsUUID) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (u IsUUID) FunctionName() string
- func (u IsUUID) IsNullable() bool
- func (u IsUUID) Resolved() bool
- func (u IsUUID) String() string
- func (u IsUUID) Type() sql.Type
- func (u IsUUID) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type IsUsedLock
- func (*IsUsedLock) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i *IsUsedLock) Description() string
- func (i *IsUsedLock) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i *IsUsedLock) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type LastInsertId
- func (r LastInsertId) Children() []sql.Expression
- func (LastInsertId) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r LastInsertId) Description() string
- func (r LastInsertId) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r LastInsertId) FunctionName() string
- func (r LastInsertId) IsNonDeterministic() bool
- func (r LastInsertId) IsNullable() bool
- func (r LastInsertId) Resolved() bool
- func (r LastInsertId) String() string
- func (r LastInsertId) Type() sql.Type
- func (r LastInsertId) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type LastInsertUuid
- func (l LastInsertUuid) Children() []sql.Expression
- func (l LastInsertUuid) CollationCoercibility(_ *sql.Context) (collation sql.CollationID, coercibility byte)
- func (l LastInsertUuid) Description() string
- func (l LastInsertUuid) Eval(ctx *sql.Context, _ sql.Row) (interface{}, error)
- func (l LastInsertUuid) FunctionName() string
- func (l LastInsertUuid) IsNullable() bool
- func (l LastInsertUuid) Resolved() bool
- func (l LastInsertUuid) String() string
- func (l LastInsertUuid) Type() sql.Type
- func (l LastInsertUuid) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Least
- func (f *Least) Children() []sql.Expression
- func (f *Least) Description() string
- func (f *Least) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *Least) FunctionName() string
- func (f *Least) IsNullable() bool
- func (f *Least) Resolved() bool
- func (f *Least) String() string
- func (f *Least) Type() sql.Type
- func (f *Least) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Left
- func (l Left) Children() []sql.Expression
- func (l Left) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (l Left) Description() string
- func (l Left) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (l Left) FunctionName() string
- func (l Left) IsNullable() bool
- func (l Left) Resolved() bool
- func (l Left) String() string
- func (Left) Type() sql.Type
- func (l Left) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type LeftTrim
- func (t *LeftTrim) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (t *LeftTrim) Description() string
- func (t *LeftTrim) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (t *LeftTrim) FunctionName() string
- func (t *LeftTrim) IsNullable() bool
- func (t *LeftTrim) String() string
- func (t *LeftTrim) Type() sql.Type
- func (t *LeftTrim) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Length
- func (*Length) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (l *Length) DebugString() string
- func (l *Length) Description() string
- func (l *Length) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (l *Length) FunctionName() string
- func (l *Length) String() string
- func (l *Length) Type() sql.Type
- func (l *Length) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type LoadFile
- func (l *LoadFile) Children() []sql.Expression
- func (*LoadFile) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (l *LoadFile) Description() string
- func (l *LoadFile) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (l *LoadFile) FunctionName() string
- func (l *LoadFile) IsNullable() bool
- func (l *LoadFile) Resolved() bool
- func (l *LoadFile) String() string
- func (l *LoadFile) Type() sql.Type
- func (l *LoadFile) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Locate
- func (*Locate) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (l *Locate) DebugString() string
- func (l *Locate) Description() string
- func (l *Locate) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (l *Locate) FunctionName() string
- func (l *Locate) String() string
- func (l *Locate) Type() sql.Type
- func (l *Locate) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Log
- func (l *Log) Children() []sql.Expression
- func (*Log) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (l *Log) Description() string
- func (l *Log) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (l *Log) FunctionName() string
- func (l *Log) IsNullable() bool
- func (l *Log) String() string
- func (l *Log) Type() sql.Type
- func (l *Log) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type LogBase
- func (*LogBase) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (l *LogBase) Description() string
- func (l *LogBase) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (l *LogBase) FunctionName() string
- func (l *LogBase) IsNullable() bool
- func (l *LogBase) String() string
- func (l *LogBase) Type() sql.Type
- func (l *LogBase) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Lower
- func (l *Lower) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (l *Lower) Description() string
- func (l *Lower) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (l *Lower) FunctionName() string
- func (l *Lower) String() string
- func (l *Lower) Type() sql.Type
- func (l *Lower) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type MD5
- type Microsecond
- func (*Microsecond) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (m *Microsecond) Description() string
- func (m *Microsecond) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (m *Microsecond) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Minute
- func (*Minute) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (m *Minute) Description() string
- func (m *Minute) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (m *Minute) FunctionName() string
- func (m *Minute) String() string
- func (m *Minute) Type() sql.Type
- func (m *Minute) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Month
- func (*Month) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (m *Month) Description() string
- func (m *Month) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (m *Month) FunctionName() string
- func (m *Month) String() string
- func (m *Month) Type() sql.Type
- func (m *Month) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type MonthName
- func (*MonthName) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *MonthName) Description() string
- func (d *MonthName) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *MonthName) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type NamedLockFunction
- type NoArgFunc
- type Now
- func (n *Now) Children() []sql.Expression
- func (*Now) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (n *Now) Description() string
- func (n *Now) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (n *Now) FunctionName() string
- func (n *Now) IsNonDeterministic() bool
- func (n *Now) IsNullable() bool
- func (n *Now) Resolved() bool
- func (n *Now) String() string
- func (n *Now) Type() sql.Type
- func (n *Now) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type NullIf
- func (f *NullIf) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *NullIf) Description() string
- func (f *NullIf) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *NullIf) FunctionName() string
- func (f *NullIf) IsNullable() bool
- func (f *NullIf) String() string
- func (f *NullIf) Type() sql.Type
- func (f *NullIf) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Ord
- type Pad
- func (p *Pad) Children() []sql.Expression
- func (p *Pad) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (p *Pad) Description() string
- func (p *Pad) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (p *Pad) FunctionName() string
- func (p *Pad) IsNullable() bool
- func (p *Pad) Resolved() bool
- func (p *Pad) String() string
- func (p *Pad) Type() sql.Type
- func (p *Pad) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Pi
- func (p *Pi) Children() []sql.Expression
- func (p *Pi) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (p *Pi) Description() string
- func (p *Pi) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (p *Pi) FunctionName() string
- func (p *Pi) IsNullable() bool
- func (p *Pi) Resolved() bool
- func (p *Pi) String() string
- func (p *Pi) Type() sql.Type
- func (p *Pi) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Power
- func (*Power) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (p *Power) Description() string
- func (p *Power) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (p *Power) FunctionName() string
- func (p *Power) IsNullable() bool
- func (p *Power) String() string
- func (p *Power) Type() sql.Type
- func (p *Power) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Quarter
- func (q *Quarter) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (q *Quarter) Description() string
- func (q *Quarter) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (q *Quarter) FunctionName() string
- func (q *Quarter) String() string
- func (q *Quarter) Type() sql.Type
- func (q *Quarter) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Radians
- type Rand
- func (r *Rand) Children() []sql.Expression
- func (*Rand) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r *Rand) Description() string
- func (r *Rand) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r *Rand) FunctionName() string
- func (r *Rand) IsNonDeterministic() bool
- func (r *Rand) IsNullable() bool
- func (r *Rand) Resolved() bool
- func (r *Rand) String() string
- func (r *Rand) Type() sql.Type
- func (r *Rand) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type RandomBytes
- func (*RandomBytes) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r *RandomBytes) Description() string
- func (r *RandomBytes) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r *RandomBytes) FunctionName() string
- func (r *RandomBytes) IsNonDeterministic() bool
- func (r *RandomBytes) String() string
- func (r *RandomBytes) Type() sql.Type
- func (r *RandomBytes) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type RegexpLike
- func (r *RegexpLike) Children() []sql.Expression
- func (r *RegexpLike) Close(ctx *sql.Context) error
- func (r *RegexpLike) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r *RegexpLike) Description() string
- func (r *RegexpLike) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r *RegexpLike) FunctionName() string
- func (r *RegexpLike) IsNullable() bool
- func (r *RegexpLike) Resolved() bool
- func (r *RegexpLike) String() string
- func (r *RegexpLike) Type() sql.Type
- func (r *RegexpLike) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type RegexpReplace
- func (r *RegexpReplace) Children() []sql.Expression
- func (r *RegexpReplace) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r *RegexpReplace) Description() string
- func (r *RegexpReplace) Eval(ctx *sql.Context, row sql.Row) (val interface{}, err error)
- func (r *RegexpReplace) FunctionName() string
- func (r *RegexpReplace) IsNullable() bool
- func (r *RegexpReplace) Resolved() bool
- func (r *RegexpReplace) String() string
- func (r *RegexpReplace) Type() sql.Type
- func (r *RegexpReplace) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Registry
- type ReleaseAllLocks
- func (ReleaseAllLocks) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r ReleaseAllLocks) Description() string
- func (r ReleaseAllLocks) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r ReleaseAllLocks) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type ReleaseLock
- func (*ReleaseLock) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (i *ReleaseLock) Description() string
- func (i *ReleaseLock) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (i *ReleaseLock) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Repeat
- func (r *Repeat) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r *Repeat) Description() string
- func (r *Repeat) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r *Repeat) FunctionName() string
- func (r *Repeat) String() string
- func (r *Repeat) Type() sql.Type
- func (r *Repeat) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Replace
- func (r *Replace) Children() []sql.Expression
- func (r *Replace) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r *Replace) Description() string
- func (r *Replace) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r *Replace) FunctionName() string
- func (r *Replace) IsNullable() bool
- func (r *Replace) Resolved() bool
- func (r *Replace) String() string
- func (r *Replace) Type() sql.Type
- func (r *Replace) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Reverse
- func (r *Reverse) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r *Reverse) Description() string
- func (r *Reverse) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r *Reverse) FunctionName() string
- func (r *Reverse) String() string
- func (r *Reverse) Type() sql.Type
- func (r *Reverse) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Right
- func (r Right) Children() []sql.Expression
- func (r Right) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r Right) DebugString() string
- func (r Right) Description() string
- func (r Right) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r Right) FunctionName() string
- func (r Right) IsNullable() bool
- func (r Right) Resolved() bool
- func (r Right) String() string
- func (Right) Type() sql.Type
- func (r Right) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type RightTrim
- func (t *RightTrim) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (t *RightTrim) Description() string
- func (t *RightTrim) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (t *RightTrim) FunctionName() string
- func (t *RightTrim) IsNullable() bool
- func (t *RightTrim) String() string
- func (t *RightTrim) Type() sql.Type
- func (t *RightTrim) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Round
- func (r *Round) Children() []sql.Expression
- func (*Round) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r *Round) Description() string
- func (r *Round) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r *Round) FunctionName() string
- func (r *Round) IsNullable() bool
- func (r *Round) Resolved() bool
- func (r *Round) String() string
- func (r *Round) Type() sql.Type
- func (r *Round) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type RowCount
- func (r RowCount) Children() []sql.Expression
- func (RowCount) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (r RowCount) Description() string
- func (r RowCount) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (r RowCount) FunctionName() string
- func (r RowCount) IsNonDeterministic() bool
- func (r RowCount) IsNullable() bool
- func (r RowCount) Resolved() bool
- func (r RowCount) String() string
- func (r RowCount) Type() sql.Type
- func (r RowCount) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type SHA1
- type SHA2
- func (*SHA2) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *SHA2) Description() string
- func (f *SHA2) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *SHA2) FunctionName() string
- func (f *SHA2) String() string
- func (f *SHA2) Type() sql.Type
- func (f *SHA2) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Second
- func (*Second) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (s *Second) Description() string
- func (s *Second) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (s *Second) FunctionName() string
- func (s *Second) String() string
- func (s *Second) Type() sql.Type
- func (s *Second) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Sign
- type Sin
- type Sleep
- func (*Sleep) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (s *Sleep) Description() string
- func (s *Sleep) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (s *Sleep) FunctionName() string
- func (s *Sleep) IsNullable() bool
- func (s *Sleep) String() string
- func (s *Sleep) Type() sql.Type
- func (s *Sleep) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Soundex
- func (*Soundex) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (s *Soundex) Description() string
- func (s *Soundex) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (s *Soundex) FunctionName() string
- func (s *Soundex) String() string
- func (s *Soundex) Type() sql.Type
- func (s *Soundex) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Space
- type Sqrt
- func (*Sqrt) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (s *Sqrt) Description() string
- func (s *Sqrt) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (s *Sqrt) FunctionName() string
- func (s *Sqrt) IsNullable() bool
- func (s *Sqrt) String() string
- func (s *Sqrt) Type() sql.Type
- func (s *Sqrt) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type StrCmp
- func (s *StrCmp) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (s *StrCmp) Description() string
- func (s *StrCmp) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (s *StrCmp) FunctionName() string
- func (s *StrCmp) String() string
- func (s *StrCmp) Type() sql.Type
- func (s *StrCmp) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type StrToDate
- func (s StrToDate) Children() []sql.Expression
- func (StrToDate) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (s StrToDate) Description() string
- func (s StrToDate) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (s StrToDate) FunctionName() string
- func (s StrToDate) IsNullable() bool
- func (s StrToDate) Resolved() bool
- func (s StrToDate) String() string
- func (s StrToDate) Type() sql.Type
- func (s StrToDate) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Substring
- func (s *Substring) Children() []sql.Expression
- func (s *Substring) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (s *Substring) Description() string
- func (s *Substring) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (s *Substring) FunctionName() string
- func (s *Substring) IsNullable() bool
- func (s *Substring) Resolved() bool
- func (s *Substring) String() string
- func (s *Substring) Type() sql.Type
- func (*Substring) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type SubstringIndex
- func (s *SubstringIndex) Children() []sql.Expression
- func (s *SubstringIndex) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (s *SubstringIndex) Description() string
- func (s *SubstringIndex) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (s *SubstringIndex) FunctionName() string
- func (s *SubstringIndex) IsNullable() bool
- func (s *SubstringIndex) Resolved() bool
- func (s *SubstringIndex) String() string
- func (*SubstringIndex) Type() sql.Type
- func (s *SubstringIndex) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Tan
- type Time
- func (*Time) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (t *Time) Description() string
- func (t *Time) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (t *Time) FunctionName() string
- func (t *Time) String() string
- func (t *Time) Type() sql.Type
- func (t *Time) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type TimeDiff
- func (*TimeDiff) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (td *TimeDiff) Description() string
- func (td *TimeDiff) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (td *TimeDiff) FunctionName() string
- func (td *TimeDiff) String() string
- func (td *TimeDiff) Type() sql.Type
- func (td *TimeDiff) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type TimeFormat
- func (*TimeFormat) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f *TimeFormat) Description() string
- func (f *TimeFormat) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *TimeFormat) FunctionName() string
- func (f *TimeFormat) IsNullable() bool
- func (f *TimeFormat) String() string
- func (f *TimeFormat) Type() sql.Type
- func (f *TimeFormat) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type TimeToSec
- func (*TimeToSec) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (m *TimeToSec) Description() string
- func (m *TimeToSec) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (m *TimeToSec) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type TimestampConversion
- func (t *TimestampConversion) Children() []sql.Expression
- func (*TimestampConversion) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (t *TimestampConversion) Description() string
- func (t *TimestampConversion) Eval(ctx *sql.Context, r sql.Row) (interface{}, error)
- func (t *TimestampConversion) FunctionName() string
- func (t *TimestampConversion) IsNullable() bool
- func (t *TimestampConversion) Resolved() bool
- func (t *TimestampConversion) String() string
- func (t *TimestampConversion) Type() sql.Type
- func (t *TimestampConversion) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type TimestampDiff
- func (t *TimestampDiff) Children() []sql.Expression
- func (*TimestampDiff) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (t *TimestampDiff) Description() string
- func (t *TimestampDiff) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (t *TimestampDiff) FunctionName() string
- func (t *TimestampDiff) IsNullable() bool
- func (t *TimestampDiff) Resolved() bool
- func (t *TimestampDiff) String() string
- func (t *TimestampDiff) Type() sql.Type
- func (t *TimestampDiff) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type ToBase64
- func (*ToBase64) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (t *ToBase64) Description() string
- func (t *ToBase64) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (t *ToBase64) FunctionName() string
- func (t *ToBase64) IsNullable() bool
- func (t *ToBase64) String() string
- func (t *ToBase64) Type() sql.Type
- func (t *ToBase64) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Trim
- func (t *Trim) Children() []sql.Expression
- func (t Trim) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (t *Trim) Description() string
- func (t *Trim) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (t *Trim) FunctionName() string
- func (t Trim) IsNullable() bool
- func (t Trim) Resolved() bool
- func (t Trim) String() string
- func (t Trim) Type() sql.Type
- func (t Trim) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type UTCTimestamp
- func (ut *UTCTimestamp) Children() []sql.Expression
- func (*UTCTimestamp) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (ut *UTCTimestamp) Description() string
- func (ut *UTCTimestamp) Eval(ctx *sql.Context, _ sql.Row) (interface{}, error)
- func (ut *UTCTimestamp) FunctionName() string
- func (ut *UTCTimestamp) IsNullable() bool
- func (ut *UTCTimestamp) Resolved() bool
- func (ut *UTCTimestamp) String() string
- func (ut *UTCTimestamp) Type() sql.Type
- func (ut *UTCTimestamp) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type UUIDFunc
- func (u UUIDFunc) Children() []sql.Expression
- func (UUIDFunc) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (u UUIDFunc) Description() string
- func (u UUIDFunc) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (u UUIDFunc) FunctionName() string
- func (u UUIDFunc) IsNonDeterministic() bool
- func (u UUIDFunc) IsNullable() bool
- func (u UUIDFunc) Resolved() bool
- func (u UUIDFunc) String() string
- func (u UUIDFunc) Type() sql.Type
- func (u UUIDFunc) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type UUIDToBin
- func (ub UUIDToBin) Children() []sql.Expression
- func (UUIDToBin) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (ub UUIDToBin) Description() string
- func (ub *UUIDToBin) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (ub UUIDToBin) FunctionName() string
- func (ub UUIDToBin) IsNullable() bool
- func (ub UUIDToBin) Resolved() bool
- func (ub UUIDToBin) String() string
- func (ub UUIDToBin) Type() sql.Type
- func (ub UUIDToBin) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type UnaryDatetimeFunc
- type UnaryFunc
- type Unhex
- type UnixTimestamp
- func (ut *UnixTimestamp) Children() []sql.Expression
- func (*UnixTimestamp) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (ut *UnixTimestamp) Description() string
- func (ut *UnixTimestamp) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (ut *UnixTimestamp) FunctionName() string
- func (ut *UnixTimestamp) IsNullable() bool
- func (ut *UnixTimestamp) Resolved() bool
- func (ut *UnixTimestamp) String() string
- func (ut *UnixTimestamp) Type() sql.Type
- func (ut *UnixTimestamp) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Upper
- func (u *Upper) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (u *Upper) Description() string
- func (u *Upper) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (u *Upper) FunctionName() string
- func (u *Upper) String() string
- func (u *Upper) Type() sql.Type
- func (u *Upper) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type User
- func (User) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (c User) Description() string
- func (c User) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (c User) IsNonDeterministic() bool
- func (c User) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Values
- func (v *Values) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (v *Values) Description() string
- func (v *Values) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (v *Values) FunctionName() string
- func (v *Values) String() string
- func (v *Values) Type() sql.Type
- func (v *Values) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Version
- func (f Version) Children() []sql.Expression
- func (Version) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (f Version) Description() string
- func (f Version) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f Version) FunctionName() string
- func (f Version) IsNonDeterministic() bool
- func (f Version) IsNullable() bool
- func (f Version) Resolved() bool
- func (f Version) String() string
- func (f Version) Type() sql.Type
- func (f Version) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Week
- func (d *Week) Children() []sql.Expression
- func (*Week) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *Week) Description() string
- func (d *Week) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *Week) FunctionName() string
- func (d *Week) IsNullable() bool
- func (d *Week) Resolved() bool
- func (d *Week) String() string
- func (d *Week) Type() sql.Type
- func (*Week) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type WeekOfYear
- func (*WeekOfYear) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (m *WeekOfYear) Description() string
- func (m *WeekOfYear) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (m *WeekOfYear) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Weekday
- func (*Weekday) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *Weekday) Description() string
- func (d *Weekday) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *Weekday) FunctionName() string
- func (d *Weekday) String() string
- func (d *Weekday) Type() sql.Type
- func (d *Weekday) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Year
- func (*Year) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (y *Year) Description() string
- func (y *Year) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (y *Year) FunctionName() string
- func (y *Year) String() string
- func (y *Year) Type() sql.Type
- func (y *Year) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type YearWeek
- func (d *YearWeek) Children() []sql.Expression
- func (*YearWeek) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
- func (d *YearWeek) Description() string
- func (d *YearWeek) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *YearWeek) FunctionName() string
- func (d *YearWeek) IsNullable() bool
- func (d *YearWeek) Resolved() bool
- func (d *YearWeek) String() string
- func (d *YearWeek) Type() sql.Type
- func (*YearWeek) WithChildren(children ...sql.Expression) (sql.Expression, error)
Constants ¶
const ( // NumBytes counts the number of bytes in a string or binary content. NumBytes = CountType(false) // NumChars counts the number of characters in a string or binary content. NumChars = CountType(true) )
Variables ¶
var BuiltIns = []sql.Function{}/* 271 elements not displayed */
BuiltIns is the set of built-in functions any integrator can use
var ErrDivisionByZero = errors.NewKind("division by zero")
var ErrFunctionAlreadyRegistered = errors.NewKind("function '%s' is already registered")
ErrFunctionAlreadyRegistered is thrown when a function is already registered
var ErrIllegalLockNameArgType = errors.NewKind("Illegal parameter data type %s for operation '%s'")
ErrIllegalLockNameArgType is a kind of error that is thrown when the parameter passed as a lock name is not a string.
var ErrInvalidArgumentForLogarithm = errors.NewKind("invalid argument value for logarithm: %v")
ErrInvalidArgumentForLogarithm is returned when an invalid argument value is passed to a logarithm function
var ErrNegativeRepeatCount = errors.NewKind("negative Repeat count: %v")
var ErrTimeUnexpectedlyNil = errors.NewKind("time in function '%s' unexpectedly nil")
ErrTimeUnexpectedlyNil is thrown when a function encounters and unexpectedly nil time
var ErrTooHighPrecision = errors.NewKind("Too-big precision %d for '%s'. Maximum is %d.")
var ErrUintOverflow = errors.NewKind(
"Unsigned integer too big to fit on signed integer")
var ErrUnknownType = errors.NewKind("function '%s' encountered unknown type %T")
ErrUnknownType is thrown when a function encounters and unknown type
var ErrUnsupportedType = errors.NewKind("unsupported type for greatest/least argument: %T")
ErrUnsupportedType is returned when an argument to Greatest or Latest is not numeric or string
Functions ¶
func CreateNewGetLock ¶
func CreateNewGetLock(ls *sql.LockSubsystem) func(e1, e2 sql.Expression) sql.Expression
CreateNewGetLock returns a new GetLock object
func GetLockingFuncs ¶
func GetLockingFuncs(ls *sql.LockSubsystem) []sql.Function
func IsFreeLockFunc ¶
IsFreeLockFunc is the function logic that is executed when the is_free_lock function is called.
func IsUsedLockFunc ¶
IsUsedLockFunc is the function logic that is executed when the is_used_lock function is called.
func NewAbsVal ¶
func NewAbsVal(e sql.Expression) sql.Expression
NewAbsVal creates a new AbsVal expression.
func NewAcos ¶
func NewAcos(arg sql.Expression) sql.Expression
NewAcos returns a new ACOS function expression
func NewAddDate ¶
func NewAddDate(args ...sql.Expression) (sql.Expression, error)
NewAddDate returns a new function expression, or an error if one couldn't be created. The ADDDATE function is a synonym for DATE_ADD, with the one exception that if the second argument is NOT an explicitly declared interval, then the value is used and the interval period is assumed to be DAY. In either case, this function will actually return a *DateAdd struct.
func NewAscii ¶
func NewAscii(arg sql.Expression) sql.Expression
func NewAsin ¶
func NewAsin(arg sql.Expression) sql.Expression
NewAsin returns a new ASIN function expression
func NewAtan ¶
func NewAtan(args ...sql.Expression) (sql.Expression, error)
NewAtan returns a new ATAN function expression
func NewBin ¶
func NewBin(arg sql.Expression) sql.Expression
func NewBinToUUID ¶
func NewBinToUUID(args ...sql.Expression) (sql.Expression, error)
func NewBitCount ¶
func NewBitCount(arg sql.Expression) sql.Expression
NewBitCount creates a new Ceil expression.
func NewBitlength ¶
func NewBitlength(arg sql.Expression) sql.Expression
func NewCeil ¶
func NewCeil(num sql.Expression) sql.Expression
NewCeil creates a new Ceil expression.
func NewChar ¶
func NewChar(args ...sql.Expression) (sql.Expression, error)
func NewCharLength ¶
func NewCharLength(e sql.Expression) sql.Expression
NewCharLength returns a new CHAR_LENGTH function.
func NewCoalesce ¶
func NewCoalesce(args ...sql.Expression) (sql.Expression, error)
NewCoalesce creates a new Coalesce sql.Expression.
func NewCoercibility ¶
func NewCoercibility(e sql.Expression) sql.Expression
NewCoercibility creates a new Coercibility expression.
func NewCollation ¶
func NewCollation(e sql.Expression) sql.Expression
NewCollation creates a new Collation expression.
func NewConcat ¶
func NewConcat(args ...sql.Expression) (sql.Expression, error)
NewConcat creates a new Concat UDF.
func NewConcatWithSeparator ¶
func NewConcatWithSeparator(args ...sql.Expression) (sql.Expression, error)
NewConcatWithSeparator creates a new NewConcatWithSeparator UDF.
func NewConnectionID ¶
func NewConnectionID() sql.Expression
func NewConv ¶
func NewConv(n, from, to sql.Expression) sql.Expression
NewConv returns a new Conv expression.
func NewConvertTz ¶
func NewConvertTz(dt, fromTz, toTz sql.Expression) sql.Expression
NewConvertTz returns an implementation of the CONVERT_TZ() function.
func NewCos ¶
func NewCos(arg sql.Expression) sql.Expression
NewCos returns a new COS function expression
func NewCot ¶
func NewCot(arg sql.Expression) sql.Expression
NewCot returns a new COT function expression
func NewCrc32 ¶
func NewCrc32(arg sql.Expression) sql.Expression
NewCrc32 returns a new CRC32 function expression
func NewCurrDate ¶
func NewCurrDate() sql.Expression
func NewCurrTime ¶
func NewCurrTime(args ...sql.Expression) (sql.Expression, error)
func NewCurrentDate ¶
func NewCurrentDate() sql.Expression
func NewCurrentUser ¶
func NewCurrentUser() sql.Expression
func NewDateAdd ¶
func NewDateAdd(args ...sql.Expression) (sql.Expression, error)
NewDateAdd creates a new date add function.
func NewDateDiff ¶
func NewDateDiff(expr1, expr2 sql.Expression) sql.Expression
NewDateDiff creates a new DATEDIFF() function.
func NewDateFormat ¶
func NewDateFormat(ex, value sql.Expression) sql.Expression
NewDateFormat returns a new DateFormat UDF
func NewDateSub ¶
func NewDateSub(args ...sql.Expression) (sql.Expression, error)
NewDateSub creates a new date add function.
func NewDatetime ¶
func NewDatetime(args ...sql.Expression) (sql.Expression, error)
NewDatetime returns a DatetimeConversion instance to handle the sql function "datetime". This is not a standard mysql function, but provides a shorthand for datetime conversions.
func NewDayName ¶
func NewDayName(arg sql.Expression) sql.Expression
func NewDayOfWeek ¶
func NewDayOfWeek(date sql.Expression) sql.Expression
NewDayOfWeek creates a new DayOfWeek UDF.
func NewDayOfYear ¶
func NewDayOfYear(date sql.Expression) sql.Expression
NewDayOfYear creates a new DayOfYear UDF.
func NewDegrees ¶
func NewDegrees(arg sql.Expression) sql.Expression
NewDegrees returns a new DEGREES function expression
func NewElt ¶
func NewElt(args ...sql.Expression) (sql.Expression, error)
NewElt creates a new Elt UDF.
func NewExp ¶
func NewExp(arg sql.Expression) sql.Expression
func NewExtract ¶
func NewExtract(e1, e2 sql.Expression) sql.Expression
NewExtract creates a new Extract expression.
func NewField ¶
func NewField(args ...sql.Expression) (sql.Expression, error)
NewField creates a new Field UDF.
func NewFindInSet ¶
func NewFindInSet(e1, e2 sql.Expression) sql.Expression
NewFindInSet creates a new FindInSet expression.
func NewFloor ¶
func NewFloor(num sql.Expression) sql.Expression
NewFloor returns a new Floor expression.
func NewFormat ¶
func NewFormat(args ...sql.Expression) (sql.Expression, error)
NewFormat returns a new Format expression.
func NewFoundRows ¶
func NewFoundRows() sql.Expression
func NewFromBase64 ¶
func NewFromBase64(e sql.Expression) sql.Expression
NewFromBase64 creates a new FromBase64 expression.
func NewFromUnixtime ¶
func NewFromUnixtime(arg sql.Expression) sql.Expression
func NewGreatest ¶
func NewGreatest(args ...sql.Expression) (sql.Expression, error)
NewGreatest creates a new Greatest UDF
func NewHex ¶
func NewHex(arg sql.Expression) sql.Expression
func NewIf ¶
func NewIf(expr, ifTrue, ifFalse sql.Expression) sql.Expression
NewIf returns a new IF UDF
func NewIfNull ¶
func NewIfNull(ex, value sql.Expression) sql.Expression
NewIfNull returns a new IFNULL UDF
func NewInet6Aton ¶
func NewInet6Aton(val sql.Expression) sql.Expression
func NewInet6Ntoa ¶
func NewInet6Ntoa(val sql.Expression) sql.Expression
func NewInetAton ¶
func NewInetAton(val sql.Expression) sql.Expression
func NewInetNtoa ¶
func NewInetNtoa(val sql.Expression) sql.Expression
func NewInstr ¶
func NewInstr(str, substr sql.Expression) sql.Expression
NewInstr creates a new instr UDF.
func NewIsBinary ¶
func NewIsBinary(e sql.Expression) sql.Expression
NewIsBinary creates a new IsBinary expression.
func NewIsFreeLock ¶
func NewIsFreeLock(ls *sql.LockSubsystem) sql.CreateFunc1Args
func NewIsIPv4 ¶
func NewIsIPv4(val sql.Expression) sql.Expression
func NewIsIPv4Compat ¶
func NewIsIPv4Compat(val sql.Expression) sql.Expression
func NewIsIPv4Mapped ¶
func NewIsIPv4Mapped(val sql.Expression) sql.Expression
func NewIsIPv6 ¶
func NewIsIPv6(val sql.Expression) sql.Expression
func NewIsNull ¶
func NewIsNull(e sql.Expression) sql.Expression
NewIsNull creates a new IsNull expression.
func NewIsUUID ¶
func NewIsUUID(arg sql.Expression) sql.Expression
func NewIsUsedLock ¶
func NewIsUsedLock(ls *sql.LockSubsystem) sql.CreateFunc1Args
func NewLastInsertId ¶
func NewLastInsertId(children ...sql.Expression) (sql.Expression, error)
func NewLastInsertUuid ¶
func NewLastInsertUuid(children ...sql.Expression) (sql.Expression, error)
func NewLeast ¶
func NewLeast(args ...sql.Expression) (sql.Expression, error)
NewLeast creates a new Least UDF
func NewLeft ¶
func NewLeft(str, len sql.Expression) sql.Expression
NewLeft creates a new LEFT function.
func NewLeftPad ¶
func NewLeftPad(e ...sql.Expression) (sql.Expression, error)
func NewLeftTrim ¶
func NewLeftTrim(str sql.Expression) sql.Expression
func NewLength ¶
func NewLength(e sql.Expression) sql.Expression
NewLength returns a new LENGTH function.
func NewLoadFile ¶
func NewLoadFile(fileName sql.Expression) sql.Expression
NewLoadFile returns a LoadFile object for the LOAD_FILE() function.
func NewLocate ¶
func NewLocate(exprs ...sql.Expression) (sql.Expression, error)
NewLocate returns a new Locate function.
func NewLog ¶
func NewLog(args ...sql.Expression) (sql.Expression, error)
NewLog creates a new Log expression.
func NewLogBase ¶
func NewLogBase(base float64, e sql.Expression) sql.Expression
NewLogBase creates a new LogBase expression.
func NewLogBaseFunc ¶
func NewLogBaseFunc(base float64) func(e sql.Expression) sql.Expression
NewLogBaseFunc returns LogBase creator function with a specific base.
func NewLower ¶
func NewLower(e sql.Expression) sql.Expression
NewLower creates a new Lower expression.
func NewMD5 ¶
func NewMD5(arg sql.Expression) sql.Expression
NewMD5 returns a new MD5 function expression
func NewMicrosecond ¶
func NewMicrosecond(arg sql.Expression) sql.Expression
func NewMinute ¶
func NewMinute(date sql.Expression) sql.Expression
NewMinute creates a new Minute UDF.
func NewMod ¶
func NewMod(args ...sql.Expression) (sql.Expression, error)
NewMod returns a new MOD function expression
func NewMonthName ¶
func NewMonthName(arg sql.Expression) sql.Expression
func NewNow ¶
func NewNow(args ...sql.Expression) (sql.Expression, error)
NewNow returns a new Now node.
func NewNullIf ¶
func NewNullIf(ex1, ex2 sql.Expression) sql.Expression
NewNullIf returns a new NULLIF UDF
func NewOrd ¶
func NewOrd(arg sql.Expression) sql.Expression
func NewPad ¶
func NewPad(pType padType, args ...sql.Expression) (sql.Expression, error)
NewPad creates a new Pad expression.
func NewPi ¶
func NewPi() sql.Expression
func NewPower ¶
func NewPower(e1, e2 sql.Expression) sql.Expression
NewPower creates a new Power expression.
func NewQuarter ¶
func NewQuarter(date sql.Expression) sql.Expression
NewQuarter creates a new Month UDF.
func NewRadians ¶
func NewRadians(arg sql.Expression) sql.Expression
NewRadians returns a new RADIANS function expression
func NewRand ¶
func NewRand(exprs ...sql.Expression) (sql.Expression, error)
NewRand creates a new Rand expression.
func NewRandomBytes ¶
func NewRandomBytes(e sql.Expression) sql.Expression
NewRandomBytes returns a new RANDOM_BYTES function.
func NewRegexpLike ¶
func NewRegexpLike(args ...sql.Expression) (sql.Expression, error)
NewRegexpLike creates a new RegexpLike expression.
func NewRegexpReplace ¶
func NewRegexpReplace(args ...sql.Expression) (sql.Expression, error)
NewRegexpReplace creates a new RegexpReplace expression.
func NewReleaseAllLocks ¶
func NewReleaseAllLocks(ls *sql.LockSubsystem) func() sql.Expression
func NewReleaseLock ¶
func NewReleaseLock(ls *sql.LockSubsystem) sql.CreateFunc1Args
func NewRepeat ¶
func NewRepeat(str sql.Expression, count sql.Expression) sql.Expression
NewRepeat creates a new Repeat expression.
func NewReplace ¶
func NewReplace(str sql.Expression, fromStr sql.Expression, toStr sql.Expression) sql.Expression
NewReplace creates a new Replace expression.
func NewReverse ¶
func NewReverse(e sql.Expression) sql.Expression
NewReverse creates a new Reverse expression.
func NewRight ¶
func NewRight(str, len sql.Expression) sql.Expression
NewRight creates a new RIGHT function.
func NewRightPad ¶
func NewRightPad(e ...sql.Expression) (sql.Expression, error)
func NewRightTrim ¶
func NewRightTrim(str sql.Expression) sql.Expression
func NewRound ¶
func NewRound(args ...sql.Expression) (sql.Expression, error)
NewRound returns a new Round expression.
func NewRowCount ¶
func NewRowCount() sql.Expression
func NewSHA1 ¶
func NewSHA1(arg sql.Expression) sql.Expression
NewSHA1 returns a new SHA1 function expression
func NewSHA2 ¶
func NewSHA2(arg, count sql.Expression) sql.Expression
NewSHA2 returns a new SHA2 function expression
func NewSecond ¶
func NewSecond(date sql.Expression) sql.Expression
NewSecond creates a new Second UDF.
func NewSign ¶
func NewSign(arg sql.Expression) sql.Expression
NewSign returns a new SIGN function expression
func NewSin ¶
func NewSin(arg sql.Expression) sql.Expression
NewSin returns a new SIN function expression
func NewSleep ¶
func NewSleep(e sql.Expression) sql.Expression
NewSleep creates a new Sleep expression.
func NewSoundex ¶
func NewSoundex(e sql.Expression) sql.Expression
NewSoundex creates a new Soundex expression.
func NewSpace ¶
func NewSpace(arg sql.Expression) sql.Expression
func NewStrCmp ¶
func NewStrCmp(e1, e2 sql.Expression) sql.Expression
NewStrCmp creates a new NewStrCmp UDF.
func NewStrToDate ¶
func NewStrToDate(args ...sql.Expression) (sql.Expression, error)
NewStrToDate constructs a new function expression from the given child expressions.
func NewSubDate ¶
func NewSubDate(args ...sql.Expression) (sql.Expression, error)
NewSubDate returns a new function expression, or an error if one couldn't be created. The SUBDATE function is a synonym for DATE_SUB, with the one exception that if the second argument is NOT an explicitly declared interval, then the value is used and the interval period is assumed to be DAY. In either case, this function will actually return a *DateSub struct.
func NewSubstring ¶
func NewSubstring(args ...sql.Expression) (sql.Expression, error)
NewSubstring creates a new substring UDF.
func NewSubstringIndex ¶
func NewSubstringIndex(str, delim, count sql.Expression) sql.Expression
NewSubstringIndex creates a new SubstringIndex UDF.
func NewSysdate ¶
func NewSysdate(args ...sql.Expression) (sql.Expression, error)
NewSysdate returns a new SYSDATE() function, using the supplied |args| for an optional value for fractional second precision. The SYSDATE() function is a synonym for NOW(), but does NOT use the query's cached start time, and instead always returns the current time, even when executed multiple times in a query or stored procedure. https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_sysdate
func NewTan ¶
func NewTan(arg sql.Expression) sql.Expression
NewTan returns a new TAN function expression
func NewTimeDiff ¶
func NewTimeDiff(e1, e2 sql.Expression) sql.Expression
NewTimeDiff creates a new NewTimeDiff expression.
func NewTimeFormat ¶
func NewTimeFormat(ex, value sql.Expression) sql.Expression
NewTimeFormat returns a new TimeFormat UDF
func NewTimeToSec ¶
func NewTimeToSec(arg sql.Expression) sql.Expression
func NewTimestamp ¶
func NewTimestamp(args ...sql.Expression) (sql.Expression, error)
func NewTimestampDiff ¶
func NewTimestampDiff(u, e1, e2 sql.Expression) sql.Expression
NewTimestampDiff creates a new TIMESTAMPDIFF() function.
func NewToBase64 ¶
func NewToBase64(e sql.Expression) sql.Expression
NewToBase64 creates a new ToBase64 expression.
func NewTrim ¶
func NewTrim(str sql.Expression, pat sql.Expression, dir string) sql.Expression
func NewUTCTimestamp ¶
func NewUTCTimestamp(args ...sql.Expression) (sql.Expression, error)
NewUTCTimestamp returns a new UTCTimestamp node.
func NewUUIDFunc ¶
func NewUUIDFunc() sql.Expression
func NewUUIDToBin ¶
func NewUUIDToBin(args ...sql.Expression) (sql.Expression, error)
func NewUnhex ¶
func NewUnhex(arg sql.Expression) sql.Expression
func NewUnixTimestamp ¶
func NewUnixTimestamp(args ...sql.Expression) (sql.Expression, error)
func NewUpper ¶
func NewUpper(e sql.Expression) sql.Expression
NewUpper creates a new Lower expression.
func NewUser ¶
func NewUser() sql.Expression
func NewValues ¶
func NewValues(col sql.Expression) sql.Expression
NewValues creates a new Values function.
func NewVersion ¶
func NewVersion(versionPostfix string) func(...sql.Expression) (sql.Expression, error)
NewVersion creates a new Version UDF.
func NewWeek ¶
func NewWeek(args ...sql.Expression) (sql.Expression, error)
NewWeek creates a new Week UDF
func NewWeekOfYear ¶
func NewWeekOfYear(arg sql.Expression) sql.Expression
func NewWeekday ¶
func NewWeekday(date sql.Expression) sql.Expression
NewWeekday creates a new Weekday UDF.
func NewYearWeek ¶
func NewYearWeek(args ...sql.Expression) (sql.Expression, error)
NewYearWeek creates a new YearWeek UDF
func NoArgFuncWithChildren ¶
func NoArgFuncWithChildren(fn sql.Expression, children []sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
func ReleaseLockFunc ¶
ReleaseLockFunc is the function logic that is executed when the release_lock function is called.
Types ¶
type AbsVal ¶
type AbsVal struct {
expression.UnaryExpression
}
AbsVal is a function that takes the absolute value of a number
func (*AbsVal) CollationCoercibility ¶
func (*AbsVal) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*AbsVal) Description ¶
Description implements sql.FunctionExpression
func (*AbsVal) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*AbsVal) IsNullable ¶
IsNullable implements the Expression interface.
func (*AbsVal) WithChildren ¶
func (t *AbsVal) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Acos ¶
type Acos struct {
*UnaryFunc
}
func (*Acos) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Acos) Description ¶
Description implements sql.FunctionExpression
func (*Acos) WithChildren ¶
func (a *Acos) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type AppendFuncWrapper ¶
type AppendFuncWrapper struct {
// contains filtered or unexported fields
}
type Ascii ¶
type Ascii struct {
*UnaryFunc
}
Ascii implements the sql function "ascii" which returns the numeric value of the leftmost character
func (*Ascii) CollationCoercibility ¶
func (*Ascii) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Ascii) Description ¶
Description implements sql.FunctionExpression
func (*Ascii) WithChildren ¶
func (a *Ascii) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface
type Asin ¶
type Asin struct {
*UnaryFunc
}
func (*Asin) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Asin) Description ¶
Description implements sql.FunctionExpression
func (*Asin) WithChildren ¶
func (a *Asin) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Atan ¶
type Atan struct {
// contains filtered or unexported fields
}
func (*Atan) Children ¶
func (a *Atan) Children() []sql.Expression
Children implements sql.Expression
func (*Atan) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Atan) Description ¶
Description implements sql.FunctionExpression
func (*Atan) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Atan) WithChildren ¶
func (a *Atan) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Bin ¶
type Bin struct {
*UnaryFunc
}
Bin implements the sql function "bin" which returns the binary representation of a number
func (*Bin) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Bin) Description ¶
Description implements sql.FunctionExpression
func (*Bin) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Bin) WithChildren ¶
func (h *Bin) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface
type BinToUUID ¶
type BinToUUID struct {
// contains filtered or unexported fields
}
func (BinToUUID) Children ¶
func (bu BinToUUID) Children() []sql.Expression
Children returns the children expressions of this expression.
func (BinToUUID) CollationCoercibility ¶
func (BinToUUID) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (BinToUUID) Description ¶
Description implements sql.FunctionExpression
func (BinToUUID) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (BinToUUID) IsNullable ¶
IsNullable returns whether the expression can be null.
func (BinToUUID) WithChildren ¶
func (bu BinToUUID) WithChildren(children ...sql.Expression) (sql.Expression, error)
type BitCount ¶
type BitCount struct {
*UnaryFunc
}
BitCount returns the smallest integer value not less than X.
func (*BitCount) CollationCoercibility ¶
func (b *BitCount) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*BitCount) Description ¶
Description implements sql.FunctionExpression
func (*BitCount) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*BitCount) WithChildren ¶
func (b *BitCount) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Bitlength ¶
type Bitlength struct {
*UnaryFunc
}
Bitlength implements the sql function "bit_length" which returns the data length of the argument in bits
func (*Bitlength) CollationCoercibility ¶
func (*Bitlength) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Bitlength) Description ¶
Description implements sql.FunctionExpression
func (*Bitlength) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Bitlength) WithChildren ¶
func (h *Bitlength) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface
type Ceil ¶
type Ceil struct {
expression.UnaryExpression
}
Ceil returns the smallest integer value not less than X.
func (*Ceil) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Ceil) Description ¶
Description implements sql.FunctionExpression
func (*Ceil) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Ceil) WithChildren ¶
func (c *Ceil) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Char ¶
type Char struct { Collation sql.CollationID // contains filtered or unexported fields }
Char implements the sql function "char" which returns the character for each integer passed
func (*Char) Children ¶
func (c *Char) Children() []sql.Expression
Children implements sql.Expression
func (*Char) CollationCoercibility ¶
func (c *Char) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Char) Description ¶
Description implements sql.FunctionExpression
func (*Char) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Char) WithChildren ¶
func (c *Char) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface
type Coalesce ¶
type Coalesce struct {
// contains filtered or unexported fields
}
Coalesce returns the first non-NULL value in the list, or NULL if there are no non-NULL values.
func (*Coalesce) Children ¶
func (c *Coalesce) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*Coalesce) CollationCoercibility ¶
func (c *Coalesce) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Coalesce) DebugString ¶
func (*Coalesce) Description ¶
Description implements sql.FunctionExpression
func (*Coalesce) Eval ¶
Eval implements the sql.Expression interface. The function evaluates the first non-nil argument. If the value is nil, then we keep going, otherwise we return the first non-nil value.
func (*Coalesce) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Coalesce) IsNullable ¶
IsNullable implements the sql.Expression interface. Returns true if all arguments are nil or of the first non-nil argument is nullable, otherwise false.
func (*Coalesce) Resolved ¶
Resolved implements the sql.Expression interface. The function checks if first non-nil argument is resolved.
func (*Coalesce) Type ¶
Type implements the sql.Expression interface. The return type of Type() is the aggregated type of the argument types.
func (*Coalesce) WithChildren ¶
func (*Coalesce) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Coercibility ¶
type Coercibility struct {
expression.UnaryExpression
}
Coercibility is a function that returns the coercibility of the inner expression.
func (*Coercibility) CollationCoercibility ¶
func (*Coercibility) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Coercibility) Description ¶
func (c *Coercibility) Description() string
Description implements sql.FunctionExpression
func (*Coercibility) FunctionName ¶
func (c *Coercibility) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*Coercibility) String ¶
func (c *Coercibility) String() string
String implements the fmt.Stringer interface.
func (*Coercibility) Type ¶
func (c *Coercibility) Type() sql.Type
Type implements the Expression interface.
func (*Coercibility) WithChildren ¶
func (c *Coercibility) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Collation ¶
type Collation struct {
expression.UnaryExpression
}
Collation is a function that returns the collation of the inner expression.
func (*Collation) CollationCoercibility ¶
func (*Collation) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Collation) Description ¶
Description implements sql.FunctionExpression
func (*Collation) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Collation) WithChildren ¶
func (c *Collation) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Concat ¶
type Concat struct {
// contains filtered or unexported fields
}
Concat joins several strings together.
func (*Concat) Children ¶
func (c *Concat) Children() []sql.Expression
Children implements the Expression interface.
func (*Concat) CollationCoercibility ¶
func (c *Concat) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Concat) DebugString ¶
func (*Concat) Description ¶
Description implements sql.FunctionExpression
func (*Concat) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Concat) IsNullable ¶
IsNullable implements the Expression interface.
func (*Concat) WithChildren ¶
func (*Concat) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type ConcatWithSeparator ¶
type ConcatWithSeparator struct {
// contains filtered or unexported fields
}
ConcatWithSeparator joins several strings together. The first argument is the separator for the rest of the arguments. The separator is added between the strings to be concatenated. The separator can be a string, as can the rest of the arguments. If the separator is NULL, the result is NULL.
func (*ConcatWithSeparator) Children ¶
func (f *ConcatWithSeparator) Children() []sql.Expression
Children implements the Expression interface.
func (*ConcatWithSeparator) CollationCoercibility ¶
func (c *ConcatWithSeparator) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*ConcatWithSeparator) Description ¶
func (f *ConcatWithSeparator) Description() string
Description implements sql.FunctionExpression
func (*ConcatWithSeparator) FunctionName ¶
func (f *ConcatWithSeparator) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*ConcatWithSeparator) IsNullable ¶
func (f *ConcatWithSeparator) IsNullable() bool
IsNullable implements the Expression interface.
func (*ConcatWithSeparator) Resolved ¶
func (f *ConcatWithSeparator) Resolved() bool
Resolved implements the Expression interface.
func (*ConcatWithSeparator) String ¶
func (f *ConcatWithSeparator) String() string
func (*ConcatWithSeparator) Type ¶
func (f *ConcatWithSeparator) Type() sql.Type
Type implements the Expression interface.
func (*ConcatWithSeparator) WithChildren ¶
func (*ConcatWithSeparator) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type ConnectionID ¶
type ConnectionID struct {
NoArgFunc
}
func (ConnectionID) CollationCoercibility ¶
func (ConnectionID) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (ConnectionID) Description ¶
func (c ConnectionID) Description() string
Description implements sql.FunctionExpression
func (ConnectionID) FunctionName ¶
func (c ConnectionID) FunctionName() string
FunctionName implements sql.FunctionExpression
func (ConnectionID) IsNonDeterministic ¶
func (c ConnectionID) IsNonDeterministic() bool
func (ConnectionID) WithChildren ¶
func (c ConnectionID) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Conv ¶
type Conv struct {
// contains filtered or unexported fields
}
Conv function converts numbers between different number bases. Returns a string representation of the number N, converted from base from_base to base to_base.
func (*Conv) Children ¶
func (c *Conv) Children() []sql.Expression
Children implements the Expression interface.
func (*Conv) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Conv) Description ¶
Description implements sql.FunctionExpression
func (*Conv) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Conv) IsNullable ¶
IsNullable implements the Expression interface.
func (*Conv) WithChildren ¶
func (c *Conv) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type ConvertTz ¶
type ConvertTz struct {
// contains filtered or unexported fields
}
func (*ConvertTz) Children ¶
func (c *ConvertTz) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*ConvertTz) CollationCoercibility ¶
func (*ConvertTz) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*ConvertTz) Description ¶
Description implements the sql.FunctionExpression interface.
func (*ConvertTz) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*ConvertTz) IsNullable ¶
IsNullable implements the sql.Expression interface.
func (*ConvertTz) WithChildren ¶
func (c *ConvertTz) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface.
type Cos ¶
type Cos struct {
*UnaryFunc
}
func (*Cos) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Cos) Description ¶
Description implements sql.FunctionExpression
func (*Cos) WithChildren ¶
func (c *Cos) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Cot ¶
type Cot struct {
*UnaryFunc
}
func (*Cot) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Cot) Description ¶
Description implements sql.FunctionExpression
func (*Cot) WithChildren ¶
func (c *Cot) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Crc32 ¶
type Crc32 struct {
*UnaryFunc
}
func (*Crc32) CollationCoercibility ¶
func (*Crc32) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Crc32) Description ¶
Description implements sql.FunctionExpression
func (*Crc32) WithChildren ¶
func (c *Crc32) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type CurrDate ¶
type CurrDate struct {
NoArgFunc
}
func (CurrDate) CollationCoercibility ¶
func (CurrDate) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (CurrDate) Description ¶
Description implements sql.FunctionExpression
func (CurrDate) IsNonDeterministic ¶
func (CurrDate) WithChildren ¶
func (c CurrDate) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type CurrTime ¶
type CurrTime struct {
// contains filtered or unexported fields
}
func (*CurrTime) Children ¶
func (c *CurrTime) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*CurrTime) CollationCoercibility ¶
func (*CurrTime) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*CurrTime) Description ¶
Description implements sql.FunctionExpression
func (*CurrTime) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (CurrTime) IsNonDeterministic ¶
func (*CurrTime) IsNullable ¶
IsNullable implements the sql.Expression interface.
func (*CurrTime) WithChildren ¶
func (c *CurrTime) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Database ¶
type Database struct{}
Database implements the DATABASE() function
func (*Database) Children ¶
func (db *Database) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*Database) CollationCoercibility ¶
func (*Database) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Database) Description ¶
Description implements sql.FunctionExpression
func (*Database) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Database) IsNonDeterministic ¶
func (*Database) IsNullable ¶
IsNullable implements the sql.Expression interface. The function returns always true
func (*Database) WithChildren ¶
func (db *Database) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Date ¶
type Date struct {
expression.UnaryExpression
}
Date a function takes the DATE part out from a datetime expression.
func (*Date) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Date) Description ¶
Description implements sql.FunctionExpression
func (*Date) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Date) WithChildren ¶
func (d *Date) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type DateAdd ¶
type DateAdd struct { Date sql.Expression Interval *expression.Interval }
DateAdd adds an interval to a date.
func (*DateAdd) Children ¶
func (d *DateAdd) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*DateAdd) CollationCoercibility ¶
func (*DateAdd) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*DateAdd) Description ¶
Description implements sql.FunctionExpression
func (*DateAdd) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*DateAdd) IsNullable ¶
IsNullable implements the sql.Expression interface.
func (*DateAdd) WithChildren ¶
func (d *DateAdd) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type DateDiff ¶
type DateDiff struct {
expression.BinaryExpressionStub
}
DateDiff returns expr1 − expr2 expressed as a value in days from one date to the other.
func (*DateDiff) CollationCoercibility ¶
func (*DateDiff) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*DateDiff) Description ¶
Description implements sql.FunctionExpression
func (*DateDiff) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*DateDiff) WithChildren ¶
func (d *DateDiff) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type DateFormat ¶
type DateFormat struct {
expression.BinaryExpressionStub
}
DateFormat function returns a string representation of the date specified in the format specified
func (*DateFormat) CollationCoercibility ¶
func (*DateFormat) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*DateFormat) Description ¶
func (f *DateFormat) Description() string
Description implements sql.FunctionExpression
func (*DateFormat) FunctionName ¶
func (f *DateFormat) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*DateFormat) IsNullable ¶
func (f *DateFormat) IsNullable() bool
IsNullable implements the Expression interface.
func (*DateFormat) String ¶
func (f *DateFormat) String() string
func (*DateFormat) Type ¶
func (f *DateFormat) Type() sql.Type
Type implements the Expression interface.
func (*DateFormat) WithChildren ¶
func (f *DateFormat) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type DateSub ¶
type DateSub struct { Date sql.Expression Interval *expression.Interval }
DateSub subtracts an interval from a date.
func (*DateSub) Children ¶
func (d *DateSub) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*DateSub) CollationCoercibility ¶
func (*DateSub) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*DateSub) Description ¶
Description implements sql.FunctionExpression
func (*DateSub) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*DateSub) IsNullable ¶
IsNullable implements the sql.Expression interface.
func (*DateSub) WithChildren ¶
func (d *DateSub) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type DatetimeConversion ¶
type DatetimeConversion struct {
Date sql.Expression
}
DatetimeConversion is a shorthand function for CONVERT(expr, DATETIME)
func (*DatetimeConversion) Children ¶
func (t *DatetimeConversion) Children() []sql.Expression
func (*DatetimeConversion) CollationCoercibility ¶
func (*DatetimeConversion) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*DatetimeConversion) Description ¶
func (t *DatetimeConversion) Description() string
Description implements sql.FunctionExpression
func (*DatetimeConversion) FunctionName ¶
func (t *DatetimeConversion) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*DatetimeConversion) IsNullable ¶
func (t *DatetimeConversion) IsNullable() bool
func (*DatetimeConversion) Resolved ¶
func (t *DatetimeConversion) Resolved() bool
func (*DatetimeConversion) String ¶
func (t *DatetimeConversion) String() string
func (*DatetimeConversion) Type ¶
func (t *DatetimeConversion) Type() sql.Type
func (*DatetimeConversion) WithChildren ¶
func (t *DatetimeConversion) WithChildren(children ...sql.Expression) (sql.Expression, error)
type Day ¶
type Day struct {
expression.UnaryExpression
}
Day is a function that returns the day of a date.
func (*Day) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Day) Description ¶
Description implements sql.FunctionExpression
func (*Day) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Day) WithChildren ¶
func (d *Day) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type DayName ¶
type DayName struct {
*UnaryFunc
}
DayName implements the DAYNAME function
func (*DayName) CollationCoercibility ¶
func (*DayName) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*DayName) Description ¶
Description implements sql.FunctionExpression
func (*DayName) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*DayName) WithChildren ¶
func (d *DayName) WithChildren(children ...sql.Expression) (sql.Expression, error)
type DayOfWeek ¶
type DayOfWeek struct {
expression.UnaryExpression
}
DayOfWeek is a function that returns the day of the week from a date where 1 = Sunday, ..., 7 = Saturday.
func (*DayOfWeek) CollationCoercibility ¶
func (*DayOfWeek) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*DayOfWeek) Description ¶
Description implements sql.FunctionExpression
func (*DayOfWeek) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*DayOfWeek) WithChildren ¶
func (d *DayOfWeek) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type DayOfYear ¶
type DayOfYear struct {
expression.UnaryExpression
}
DayOfYear is a function that returns the day of the year from a date.
func (*DayOfYear) CollationCoercibility ¶
func (*DayOfYear) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*DayOfYear) Description ¶
Description implements sql.FunctionExpression
func (*DayOfYear) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*DayOfYear) WithChildren ¶
func (d *DayOfYear) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Degrees ¶
type Degrees struct {
*UnaryFunc
}
func (*Degrees) CollationCoercibility ¶
func (*Degrees) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Degrees) Description ¶
Description implements sql.FunctionExpression
func (*Degrees) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Degrees) WithChildren ¶
func (d *Degrees) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Elt ¶
type Elt struct {
// contains filtered or unexported fields
}
Elt joins several strings together.
func (*Elt) Children ¶
func (e *Elt) Children() []sql.Expression
Children implements the Expression interface.
func (*Elt) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Elt) Description ¶
Description implements sql.FunctionExpression
func (*Elt) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Elt) IsNullable ¶
IsNullable implements the Expression interface.
func (*Elt) WithChildren ¶
func (*Elt) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Exp ¶
type Exp struct {
*UnaryFunc
}
func (*Exp) CollationCoercibility ¶
func (e *Exp) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Exp) Description ¶
Description implements sql.FunctionExpression
func (*Exp) WithChildren ¶
func (e *Exp) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Extract ¶
type Extract struct {
expression.BinaryExpressionStub
}
Extract takes out the specified unit(s) from the time expression.
func (*Extract) CollationCoercibility ¶
func (*Extract) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Extract) Description ¶
Description implements sql.FunctionExpression
func (*Extract) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Extract) WithChildren ¶
func (td *Extract) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field joins several strings together.
func (*Field) Children ¶
func (f *Field) Children() []sql.Expression
Children implements the Expression interface.
func (*Field) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Field) Description ¶
Description implements sql.FunctionExpression
func (*Field) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Field) IsNullable ¶
IsNullable implements the Expression interface.
func (*Field) WithChildren ¶
func (*Field) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type FindInSet ¶
type FindInSet struct {
expression.BinaryExpressionStub
}
FindInSet takes out the specified unit(s) from the time expression.
func (*FindInSet) CollationCoercibility ¶
func (*FindInSet) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*FindInSet) Description ¶
Description implements sql.FunctionExpression
func (*FindInSet) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*FindInSet) WithChildren ¶
func (f *FindInSet) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Floor ¶
type Floor struct {
expression.UnaryExpression
}
Floor returns the biggest integer value not less than X.
func (*Floor) CollationCoercibility ¶
func (*Floor) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Floor) Description ¶
Description implements sql.FunctionExpression
func (*Floor) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Floor) WithChildren ¶
func (f *Floor) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Format ¶
type Format struct { NumValue sql.Expression NumDecimalPlaces sql.Expression Locale sql.Expression }
Format function returns a result of NumValue rounded to NumDecimalPlaces as a string.
func (*Format) Children ¶
func (f *Format) Children() []sql.Expression
Children implements the Expression interface.
func (*Format) CollationCoercibility ¶
func (*Format) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Format) Description ¶
Description implements sql.FunctionExpression
func (*Format) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Format) IsNullable ¶
IsNullable implements the Expression interface.
func (*Format) WithChildren ¶
func (f *Format) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type FoundRows ¶
type FoundRows struct{}
FoundRows implements the FOUND_ROWS() function
func (FoundRows) Children ¶
func (r FoundRows) Children() []sql.Expression
Children implements sql.Expression
func (FoundRows) CollationCoercibility ¶
func (FoundRows) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (FoundRows) Description ¶
Description implements sql.Expression
func (FoundRows) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (FoundRows) IsNonDeterministic ¶
func (FoundRows) IsNullable ¶
IsNullable implements sql.Expression
func (FoundRows) WithChildren ¶
func (r FoundRows) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type FromBase64 ¶
type FromBase64 struct {
expression.UnaryExpression
}
FromBase64 is a function to decode a Base64-formatted string using the same dialect that MySQL's FROM_BASE64 uses
func (*FromBase64) CollationCoercibility ¶
func (*FromBase64) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*FromBase64) Description ¶
func (t *FromBase64) Description() string
Description implements sql.FunctionExpression
func (*FromBase64) FunctionName ¶
func (t *FromBase64) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*FromBase64) IsNullable ¶
func (t *FromBase64) IsNullable() bool
IsNullable implements the Expression interface.
func (*FromBase64) String ¶
func (t *FromBase64) String() string
String implements the fmt.Stringer interface.
func (*FromBase64) Type ¶
func (t *FromBase64) Type() sql.Type
Type implements the Expression interface.
func (*FromBase64) WithChildren ¶
func (t *FromBase64) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type FromUnixtime ¶
type FromUnixtime struct {
*UnaryFunc
}
FromUnixtime converts the argument to a datetime.
func (*FromUnixtime) CollationCoercibility ¶
func (*FromUnixtime) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*FromUnixtime) Description ¶
func (r *FromUnixtime) Description() string
Description implements sql.FunctionExpression
func (*FromUnixtime) WithChildren ¶
func (r *FromUnixtime) WithChildren(children ...sql.Expression) (sql.Expression, error)
type GetLock ¶
type GetLock struct { expression.BinaryExpressionStub // contains filtered or unexported fields }
GetLock is a SQL function implementing get_lock
func (*GetLock) CollationCoercibility ¶
func (*GetLock) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*GetLock) Description ¶
Description implements sql.FunctionExpression
func (*GetLock) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*GetLock) IsNullable ¶
IsNullable implements the Expression interface.
func (*GetLock) WithChildren ¶
func (gl *GetLock) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Greatest ¶
type Greatest struct { Args []sql.Expression // contains filtered or unexported fields }
Greatest returns the argument with the greatest numerical or string value. It allows for numeric (ints and floats) and string arguments and will return the used type when all arguments are of the same type or floats if there are numerically convertible strings or integers mixed with floats. When ints or floats are mixed with non numerically convertible strings, those are ignored.
func (*Greatest) Children ¶
func (f *Greatest) Children() []sql.Expression
Children implements the Expression interface.
func (*Greatest) Description ¶
Description implements sql.FunctionExpression
func (*Greatest) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Greatest) IsNullable ¶
IsNullable implements the Expression interface.
func (*Greatest) WithChildren ¶
func (f *Greatest) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Hex ¶
type Hex struct {
*UnaryFunc
}
Hex implements the sql function "hex" which returns the hexadecimal representation of the string or numeric value
func (*Hex) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Hex) Description ¶
Description implements sql.FunctionExpression
func (*Hex) WithChildren ¶
func (h *Hex) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface
type Hour ¶
type Hour struct {
expression.UnaryExpression
}
Hour is a function that returns the hour of a date.
func (*Hour) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Hour) Description ¶
Description implements sql.FunctionExpression
func (*Hour) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Hour) WithChildren ¶
func (h *Hour) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type If ¶
type If struct {
// contains filtered or unexported fields
}
If function returns the second value if the first is true, the third value otherwise.
func (*If) Children ¶
func (f *If) Children() []sql.Expression
func (*If) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*If) Description ¶
Description implements sql.FunctionExpression
func (*If) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*If) IsNullable ¶
IsNullable implements the Expression interface.
func (*If) WithChildren ¶
func (f *If) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type IfNull ¶
type IfNull struct {
expression.BinaryExpressionStub
}
IfNull function returns the specified value IF the expression is NULL, otherwise return the expression.
func (*IfNull) CollationCoercibility ¶
func (f *IfNull) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*IfNull) Description ¶
Description implements sql.FunctionExpression
func (*IfNull) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*IfNull) IsNullable ¶
IsNullable implements the Expression interface.
func (*IfNull) WithChildren ¶
func (f *IfNull) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Inet6Aton ¶
type Inet6Aton struct {
expression.UnaryExpression
}
func (*Inet6Aton) CollationCoercibility ¶
func (*Inet6Aton) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Inet6Aton) Description ¶
Description implements sql.FunctionExpression
func (*Inet6Aton) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Inet6Aton) WithChildren ¶
func (i *Inet6Aton) WithChildren(children ...sql.Expression) (sql.Expression, error)
type Inet6Ntoa ¶
type Inet6Ntoa struct {
expression.UnaryExpression
}
func (*Inet6Ntoa) CollationCoercibility ¶
func (*Inet6Ntoa) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Inet6Ntoa) Description ¶
Description implements sql.FunctionExpression
func (*Inet6Ntoa) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Inet6Ntoa) WithChildren ¶
func (i *Inet6Ntoa) WithChildren(children ...sql.Expression) (sql.Expression, error)
type InetAton ¶
type InetAton struct {
expression.UnaryExpression
}
func (*InetAton) CollationCoercibility ¶
func (*InetAton) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*InetAton) Description ¶
Description implements sql.FunctionExpression
func (*InetAton) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*InetAton) WithChildren ¶
func (i *InetAton) WithChildren(children ...sql.Expression) (sql.Expression, error)
type InetNtoa ¶
type InetNtoa struct {
expression.UnaryExpression
}
func (*InetNtoa) CollationCoercibility ¶
func (*InetNtoa) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*InetNtoa) Description ¶
Description implements sql.FunctionExpression
func (*InetNtoa) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*InetNtoa) WithChildren ¶
func (i *InetNtoa) WithChildren(children ...sql.Expression) (sql.Expression, error)
type Instr ¶
type Instr struct {
// contains filtered or unexported fields
}
func (Instr) Children ¶
func (i Instr) Children() []sql.Expression
Children implements the Expression interface.
func (Instr) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (Instr) Description ¶
Description implements sql.FunctionExpression
func (Instr) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (Instr) IsNullable ¶
IsNullable implements the Expression interface.
func (Instr) WithChildren ¶
func (i Instr) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type IsBinary ¶
type IsBinary struct {
expression.UnaryExpression
}
IsBinary is a function that returns whether a blob is binary or not.
func (*IsBinary) CollationCoercibility ¶
func (*IsBinary) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*IsBinary) Description ¶
Description implements sql.FunctionExpression
func (*IsBinary) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*IsBinary) WithChildren ¶
func (ib *IsBinary) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type IsFreeLock ¶
type IsFreeLock struct {
NamedLockFunction
}
func (*IsFreeLock) CollationCoercibility ¶
func (*IsFreeLock) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*IsFreeLock) Description ¶
func (i *IsFreeLock) Description() string
Description implements sql.FunctionExpression
func (*IsFreeLock) WithChildren ¶
func (i *IsFreeLock) WithChildren(children ...sql.Expression) (sql.Expression, error)
type IsIPv4 ¶
type IsIPv4 struct {
expression.UnaryExpression
}
func (*IsIPv4) CollationCoercibility ¶
func (*IsIPv4) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*IsIPv4) Description ¶
Description implements sql.FunctionExpression
func (*IsIPv4) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*IsIPv4) WithChildren ¶
func (i *IsIPv4) WithChildren(children ...sql.Expression) (sql.Expression, error)
type IsIPv4Compat ¶
type IsIPv4Compat struct {
expression.UnaryExpression
}
func (*IsIPv4Compat) CollationCoercibility ¶
func (*IsIPv4Compat) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*IsIPv4Compat) Description ¶
func (i *IsIPv4Compat) Description() string
Description implements sql.FunctionExpression
func (*IsIPv4Compat) FunctionName ¶
func (i *IsIPv4Compat) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*IsIPv4Compat) String ¶
func (i *IsIPv4Compat) String() string
func (*IsIPv4Compat) Type ¶
func (i *IsIPv4Compat) Type() sql.Type
func (*IsIPv4Compat) WithChildren ¶
func (i *IsIPv4Compat) WithChildren(children ...sql.Expression) (sql.Expression, error)
type IsIPv4Mapped ¶
type IsIPv4Mapped struct {
expression.UnaryExpression
}
func (*IsIPv4Mapped) CollationCoercibility ¶
func (*IsIPv4Mapped) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*IsIPv4Mapped) Description ¶
func (i *IsIPv4Mapped) Description() string
Description implements sql.FunctionExpression
func (*IsIPv4Mapped) FunctionName ¶
func (i *IsIPv4Mapped) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*IsIPv4Mapped) String ¶
func (i *IsIPv4Mapped) String() string
func (*IsIPv4Mapped) Type ¶
func (i *IsIPv4Mapped) Type() sql.Type
func (*IsIPv4Mapped) WithChildren ¶
func (i *IsIPv4Mapped) WithChildren(children ...sql.Expression) (sql.Expression, error)
type IsIPv6 ¶
type IsIPv6 struct {
expression.UnaryExpression
}
func (*IsIPv6) CollationCoercibility ¶
func (*IsIPv6) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*IsIPv6) Description ¶
Description implements sql.FunctionExpression
func (*IsIPv6) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*IsIPv6) WithChildren ¶
func (i *IsIPv6) WithChildren(children ...sql.Expression) (sql.Expression, error)
type IsNull ¶
type IsNull struct {
expression.UnaryExpression
}
IsNull is a function that returns whether a value is null or not.
func (*IsNull) CollationCoercibility ¶
func (*IsNull) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*IsNull) Description ¶
Description implements sql.FunctionExpression
func (*IsNull) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*IsNull) WithChildren ¶
func (ib *IsNull) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type IsUUID ¶
type IsUUID struct {
// contains filtered or unexported fields
}
func (IsUUID) Children ¶
func (u IsUUID) Children() []sql.Expression
Children returns the children expressions of this expression.
func (IsUUID) CollationCoercibility ¶
func (IsUUID) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (IsUUID) Description ¶
Description implements sql.FunctionExpression
func (IsUUID) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (IsUUID) IsNullable ¶
IsNullable returns whether the expression can be null.
func (IsUUID) WithChildren ¶
func (u IsUUID) WithChildren(children ...sql.Expression) (sql.Expression, error)
type IsUsedLock ¶
type IsUsedLock struct {
NamedLockFunction
}
func (*IsUsedLock) CollationCoercibility ¶
func (*IsUsedLock) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*IsUsedLock) Description ¶
func (i *IsUsedLock) Description() string
Description implements sql.FunctionExpression
func (*IsUsedLock) WithChildren ¶
func (i *IsUsedLock) WithChildren(children ...sql.Expression) (sql.Expression, error)
type LastInsertId ¶
type LastInsertId struct {
expression.UnaryExpression
}
LastInsertId implements the LAST_INSERT_ID() function https://dev.mysql.com/doc/refman/8.0/en/information-functions.html#function_last-insert-id
func (LastInsertId) Children ¶
func (r LastInsertId) Children() []sql.Expression
Children implements sql.Expression
func (LastInsertId) CollationCoercibility ¶
func (LastInsertId) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (LastInsertId) Description ¶
func (r LastInsertId) Description() string
Description implements sql.FunctionExpression
func (LastInsertId) FunctionName ¶
func (r LastInsertId) FunctionName() string
FunctionName implements sql.FunctionExpression
func (LastInsertId) IsNonDeterministic ¶
func (r LastInsertId) IsNonDeterministic() bool
func (LastInsertId) IsNullable ¶
func (r LastInsertId) IsNullable() bool
IsNullable implements sql.Expression
func (LastInsertId) Resolved ¶
func (r LastInsertId) Resolved() bool
Resolved implements sql.Expression
func (LastInsertId) WithChildren ¶
func (r LastInsertId) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type LastInsertUuid ¶
type LastInsertUuid struct{}
LastInsertUuid implements the LAST_INSERT_UUID() function. This function is NOT a standard function in MySQL, but is a useful analogue to LAST_INSERT_ID() if customers are inserting UUIDs into a table.
func (LastInsertUuid) Children ¶
func (l LastInsertUuid) Children() []sql.Expression
func (LastInsertUuid) CollationCoercibility ¶
func (l LastInsertUuid) CollationCoercibility(_ *sql.Context) (collation sql.CollationID, coercibility byte)
func (LastInsertUuid) Description ¶
func (l LastInsertUuid) Description() string
func (LastInsertUuid) FunctionName ¶
func (l LastInsertUuid) FunctionName() string
func (LastInsertUuid) IsNullable ¶
func (l LastInsertUuid) IsNullable() bool
func (LastInsertUuid) Resolved ¶
func (l LastInsertUuid) Resolved() bool
func (LastInsertUuid) String ¶
func (l LastInsertUuid) String() string
func (LastInsertUuid) Type ¶
func (l LastInsertUuid) Type() sql.Type
func (LastInsertUuid) WithChildren ¶
func (l LastInsertUuid) WithChildren(children ...sql.Expression) (sql.Expression, error)
type Least ¶
type Least struct { Args []sql.Expression // contains filtered or unexported fields }
Least returns the argument with the least numerical or string value. It allows for numeric (ints anf floats) and string arguments and will return the used type when all arguments are of the same type or floats if there are numerically convertible strings or integers mixed with floats. When ints or floats are mixed with non numerically convertible strings, those are ignored.
func (*Least) Children ¶
func (f *Least) Children() []sql.Expression
Children implements the Expression interface.
func (*Least) Description ¶
Description implements sql.FunctionExpression
func (*Least) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Least) IsNullable ¶
IsNullable implements the Expression interface.
func (*Least) WithChildren ¶
func (f *Least) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Left ¶
type Left struct {
// contains filtered or unexported fields
}
Left is a function that returns the first N characters of a string expression.
func (Left) Children ¶
func (l Left) Children() []sql.Expression
Children implements the Expression interface.
func (Left) CollationCoercibility ¶
func (l Left) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (Left) Description ¶
Description implements sql.FunctionExpression
func (Left) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (Left) IsNullable ¶
IsNullable implements the Expression interface.
func (Left) WithChildren ¶
func (l Left) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type LeftTrim ¶
type LeftTrim struct {
expression.UnaryExpression
}
func (*LeftTrim) CollationCoercibility ¶
func (t *LeftTrim) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*LeftTrim) Description ¶
Description implements sql.FunctionExpression
func (*LeftTrim) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*LeftTrim) IsNullable ¶
func (*LeftTrim) WithChildren ¶
func (t *LeftTrim) WithChildren(children ...sql.Expression) (sql.Expression, error)
type Length ¶
type Length struct { expression.UnaryExpression CountType CountType }
Length returns the length of a string or binary content, either in bytes or characters.
func (*Length) CollationCoercibility ¶
func (*Length) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Length) DebugString ¶
func (*Length) Description ¶
Description implements sql.FunctionExpression
func (*Length) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Length) WithChildren ¶
func (l *Length) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type LoadFile ¶
type LoadFile struct {
// contains filtered or unexported fields
}
func (*LoadFile) Children ¶
func (l *LoadFile) Children() []sql.Expression
Children implements sql.Expression.
func (*LoadFile) CollationCoercibility ¶
func (*LoadFile) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*LoadFile) Description ¶
Description implements sql.FunctionExpression
func (*LoadFile) FunctionName ¶
FunctionName implements sql.FunctionExpression.
func (*LoadFile) IsNullable ¶
IsNullable implements sql.Expression.
func (*LoadFile) WithChildren ¶
func (l *LoadFile) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression.
type Locate ¶
type Locate struct {
expression.NaryExpression
}
Locate returns the position of the first occurrence of a substring in a string. If the substring is not found within the original string, this function returns 0. This function performs a case-insensitive search.
func (*Locate) CollationCoercibility ¶
func (*Locate) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Locate) DebugString ¶
func (*Locate) Description ¶
Description implements sql.FunctionExpression
func (*Locate) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Locate) WithChildren ¶
func (l *Locate) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Log ¶
type Log struct {
expression.BinaryExpressionStub
}
Log is a function that returns the natural logarithm of a value.
func (*Log) Children ¶
func (l *Log) Children() []sql.Expression
Children implements the Expression interface.
func (*Log) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Log) Description ¶
Description implements sql.FunctionExpression
func (*Log) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Log) IsNullable ¶
IsNullable implements the Expression interface.
func (*Log) WithChildren ¶
func (l *Log) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type LogBase ¶
type LogBase struct { expression.UnaryExpression // contains filtered or unexported fields }
LogBase is a function that returns the logarithm of a value with a specific base.
func (*LogBase) CollationCoercibility ¶
func (*LogBase) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*LogBase) Description ¶
Description implements sql.FunctionExpression
func (*LogBase) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*LogBase) IsNullable ¶
IsNullable implements the sql.Expression interface.
func (*LogBase) WithChildren ¶
func (l *LogBase) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Lower ¶
type Lower struct {
expression.UnaryExpression
}
Lower is a function that returns the lowercase of the text provided.
func (*Lower) CollationCoercibility ¶
func (l *Lower) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Lower) Description ¶
Description implements sql.FunctionExpression
func (*Lower) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Lower) WithChildren ¶
func (l *Lower) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type MD5 ¶
type MD5 struct {
*UnaryFunc
}
MD5 function returns the MD5 hash of the input. https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_md5
func (*MD5) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*MD5) Description ¶
Description implements sql.FunctionExpression
func (*MD5) WithChildren ¶
func (f *MD5) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Microsecond ¶
type Microsecond struct {
*UnaryDatetimeFunc
}
Microsecond implements the MICROSECOND function
func (*Microsecond) CollationCoercibility ¶
func (*Microsecond) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Microsecond) Description ¶
func (m *Microsecond) Description() string
Description implements sql.FunctionExpression
func (*Microsecond) WithChildren ¶
func (m *Microsecond) WithChildren(children ...sql.Expression) (sql.Expression, error)
type Minute ¶
type Minute struct {
expression.UnaryExpression
}
Minute is a function that returns the minute of a date.
func (*Minute) CollationCoercibility ¶
func (*Minute) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Minute) Description ¶
Description implements sql.FunctionExpression
func (*Minute) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Minute) WithChildren ¶
func (m *Minute) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Month ¶
type Month struct {
expression.UnaryExpression
}
Month is a function that returns the month of a date.
func (*Month) CollationCoercibility ¶
func (*Month) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Month) Description ¶
Description implements sql.FunctionExpression
func (*Month) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Month) WithChildren ¶
func (m *Month) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type MonthName ¶
type MonthName struct {
*UnaryDatetimeFunc
}
MonthName implements the MONTHNAME function
func (*MonthName) CollationCoercibility ¶
func (*MonthName) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*MonthName) Description ¶
Description implements sql.FunctionExpression
func (*MonthName) WithChildren ¶
func (d *MonthName) WithChildren(children ...sql.Expression) (sql.Expression, error)
type NamedLockFunction ¶
type NamedLockFunction struct { expression.UnaryExpression // contains filtered or unexported fields }
NamedLockFunction is a sql function that takes just the name of a lock as an argument
func (*NamedLockFunction) FunctionName ¶
func (nl *NamedLockFunction) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*NamedLockFunction) GetLockName ¶
Eval implements the Expression interface.
func (*NamedLockFunction) IsNullable ¶
func (nl *NamedLockFunction) IsNullable() bool
IsNullable implements the Expression interface.
func (*NamedLockFunction) String ¶
func (nl *NamedLockFunction) String() string
String implements the fmt.Stringer interface.
func (*NamedLockFunction) Type ¶
func (nl *NamedLockFunction) Type() sql.Type
Type implements the Expression interface.
type NoArgFunc ¶
NoArgFunc is a helper type to reduce boilerplate in functions that take no arguments. Implements most of sql.FunctionExpression.
func (NoArgFunc) Children ¶
func (fn NoArgFunc) Children() []sql.Expression
Children implements the Expression interface.
func (NoArgFunc) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (NoArgFunc) IsNullable ¶
IsNullable implements the Expression interface.
type Now ¶
type Now struct {
// contains filtered or unexported fields
}
Now is a function that returns the current time.
func (*Now) Children ¶
func (n *Now) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*Now) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Now) Description ¶
Description implements sql.FunctionExpression
func (*Now) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Now) IsNonDeterministic ¶
func (*Now) IsNullable ¶
IsNullable implements the sql.Expression interface.
func (*Now) WithChildren ¶
func (n *Now) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type NullIf ¶
type NullIf struct {
expression.BinaryExpressionStub
}
NullIf function compares two expressions and returns NULL if they are equal. Otherwise, the first expression is returned.
func (*NullIf) CollationCoercibility ¶
func (f *NullIf) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*NullIf) Description ¶
Description implements sql.FunctionExpression
func (*NullIf) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*NullIf) IsNullable ¶
IsNullable implements the Expression interface.
func (*NullIf) WithChildren ¶
func (f *NullIf) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Ord ¶
type Ord struct {
*UnaryFunc
}
Ord implements the sql function "ord" which returns the numeric value of the leftmost character
func (*Ord) CollationCoercibility ¶
func (o *Ord) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Ord) Description ¶
Description implements sql.FunctionExpression
func (*Ord) WithChildren ¶
func (o *Ord) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface
type Pad ¶
type Pad struct {
// contains filtered or unexported fields
}
Pad is a function that pads a string with another string.
func (*Pad) Children ¶
func (p *Pad) Children() []sql.Expression
Children implements the Expression interface.
func (*Pad) CollationCoercibility ¶
func (p *Pad) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Pad) Description ¶
Description implements sql.FunctionExpression
func (*Pad) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Pad) IsNullable ¶
IsNullable implements the Expression interface.
func (*Pad) WithChildren ¶
func (p *Pad) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Pi ¶
type Pi struct{}
func (*Pi) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Pi) Description ¶
Description implements sql.FunctionExpression
func (*Pi) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Pi) WithChildren ¶
func (p *Pi) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Power ¶
type Power struct {
expression.BinaryExpressionStub
}
Power is a function that returns value of X raised to the power of Y.
func (*Power) CollationCoercibility ¶
func (*Power) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Power) Description ¶
Description implements sql.FunctionExpression
func (*Power) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Power) IsNullable ¶
IsNullable implements the Expression interface.
func (*Power) WithChildren ¶
func (p *Power) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Quarter ¶
type Quarter struct {
expression.UnaryExpression
}
func (*Quarter) CollationCoercibility ¶
func (q *Quarter) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Quarter) Description ¶
Description implements sql.FunctionExpression
func (*Quarter) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Quarter) WithChildren ¶
func (q *Quarter) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Radians ¶
type Radians struct {
*UnaryFunc
}
func (*Radians) CollationCoercibility ¶
func (*Radians) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Radians) Description ¶
Description implements sql.FunctionExpression
func (*Radians) WithChildren ¶
func (r *Radians) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Rand ¶
type Rand struct {
Child sql.Expression
}
Rand returns a random float 0 <= x < 1. If it has an argument, that argument will be used to seed the random number generator, effectively turning it into a hash on that value.
func (*Rand) Children ¶
func (r *Rand) Children() []sql.Expression
Children implements sql.Expression
func (*Rand) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Rand) Description ¶
Description implements sql.FunctionExpression
func (*Rand) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Rand) IsNonDeterministic ¶
IsNonDeterministic implements sql.NonDeterministicExpression
func (*Rand) WithChildren ¶
func (r *Rand) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression.
type RandomBytes ¶
type RandomBytes struct {
expression.UnaryExpression
}
RandomBytes returns a random binary string of the given length.
func (*RandomBytes) CollationCoercibility ¶
func (*RandomBytes) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*RandomBytes) Description ¶
func (r *RandomBytes) Description() string
Description implements sql.FunctionExpression
func (*RandomBytes) FunctionName ¶
func (r *RandomBytes) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*RandomBytes) IsNonDeterministic ¶
func (r *RandomBytes) IsNonDeterministic() bool
IsNonDeterministic implements the sql.Expression interface.
func (*RandomBytes) String ¶
func (r *RandomBytes) String() string
String implements the sql.Expression interface.
func (*RandomBytes) Type ¶
func (r *RandomBytes) Type() sql.Type
Type implements the sql.Expression interface.
func (*RandomBytes) WithChildren ¶
func (r *RandomBytes) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type RegexpLike ¶
type RegexpLike struct { Text sql.Expression Pattern sql.Expression Flags sql.Expression // contains filtered or unexported fields }
RegexpLike implements the REGEXP_LIKE function. https://dev.mysql.com/doc/refman/8.0/en/regexp.html#function_regexp-like
func (*RegexpLike) Children ¶
func (r *RegexpLike) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*RegexpLike) Close ¶
func (r *RegexpLike) Close(ctx *sql.Context) error
Close implements the sql.Closer interface.
func (*RegexpLike) CollationCoercibility ¶
func (r *RegexpLike) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*RegexpLike) Description ¶
func (r *RegexpLike) Description() string
Description implements sql.FunctionExpression
func (*RegexpLike) FunctionName ¶
func (r *RegexpLike) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*RegexpLike) IsNullable ¶
func (r *RegexpLike) IsNullable() bool
IsNullable implements the sql.Expression interface.
func (*RegexpLike) Resolved ¶
func (r *RegexpLike) Resolved() bool
Resolved implements the sql.Expression interface.
func (*RegexpLike) String ¶
func (r *RegexpLike) String() string
func (*RegexpLike) Type ¶
func (r *RegexpLike) Type() sql.Type
Type implements the sql.Expression interface.
func (*RegexpLike) WithChildren ¶
func (r *RegexpLike) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface.
type RegexpReplace ¶
type RegexpReplace struct {
// contains filtered or unexported fields
}
RegexpReplace implements the REGEXP_REPLACE function. https://dev.mysql.com/doc/refman/8.0/en/regexp.html#function_regexp-replace
func (*RegexpReplace) Children ¶
func (r *RegexpReplace) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*RegexpReplace) CollationCoercibility ¶
func (r *RegexpReplace) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*RegexpReplace) Description ¶
func (r *RegexpReplace) Description() string
Description implements sql.FunctionExpression
func (*RegexpReplace) FunctionName ¶
func (r *RegexpReplace) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*RegexpReplace) IsNullable ¶
func (r *RegexpReplace) IsNullable() bool
IsNullable implements the sql.Expression interface.
func (*RegexpReplace) Resolved ¶
func (r *RegexpReplace) Resolved() bool
Resolved implements the sql.Expression interface.
func (*RegexpReplace) String ¶
func (r *RegexpReplace) String() string
func (*RegexpReplace) Type ¶
func (r *RegexpReplace) Type() sql.Type
Type implements the sql.Expression interface.
func (*RegexpReplace) WithChildren ¶
func (r *RegexpReplace) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface.
type Registry ¶
Registry is used to register functions
type ReleaseAllLocks ¶
type ReleaseAllLocks struct { NoArgFunc // contains filtered or unexported fields }
func (ReleaseAllLocks) CollationCoercibility ¶
func (ReleaseAllLocks) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (ReleaseAllLocks) Description ¶
func (r ReleaseAllLocks) Description() string
Description implements sql.FunctionExpression
func (ReleaseAllLocks) WithChildren ¶
func (r ReleaseAllLocks) WithChildren(children ...sql.Expression) (sql.Expression, error)
type ReleaseLock ¶
type ReleaseLock struct {
NamedLockFunction
}
func (*ReleaseLock) CollationCoercibility ¶
func (*ReleaseLock) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*ReleaseLock) Description ¶
func (i *ReleaseLock) Description() string
Description implements sql.FunctionExpression
func (*ReleaseLock) WithChildren ¶
func (i *ReleaseLock) WithChildren(children ...sql.Expression) (sql.Expression, error)
type Repeat ¶
type Repeat struct {
expression.BinaryExpressionStub
}
Repeat is a function that returns the string repeated n times.
func (*Repeat) CollationCoercibility ¶
func (r *Repeat) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Repeat) Description ¶
Description implements sql.FunctionExpression
func (*Repeat) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Repeat) WithChildren ¶
func (r *Repeat) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Replace ¶
type Replace struct {
// contains filtered or unexported fields
}
Replace is a function that returns a string with all occurrences of fromStr replaced by the string toStr
func (*Replace) Children ¶
func (r *Replace) Children() []sql.Expression
Children implements the Expression interface.
func (*Replace) CollationCoercibility ¶
func (r *Replace) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Replace) Description ¶
Description implements sql.FunctionExpression
func (*Replace) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Replace) IsNullable ¶
IsNullable implements the Expression interface.
func (*Replace) WithChildren ¶
func (r *Replace) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Reverse ¶
type Reverse struct {
expression.UnaryExpression
}
Reverse is a function that returns the reverse of the text provided.
func (*Reverse) CollationCoercibility ¶
func (r *Reverse) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Reverse) Description ¶
Description implements sql.FunctionExpression
func (*Reverse) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Reverse) WithChildren ¶
func (r *Reverse) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Right ¶
type Right struct {
// contains filtered or unexported fields
}
Right is a function that returns the last N characters of a string expression.
func (Right) Children ¶
func (r Right) Children() []sql.Expression
Children implements the Expression interface.
func (Right) CollationCoercibility ¶
func (r Right) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (Right) DebugString ¶
func (Right) Description ¶
Description implements sql.FunctionExpression
func (Right) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (Right) IsNullable ¶
IsNullable implements the Expression interface.
func (Right) WithChildren ¶
func (r Right) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type RightTrim ¶
type RightTrim struct {
expression.UnaryExpression
}
func (*RightTrim) CollationCoercibility ¶
func (t *RightTrim) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*RightTrim) Description ¶
Description implements sql.FunctionExpression
func (*RightTrim) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*RightTrim) IsNullable ¶
func (*RightTrim) WithChildren ¶
func (t *RightTrim) WithChildren(children ...sql.Expression) (sql.Expression, error)
type Round ¶
type Round struct {
expression.BinaryExpressionStub
}
Round returns the number (x) with (d) requested decimal places. If d is negative, the number is returned with the (abs(d)) least significant digits of it's integer part set to 0. If d is not specified or nil/null it defaults to 0.
func (*Round) Children ¶
func (r *Round) Children() []sql.Expression
Children implements the Expression interface.
func (*Round) CollationCoercibility ¶
func (*Round) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Round) Description ¶
Description implements sql.FunctionExpression
func (*Round) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Round) IsNullable ¶
IsNullable implements the Expression interface.
func (*Round) WithChildren ¶
func (r *Round) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type RowCount ¶
type RowCount struct{}
RowCount implements the ROW_COUNT() function
func (RowCount) Children ¶
func (r RowCount) Children() []sql.Expression
Children implements sql.Expression
func (RowCount) CollationCoercibility ¶
func (RowCount) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (RowCount) Description ¶
Description implements sql.FunctionExpression
func (RowCount) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (RowCount) IsNonDeterministic ¶
func (RowCount) IsNullable ¶
IsNullable implements sql.Expression
func (RowCount) WithChildren ¶
func (r RowCount) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type SHA1 ¶
type SHA1 struct {
*UnaryFunc
}
SHA1 function returns the SHA1 hash of the input. https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_sha1
func (*SHA1) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*SHA1) Description ¶
Description implements sql.FunctionExpression
func (*SHA1) WithChildren ¶
func (f *SHA1) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type SHA2 ¶
type SHA2 struct {
expression.BinaryExpressionStub
}
SHA2 function returns the SHA-224/256/384/512 hash of the input. https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_sha2
func (*SHA2) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*SHA2) Description ¶
Description implements sql.FunctionExpression
func (*SHA2) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*SHA2) WithChildren ¶
func (f *SHA2) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Second ¶
type Second struct {
expression.UnaryExpression
}
Second is a function that returns the second of a date.
func (*Second) CollationCoercibility ¶
func (*Second) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Second) Description ¶
Description implements sql.FunctionExpression
func (*Second) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Second) WithChildren ¶
func (s *Second) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Sign ¶
type Sign struct {
*UnaryFunc
}
func (*Sign) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Sign) Description ¶
Description implements sql.FunctionExpression
func (*Sign) WithChildren ¶
func (s *Sign) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Sin ¶
type Sin struct {
*UnaryFunc
}
Sin is the SIN function
func (*Sin) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Sin) Description ¶
Description implements sql.FunctionExpression
func (*Sin) WithChildren ¶
func (s *Sin) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Sleep ¶
type Sleep struct {
expression.UnaryExpression
}
Sleep is a function that just waits for the specified number of seconds and returns 0. It can be useful to test timeouts or long queries.
func (*Sleep) CollationCoercibility ¶
func (*Sleep) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Sleep) Description ¶
Description implements sql.FunctionExpression
func (*Sleep) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Sleep) IsNullable ¶
IsNullable implements the Expression interface.
func (*Sleep) WithChildren ¶
func (s *Sleep) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Soundex ¶
type Soundex struct {
expression.UnaryExpression
}
Soundex is a function that returns the soundex of a string. Two strings that sound almost the same should have identical soundex strings. A standard soundex string is four characters long, but the SOUNDEX() function returns an arbitrarily long string.
func (*Soundex) CollationCoercibility ¶
func (*Soundex) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Soundex) Description ¶
Description implements sql.FunctionExpression
func (*Soundex) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Soundex) WithChildren ¶
func (s *Soundex) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Space ¶
type Space struct {
*UnaryFunc
}
Space implements the sql function "space" which returns a string with the number of spaces specified by the argument
func (*Space) CollationCoercibility ¶
func (s *Space) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Space) Description ¶
Description implements sql.FunctionExpression
func (*Space) WithChildren ¶
func (s *Space) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface
type Sqrt ¶
type Sqrt struct {
expression.UnaryExpression
}
Sqrt is a function that returns the square value of the number provided.
func (*Sqrt) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Sqrt) Description ¶
Description implements sql.FunctionExpression
func (*Sqrt) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Sqrt) IsNullable ¶
IsNullable implements the Expression interface.
func (*Sqrt) WithChildren ¶
func (s *Sqrt) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type StrCmp ¶
type StrCmp struct {
expression.BinaryExpressionStub
}
StrCmp compares two strings
func (*StrCmp) CollationCoercibility ¶
func (s *StrCmp) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*StrCmp) Description ¶
Description implements sql.FunctionExpression
func (*StrCmp) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*StrCmp) WithChildren ¶
func (s *StrCmp) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type StrToDate ¶
type StrToDate struct { Date sql.Expression Format sql.Expression }
StrToDate defines the built-in function STR_TO_DATE(str, format)
func (StrToDate) Children ¶
func (s StrToDate) Children() []sql.Expression
Children returns the children expressions of this expression.
func (StrToDate) CollationCoercibility ¶
func (StrToDate) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (StrToDate) Description ¶
Description implements sql.FunctionExpression
func (StrToDate) FunctionName ¶
func (StrToDate) IsNullable ¶
IsNullable returns whether the expression can be null.
func (StrToDate) WithChildren ¶
func (s StrToDate) WithChildren(children ...sql.Expression) (sql.Expression, error)
type Substring ¶
type Substring struct { Str sql.Expression Start sql.Expression Len sql.Expression }
Substring is a function to return a part of a string. This function behaves as the homonym MySQL function. Since Go strings are UTF8, this function does not return a direct sub string str[start:start+length], instead returns the substring of rune s. That is, "á"[0:1] does not return a partial unicode glyph, but "á" itself.
func (*Substring) Children ¶
func (s *Substring) Children() []sql.Expression
Children implements the Expression interface.
func (*Substring) CollationCoercibility ¶
func (s *Substring) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Substring) Description ¶
Description implements sql.FunctionExpression
func (*Substring) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Substring) IsNullable ¶
IsNullable implements the Expression interface.
func (*Substring) WithChildren ¶
func (*Substring) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type SubstringIndex ¶
type SubstringIndex struct {
// contains filtered or unexported fields
}
SubstringIndex returns the substring from string str before count occurrences of the delimiter delim. If count is positive, everything to the left of the final delimiter (counting from the left) is returned. If count is negative, everything to the right of the final delimiter (counting from the right) is returned. SUBSTRING_INDEX() performs a case-sensitive match when searching for delim.
func (*SubstringIndex) Children ¶
func (s *SubstringIndex) Children() []sql.Expression
Children implements the Expression interface.
func (*SubstringIndex) CollationCoercibility ¶
func (s *SubstringIndex) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*SubstringIndex) Description ¶
func (s *SubstringIndex) Description() string
Description implements sql.FunctionExpression
func (*SubstringIndex) FunctionName ¶
func (s *SubstringIndex) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*SubstringIndex) IsNullable ¶
func (s *SubstringIndex) IsNullable() bool
IsNullable implements the Expression interface.
func (*SubstringIndex) Resolved ¶
func (s *SubstringIndex) Resolved() bool
Resolved implements the Expression interface.
func (*SubstringIndex) String ¶
func (s *SubstringIndex) String() string
func (*SubstringIndex) Type ¶
func (*SubstringIndex) Type() sql.Type
Type implements the Expression interface.
func (*SubstringIndex) WithChildren ¶
func (s *SubstringIndex) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Tan ¶
type Tan struct {
*UnaryFunc
}
func (*Tan) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Tan) Description ¶
Description implements sql.FunctionExpression
func (*Tan) WithChildren ¶
func (t *Tan) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Time ¶
type Time struct {
expression.UnaryExpression
}
Time is a function takes the Time part out from a datetime expression.
func (*Time) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Time) Description ¶
func (*Time) FunctionName ¶
func (*Time) WithChildren ¶
func (t *Time) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type TimeDiff ¶
type TimeDiff struct {
expression.BinaryExpressionStub
}
TimeDiff subtracts the second argument from the first expressed as a time value.
func (*TimeDiff) CollationCoercibility ¶
func (*TimeDiff) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*TimeDiff) Description ¶
Description implements sql.FunctionExpression
func (*TimeDiff) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*TimeDiff) WithChildren ¶
func (td *TimeDiff) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type TimeFormat ¶
type TimeFormat struct {
expression.BinaryExpressionStub
}
TimeFormat function returns a string representation of the date specified in the format specified
func (*TimeFormat) CollationCoercibility ¶
func (*TimeFormat) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*TimeFormat) Description ¶
func (f *TimeFormat) Description() string
Description implements sql.FunctionExpression
func (*TimeFormat) FunctionName ¶
func (f *TimeFormat) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*TimeFormat) IsNullable ¶
func (f *TimeFormat) IsNullable() bool
IsNullable implements the Expression interface.
func (*TimeFormat) String ¶
func (f *TimeFormat) String() string
func (*TimeFormat) Type ¶
func (f *TimeFormat) Type() sql.Type
Type implements the Expression interface.
func (*TimeFormat) WithChildren ¶
func (f *TimeFormat) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type TimeToSec ¶
type TimeToSec struct {
*UnaryDatetimeFunc
}
TimeToSec implements the time_to_sec function
func (*TimeToSec) CollationCoercibility ¶
func (*TimeToSec) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*TimeToSec) Description ¶
Description implements sql.FunctionExpression
func (*TimeToSec) WithChildren ¶
func (m *TimeToSec) WithChildren(children ...sql.Expression) (sql.Expression, error)
type TimestampConversion ¶
type TimestampConversion struct {
Date sql.Expression
}
TimestampConversion is a shorthand function for CONVERT(expr, TIMESTAMP)
func (*TimestampConversion) Children ¶
func (t *TimestampConversion) Children() []sql.Expression
func (*TimestampConversion) CollationCoercibility ¶
func (*TimestampConversion) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*TimestampConversion) Description ¶
func (t *TimestampConversion) Description() string
Description implements sql.FunctionExpression
func (*TimestampConversion) FunctionName ¶
func (t *TimestampConversion) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*TimestampConversion) IsNullable ¶
func (t *TimestampConversion) IsNullable() bool
func (*TimestampConversion) Resolved ¶
func (t *TimestampConversion) Resolved() bool
func (*TimestampConversion) String ¶
func (t *TimestampConversion) String() string
func (*TimestampConversion) Type ¶
func (t *TimestampConversion) Type() sql.Type
func (*TimestampConversion) WithChildren ¶
func (t *TimestampConversion) WithChildren(children ...sql.Expression) (sql.Expression, error)
type TimestampDiff ¶
type TimestampDiff struct {
// contains filtered or unexported fields
}
TimestampDiff returns expr1 − expr2 expressed as a value in unit specified.
func (*TimestampDiff) Children ¶
func (t *TimestampDiff) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*TimestampDiff) CollationCoercibility ¶
func (*TimestampDiff) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*TimestampDiff) Description ¶
func (t *TimestampDiff) Description() string
Description implements sql.FunctionExpression
func (*TimestampDiff) FunctionName ¶
func (t *TimestampDiff) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*TimestampDiff) IsNullable ¶
func (t *TimestampDiff) IsNullable() bool
IsNullable implements the sql.Expression interface.
func (*TimestampDiff) Resolved ¶
func (t *TimestampDiff) Resolved() bool
Resolved implements the sql.Expression interface.
func (*TimestampDiff) String ¶
func (t *TimestampDiff) String() string
func (*TimestampDiff) Type ¶
func (t *TimestampDiff) Type() sql.Type
Type implements the sql.Expression interface.
func (*TimestampDiff) WithChildren ¶
func (t *TimestampDiff) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type ToBase64 ¶
type ToBase64 struct {
expression.UnaryExpression
}
ToBase64 is a function to encode a string to the Base64 format using the same dialect that MySQL's TO_BASE64 uses
func (*ToBase64) CollationCoercibility ¶
func (*ToBase64) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*ToBase64) Description ¶
Description implements sql.FunctionExpression
func (*ToBase64) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*ToBase64) IsNullable ¶
IsNullable implements the Expression interface.
func (*ToBase64) WithChildren ¶
func (t *ToBase64) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Trim ¶
type Trim struct {
// contains filtered or unexported fields
}
func (*Trim) Children ¶
func (t *Trim) Children() []sql.Expression
Children implements the Expression interface.
func (Trim) CollationCoercibility ¶
func (t Trim) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Trim) Description ¶
Description implements sql.FunctionExpression
func (*Trim) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (Trim) IsNullable ¶
IsNullable implements the Expression interface.
func (Trim) WithChildren ¶
func (t Trim) WithChildren(children ...sql.Expression) (sql.Expression, error)
type UTCTimestamp ¶
type UTCTimestamp struct {
// contains filtered or unexported fields
}
UTCTimestamp is a function that returns the current time.
func (*UTCTimestamp) Children ¶
func (ut *UTCTimestamp) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*UTCTimestamp) CollationCoercibility ¶
func (*UTCTimestamp) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*UTCTimestamp) Description ¶
func (ut *UTCTimestamp) Description() string
Description implements sql.FunctionExpression
func (*UTCTimestamp) FunctionName ¶
func (ut *UTCTimestamp) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*UTCTimestamp) IsNullable ¶
func (ut *UTCTimestamp) IsNullable() bool
IsNullable implements the sql.Expression interface.
func (*UTCTimestamp) Resolved ¶
func (ut *UTCTimestamp) Resolved() bool
Resolved implements the sql.Expression interface.
func (*UTCTimestamp) String ¶
func (ut *UTCTimestamp) String() string
func (*UTCTimestamp) Type ¶
func (ut *UTCTimestamp) Type() sql.Type
Type implements the sql.Expression interface.
func (*UTCTimestamp) WithChildren ¶
func (ut *UTCTimestamp) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type UUIDFunc ¶
type UUIDFunc struct{}
func (UUIDFunc) Children ¶
func (u UUIDFunc) Children() []sql.Expression
Children returns the children expressions of this expression.
func (UUIDFunc) CollationCoercibility ¶
func (UUIDFunc) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (UUIDFunc) Description ¶
Description implements sql.FunctionExpression
func (UUIDFunc) FunctionName ¶
func (UUIDFunc) IsNonDeterministic ¶
func (UUIDFunc) IsNullable ¶
IsNullable returns whether the expression can be null.
func (UUIDFunc) WithChildren ¶
func (u UUIDFunc) WithChildren(children ...sql.Expression) (sql.Expression, error)
type UUIDToBin ¶
type UUIDToBin struct {
// contains filtered or unexported fields
}
func (UUIDToBin) Children ¶
func (ub UUIDToBin) Children() []sql.Expression
Children returns the children expressions of this expression.
func (UUIDToBin) CollationCoercibility ¶
func (UUIDToBin) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (UUIDToBin) Description ¶
Description implements sql.FunctionExpression
func (UUIDToBin) FunctionName ¶
func (UUIDToBin) IsNullable ¶
IsNullable returns whether the expression can be null.
func (UUIDToBin) WithChildren ¶
func (ub UUIDToBin) WithChildren(children ...sql.Expression) (sql.Expression, error)
type UnaryDatetimeFunc ¶
type UnaryDatetimeFunc struct { expression.UnaryExpression // Name is the name of the function Name string // SQLType is the return type of the function SQLType sql.Type }
UnaryDatetimeFunc is a sql.Function which takes a single datetime argument
func NewUnaryDatetimeFunc ¶
func NewUnaryDatetimeFunc(arg sql.Expression, name string, sqlType sql.Type) *UnaryDatetimeFunc
func (*UnaryDatetimeFunc) FunctionName ¶
func (dtf *UnaryDatetimeFunc) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*UnaryDatetimeFunc) String ¶
func (dtf *UnaryDatetimeFunc) String() string
String implements the fmt.Stringer interface.
func (*UnaryDatetimeFunc) Type ¶
func (dtf *UnaryDatetimeFunc) Type() sql.Type
Type implements the Expression interface.
type UnaryFunc ¶
type UnaryFunc struct { expression.UnaryExpression // Name is the name of the function Name string // The type returned by the function RetType sql.Type }
func NewUnaryFunc ¶
func (*UnaryFunc) EvalChild ¶
EvalChild is a convenience function for safely evaluating a child expression
func (*UnaryFunc) FunctionName ¶
FunctionName implements sql.FunctionExpression
type Unhex ¶
type Unhex struct {
*UnaryFunc
}
Unhex implements the sql function "unhex" which returns the integer representation of a hexadecimal string
func (*Unhex) CollationCoercibility ¶
func (*Unhex) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Unhex) Description ¶
Description implements sql.FunctionExpression
func (*Unhex) WithChildren ¶
func (h *Unhex) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface
type UnixTimestamp ¶
type UnixTimestamp struct {
Date sql.Expression
}
UnixTimestamp converts the argument to the number of seconds since 1970-01-01 00:00:00 UTC. With no argument, returns number of seconds since unix epoch for the current time.
func (*UnixTimestamp) Children ¶
func (ut *UnixTimestamp) Children() []sql.Expression
func (*UnixTimestamp) CollationCoercibility ¶
func (*UnixTimestamp) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*UnixTimestamp) Description ¶
func (ut *UnixTimestamp) Description() string
Description implements sql.FunctionExpression
func (*UnixTimestamp) FunctionName ¶
func (ut *UnixTimestamp) FunctionName() string
FunctionName implements sql.FunctionExpression
func (*UnixTimestamp) IsNullable ¶
func (ut *UnixTimestamp) IsNullable() bool
func (*UnixTimestamp) Resolved ¶
func (ut *UnixTimestamp) Resolved() bool
func (*UnixTimestamp) String ¶
func (ut *UnixTimestamp) String() string
func (*UnixTimestamp) Type ¶
func (ut *UnixTimestamp) Type() sql.Type
func (*UnixTimestamp) WithChildren ¶
func (ut *UnixTimestamp) WithChildren(children ...sql.Expression) (sql.Expression, error)
type Upper ¶
type Upper struct {
expression.UnaryExpression
}
Upper is a function that returns the UPPERCASE of the text provided.
func (*Upper) CollationCoercibility ¶
func (u *Upper) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Upper) Description ¶
Description implements sql.FunctionExpression
func (*Upper) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Upper) WithChildren ¶
func (u *Upper) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type User ¶
type User struct {
NoArgFunc
}
func (User) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (User) Description ¶
Description implements sql.FunctionExpression
func (User) IsNonDeterministic ¶
func (User) WithChildren ¶
func (c User) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.Expression
type Values ¶
type Values struct { expression.UnaryExpression Value interface{} }
Values is used in an ON DUPLICATE KEY UPDATE statement to return the value stated in the to-be-inserted column. For example, given the following statement: INSERT INTO table (pk, v1, v2) VALUES (1, 3, 5), (2, 4, 6) ON DUPLICATE KEY UPDATE v2 = values(v1) * 10; the values inserted into v2 would be 30 and 40.
func (*Values) CollationCoercibility ¶
func (v *Values) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Values) Description ¶
Description implements sql.FunctionExpression.
func (*Values) FunctionName ¶
FunctionName implements sql.FunctionExpression.
func (*Values) WithChildren ¶
func (v *Values) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements sql.FunctionExpression.
type Version ¶
type Version string
Version is a function that returns server version.
func (Version) Children ¶
func (f Version) Children() []sql.Expression
Children implements the Expression interface.
func (Version) CollationCoercibility ¶
func (Version) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (Version) Description ¶
Description implements sql.FunctionExpression
func (Version) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (Version) IsNonDeterministic ¶
func (Version) IsNullable ¶
IsNullable implements the Expression interface.
func (Version) WithChildren ¶
func (f Version) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Week ¶
type Week struct {
// contains filtered or unexported fields
}
Week is a function that returns year and week for a date. The year in the result may be different from the year in the date argument for the first and the last week of the year. Details: https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_yearweek
func (*Week) Children ¶
func (d *Week) Children() []sql.Expression
Children implements the Expression interface.
func (*Week) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Week) Description ¶
Description implements sql.FunctionExpression
func (*Week) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Week) IsNullable ¶
IsNullable implements the Expression interface.
func (*Week) WithChildren ¶
func (*Week) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type WeekOfYear ¶
type WeekOfYear struct {
*UnaryDatetimeFunc
}
WeekOfYear implements the weekofyear function
func (*WeekOfYear) CollationCoercibility ¶
func (*WeekOfYear) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*WeekOfYear) Description ¶
func (m *WeekOfYear) Description() string
Description implements sql.FunctionExpression
func (*WeekOfYear) WithChildren ¶
func (m *WeekOfYear) WithChildren(children ...sql.Expression) (sql.Expression, error)
type Weekday ¶
type Weekday struct {
expression.UnaryExpression
}
Weekday is a function that returns the weekday of a date where 0 = Monday, ..., 6 = Sunday.
func (*Weekday) CollationCoercibility ¶
func (*Weekday) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Weekday) Description ¶
Description implements sql.FunctionExpression
func (*Weekday) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Weekday) WithChildren ¶
func (d *Weekday) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Year ¶
type Year struct {
expression.UnaryExpression
}
Year is a function that returns the year of a date.
func (*Year) CollationCoercibility ¶
CollationCoercibility implements the interface sql.CollationCoercible.
func (*Year) Description ¶
Description implements sql.FunctionExpression
func (*Year) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*Year) WithChildren ¶
func (y *Year) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type YearWeek ¶
type YearWeek struct {
// contains filtered or unexported fields
}
YearWeek is a function that returns year and week for a date. The year in the result may be different from the year in the date argument for the first and the last week of the year. Details: https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_yearweek
func (*YearWeek) Children ¶
func (d *YearWeek) Children() []sql.Expression
Children implements the Expression interface.
func (*YearWeek) CollationCoercibility ¶
func (*YearWeek) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)
CollationCoercibility implements the interface sql.CollationCoercible.
func (*YearWeek) Description ¶
Description implements sql.FunctionExpression
func (*YearWeek) FunctionName ¶
FunctionName implements sql.FunctionExpression
func (*YearWeek) IsNullable ¶
IsNullable implements the Expression interface.
func (*YearWeek) WithChildren ¶
func (*YearWeek) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
Source Files ¶
- absval.go
- bit_count.go
- ceil_round_floor.go
- char.go
- coalesce.go
- collation.go
- concat.go
- concat_ws.go
- conv.go
- convert_tz.go
- database.go
- date.go
- date_format.go
- elt.go
- extract.go
- field.go
- find_in_set.go
- format.go
- function.go
- greatest_least.go
- hash.go
- if.go
- ifnull.go
- inet_convert.go
- is_ip.go
- isbinary.go
- isnull.go
- length.go
- load_file.go
- locate.go
- locks.go
- logarithm.go
- lower_upper.go
- math.go
- noarg_funcs.go
- nullif.go
- queryinfo.go
- random_bytes.go
- regexp_like.go
- regexp_replace.go
- registry.go
- reverse_repeat_replace.go
- rpad_lpad.go
- sleep.go
- soundex.go
- space.go
- sqrt_power.go
- str_to_date.go
- strcmp.go
- string.go
- substring.go
- system.go
- time.go
- time_format.go
- timediff.go
- tobase64_frombase64.go
- trim_ltrim_rtrim.go
- uuid.go
- values.go
- version.go