plan

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryNode

type BinaryNode struct {
	Left  sql.Node
	Right sql.Node
}

func (BinaryNode) Children

func (n BinaryNode) Children() []sql.Node

type CrossJoin added in v0.1.0

type CrossJoin struct {
	BinaryNode
}

func NewCrossJoin added in v0.1.0

func NewCrossJoin(left sql.Node, right sql.Node) *CrossJoin

func (*CrossJoin) Resolved added in v0.1.0

func (p *CrossJoin) Resolved() bool

func (*CrossJoin) RowIter added in v0.1.0

func (p *CrossJoin) RowIter() (sql.RowIter, error)

func (*CrossJoin) Schema added in v0.1.0

func (p *CrossJoin) Schema() sql.Schema

func (*CrossJoin) TransformExpressionsUp added in v0.1.0

func (p *CrossJoin) TransformExpressionsUp(f func(sql.Expression) sql.Expression) sql.Node

func (*CrossJoin) TransformUp added in v0.1.0

func (p *CrossJoin) TransformUp(f func(sql.Node) sql.Node) sql.Node

type Describe added in v0.1.0

type Describe struct {
	UnaryNode
}

func NewDescribe added in v0.1.0

func NewDescribe(child sql.Node) *Describe

func (*Describe) RowIter added in v0.1.0

func (d *Describe) RowIter() (sql.RowIter, error)

func (*Describe) Schema added in v0.1.0

func (d *Describe) Schema() sql.Schema

func (*Describe) TransformExpressionsUp added in v0.1.0

func (d *Describe) TransformExpressionsUp(f func(sql.Expression) sql.Expression) sql.Node

func (*Describe) TransformUp added in v0.1.0

func (d *Describe) TransformUp(f func(sql.Node) sql.Node) sql.Node

type Filter

type Filter struct {
	UnaryNode
	// contains filtered or unexported fields
}

func NewFilter

func NewFilter(expression sql.Expression, child sql.Node) *Filter

func (*Filter) Resolved

func (p *Filter) Resolved() bool

func (*Filter) RowIter

func (p *Filter) RowIter() (sql.RowIter, error)

func (*Filter) TransformExpressionsUp

func (p *Filter) TransformExpressionsUp(f func(sql.Expression) sql.Expression) sql.Node

func (*Filter) TransformUp

func (p *Filter) TransformUp(f func(sql.Node) sql.Node) sql.Node

type GroupBy added in v0.3.0

type GroupBy struct {
	UnaryNode
	// contains filtered or unexported fields
}

func NewGroupBy added in v0.3.0

func NewGroupBy(aggregate []sql.Expression, grouping []sql.Expression,
	child sql.Node) *GroupBy

func (*GroupBy) Resolved added in v0.3.0

func (p *GroupBy) Resolved() bool

func (*GroupBy) RowIter added in v0.3.0

func (p *GroupBy) RowIter() (sql.RowIter, error)

func (*GroupBy) Schema added in v0.3.0

func (p *GroupBy) Schema() sql.Schema

func (*GroupBy) TransformExpressionsUp added in v0.3.0

func (p *GroupBy) TransformExpressionsUp(f func(sql.Expression) sql.Expression) sql.Node

func (*GroupBy) TransformUp added in v0.3.0

func (p *GroupBy) TransformUp(f func(sql.Node) sql.Node) sql.Node

type Limit

type Limit struct {
	UnaryNode
	// contains filtered or unexported fields
}

func NewLimit

func NewLimit(size int64, child sql.Node) *Limit

func (*Limit) Resolved

func (p *Limit) Resolved() bool

func (*Limit) RowIter

func (l *Limit) RowIter() (sql.RowIter, error)

func (*Limit) TransformExpressionsUp

func (l *Limit) TransformExpressionsUp(f func(sql.Expression) sql.Expression) sql.Node

func (*Limit) TransformUp

func (l *Limit) TransformUp(f func(sql.Node) sql.Node) sql.Node

