pub enum ReplicationFilterRule {
DoDb {
databases: ThinVec<Ident>,
meta: Meta,
},
IgnoreDb {
databases: ThinVec<Ident>,
meta: Meta,
},
DoTable {
tables: ThinVec<ObjectName>,
meta: Meta,
},
IgnoreTable {
tables: ThinVec<ObjectName>,
meta: Meta,
},
WildDoTable {
patterns: ThinVec<Literal>,
meta: Meta,
},
WildIgnoreTable {
patterns: ThinVec<Literal>,
meta: Meta,
},
RewriteDb {
pairs: ThinVec<RewriteDbPair>,
meta: Meta,
},
}Expand description
One rule of CHANGE REPLICATION FILTER (sql_yacc.yy filter_def).
Each rule’s parenthesized argument list may be empty (the () reset form, engine-valid
on mysql:8.4.10). The table forms require schema-qualified names (db.t — a bare t
is ER_PARSE_ERROR), so they carry ObjectNames; the wild forms take string patterns;
REPLICATE_REWRITE_DB takes (from, to) database pairs.
Variants§
DoDb
REPLICATE_DO_DB = (<db>, …) — replicate only the listed databases.
Fields
IgnoreDb
REPLICATE_IGNORE_DB = (<db>, …) — ignore the listed databases.
Fields
DoTable
REPLICATE_DO_TABLE = (<db.t>, …) — replicate only the listed (schema-qualified)
tables.
Fields
tables: ThinVec<ObjectName>The schema-qualified table names; empty for the () reset form.
IgnoreTable
REPLICATE_IGNORE_TABLE = (<db.t>, …) — ignore the listed (schema-qualified) tables.
Fields
tables: ThinVec<ObjectName>The schema-qualified table names; empty for the () reset form.
WildDoTable
REPLICATE_WILD_DO_TABLE = ('<pattern>', …) — replicate tables matching the wildcard
patterns.
Fields
WildIgnoreTable
REPLICATE_WILD_IGNORE_TABLE = ('<pattern>', …) — ignore tables matching the wildcard
patterns.
Fields
RewriteDb
REPLICATE_REWRITE_DB = ((<from>, <to>), …) — rewrite database names. Each pair is
doubly parenthesized (filter_db_pair_list); a single-paren (a, b) is
ER_PARSE_ERROR.
Fields
pairs: ThinVec<RewriteDbPair>The (from, to) rewrite pairs; empty for the () reset form.
Trait Implementations§
Source§impl Clone for ReplicationFilterRule
impl Clone for ReplicationFilterRule
Source§fn clone(&self) -> ReplicationFilterRule
fn clone(&self) -> ReplicationFilterRule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReplicationFilterRule
impl Debug for ReplicationFilterRule
Source§impl<'de> Deserialize<'de> for ReplicationFilterRule
impl<'de> Deserialize<'de> for ReplicationFilterRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ReplicationFilterRule
Source§impl Hash for ReplicationFilterRule
impl Hash for ReplicationFilterRule
Source§impl PartialEq for ReplicationFilterRule
impl PartialEq for ReplicationFilterRule
Source§impl Render for ReplicationFilterRule
impl Render for ReplicationFilterRule
Source§fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for ReplicationFilterRule
impl Serialize for ReplicationFilterRule
Source§impl Spanned for ReplicationFilterRule
impl Spanned for ReplicationFilterRule
impl StructuralPartialEq for ReplicationFilterRule
Auto Trait Implementations§
impl Freeze for ReplicationFilterRule
impl RefUnwindSafe for ReplicationFilterRule
impl Send for ReplicationFilterRule
impl Sync for ReplicationFilterRule
impl Unpin for ReplicationFilterRule
impl UnsafeUnpin for ReplicationFilterRule
impl UnwindSafe for ReplicationFilterRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DynAstExt for T
impl<T> DynAstExt for T
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&dyn Any for downcasting a node back to its concrete type.Source§fn dyn_clone(&self) -> Box<dyn DynAstExt>
fn dyn_clone(&self) -> Box<dyn DynAstExt>
Clone (whose
Self-returning signature cannot go through a vtable).Source§fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
PartialEq (whose &Self argument cannot go through a vtable). Equal
iff other holds the same concrete type and that type deems the values
equal; differently-typed nodes are never equal.