Documentation ¶
Index ¶
- type PlanTask
- type Planner
- func (m *Planner) VisitDelete(stmt *expr.SqlDelete) (interface{}, error)
- func (m *Planner) VisitDescribe(stmt *expr.SqlDescribe) (interface{}, error)
- func (m *Planner) VisitInsert(stmt *expr.SqlInsert) (interface{}, error)
- func (m *Planner) VisitPreparedStmt(stmt *expr.PreparedStatement) (interface{}, error)
- func (m *Planner) VisitSelect(stmt *expr.SqlSelect) (interface{}, error)
- func (m *Planner) VisitShow(stmt *expr.SqlShow) (interface{}, error)
- func (m *Planner) VisitUpdate(stmt *expr.SqlUpdate) (interface{}, error)
- func (m *Planner) VisitUpsert(stmt *expr.SqlUpsert) (interface{}, error)
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 (*Planner) VisitDescribe ¶
func (m *Planner) VisitDescribe(stmt *expr.SqlDescribe) (interface{}, error)
func (*Planner) VisitInsert ¶
func (*Planner) VisitPreparedStmt ¶
func (m *Planner) VisitPreparedStmt(stmt *expr.PreparedStatement) (interface{}, error)
func (*Planner) VisitSelect ¶
func (*Planner) VisitUpdate ¶
Click to show internal directories.
Click to hide internal directories.