package
1.1.0-alpha
Repository: https://github.com/oiooj/tidb.git
Documentation: pkg.go.dev

# Functions

CompileExecutePreparedStmt compiles a session Execute command to a stmt.Statement.
GetFieldsFromLine splits line according to fieldsInfo, this function is exported for testing.
GetInfoSchema gets TxnCtx InfoSchema if snapshot schema is not set, Otherwise, snapshot schema is returned.
IsPointGetWithPKOrUniqueKeyByAutoCommit returns true when meets following conditions: 1.
NewLoadDataInfo returns a LoadDataInfo structure, and it's only used for tests now.
ResetStmtCtx resets the StmtContext.
StatementLabel generates a label for a statement.

# Constants

AlterTable represents alter table statements.
AnalyzeTable represents analyze table statements.
Begin represents begin statements.
MySQL error code.
MySQL error code.
Commit represents commit statements.
CreateDatabase represents create database statements.
CreateIndex represents create index statements.
CreateTable represents create table statements.
CreateUser represents create user statements.
Delete represents delete statements.
DropDatabase represents drop database statements.
DropIndex represents drop index statements.
DropTable represents drop table statements.
Explain represents explain statements.
Grant represents grant statements.
IGNORE is a special label to identify the situations we want to ignore.
Insert represents insert statements.
LoadDataStmt represents load data statements.
LoadDataVarKey is a variable key for load data.
Replace represents replace statements.
Revoke represents revoke statements.
RollBack represents roll back statements.
Select represents select statements.
Set represents set statements.
Show represents show statements.
TruncateTable represents truncate table statements.
Update represents update statements.

# Variables

BatchDeleteSize is the batch size of auto-splitted delete data.
BatchInsertSize is the batch size of auto-splitted insert data.
Error instances.
Error instances.
Error instances.
Error instances.
Error instances.
Error instances.
Error instances.
Error instances.
LookupTableTaskChannelSize represents the channel size of the index double read taskChan.

# Structs

AnalyzeColumnsExec represents Analyze columns push down executor.
AnalyzeExec represents Analyze executor.
AnalyzeIndexExec represents analyze index push down executor.
ApplyJoinExec is the new logic of apply.
CacheExec represents Cache executor.
CancelDDLJobsExec represents a cancel DDL jobs executor.
CheckTableExec represents a check table executor.
Compiler compiles an ast.StmtNode to a physical plan.
DDLExec represents a DDL executor.
DeallocateExec represent a DEALLOCATE executor.
DeleteExec represents a delete executor.
ExecStmt implements the ast.Statement interface, it builds a plan.Plan to an ast.Statement.
ExecuteExec represents an EXECUTE executor.
ExistsExec represents exists executor.
ExplainExec represents an explain executor.
GrantExec executes GrantStmt.
HashAggExec deals with all the aggregate functions.
HashJoinExec implements the hash join algorithm.
HashSemiJoinExec implements the hash join algorithm for semi join.
IndexLookUpExecutor implements double read for index scan.
IndexLookUpJoin fetches batches of data from outer executor and constructs ranges for inner executor.
IndexReaderExecutor sends dag request and reads index data from kv layer.
InsertExec represents an insert executor.
InsertValues is the data to insert.
LimitExec represents limit executor It ignores 'Offset' rows from src, then returns 'Count' rows at maximum.
LoadData represents a load data executor.
LoadDataInfo saves the information of loading data operation.
MaxOneRowExec checks if the number of rows that a query returns is at maximum one.
MergeJoinExec implements the merge join algorithm.
NestedLoopJoinExec implements nested-loop algorithm for join.
PrepareExec represents a PREPARE executor.
ProjectionExec represents a select fields executor.
ReplaceExec represents a replace executor.
RevokeExec executes RevokeStmt.
SelectionExec represents a filter executor.
SelectLockExec represents a select lock executor.
SetExecutor executes set statement.
ShowDDLExec represents a show DDL executor.
ShowDDLJobsExec represent a show DDL jobs executor.
ShowExec represents a show executor.
SimpleExec represents simple statement executor.
SortExec represents sorting executor.
StreamAggExec deals with all the aggregate functions.
TableDualExec represents a dual table executor.
TableReaderExecutor sends dag request and reads table data from kv layer.
TableScanExec is a table scan executor without result fields.
TopNExec implements a Top-N algorithm and it is built from a SELECT statement with ORDER BY and LIMIT.
UnionExec represents union executor.
UnionScanExec merges the rows from dirty table and the rows from XAPI request.
UpdateExec represents a new update executor.
XSelectIndexExec represents the DistSQL select index executor.
XSelectTableExec represents the DistSQL select table executor.

# Interfaces

Closeable is a interface for closeable structures.
DataReader can send requests which ranges are constructed by datums.
Executor executes a query.

# Type aliases

Row represents a result set row, it may be returned from a table, a join, or a projection.