plan

package
v0.0.0-...-daaaa79 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanTask

type PlanTask interface {
	json.Marshaler
	json.Unmarshaler
	Accept(visitor expr.Visitor) (interface{}, error)
	Clone() PlanTask
}

A PlanTask is a part of a Plan, each task may have children

type Planner

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

func NewPlanner

func NewPlanner(schema string, stmt expr.SqlStatement, sys datasource.RuntimeConfig) (*Planner, error)

func (*Planner) VisitDelete

func (m *Planner) VisitDelete(stmt *expr.SqlDelete) (interface{}, error)

func (*Planner) VisitDescribe

func (m *Planner) VisitDescribe(stmt *expr.SqlDescribe) (interface{}, error)

func (*Planner) VisitInsert

func (m *Planner) VisitInsert(stmt *expr.SqlInsert) (interface{}, error)

func (*Planner) VisitPreparedStmt

func (m *Planner) VisitPreparedStmt(stmt *expr.PreparedStatement) (interface{}, error)

func (*Planner) VisitSelect

func (m *Planner) VisitSelect(stmt *expr.SqlSelect) (interface{}, error)

func (*Planner) VisitShow

func (m *Planner) VisitShow(stmt *expr.SqlShow) (interface{}, error)

func (*Planner) VisitUpdate

func (m *Planner) VisitUpdate(stmt *expr.SqlUpdate) (interface{}, error)

func (*Planner) VisitUpsert

func (m *Planner) VisitUpsert(stmt *expr.SqlUpsert) (interface{}, error)

Jump to

Keyboard shortcuts

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