pub struct IdCollation {
pub collation: String,
pub collated_columns: Vec<String>,
pub join_both_sides: bool,
}Expand description
Document ids are unique in the collation of their unique indexes, and an
engine only uses an index for a comparison made in the index’s
collation, so equality on an id column (IN, NOT IN), and an =,
!= or <> of a join’s ON on id columns, compares in that collation.
PHP: Utopia\Database\Builder\CollatesDocumentIds, with the using
builder’s COLLATION, isCollated() and collatesJoin().
Fields§
§collation: StringThe collation (NOCASE on SQLite, utf8_ci_ai on PostgreSQL).
collated_columns: Vec<String>The columns compared in it, by the last segment of their resolved
name (_uid, and _document where its index is collated).
join_both_sides: boolWhether a join comparison is collated only when both sides are id columns (PostgreSQL: a plain column such as a relationship key has an index in the default collation, which a collated comparison could not use), rather than when either is (SQLite).
Trait Implementations§
Source§impl Clone for IdCollation
impl Clone for IdCollation
Source§impl Debug for IdCollation
impl Debug for IdCollation
impl Eq for IdCollation
Source§impl PartialEq for IdCollation
impl PartialEq for IdCollation
impl StructuralPartialEq for IdCollation
Auto Trait Implementations§
impl Forget for IdCollation
impl Freeze for IdCollation
impl Move for IdCollation
impl RefUnwindSafe for IdCollation
impl Send for IdCollationwhere
RawVecInner: Send,
impl Sync for IdCollationwhere
RawVecInner: Sync,
impl Unpin for IdCollation
impl UnsafeUnpin for IdCollationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for IdCollationwhere
RawVecInner: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.