sql

package
v0.0.0-...-113bf14 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssistanceContext

type AssistanceContext interface {
	GetTable(tableName string) (base.Table, bool, error)
	GetValues() []RowValue
	StoreValue(rowValue RowValue)
	ClearValues()
}

type CreateTablePlan

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

func (CreateTablePlan) Explain

func (c CreateTablePlan) Explain() Explanation

func (CreateTablePlan) Run

type ExecutionContext

type ExecutionContext interface {
	engine.Transaction
	AssistanceContext
}

type Explanation

type Explanation struct {
	Action      int
	Name        string
	Description string
	Key         []byte
	Value       []byte
	Cost        int
}

type InsertTablePlan

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

func (InsertTablePlan) Explain

func (i InsertTablePlan) Explain() Explanation

func (*InsertTablePlan) ReceiveRow

func (i *InsertTablePlan) ReceiveRow(row RowValue)

func (InsertTablePlan) Run

type PlanStage

type PlanStage []PlanStep

type PlanStep

type PlanStep interface {
	Run(ctx ExecutionContext) error
	Explain() Explanation
}

type Planner

type Planner interface {
	Build(node ast.SyntaxTree) (QueryPlan, error)
}

func NewPlanner

func NewPlanner(txn engine.Transaction) Planner

type PlanningContext

type PlanningContext interface {
	AssistanceContext
}

type QueryPlan

type QueryPlan interface {
	Run() error
}

type Receiver

type Receiver interface {
	ReceiveRow(row RowValue)
}

type RowValue

type RowValue map[uint8]reflect.Value

type SelectRenderer

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

type UniqueColumn

type UniqueColumn uint16

func NewUniqueColumn

func NewUniqueColumn(tableId, columnId uint8) UniqueColumn

func (UniqueColumn) ColumnId

func (u UniqueColumn) ColumnId() uint8

func (UniqueColumn) TableId

func (u UniqueColumn) TableId() uint8

type ValuesListPlan

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

func (ValuesListPlan) Explain

func (v ValuesListPlan) Explain() Explanation

func (ValuesListPlan) Run

type ValuesListRenderer

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

func (ValuesListRenderer) Explain

func (v ValuesListRenderer) Explain() Explanation

func (ValuesListRenderer) Run

Jump to

Keyboard shortcuts

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