# Packages
No description provided by the author
# Functions
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.
# 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.
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.
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.
ErrTooLongIdent returns for too long name of database/table/column/index.
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.
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.
# Structs
BaseCallback implements Callback.OnChanged interface.
# Interfaces
Callback is the interface supporting callback function when DDL changed.
DDL is responsible for updating schema in data store and maintaining in-memory InfoSchema cache.
SchemaSyncer is used to synchronize schema version between the DDL worker leader and followers through etcd.