Struct sql_insight::extractor::table_extractor::TableReference
source · pub struct TableReference {
pub catalog: Option<Ident>,
pub schema: Option<Ident>,
pub name: Ident,
pub alias: Option<Ident>,
}Expand description
TableReference represents a qualified table with alias.
In this crate, this is the canonical representation of a table.
Tables found during analyzing an AST are stored as TableReference.
Fields§
§catalog: Option<Ident>§schema: Option<Ident>§name: Ident§alias: Option<Ident>Implementations§
Trait Implementations§
source§impl Clone for TableReference
impl Clone for TableReference
source§fn clone(&self) -> TableReference
fn clone(&self) -> TableReference
Returns a copy 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 TableReference
impl Debug for TableReference
source§impl Display for TableReference
impl Display for TableReference
source§impl Hash for TableReference
impl Hash for TableReference
source§impl PartialEq for TableReference
impl PartialEq for TableReference
source§fn eq(&self, other: &TableReference) -> bool
fn eq(&self, other: &TableReference) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&ObjectName> for TableReference
impl TryFrom<&ObjectName> for TableReference
source§impl TryFrom<&TableFactor> for TableReference
impl TryFrom<&TableFactor> for TableReference
impl Eq for TableReference
impl StructuralPartialEq for TableReference
Auto Trait Implementations§
impl RefUnwindSafe for TableReference
impl Send for TableReference
impl Sync for TableReference
impl Unpin for TableReference
impl UnwindSafe for TableReference
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