pub enum Collation {
Binary,
CaseInsensitive,
}Expand description
v7.17.0 Phase 2.5 — column-level text collation. Drives the
engine’s WHERE / GROUP BY equality routing for Value::Text.
Only two variants are modelled in v7.17:
Binary— byte-wise comparison (the SPG default; matches PGCOLLATE "C"/pg_catalog.defaultand MySQL*_bin).CaseInsensitive— ASCII case-folded comparison (like MySQL*_cicollations; PG has NO built-in collation of this name — round-761 audit: a nondeterministic ICU collation must be CREATEd there first). Non-ASCII bytes still compare byte-wise; full ICU folding is out of v7.17 scope. New variants append at the end — older catalogs read missing columns asBinary.
Variants§
Implementations§
Source§impl Collation
impl Collation
Sourcepub const TAG_BINARY: u8 = 0
pub const TAG_BINARY: u8 = 0
Wire tag persisted in the FILE_VERSION 34+ catalog appendix.
Stable: future variants append above the recognised range
and unknown tags read back as Binary for forward-compat
on rollback.
pub const TAG_CASE_INSENSITIVE: u8 = 1
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