Documentation ¶
Index ¶
- func CheckTables(expr sql.Expression, ts TableSet) bool
- func GetSubrule(expr sql.Expression, ts TableSet) sql.Expression
- func GetValueForHash(expr sql.Expression, ts TableSet) sql.Expression
- func Indent(i int) sql.TransformExprFunc
- func Inspect(ts TableSet, expr sql.Expression) sql.Expression
- func IsDominated(expr sql.Expression) bool
- func IsEqual(expr sql.Expression) bool
- func IsEqualAny(expr sql.Expression) bool
- func IsFieldOf(expr sql.Expression, table string) (string, bool)
- func IsSatisfiedEqual(expr sql.Expression, ts TableSet) bool
- func MinimumTables(tabs []*query.AdHocTable, expr sql.Expression) (i int)
- func Unwrap(e sql.Expression) (sql.Expression, error)
- func Wrap(e sql.Expression) (sql.Expression, error)
- type AnnotExpr
- type FieldSpecs
- type FieldSpecsTable
- type NoneVar
- func (NoneVar) Children() []sql.Expression
- func (NoneVar) Eval(*sql.Context, sql.Row) (interface{}, error)
- func (NoneVar) IsNullable() bool
- func (NoneVar) Resolved() bool
- func (NoneVar) String() string
- func (NoneVar) TransformUp(tef sql.TransformExprFunc) (sql.Expression, error)
- func (NoneVar) Type() sql.Type
- type Predict
- func (Predict) Children() []sql.Expression
- func (p Predict) Eval(*sql.Context, sql.Row) (interface{}, error)
- func (Predict) IsNullable() bool
- func (Predict) Resolved() bool
- func (p Predict) String() string
- func (p Predict) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
- func (Predict) Type() sql.Type
- type StaticHint
- type TableSet
- type TableSetMap
- type TableSetSimple
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTables ¶
func CheckTables(expr sql.Expression, ts TableSet) bool
func GetSubrule ¶
func GetSubrule(expr sql.Expression, ts TableSet) sql.Expression
func GetValueForHash ¶
func GetValueForHash(expr sql.Expression, ts TableSet) sql.Expression
func Indent ¶
func Indent(i int) sql.TransformExprFunc
func Inspect ¶
func Inspect(ts TableSet, expr sql.Expression) sql.Expression
func IsDominated ¶
func IsDominated(expr sql.Expression) bool
func IsEqualAny ¶
func IsEqualAny(expr sql.Expression) bool
func IsSatisfiedEqual ¶
func IsSatisfiedEqual(expr sql.Expression, ts TableSet) bool
func MinimumTables ¶
func MinimumTables(tabs []*query.AdHocTable, expr sql.Expression) (i int)
func Unwrap ¶
func Unwrap(e sql.Expression) (sql.Expression, error)
func Wrap ¶
func Wrap(e sql.Expression) (sql.Expression, error)
Types ¶
type AnnotExpr ¶
type AnnotExpr struct { sql.Expression Stat StaticHint }
func (*AnnotExpr) Children ¶
func (a *AnnotExpr) Children() []sql.Expression
type FieldSpecs ¶
type FieldSpecs map[string]FieldSpecsTable
func GetIndex ¶
func GetIndex(tabs []*query.AdHocTable, exprs []sql.Expression) (fs FieldSpecs)
func (FieldSpecs) String ¶
func (fs FieldSpecs) String() string
type FieldSpecsTable ¶
type FieldSpecsTable map[string][]sql.Expression
type NoneVar ¶
type NoneVar struct{}
func (NoneVar) Children ¶
func (NoneVar) Children() []sql.Expression
func (NoneVar) IsNullable ¶
func (NoneVar) TransformUp ¶
func (NoneVar) TransformUp(tef sql.TransformExprFunc) (sql.Expression, error)
type Predict ¶
type Predict bool
func (Predict) Children ¶
func (Predict) Children() []sql.Expression
func (Predict) IsNullable ¶
func (Predict) TransformUp ¶
func (p Predict) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)
type StaticHint ¶
type StaticHint uint
const ( SHNone StaticHint = 1 << iota SHTrue SHFalse SHPass )
func (StaticHint) Has ¶
func (sh StaticHint) Has(o StaticHint) bool
type TableSet ¶
func TableSetFor ¶
func TableSetFor(tabs []*query.AdHocTable) TableSet
type TableSetMap ¶
func (TableSetMap) Has ¶
func (t TableSetMap) Has(s string) bool
type TableSetSimple ¶
type TableSetSimple string
func (TableSetSimple) Has ¶
func (t TableSetSimple) Has(s string) bool
Click to show internal directories.
Click to hide internal directories.