package
2.1.0-rc.2+incompatible
Repository: https://github.com/coderushing/tidb.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

DeleteKeyFromEtcd deletes key value from etcd.
MockTableInfo mocks a table info by create table stmt ast and a specified table id.
NewDDL creates a new DDL.
NewMockSchemaSyncer creates a new mock SchemaSyncer.
NewSchemaSyncer creates a new SchemaSyncer.
PutKVToEtcd puts key value to etcd.

# Constants

DDLAllSchemaVersions is the path on etcd that is used to store all servers current schema versions.
DDLGlobalSchemaVersion is the path on etcd that is used to store the latest schema versions.
DDLOwnerKey is the ddl owner path that is saved to etcd, and it's exported for testing.
DefaultTaskHandleCnt is default batch size of adding indices.
InitialVersion is the initial schema version for every server.

# Variables

CheckVersFirstWaitTime is a waitting time before the owner checks all the servers of the schema version, and it's an exported variable for testing.
EnableSplitTableRegion is a flag to decide whether to split a new region for a newly created table.
ErrCantDropFieldOrKey returns for dropping a non-existent field or key.
ErrCantRemoveAllFields returns for deleting all columns.
ErrColumnBadNull returns for a bad null value.
ErrDropLastPartition returns cannot remove all partitions, use drop table instead.
ErrDropPartitionNonExistent returns error in list of partition.
ErrDupKeyName returns for duplicated key name.
ErrInvalidColumnState returns for invalid column state.
ErrInvalidDBState returns for invalid database state.
ErrInvalidForeignKeyState returns for invalid foreign key state.
ErrInvalidIndexState returns for invalid index state.
ErrInvalidOnUpdate returns for invalid ON UPDATE clause.
ErrInvalidTableState returns for invalid Table state.
ErrNotAllowedTypeInPartition returns not allowed type error when creating table partiton with unsupport expression type.
ErrPartitionFuncNotAllowed returns partition function returns the wrong type.
ErrPartitionFunctionIsNotAllowed returns this partition function is not allowed.
ErrPartitionMaxvalue returns maxvalue can only be used in last partition definition.
ErrPartitionMgmtOnNonpartitioned returns it's not a partition table.
ErrPartitionsMustBeDefined returns each partition must be defined.
ErrPrimaryCantHaveNull returns All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead.
ErrRangeNotIncreasing returns values less than value must be strictly increasing for each partition.
ErrSameNamePartition returns duplicate partition name.
ErrTableMustHaveColumns returns for missing column when creating a table.
ErrTooLongIdent returns for too long name of database/table/column/index.
ErrTooManyPartitions returns too many partitions were defined.
ErrTooManyValues returns cannot have more than one value for this type of partitioning.
ErrUniqueKeyNeedAllFieldsInPf returns must include all columns in the table's partitioning function.
ErrUnknownCharacterSet returns unknown character set.
ErrUnsupportedModifyPrimaryKey returns an error when add or drop the primary key.
ErrWrongColumnName returns for wrong column name.
ErrWrongDBName returns for wrong database name.
ErrWrongNameForIndex returns for wrong index name.
ErrWrongTableName returns for wrong table name.
PartitionCountLimit is limit of the number of partitions in a table.
ReorgWaitTimeout is the timeout that wait ddl in write reorganization stage.
RunWorker indicates if this TiDB server starts DDL worker and can run DDL job.
SyncerSessionTTL is the etcd session's TTL in seconds.
TableColumnCountLimit is limit of the number of columns in a table.
WaitTimeWhenErrorOccured is waiting interval when processing DDL jobs encounter errors.

# Structs

BaseCallback implements Callback.OnChanged interface.
BaseInterceptor implements Interceptor.

# Interfaces

Callback is used for DDL.
DDL is responsible for updating schema in data store and maintaining in-memory InfoSchema cache.
Interceptor is used for DDL.
SchemaSyncer is used to synchronize schema version between the DDL worker leader and followers through etcd.