Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DMHeartbeatSchema is the heartbeat schema name DMHeartbeatSchema = "DM_HEARTBEAT" // DMHeartbeatTable is heartbeat table name DMHeartbeatTable = "HEARTBEAT" // InformationSchemaName is the `INFORMATION_SCHEMA` database name. InformationSchemaName = "INFORMATION_SCHEMA" // PerformanceSchemaName is the `PERFORMANCE_SCHEMA` database name. PerformanceSchemaName = "PERFORMANCE_SCHEMA" // MetricSchemaName is the `METRIC_SCHEMA` database name. MetricSchemaName = "METRIC_SCHEMA" // InspectionSchemaName is the `INSPECTION_SCHEMA` database name InspectionSchemaName = "INSPECTION_SCHEMA" )
Functions ¶
func IsSystemSchema ¶
IsSystemSchema checks whether schema is system schema or not. case insensitive
Types ¶
type ActionType ¶
type ActionType bool
ActionType is do or ignore something
const ( Do ActionType = true Ignore ActionType = false )
builtin actiontype variable
type Filter ¶
Filter implements whitelist and blacklist filters.
func (*Filter) ApplyOn ¶
ApplyOn applies filter rules on tables rules like https://dev.mysql.com/doc/refman/8.0/en/replication-rules-table-options.html https://dev.mysql.com/doc/refman/8.0/en/replication-rules-db-options.html
type Rules ¶
type Rules struct { DoTables []*Table `json:"do-tables" toml:"do-tables" yaml:"do-tables"` DoDBs []string `json:"do-dbs" toml:"do-dbs" yaml:"do-dbs"` IgnoreTables []*Table `json:"ignore-tables" toml:"ignore-tables" yaml:"ignore-tables"` IgnoreDBs []string `json:"ignore-dbs" toml:"ignore-dbs" yaml:"ignore-dbs"` }
Rules contains Filter rules.
Click to show internal directories.
Click to hide internal directories.