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

# Functions

GenContextID generates a unique context ID.
NewFuncWarnAppenderForTest creates a `WarnHandler` which will use the function to handle warn To have a better performance, it's not suggested to use this function in production.
NewPlanCacheTracker creates a new PlanCacheTracker.
NewRangeFallbackHandler creates a new RangeFallbackHandler.
NewStaticWarnHandler creates a new StaticWarnHandler.
NewStaticWarnHandlerWithHandler creates a new StaticWarnHandler with copying the warnings from the given WarnHandler.

# Constants

DefaultNoCache no cache.
SessionNonPrepared session non-prepared plan cache.
SessionPrepared session prepared plan cache.
WarnLevelError represents level "Error" for 'SHOW WARNINGS' syntax.
WarnLevelNote represents level "Note" for 'SHOW WARNINGS' syntax.
WarnLevelWarning represents level "Warning" for 'SHOW WARNINGS' syntax.

# Variables

IgnoreWarn is WarnHandler which does nothing.

# Structs

PlanCacheTracker PlanCacheTracker `PlanCacheTracker`.
RangeFallbackHandler is used to handle range fallback.
SQLWarn relates a sql warning and it's level.
StaticWarnHandler implements the WarnHandler interface.

# Interfaces

ValueStoreContext is a context that can store values.
WarnAppender provides a function to add a warning.
WarnHandler provides a handler to append and get warnings.
WarnHandlerExt includes more methods for WarnHandler.

# Type aliases

PlanCacheType is the flag of plan cache.