package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
AlterAutoIncrement rebase the table auto increment id
NOTE: since tidb can make sure the auto id is always be rebase even if the `incr` value is smaller than the auto increment base in tidb side, we needn't fetch currently auto increment value here.
AlterAutoRandom rebase the table auto random id.
DBFromConfig creates a new connection to the TiDB database.
DoChecksum do checksum for tables.
LoadSchemaInfo loads schema information from TiDB.
MaybeCleanupAllMetas remove the meta schema if there is no unfinished tables.
NewCDCPITRCheckItem creates a checker to check downstream has enabled CDC or PiTR.
NewCheckpointCheckItem creates a new checkpointCheckItem.
NewChecksumManager creates a new checksum manager.
NewClusterResourceCheckItem creates a new clusterResourceCheckItem.
NewClusterVersionCheckItem creates a new clusterVersionCheckItem.
NewCSVHeaderCheckItem creates a new csvHeaderCheckItem.
NewEmptyRegionCheckItem creates a new emptyRegionCheckItem.
NewImportController creates a new Controller instance.
NewImportControllerWithPauser creates a new Controller instance with a pauser.
NewLargeFileCheckItem creates a new largeFileCheckItem.
NewLocalDiskPlacementCheckItem creates a new localDiskPlacementCheckItem.
NewLocalTempKVDirCheckItem creates a new localTempKVDirCheckItem.
NewPDTiDBFromSameClusterCheckItem creates a new pdTiDBFromSameClusterCheckItem.
NewPrecheckItemBuilder creates a new PrecheckItemBuilder.
NewPrecheckItemBuilderFromConfig creates a new PrecheckItemBuilder from config pdHTTPCli **must not** be nil for local backend.
NewPreImportInfoGetter creates a PreImportInfoGetterImpl object.
NewRegionDistributionCheckItem creates a new regionDistributionCheckItem.
NewSchemaCheckItem creates a checker to check whether the schema is valid.
NewSimpleTemplate returns a simple template.
NewStoragePermissionCheckItem creates a new storagePermissionCheckItem.
NewTableEmptyCheckItem creates a new tableEmptyCheckItem.
NewTableImporter creates a new TableImporter.
NewTargetInfoGetterImpl creates a TargetInfoGetterImpl object.
NewTiDBManager creates a new TiDB manager.
NewTiDBManagerWithDB creates a new TiDB manager with an existing database connection.
ObtainImportantVariables obtains the important variables from TiDB.
ObtainNewCollationEnabled obtains the new collation enabled status from TiDB.
RemoveTableMetaByTableName remove table meta by table name.
WithPrecheckKey returns a new context with the given key and value.
WithPreInfoGetterDBMetas returns a new context with the specified dbMetas.
# Constants
CreateTableMetadataTable stores the per-table sub jobs information used by TiDB Lightning.
CreateTaskMetaTable stores the pre-lightning metadata used by TiDB Lightning.
compact levels.
compact levels.
task related table names and create table statements.
task related table names and create table statements.
# Variables
DeliverPauser is a shared pauser to pause progress to (*chunkProcessor).encodeLoop.
ErrDuplicateKey is an error class for duplicate key error.
# Structs
CDCPITRCheckItem check downstream has enabled CDC or PiTR.
Controller controls the whole import process.
ControllerParam contains many parameters for creating a Controller.
EstimateSourceDataSizeResult is the object for estimated data size result.
LightningStatus provides the finished bytes and total bytes of the current task.
PrecheckItemBuilder is used to build precheck items.
PreImportInfoGetterImpl implements the operations to get information used in importing preparation.
SimpleTemplate is a simple template for lightning check.
TableImporter is a helper struct to import a table.
TargetInfoGetterImpl implements the operations to get information from the target.
TiDBManager is a wrapper of *sql.DB which provides some helper methods for.
# Interfaces
PreImportInfoGetter defines the operations to get information from sources and target.
TargetInfoGetter defines the operations to get information from target.
Template is the interface for lightning check.