pub struct ExprColumn {
pub nesting: usize,
pub table: usize,
pub column: usize,
}Expand description
A reference to a database column.
Used after lowering from the application schema to the database schema.
Fields§
§nesting: usizeQuery scope nesting level: 0 = current query, 1+ = higher scope queries.
table: usizeIndex into the table references vector for this column’s source relation.
For statements with multiple tables (SELECT with JOINs), this indexes into
the SourceTable::tables field to identify which specific table contains
this column. For single-target statements (INSERT, UPDATE), this is
typically 0 since these operations target only one relation at a time.
column: usizeThe index of the column in the table
Trait Implementations§
Source§impl Clone for ExprColumn
impl Clone for ExprColumn
Source§fn clone(&self) -> ExprColumn
fn clone(&self) -> ExprColumn
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExprColumn
impl Debug for ExprColumn
Source§impl From<&ExprColumn> for Expr
impl From<&ExprColumn> for Expr
Source§fn from(value: &ExprColumn) -> Self
fn from(value: &ExprColumn) -> Self
Converts to this type from the input type.
Source§impl From<ColumnId> for ExprColumn
impl From<ColumnId> for ExprColumn
Source§impl From<ExprColumn> for Expr
impl From<ExprColumn> for Expr
Source§fn from(value: ExprColumn) -> Self
fn from(value: ExprColumn) -> Self
Converts to this type from the input type.
Source§impl From<ExprColumn> for ExprReference
impl From<ExprColumn> for ExprReference
Source§fn from(value: ExprColumn) -> Self
fn from(value: ExprColumn) -> Self
Converts to this type from the input type.
Source§impl Hash for ExprColumn
impl Hash for ExprColumn
Source§impl PartialEq for ExprColumn
impl PartialEq for ExprColumn
impl Copy for ExprColumn
impl Eq for ExprColumn
impl StructuralPartialEq for ExprColumn
Auto Trait Implementations§
impl Freeze for ExprColumn
impl RefUnwindSafe for ExprColumn
impl Send for ExprColumn
impl Sync for ExprColumn
impl Unpin for ExprColumn
impl UnwindSafe for ExprColumn
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.