type Project

type Project struct {
	UnaryNode
	Expressions []sql.Expression
}

func NewProject

func NewProject(expressions []sql.Expression, child sql.Node) *Project

func (*Project) Resolved

func (p *Project) Resolved() bool

func (*Project) RowIter

func (p *Project) RowIter() (sql.RowIter, error)

func (*Project) Schema

func (p *Project) Schema() sql.Schema

func (*Project) TransformExpressionsUp

func (p *Project) TransformExpressionsUp(f func(sql.Expression) sql.Expression) sql.Node

func (*Project) TransformUp

func (p *Project) TransformUp(f func(sql.Node) sql.Node) sql.Node

type ShowTables added in v0.1.0

type ShowTables struct {
	// contains filtered or unexported fields
}

func NewShowTables added in v0.1.0

func NewShowTables(database sql.Database) *ShowTables

func (*ShowTables) Children added in v0.1.0

func (*ShowTables) Children() []sql.Node

func (*ShowTables) Resolved added in v0.1.0

func (p *ShowTables) Resolved() bool

func (*ShowTables) RowIter added in v0.1.0

func (p *ShowTables) RowIter() (sql.RowIter, error)

func (*ShowTables) Schema added in v0.1.0

func (*ShowTables) Schema() sql.Schema

func (*ShowTables) TransformExpressionsUp added in v0.1.0

func (p *ShowTables) TransformExpressionsUp(f func(sql.Expression) sql.Expression) sql.Node

func (*ShowTables) TransformUp added in v0.1.0

func (p *ShowTables) TransformUp(f func(sql.Node) sql.Node) sql.Node

type Sort

type Sort struct {
	UnaryNode
	// contains filtered or unexported fields
}

func NewSort

func NewSort(sortFields []SortField, child sql.Node) *Sort

func (*Sort) Resolved

func (s *Sort) Resolved() bool

func (*Sort) RowIter

func (s *Sort) RowIter() (sql.RowIter, error)

func (*Sort) TransformExpressionsUp

func (s *Sort) TransformExpressionsUp(f func(sql.Expression) sql.Expression) sql.Node

func (*Sort) TransformUp

func (s *Sort) TransformUp(f func(sql.Node) sql.Node) sql.Node

type SortField

type SortField struct {
	Column sql.Expression
	Order  SortOrder
}

type SortOrder

type SortOrder byte
const (
	Ascending  SortOrder = 1
	Descending SortOrder = 2
)

type UnaryNode

type UnaryNode struct {
	Child sql.Node
}

func (UnaryNode) Children

func (n UnaryNode) Children() []sql.Node

func (UnaryNode) Resolved added in v0.1.0

func (n UnaryNode) Resolved() bool

func (*UnaryNode) Schema added in v0.3.0

func (n *UnaryNode) Schema() sql.Schema

type UnresolvedTable added in v0.1.0

type UnresolvedTable struct {
	Name string
}

func NewUnresolvedTable added in v0.1.0

func NewUnresolvedTable(name string) *UnresolvedTable

func (*UnresolvedTable) Children added in v0.1.0

func (*UnresolvedTable) Children() []sql.Node

func (*UnresolvedTable) Resolved added in v0.1.0

func (*UnresolvedTable) Resolved() bool

func (*UnresolvedTable) RowIter added in v0.1.0

func (*UnresolvedTable) RowIter() (sql.RowIter, error)

func (*UnresolvedTable) Schema added in v0.1.0

func (*UnresolvedTable) Schema() sql.Schema

func (*UnresolvedTable) TransformExpressionsUp added in v0.1.0

func (p *UnresolvedTable) TransformExpressionsUp(f func(sql.Expression) sql.Expression) sql.Node

func (*UnresolvedTable) TransformUp added in v0.1.0

func (p *UnresolvedTable) TransformUp(f func(sql.Node) sql.Node) sql.Node

Jump to

Keyboard shortcuts

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