query

package
v0.0.0-...-714aee7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAny

func NewAny(exprs ...sql.Expression) (sql.Expression, error)

func NewEach

func NewEach(exprs ...sql.Expression) (sql.Expression, error)

func NewEqual

func NewEqual(exprs ...sql.Expression) (sql.Expression, error)

func NewHighest

func NewHighest(exprs ...sql.Expression) (sql.Expression, error)

func NewLowest

func NewLowest(exprs ...sql.Expression) (sql.Expression, error)

Types

type AdHocTable

type AdHocTable struct {
	ItsSrc  api.RowSource
	ItsName string
}

func NewAdHocTable

func NewAdHocTable(src api.RowSource, name string) (t *AdHocTable)

func (*AdHocTable) Children

func (t *AdHocTable) Children() []sql.Node

func (*AdHocTable) Name

func (t *AdHocTable) Name() string

func (*AdHocTable) Resolved

func (t *AdHocTable) Resolved() bool

func (*AdHocTable) RowIter

func (t *AdHocTable) RowIter(*sql.Context) (sql.RowIter, error)

func (*AdHocTable) Schema

func (t *AdHocTable) Schema() (s sql.Schema)

func (*AdHocTable) String

func (t *AdHocTable) String() string

func (*AdHocTable) TransformExpressionsUp

func (t *AdHocTable) TransformExpressionsUp(sql.TransformExprFunc) (sql.Node, error)

func (*AdHocTable) TransformUp

func (t *AdHocTable) TransformUp(f sql.TransformNodeFunc) (sql.Node, error)

type Any

type Any []sql.Expression

func (Any) Children

func (e Any) Children() []sql.Expression

func (Any) Eval

func (e Any) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)

func (Any) IsNullable

func (e Any) IsNullable() bool

func (Any) Resolved

func (e Any) Resolved() bool

func (Any) String

func (e Any) String() string

func (Any) TransformUp

func (e Any) TransformUp(tf sql.TransformExprFunc) (_ sql.Expression, err error)

func (Any) Type

func (e Any) Type() sql.Type
type Cookie struct{}

type DataContext

type DataContext struct {
	DS api.DataSource
}

func (DataContext) Parse

func (dc DataContext) Parse(query string) (sql.Node, error)

func (DataContext) ParseEx

func (dc DataContext) ParseEx(query string, costomFuncs sql.Functions) (sql.Node, error)

type Each

type Each []sql.Expression

func (Each) Children

func (e Each) Children() []sql.Expression

func (Each) Eval

func (e Each) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)

func (Each) IsNullable

func (e Each) IsNullable() bool

func (Each) Resolved

func (e Each) Resolved() bool

func (Each) String

func (e Each) String() string

func (Each) TransformUp

func (e Each) TransformUp(tf sql.TransformExprFunc) (_ sql.Expression, err error)

func (Each) Type

func (e Each) Type() sql.Type

type Equal

type Equal []sql.Expression

func (Equal) Children

func (e Equal) Children() []sql.Expression

func (Equal) Eval

func (e Equal) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)

func (Equal) IsNullable

func (e Equal) IsNullable() bool

func (Equal) Resolved

func (e Equal) Resolved() bool

func (Equal) String

func (e Equal) String() string

func (Equal) TransformUp

func (e Equal) TransformUp(tf sql.TransformExprFunc) (_ sql.Expression, err error)

func (Equal) Type

func (e Equal) Type() sql.Type

type Highest

type Highest []sql.Expression

func (Highest) Children

func (e Highest) Children() []sql.Expression

func (Highest) Eval

func (e Highest) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)

func (Highest) IsNullable

func (e Highest) IsNullable() bool

func (Highest) Resolved

func (e Highest) Resolved() bool

func (Highest) String

func (e Highest) String() string

func (Highest) TransformUp

func (e Highest) TransformUp(tf sql.TransformExprFunc) (_ sql.Expression, err error)

func (Highest) Type

func (e Highest) Type() sql.Type

type Lowest

type Lowest []sql.Expression

func (Lowest) Children

func (e Lowest) Children() []sql.Expression

func (Lowest) Eval

func (e Lowest) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)

func (Lowest) IsNullable

func (e Lowest) IsNullable() bool

func (Lowest) Resolved

func (e Lowest) Resolved() bool

func (Lowest) String

func (e Lowest) String() string

func (Lowest) TransformUp

func (e Lowest) TransformUp(tf sql.TransformExprFunc) (_ sql.Expression, err error)

func (Lowest) Type

func (e Lowest) Type() sql.Type

type MultiJoin

type MultiJoin struct {
	*Cookie
	Tables  []sql.Node
	Filters []sql.Expression
}

func (*MultiJoin) Children

func (m *MultiJoin) Children() []sql.Node

func (*MultiJoin) Resolved

func (m *MultiJoin) Resolved() bool

func (*MultiJoin) RowIter

func (m *MultiJoin) RowIter(*sql.Context) (sql.RowIter, error)

func (*MultiJoin) Schema

func (m *MultiJoin) Schema() (s sql.Schema)

func (*MultiJoin) String

func (m *MultiJoin) String() string

func (*MultiJoin) TransformExpressions

func (m *MultiJoin) TransformExpressions(sql.TransformExprFunc) (sql.Node, error)

func (*MultiJoin) TransformExpressionsUp

func (m *MultiJoin) TransformExpressionsUp(sql.TransformExprFunc) (sql.Node, error)

func (*MultiJoin) TransformUp

func (m *MultiJoin) TransformUp(f sql.TransformNodeFunc) (sql.Node, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL