nodes

package
v0.0.0-...-b19370d Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuery

func NewQuery(n Node) queries.Query

Types

type AccessStrategy

type AccessStrategy interface {
	Serialize(w serialization.IndentWriter)
	Filter() impls.Expression
	Ordering() impls.OrderExpression
	Scanner(ctx impls.ExecutionContext) (scan.RowScanner, error)
}

type JoinStrategy

type JoinStrategy interface {
	Name() string
	Scanner(ctx impls.ExecutionContext) (scan.RowScanner, error)
}

type Node

type Node interface {
	serialization.Serializable

	Scanner(ctx impls.ExecutionContext) (scan.RowScanner, error)
}

func NewAccess

func NewAccess(strategy AccessStrategy) Node

func NewExplain

func NewExplain(n Node, fields []fields.Field) Node

func NewFilter

func NewFilter(node Node, filter impls.Expression) Node

func NewGroup

func NewGroup(node Node, groupExpressions []impls.Expression, projection *projection.Projection) Node

func NewJoin

func NewJoin(left, right Node, filter impls.Expression, fields []fields.Field, strategy JoinStrategy) Node

func NewLimit

func NewLimit(node Node, limit int) Node

func NewOffset

func NewOffset(node Node, offset int) Node

func NewOrder

func NewOrder(node Node, order impls.OrderExpression, fields []fields.Field) Node

func NewProjection

func NewProjection(node Node, projection *projection.Projection) Node

func NewValues

func NewValues(fields []fields.Field, expressions [][]impls.Expression) Node

type NodeQuery

type NodeQuery struct {
	Node
}

func (*NodeQuery) Execute

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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