pub struct SqlBoundItem {Show 17 fields
pub kind: SqlBoundItemKind,
pub possible_temporary: Option<SqlPossibleTemporary>,
pub alias: Option<String>,
pub alias_explicit: bool,
pub column_aliases: Vec<String>,
pub line: usize,
pub column: usize,
pub pins: Vec<SqlBoundPin>,
pub predicate_conjuncts: Vec<Expr>,
pub alternative_predicates: Vec<Vec<Expr>>,
pub nonnull_columns: Vec<String>,
pub strict_nonnull_columns: Vec<String>,
pub pin_alternatives: usize,
pub rejected_alternatives: Vec<usize>,
pub lateral: bool,
pub lateral_reads: Vec<SqlBareRead>,
pub lateral_qualified_reads: Vec<SqlQualifiedRead>,
/* private fields */
}Expand description
One FROM item and the columns or index expressions the statement pins on it.
Fields§
§kind: SqlBoundItemKind§possible_temporary: Option<SqlPossibleTemporary>A request-local temporary relation whose identity needs catalog evidence.
alias: Option<String>The name columns are qualified by: the alias, else the table’s own (bare) name.
alias_explicit: boolWhether alias was written in SQL rather than filled from a relation name.
column_aliases: Vec<String>Positional column aliases as written; catalog column names are ambiguous when nonempty.
line: usize§column: usize§pins: Vec<SqlBoundPin>§predicate_conjuncts: Vec<Expr>Catalog-independent, table-local conjuncts from WHERE and restricting JOIN ON arms.
alternative_predicates: Vec<Vec<Expr>>Conjuncts that hold only inside one OR alternative, in alternative order.
nonnull_columns: Vec<String>Columns made non-null by raw = equality. Sound for every catalog type.
strict_nonnull_columns: Vec<String>Columns of unquoted lower, upper, or one-argument btrim.
Sound only for a text-family catalog column.
See docs/rules/postgres-bounded-statements-proof.md.
pin_alternatives: usizeNumber of disjunctive alternatives; every alternative must complete a unique key.
rejected_alternatives: Vec<usize>Alternatives that reject every row of this item, so they need no key.
lateral: boolA certain bare outer read in a LATERAL source; its driver ownership is unproven.
Qualified outer reads retain separate scope evidence for driver-dependent bounds.
lateral_reads: Vec<SqlBareRead>Bare columns of a LATERAL source that none of its own relations is known to own: it
reads the items before it when the catalog shows that none of their tables has them.
lateral_qualified_reads: Vec<SqlQualifiedRead>Schema-qualified reads which may name preceding LATERAL items.
Implementations§
Source§impl SqlBoundItem
impl SqlBoundItem
pub fn new( kind: SqlBoundItemKind, alias: Option<String>, _: (usize, usize), ) -> SqlBoundItem
Trait Implementations§
Source§impl Clone for SqlBoundItem
impl Clone for SqlBoundItem
Source§fn clone(&self) -> SqlBoundItem
fn clone(&self) -> SqlBoundItem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SqlBoundItem
impl Debug for SqlBoundItem
impl Eq for SqlBoundItem
Source§impl PartialEq for SqlBoundItem
impl PartialEq for SqlBoundItem
impl StructuralPartialEq for SqlBoundItem
Auto Trait Implementations§
impl Forget for SqlBoundItem
impl Freeze for SqlBoundItemwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SqlBoundItem>: Freeze,
PhantomData<SqlBoundOutput>: Freeze,
PhantomData<SqlGroupKey>: Freeze,
PhantomData<String>: Freeze,
PhantomData<SqlBoundPin>: Freeze,
PhantomData<Expr>: Freeze,
PhantomData<Vec<Expr>>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<SqlBareRead>: Freeze,
PhantomData<SqlQualifiedRead>: Freeze,
impl Move for SqlBoundItem
impl RefUnwindSafe for SqlBoundItem
impl Send for SqlBoundItem
impl Sync for SqlBoundItem
impl Unpin for SqlBoundItem
impl UnsafeUnpin for SqlBoundItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SqlBoundItem>: UnsafeUnpin,
PhantomData<SqlBoundOutput>: UnsafeUnpin,
PhantomData<SqlGroupKey>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<SqlBoundPin>: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
PhantomData<Vec<Expr>>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<SqlBareRead>: UnsafeUnpin,
PhantomData<SqlQualifiedRead>: UnsafeUnpin,
impl UnwindSafe for SqlBoundItemwhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
BoxRaw<ReplaceSelectElement>: UnwindSafe,
BoxRaw<DataType>: 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§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.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> ⓘ
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> ⓘ
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