pub struct DefaultShardClassifier;Expand description
Default patterns for table classification when no config file provided
Implementations§
Source§impl DefaultShardClassifier
impl DefaultShardClassifier
Sourcepub const TENANT_COLUMNS: &'static [&'static str]
pub const TENANT_COLUMNS: &'static [&'static str]
Well-known tenant column names (in priority order)
Sourcepub const SYSTEM_PATTERNS: &'static [&'static str]
pub const SYSTEM_PATTERNS: &'static [&'static str]
Well-known system table patterns
Sourcepub const LOOKUP_PATTERNS: &'static [&'static str]
pub const LOOKUP_PATTERNS: &'static [&'static str]
Well-known lookup/global table patterns
Sourcepub fn is_system_table(table_name: &str) -> bool
pub fn is_system_table(table_name: &str) -> bool
Check if a table name matches system table patterns
Sourcepub fn is_lookup_table(table_name: &str) -> bool
pub fn is_lookup_table(table_name: &str) -> bool
Check if a table name matches lookup table patterns
Sourcepub fn is_junction_table_by_name(table_name: &str) -> bool
pub fn is_junction_table_by_name(table_name: &str) -> bool
Detect junction table by name pattern
Auto Trait Implementations§
impl Freeze for DefaultShardClassifier
impl RefUnwindSafe for DefaultShardClassifier
impl Send for DefaultShardClassifier
impl Sync for DefaultShardClassifier
impl Unpin for DefaultShardClassifier
impl UnwindSafe for DefaultShardClassifier
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more