pub struct SqlConjunctFact {
pub text: String,
pub cursor_columns: Vec<String>,
pub cursor_bound: Option<SqlCursorBound>,
pub cursor_optional: bool,
pub constant_true: bool,
pub bind_guard: bool,
}Fields§
§text: StringThe conjunct’s SQL tokens, folding only unquoted words and separating tokens.
cursor_columns: Vec<String>The columns it compares with a bind parameter as a keyset cursor (id > $1,
(a, b) > ($1, $2), or ($1 IS NULL OR id > $1)); empty for any other predicate.
cursor_bound: Option<SqlCursorBound>Which side of those columns the bind bounds; None when the conjunct is not a cursor.
cursor_optional: boolThe cursor can be switched off by a NULL bind (($1 IS NULL OR id > $1)), so it does not
bound the walk unconditionally.
constant_true: boolTRUE or 1 = 1: a conjunct a query builder seeds a WHERE with, which selects nothing.
bind_guard: boolA bind-only condition independent of every row, without calls or subqueries.
Trait Implementations§
Source§impl Clone for SqlConjunctFact
impl Clone for SqlConjunctFact
Source§impl Debug for SqlConjunctFact
impl Debug for SqlConjunctFact
impl Eq for SqlConjunctFact
Source§impl PartialEq for SqlConjunctFact
impl PartialEq for SqlConjunctFact
impl StructuralPartialEq for SqlConjunctFact
Auto Trait Implementations§
impl Forget for SqlConjunctFact
impl Freeze for SqlConjunctFact
impl Move for SqlConjunctFact
impl RefUnwindSafe for SqlConjunctFact
impl Send for SqlConjunctFactwhere
RawVecInner: Send,
impl Sync for SqlConjunctFactwhere
RawVecInner: Sync,
impl Unpin for SqlConjunctFact
impl UnsafeUnpin for SqlConjunctFactwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for SqlConjunctFactwhere
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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