Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnspecifiedServerVersion = vterrors.Errorf(vtrpcpb.Code_INTERNAL, "server version unspecified")
)
Functions ¶
func MySQLVersionHasCapability ¶
func MySQLVersionHasCapability(serverVersion string, capability FlavorCapability) (bool, error)
MySQLVersionHasCapability is specific to MySQL flavors (of all versions) and answers whether the given server version has the requested capability.
Types ¶
type CapableOf ¶
type CapableOf func(capability FlavorCapability) (bool, error)
func MySQLVersionCapableOf ¶
MySQLVersionCapableOf returns a CapableOf function specific to MySQL flavors
type FlavorCapability ¶
type FlavorCapability int
const ( NoneFlavorCapability FlavorCapability = iota // default placeholder FastDropTableFlavorCapability // supported in MySQL 8.0.23 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-23.html TransactionalGtidExecutedFlavorCapability // InstantDDLFlavorCapability // ALGORITHM=INSTANT general support InstantAddLastColumnFlavorCapability // InstantAddDropVirtualColumnFlavorCapability // InstantAddDropColumnFlavorCapability // Adding/dropping column in any position/ordinal. InstantChangeColumnDefaultFlavorCapability // InstantExpandEnumCapability // MySQLJSONFlavorCapability // JSON type supported MySQLUpgradeInServerFlavorCapability // DynamicRedoLogCapacityFlavorCapability // supported in MySQL 8.0.30 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-30.html DisableRedoLogFlavorCapability // supported in MySQL 8.0.21 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-21.html CheckConstraintsCapability // supported in MySQL 8.0.16 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-16.html PerformanceSchemaDataLocksTableCapability // supported in MySQL 8.0.1 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html InstantDDLXtrabackupCapability // Supported in 8.0.32 and above, solving a MySQL-vs-Xtrabackup bug starting 8.0.29 ReplicaTerminologyCapability // Supported in 8.0.26 and above, using SHOW REPLICA STATUS and all variations. )
Click to show internal directories.
Click to hide internal directories.