package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
AutoIncrementIDKey decodes the auto inc table key.
AutoRandomTableIDKey encodes the auto random tableID key.
AutoTableIDKey decodes the auto tableID key.
DBkey encodes the dbID into dbKey.
DDLJobHistoryKey is only used for testing.
DecodeElement decodes values from a byte slice generated with an element.
DefaultGroupMeta4Test return the default group info for test usage.
ExtractSchemaAndTableNameFromJob extract schema_name and table_name from encoded Job structure Note, here we strongly rely on the order of fields in marshalled string, just like checkSubstringsInOrder Exported for test.
FastUnmarshalTableNameInfo is exported for testing.
GetOldestSchemaVersion gets the oldest schema version at the GC safe point.
GetTableInfoWithAttributes retrieves all the table infos for a given db.
IsAutoIncrementIDKey checks whether the key is auto increment key.
IsAutoRandomTableIDKey checks whether the key is auto random tableID key.
IsAutoTableIDKey checks whether the key is auto tableID key.
IsDBkey checks whether the dbKey comes from DBKey().
IsJobMatch examines whether given job's table/schema name matches.
IsSequenceKey checks whether the key is sequence key.
IsTableInfoMustLoad checks whether the table info needs to be loaded.
IsTableKey checks whether the tableKey comes from TableKey().
NewAutoIDAccessors creates a new AutoIDAccessors.
NewMutator creates a meta Mutator in transaction txn.
NewReader creates a meta Reader in snapshot.
ParseAutoIncrementIDKey decodes the tableID from the auto tableID key.
ParseAutoRandomTableIDKey decodes the tableID from the auto random tableID key.
ParseAutoTableIDKey decodes the tableID from the auto tableID key.
ParseDBKey decodes the dbkey to get dbID.
ParseSequenceKey decodes the tableID from the sequence key.
ParseTableKey decodes the tableKey to get tableID.
SequenceKey encodes the sequence key.
TableKey encodes the tableID into tableKey.
Unescape is exported for testing.
# Constants
BackfillTableVersion is for support distributed reorg stage, it added tidb_background_subtask, tidb_background_subtask_history.
BaseDDLTableVersion is for support concurrent DDL, it added tidb_ddl_job, tidb_ddl_reorg and tidb_ddl_history.
CurrentMagicByteVer is the current magic byte version, used for future meta compatibility.
DDLNotifierTableVersion is for support ddl notifier, it added tidb_ddl_notifier.
InitDDLTableVersion is the original version.
MaxGlobalID reserves 1000 IDs.
MaxInt48 is the max value of int48.
MDLTableVersion is for support MDL tables.
NameExtractRegexp is exported for testing.
# Variables
ColumnElementKey is the key for column element.
ErrDBExists is the error for db exists.
ErrDBNotExists is the error for db not exists.
ErrDDLReorgElementNotExist is the error for reorg element not exists.
ErrInvalidString is the error for invalid string to parse.
ErrPolicyExists is the error for policy exists.
ErrPolicyNotExists is the error for policy not exists.
ErrResourceGroupExists is the error for resource group exists.
ErrResourceGroupNotExists is the error for resource group not exists.
ErrTableExists is the error for table exists.
ErrTableNotExists is the error for table not exists.
IndexElementKey is the key for index element.
# Structs
DailyRUStats keeps all the ru consumption statistics data.
Element has the information of the backfill job's type and ID.
GroupRUStats keeps the ru consumption statistics data.
HLastJobIterator is the iterator for gets the latest history.
Mutator is for handling meta information in a transaction.
RUStats keeps the lastest and second lastest DailyRUStats data.
# Interfaces
AccessorPicker is used to pick a type of auto ID accessor.
AutoIDAccessor represents the entry to retrieve/mutate auto IDs.
AutoIDAccessors represents all the auto IDs of a table.
LastJobIterator is the iterator for gets latest history.
Reader is the meta reader.
# Type aliases
DDLTableVersion is to display ddl related table versions.
ElementKeyType is a key type of the element.
JobListKeyType is a key type of the DDL job queue.
Option is for Mutator option.