pub enum Collation {
Binary,
CaseInsensitive,
}Expand description
v7.17.0 Phase 2.5 — text collation classification surfaced
from the SQL parser. Mirrors spg_storage::Collation; the
engine bridges between the two at CREATE TABLE time.
Recognised collation-name patterns (case-insensitive):
case_insensitive,*_ci,*_ai_ci,nocase→ CaseInsensitive- Everything else (
C,POSIX,default,pg_catalog.default,*_cs,*_bin, unknown names) → Binary
Variants§
Implementations§
Source§impl Collation
impl Collation
Sourcepub fn from_collation_name(name: &str) -> Self
pub fn from_collation_name(name: &str) -> Self
Classify a COLLATE <name> ident into one of the supported
variants. Empty / unknown names fall back to Binary —
matches the pre-2.5 silent-accept behaviour for snapshots
that load through but don’t actually depend on the
collation semantics.
Trait Implementations§
impl Copy for Collation
impl Eq for Collation
impl StructuralPartialEq for Collation
Auto Trait Implementations§
impl Freeze for Collation
impl RefUnwindSafe for Collation
impl Send for Collation
impl Sync for Collation
impl Unpin for Collation
impl UnsafeUnpin for Collation
impl UnwindSafe for Collation
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