package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
GetDefaultFilter gets the default table filter used in Lightning.
LoadGlobalConfig reads the arguments and fills in the GlobalConfig.
Must should be called after LoadGlobalConfig().
NewConfig creates a new Config.
NewConfigList creates a new ConfigList instance.
NewGlobalConfig creates a new GlobalConfig with default values.
ParseCharset parser character set for string.
# Constants
Charset constants.
BackendLocal is a constant for choosing the "Local" backup in the configuration.
BackendTiDB is a constant for choosing the "TiDB" backend in the configuration.
Charset constants.
CheckpointDriverFile is a constant for choosing the "File" checkpoint driver in the configuration.
CheckpointDriverMySQL is a constant for choosing the "MySQL" checkpoint driver in the configuration.
CheckpointOrigin keep checkpoint data unchanged.
CheckpointRemove remove checkpoint data.
CheckpointRename keep by rename checkpoint file/db according to task id.
CompressionGzip means gzip compression.
CompressionNone means no compression.
some constants.
constants for config items.
constants for config items.
constants for config items.
constants for config items.
constants for config items.
constants for config items.
constants for config items.
constants for config items.
constants for config items.
ErrorOnDup indicates using INSERT INTO to insert data for TiDB backend, which would violate PK or UNIQUE constraint when detecting duplicate.
Charset constants.
Charset constants.
IgnoreOnDup indicates using INSERT IGNORE INTO to insert data for TiDB backend.
ImportMode defines mode of import for tikv.
KVWriteBatchSize batch size when write to TiKV.
Charset constants.
some constants.
NoneOnDup does nothing when detecting duplicate.
NormalMode defines mode of normal for tikv.
PostOpLevel constants.
PostOpLevel constants.
PostOpLevel constants.
PausePDSchedulerScopeGlobal pause scheduler by remove global schedulers.
PausePDSchedulerScopeTable pause scheduler by adding schedule=deny label to target key range of the table.
some constants.
ReplaceOnDup indicates using REPLACE INTO to insert data for TiDB backend.
some constants.
SplitRegionSize is the default coprocessor.region-split-keys value before TiKV v8.4.0 See: https://github.com/tikv/tikv/blob/e030a0aae9622f3774df89c62f21b2171a72a69e/etc/config-template.toml#L360 lower the max-key-count to avoid tikv trigger region auto split.
Charset constants.
# Variables
BufferSizeScale is the factor of block buffer size.
static vars.
static vars.
static vars.
# Structs
Checkpoint is the config for checkpoint.
Config is the configuration.
Conflict is the config section for PK/UK conflict related configurations.
Cron is the config for cron.
CSVConfig is the config for CSV files.
DBStore is the database connection information.
Duration which can be deserialized from a TOML string.
FileRouteRule is the rule for routing files.
GlobalCheckpoint is the global configuration of checkpoint.
GlobalConfig is the global configuration of lightning.
GlobalImporter is the global configuration of tikv-importer.
GlobalLightning is the global configuration of lightning.
GlobalMydumper is the global configuration of mydumper.
GlobalPostRestore is the global configuration of post-restore.
GlobalTiDB is the global configuration of TiDB.
IgnoreColumns is the config for ignoring columns.
Lightning is the root configuration of lightning.
List is a goroutine-safe FIFO list of *Config, which supports removal from the middle.
MaxError configures the maximum number of acceptable errors per kind.
MydumperRuntime is the runtime config for mydumper.
PostRestore has some options which will be executed after kv restored.
Security is the config for security.
TikvImporter is the config for tikv-importer.
# Type aliases
AllIgnoreColumns is a slice of IgnoreColumns.
ByteSize is an alias of int64 which accepts human-friendly strings like '10G' when read from TOML.
Charset defines character set.
CheckpointKeepStrategy represents the strategy to keep checkpoint data.
CompressionType is the config type of compression algorithm.
DuplicateResolutionAlgorithm is the config type of how to resolve duplicates.
PausePDSchedulerScope the scope when pausing pd schedulers.
PostOpLevel represents the level of post-operation.
Routes is a alias of []*router.TableRule.
StringOrStringSlice can unmarshal a TOML string as string slice with one element.