package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
CheckClusterVersion check TiKV version.
CheckTiDBVersion is equals to ExtractTiDBVersion followed by CheckVersion.
CheckVersion checks if the actual version is within [requiredMinVersion, requiredMaxVersion).
CheckVersionForBackup checks the version for backup and.
CheckVersionForBR checks whether version of the cluster and BR itself is compatible.
CheckVersionForBRPiTR checks whether version of the cluster and BR-pitr itself is compatible.
CheckVersionForDDL checks whether we use queue or table to execute ddl during restore.
CheckVersionForKeyspaceBR checks whether the cluster is support Backup/Restore keyspace data.
ExtractTiDBVersion extracts TiDB version from TiDB SQL `version()` outputs.
FetchVersion gets the version information from the database server
NOTE: the executed query will be: - `select tidb_version()` if target db is tidb - `select version()` if target db is not tidb.
NextMajorVersion returns the next major version.
NormalizeBackupVersion normalizes the version string from backupmeta.
ParseServerInfo parses exported server type and version info from version string.
# Constants
ServerTypeAll represents All server types.
ServerTypeMariaDB represents MariaDB server type.
ServerTypeMySQL represents MySQL server type.
ServerTypeTiDB represents TiDB server type.
ServerTypeUnknown represents unknown server type.
# Variables
Once TableInfoVersion updated.
# Structs
ServerInfo is the combination of ServerType and ServerInfo.
# Type aliases
VerChecker is a callback for the CheckClusterVersion, decides whether the cluster is suitable to execute restore.