package
2.1.0-rc.2+incompatible
Repository: https://github.com/coderushing/tidb.git
Documentation: pkg.go.dev
# Functions
BootstrapSession runs the first time when the TiDB server start.
Compile is safe for concurrent use by multiple goroutines.
CreateSession creates a new session environment.
CreateSession4Test creates a new session environment for test.
DialPumpClientWithRetry tries to dial to binlogSocket, if any error happens, it will try to re-dial, or return this error when timeout.
GetDomain gets the associated domain for store.
GetHistory get all stmtHistory in current txn.
GetRows4Test gets all the rows from a RecordSet, only used for test.
IsQuery checks if a sql statement is a query statement.
NewStore creates a kv Storage with path.
Parse parses a query string to raw ast.StmtNode.
RegisterStore registers a kv storage with unique name and its associated Driver.
SetSchemaLease changes the default schema lease time for DDL.
SetStatsLease changes the default stats lease time for loading stats info.
# Constants
CreateColumnPrivTable is the SQL statement creates column scope privilege table in system db.
CreateDBPrivTable is the SQL statement creates DB scope privilege table in system db.
CreateGCDeleteRangeDoneTable stores schemas which are already deleted by DeleteRange.
CreateGCDeleteRangeTable stores schemas which can be deleted by DeleteRange.
CreateGloablVariablesTable is the SQL statement creates global variable table in system db.
CreateHelpTopic is the SQL statement creates help_topic table in system db.
CreateStatsBucketsTable stores the histogram info for every table columns.
CreateStatsColsTable stores the statistics of table columns.
CreateStatsFeedbackTable stores the feedback info which is used to update stats.
CreateStatsMetaTable stores the meta of table statistics.
CreateTablePrivTable is the SQL statement creates table scope privilege table in system db.
CreateTiDBTable is the SQL statement creates a table in system db.
CreateUserTable is the SQL statement creates User table in system db.
# Variables
SchemaChangedWithoutRetry is used for testing.
# Structs
StmtHistory holds all histories of statements in a txn.
TxnState wraps kv.Transaction to provide a new kv.Transaction.
# Interfaces
Session context.