package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
NewAddColumnEvent creates a SchemaChangeEvent whose type is ActionAddColumn.
NewAddIndexEvent creates a schema change event whose type is ActionAddIndex.
NewAddPartitionEvent creates a SchemaChangeEvent whose type is ActionAddPartition.
NewAddPartitioningEvent creates a SchemaChangeEvent whose type is ActionAlterTablePartitioning.
NewCreateTableEvent creates a SchemaChangeEvent whose type is ActionCreateTable.
NewDDLNotifier initializes the global DDLNotifier.
NewDropPartitionEvent creates a SchemaChangeEvent whose type is ActionDropTablePartition.
NewDropSchemaEvent creates a schema change event whose type is ActionDropSchema.
NewDropTableEvent creates a SchemaChangeEvent whose type is ActionDropTable.
NewExchangePartitionEvent creates a SchemaChangeEvent whose type is ActionExchangeTablePartition.
NewFlashbackClusterEvent creates a schema change event whose type is ActionFlashbackCluster.
NewModifyColumnEvent creates a SchemaChangeEvent whose type is ActionModifyColumn.
NewRemovePartitioningEvent creates a schema change event whose type is ActionRemovePartitioning.
NewReorganizePartitionEvent creates a SchemaChangeEvent whose type is ActionReorganizePartition.
NewTruncatePartitionEvent creates a SchemaChangeEvent whose type is ActionTruncateTablePartition.
NewTruncateTableEvent creates a SchemaChangeEvent whose type is ActionTruncateTable.
OpenTableStore opens a store on a created table `db`.`table`.
PubSchemeChangeToStore publishes schema changes to the store to notify subscribers on the Store.
# Constants
PriorityQueueHandlerID is used to update the priority queue.
StatsMetaHandlerID is used to update statistics system table.
TestHandlerID is used for testing only.
# Variables
ErrNotReadyRetryLater should be returned by a registered handler that is not ready to process the events.
ProcessEventsBatchSize is the number of events to process in a SQL query.
# Structs
DDLNotifier implements the subscription on DDL events.
MiniDBInfoForSchemaEvent is a mini version of DBInfo for DropSchemaEvent only.
MiniPartitionInfoForSchemaEvent is a mini version of PartitionInfo for DropSchemaEvent only.
MiniTableInfoForSchemaEvent is a mini version of TableInfo for DropSchemaEvent only.
SchemaChange is the Golang representation of the persistent data.
SchemaChangeEvent stands for a schema change event.
# Interfaces
ListResult is the result stream of a List operation.
Store is the (de)serialization and persistent layer.
# Type aliases
CloseFn is the function to release the resource.
HandlerID is the type of the persistent ID used to register a handler.
SchemaChangeHandler function is used by subscribers to handle the SchemaChangeEvent generated by the publisher (DDL module currently).