Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 `METRICS_SCHEMA` database name. MetricSchemaName = "METRICS_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 table filter in the style of MySQL replication rules.
func (*Filter) Apply ¶
Apply 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
func (*Filter) ApplyOn ¶
ApplyOn applies filter rules on tables and convert schema/table name to lower case if not caseSensitive 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 Deprecated