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

# Functions

AllocateTaskID allocates a new unique ID for a statement execution.
NewStmtCtx creates a new statement context.
NewStmtCtxWithTimeZone creates a new StatementContext with the given timezone.
PushDownFlagsWithTypeFlagsAndErrLevels applies gets the related bits to push down flags with `type.Flags` and `errctx.LevelMap`.

# Constants

DefaultNoCache no cache.
ReferenceCountIsFrozen indicates the current StmtCtx is resetting, it'll refuse all the access from other sessions.
ReferenceCountNoReference indicates the current StmtCtx is not accessed by other sessions.
SessionNonPrepared session non-prepared plan cache.
SessionPrepared session prepared plan cache.
StmtExternalTSCacheKey is a variable for externalTS calculation/cache of one stmt.
StmtNowTsCacheKey is a variable for now/current_timestamp calculation/cache of one stmt.
StmtSafeTSCacheKey is a variable for safeTS calculation/cache of one stmt.

# Variables

DefaultStmtErrLevels is the default error levels for statement.

# Structs

ReservedRowIDAlloc is used to reserve autoID for the auto_increment column.
StatementContext contains variables for a statement.
StatsLoadResult indicates result for StatsLoad.
TableEntry presents table in db.
UsedStatsInfo is a map for recording the used stats during query.
UsedStatsInfoForTable records stats that are used during query and their information.

# Type aliases

PlanCacheType is the flag of plan cache.
ReferenceCount indicates the reference count of StmtCtx.
SQLWarn relates a sql warning and it's level.
StmtCacheKey represents the key type in the StmtCache.