Versions in this module Expand all Collapse all v1 v1.0.1 Dec 2, 2020 Changes in this version + func Add(v1, v2 sqltypes.Value) (sqltypes.Value, error) + func Cast(v sqltypes.Value, typ querypb.Type) (sqltypes.Value, error) + func Divide(v1, v2 sqltypes.Value) (sqltypes.Value, error) + func Max(v1, v2 sqltypes.Value) (sqltypes.Value, error) + func Min(v1, v2 sqltypes.Value) (sqltypes.Value, error) + func Multiply(v1, v2 sqltypes.Value) (sqltypes.Value, error) + func NullsafeAdd(v1, v2 sqltypes.Value, resultType querypb.Type) sqltypes.Value + func NullsafeCompare(v1, v2 sqltypes.Value) (int, error) + func NullsafeHashcode(v sqltypes.Value) (int64, error) + func Subtract(v1, v2 sqltypes.Value) (sqltypes.Value, error) + func ToFloat64(v sqltypes.Value) (float64, error) + func ToInt64(v sqltypes.Value) (int64, error) + func ToNative(v sqltypes.Value) (interface{}, error) + func ToUint64(v sqltypes.Value) (uint64, error) + type Addition struct + func (a *Addition) Evaluate(left, right EvalResult) (EvalResult, error) + func (a *Addition) String() string + func (a *Addition) Type(left querypb.Type) querypb.Type + type BinaryExpr interface + Evaluate func(left, right EvalResult) (EvalResult, error) + String func() string + Type func(left querypb.Type) querypb.Type + type BinaryOp struct + Expr BinaryExpr + Left Expr + Right Expr + func (b *BinaryOp) Evaluate(env ExpressionEnv) (EvalResult, error) + func (b *BinaryOp) String() string + func (b *BinaryOp) Type(env ExpressionEnv) (querypb.Type, error) + type BindVariable struct + Key string + func (b *BindVariable) Evaluate(env ExpressionEnv) (EvalResult, error) + func (b *BindVariable) String() string + func (b *BindVariable) Type(env ExpressionEnv) (querypb.Type, error) + type Column struct + Offset int + func (c *Column) Evaluate(env ExpressionEnv) (EvalResult, error) + func (c *Column) String() string + func (c *Column) Type(ExpressionEnv) (querypb.Type, error) + type Division struct + func (d *Division) Evaluate(left, right EvalResult) (EvalResult, error) + func (d *Division) String() string + func (d *Division) Type(querypb.Type) querypb.Type + type EvalResult struct + func (e *EvalResult) ToBooleanStrict() (bool, error) + func (e EvalResult) Value() sqltypes.Value + type Expr interface + Evaluate func(env ExpressionEnv) (EvalResult, error) + String func() string + Type func(env ExpressionEnv) (querypb.Type, error) + func NewBindVar(key string) Expr + func NewColumn(offset int) Expr + func NewLiteralFloat(val []byte) (Expr, error) + func NewLiteralInt(i int64) Expr + func NewLiteralIntFromBytes(val []byte) (Expr, error) + func NewLiteralString(val []byte) Expr + type ExpressionEnv struct + BindVars map[string]*querypb.BindVariable + Row []sqltypes.Value + type Literal struct + Val EvalResult + func (l *Literal) Evaluate(ExpressionEnv) (EvalResult, error) + func (l *Literal) String() string + func (l *Literal) Type(ExpressionEnv) (querypb.Type, error) + type Multiplication struct + func (m *Multiplication) Evaluate(left, right EvalResult) (EvalResult, error) + func (m *Multiplication) String() string + func (m *Multiplication) Type(left querypb.Type) querypb.Type + type Subtraction struct + func (s *Subtraction) Evaluate(left, right EvalResult) (EvalResult, error) + func (s *Subtraction) String() string + func (s *Subtraction) Type(left querypb.Type) querypb.Type