Skip to main content

SqlBoundItem

Struct SqlBoundItem 

Source
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: bool

Whether 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: usize

Number 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: bool

A 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

Source

pub fn new( kind: SqlBoundItemKind, alias: Option<String>, (line, column): (usize, usize), ) -> Self

Trait Implementations§

Source§

impl Clone for SqlBoundItem

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SqlBoundItem

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for SqlBoundItem

Source§

impl PartialEq for SqlBoundItem

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SqlBoundItem

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.