parplan

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AstHandle

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

AstHandle wraps the underlying TiDB ast, to avoid leaking the TiDB too much into the rest of the code

type Parser

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

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (p *Parser) Parse(sql string) (stmt AstHandle, paramCount int, err error)

type Planner

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

func NewPlanner

func NewPlanner(schema *common.Schema) *Planner

func (*Planner) BuildLogicalPlan

func (p *Planner) BuildLogicalPlan(stmt AstHandle, prepare bool) (planner.LogicalPlan, error)

func (*Planner) BuildPhysicalPlan

func (p *Planner) BuildPhysicalPlan(logicalPlan planner.LogicalPlan, pullQuery bool) (planner.PhysicalPlan, error)

func (*Planner) Parse

func (p *Planner) Parse(query string) (AstHandle, int, error)

func (*Planner) QueryToPlan

func (p *Planner) QueryToPlan(query string, prepare bool, pullQuery bool) (planner.PhysicalPlan, planner.LogicalPlan, int, error)

func (*Planner) SessionContext

func (p *Planner) SessionContext() sessionctx.Context

func (*Planner) SetPSArgs

func (p *Planner) SetPSArgs(args []interface{})

func (*Planner) StatementContext

func (p *Planner) StatementContext() *stmtctx.StatementContext

Jump to

Keyboard shortcuts

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