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

# Packages

# Functions

CallWithSCtx allocates a sctx from the pool and call the f().
DurationToTS converts duration to timestamp.
Exec is a helper function to execute sql and return RecordSet.
ExecRows is a helper function to execute sql and return rows and fields.
ExecRowsWithCtx is a helper function to execute sql and return rows and fields.
ExecWithCtx is a helper function to execute sql and return RecordSet.
ExecWithOpts is a helper function to execute sql and return rows and fields.
GetCurrentPruneMode returns the current latest partitioning table prune mode.
GetStartTS gets the start ts from current transaction.
IsSpecialGlobalIndex checks a index is a special global index or not.
NewAutoAnalyzeTracker creates a new AutoAnalyzeTracker.
NewGenerator creates a new Generator.
NewLeaseGetter creates a new LeaseGetter.
NewPool creates a new Pool.
NewTableInfoGetter creates a TableInfoGetter.
UpdateSCtxVarsForStats updates all necessary variables that may affect the behavior of statistics.
WrapTxn uses a transaction here can let different SQLs in this operation have the same data visibility.

# Constants

StatsMetaHistorySourceAnalyze indicates stats history meta source from analyze.
StatsMetaHistorySourceExtendedStats indicates stats history meta source from extended stats.
StatsMetaHistorySourceFlushStats indicates stats history meta source from flush stats.
StatsMetaHistorySourceLoadStats indicates stats history meta source from load stats.
StatsMetaHistorySourceSchemaChange indicates stats history meta source from schema change.

# Variables

FlagWrapTxn indicates whether to wrap a transaction.
GlobalAutoAnalyzeProcessList is used to track the auto analyze process.
StatsCtx is used to mark the request is from stats module.
UseCurrentSessionOpt to make sure the sql is executed in current session.

# Structs

AutoAnalyzeTracker is used to track the auto analyze process.

# Interfaces

AutoAnalyzeProcIDGenerator is used to generate auto analyze proc ID.
LeaseGetter is used to get the stats lease.
Pool is used to reuse goroutine and session.
TableInfoGetter is used to get table meta info.