tidb: github.com/pingcap/tidb/planner Index | Files | Directories

package planner

import "github.com/pingcap/tidb/planner"

Index

Package Files

optimize.go

func GenHintsFromSQL Uses

func GenHintsFromSQL(ctx context.Context, sctx sessionctx.Context, node ast.Node, is infoschema.InfoSchema) (string, error)

GenHintsFromSQL is used to generate hints from SQL and inject the hints into original SQL.

func Optimize Uses

func Optimize(ctx context.Context, sctx sessionctx.Context, node ast.Node, is infoschema.InfoSchema) (plannercore.Plan, types.NameSlice, error)

Optimize does optimization and creates a Plan. The node must be prepared first.

func OptimizeExecStmt Uses

func OptimizeExecStmt(ctx context.Context, sctx sessionctx.Context,
    execAst *ast.ExecuteStmt, is infoschema.InfoSchema) (plannercore.Plan, error)

OptimizeExecStmt to optimize prepare statement protocol "execute" statement this is a short path ONLY does things filling prepare related params for point select like plan which does not need extra things

Directories

PathSynopsis
cascades
core
implementation
memo
property

Package planner imports 20 packages (graph) and is imported by 7 packages. Updated 2019-11-18. Refresh now. Tools for package owners.