pub struct ColumnRef {
pub schema: Option<Arc<str>>,
pub table: Option<Arc<str>>,
pub column: Arc<str>,
}Expand description
A reference to a column, possibly qualified with a table name and, for a
three-part schema.table.column reference, a leading database/schema name.
Fields§
§schema: Option<Arc<str>>Optional database/schema qualifier — the leading segment of a
three-part schema.table.column reference. None for bare and
table-qualified references.
table: Option<Arc<str>>Optional table (or alias) qualifier.
column: Arc<str>Column name.
Implementations§
Source§impl ColumnRef
impl ColumnRef
Sourcepub fn bare(column: impl Into<Arc<str>>) -> Self
pub fn bare(column: impl Into<Arc<str>>) -> Self
Create an unqualified column reference (column).
Sourcepub fn qualified(
table: impl Into<Arc<str>>,
column: impl Into<Arc<str>>,
) -> Self
pub fn qualified( table: impl Into<Arc<str>>, column: impl Into<Arc<str>>, ) -> Self
Create a table-qualified column reference (table.column).
Sourcepub fn schema_qualified(
schema: impl Into<Arc<str>>,
table: impl Into<Arc<str>>,
column: impl Into<Arc<str>>,
) -> Self
pub fn schema_qualified( schema: impl Into<Arc<str>>, table: impl Into<Arc<str>>, column: impl Into<Arc<str>>, ) -> Self
Create a schema-qualified column reference (schema.table.column).
The leading segment names the database/schema (e.g. main, temp, or
an attached database alias), matching SQLite’s three-part column syntax.
Trait Implementations§
impl Eq for ColumnRef
impl StructuralPartialEq for ColumnRef
Auto Trait Implementations§
impl Freeze for ColumnRef
impl RefUnwindSafe for ColumnRef
impl Send for ColumnRef
impl Sync for ColumnRef
impl Unpin for ColumnRef
impl UnsafeUnpin for ColumnRef
impl UnwindSafe for ColumnRef
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