planner

package
v1.1.0-beta.0...-04608f4 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsReadOnly

func IsReadOnly(node ast.Node, vars *variable.SessionVars) bool

IsReadOnly check whether the ast.Node is a read only statement.

func Optimize

func Optimize(ctx context.Context, sctx sessionctx.Context, node *resolve.NodeW, is infoschema.InfoSchema) (plan base.Plan, slice types.NameSlice, retErr error)

Optimize does optimization and creates a Plan.

func OptimizeExecStmt

func OptimizeExecStmt(ctx context.Context, sctx sessionctx.Context,
	execAst *resolve.NodeW, is infoschema.InfoSchema) (base.Plan, types.NameSlice, error)

OptimizeExecStmt to handle the "execute" statement

func OptimizeForForeignKeyCascade

func OptimizeForForeignKeyCascade(ctx context.Context, sctx planctx.PlanContext, node *resolve.NodeW, is infoschema.InfoSchema) (base.Plan, error)

OptimizeForForeignKeyCascade does optimization and creates a Plan for foreign key cascade. Compare to Optimize, OptimizeForForeignKeyCascade only build plan by StmtNode, doesn't consider plan cache and plan binding, also doesn't do privilege check.

Types

This section is empty.

Directories

Path Synopsis
Package core Copyright 2022 PingCAP, Inc.
Package core Copyright 2022 PingCAP, Inc.
resolve
Package resolve is used for semantic resolve of the AST tree.
Package resolve is used for semantic resolve of the AST tree.

Jump to

Keyboard shortcuts

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