package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Packages

# Functions

CollectTableNames gets all table names from ast.Node.
GenerateBindingSQL generates binding sqls from stmt node and plan hints.
MatchSQLBinding returns the matched binding for this statement.
MatchSQLBindingForPlanCache matches binding for plan cache.
NewGlobalBindingHandle creates a new GlobalBindingHandle.
NewSessionBindingHandle creates a new SessionBindingHandle.

# Constants

Builtin indicates the binding is a builtin record for internal locking purpose.
BuiltinPseudoSQL4BindLock is used to simulate LOCK TABLE for mysql.bind_info.
Disabled is the bind info's in disabled status.
Enabled is the bind info's in enabled status.
History indicate the binding is created from statement summary by plan digest.
LockBindInfoSQL simulates LOCK TABLE by updating a same row in each pessimistic transaction.
Manual indicates the binding is created by SQL like "create binding for ...".
OwnerKey is the bindinfo owner path that is saved to etcd.
Prompt is the prompt for bindinfo owner manager.
SessionBindInfoKeyType is a variable key for store session bind info.
StmtRemoveDuplicatedPseudoBinding is used to remove duplicated pseudo binding.
Using is the bind info's in use status.

# Variables

GetGlobalBindingHandle is a function to get the global binding handle.
Lease influences the duration of loading bind info and handling invalid bind.

# Structs

Binding stores the basic bind hint info.
BindingMatchInfo records necessary information for cross-db binding matching.

# Interfaces

BindingCache is the interface for the cache of the SQL plan bindings.
GlobalBindingHandle is used to handle all global sql bind operations.
SessionBindingHandle is used to handle all session sql bind operations.