pub struct WhereScope<'a> { /* private fields */ }Expand description
The table a boolean expression is being read against.
Column references are qualified with sql_ref so that a predicate over a
relationship – which becomes a correlated EXISTS against another table –
can tell the two apart. Without the qualification a child column sharing a
parent column’s name would silently resolve to whichever PostgreSQL
preferred.
resolution is absent where a caller has no schema cache to hand, which is
how the mutation paths are called. A relationship predicate then reports
that it cannot be resolved rather than being read as a column.
Implementations§
Source§impl<'a> WhereScope<'a>
impl<'a> WhereScope<'a>
Sourcepub fn table(
schema: &str,
table: &str,
type_name: &str,
names: &'a NameOverrides,
) -> Self
pub fn table( schema: &str, table: &str, type_name: &str, names: &'a NameOverrides, ) -> Self
A scope over a table addressed by its qualified name.
Sourcepub fn for_caller(self, caller: Caller<'a>) -> Self
pub fn for_caller(self, caller: Caller<'a>) -> Self
Narrow what this scope’s predicates may reach to one caller.
Auto Trait Implementations§
impl<'a> Freeze for WhereScope<'a>
impl<'a> RefUnwindSafe for WhereScope<'a>
impl<'a> Send for WhereScope<'a>
impl<'a> Sync for WhereScope<'a>
impl<'a> Unpin for WhereScope<'a>
impl<'a> UnsafeUnpin for WhereScope<'a>
impl<'a> UnwindSafe for WhereScope<'a>
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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