pub struct ResolvedColumn {
pub table_name: String,
pub column_name: String,
pub column_index: usize,
pub resolved_type: ResolvedType,
}Expand description
A resolved column reference with full metadata.
Contains all information needed to access a column after name resolution, including the table name, column name, column index (for efficient access), and the resolved type.
§Examples
use alopex_sql::planner::name_resolver::ResolvedColumn;
use alopex_sql::planner::types::ResolvedType;
let resolved = ResolvedColumn {
table_name: "users".to_string(),
column_name: "id".to_string(),
column_index: 0,
resolved_type: ResolvedType::Integer,
};
assert_eq!(resolved.table_name, "users");
assert_eq!(resolved.column_index, 0);Fields§
§table_name: StringThe table name containing this column.
column_name: StringThe column name.
column_index: usizeThe index of the column in the table’s column list (0-based).
resolved_type: ResolvedTypeThe resolved type of the column.
Trait Implementations§
Source§impl Clone for ResolvedColumn
impl Clone for ResolvedColumn
Source§fn clone(&self) -> ResolvedColumn
fn clone(&self) -> ResolvedColumn
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 ResolvedColumn
impl Debug for ResolvedColumn
Source§impl PartialEq for ResolvedColumn
impl PartialEq for ResolvedColumn
impl Eq for ResolvedColumn
impl StructuralPartialEq for ResolvedColumn
Auto Trait Implementations§
impl Freeze for ResolvedColumn
impl RefUnwindSafe for ResolvedColumn
impl Send for ResolvedColumn
impl Sync for ResolvedColumn
impl Unpin for ResolvedColumn
impl UnwindSafe for ResolvedColumn
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