Documentation
¶
Overview ¶
Package check provides various configuration and health checks that can be run for move operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CutoverOldName ¶ added in v0.15.0
CutoverOldName returns the name the move cutover renames a source table to (`<table>_old`). Unlike the migration package's utils.OldTableName, no truncation is applied — renameSafetyCheck instead rejects tables whose _old name would exceed MySQL's identifier limit before any rows are copied.
Types ¶
type Resources ¶
type Resources struct {
Sources []SourceResource
Targets []applier.Target
SourceTables []*table.TableInfo
CreateSentinel bool
// GTID, when true, opts the move into the experimental GTID-based change
// source. The configuration check uses this to additionally validate
// gtid_mode and enforce_gtid_consistency on every source.
GTID bool
// MoveEverything is true when no explicit table list was supplied (i.e.
// move.SourceTables is empty), so every table in each source database is
// being moved. The source_schema_consistency check uses this to decide
// whether to also require an identical table *set* across all sources: when
// moving everything, an extra/missing table on one shard is a drift error;
// when only a named subset is moved, tables outside that subset are ignored.
MoveEverything bool
}
Resources contains the resources needed for move checks
Click to show internal directories.
Click to hide internal directories.