pub enum OwnedTableReference {
Bare {
table: String,
},
Partial {
schema: String,
table: String,
},
Full {
catalog: String,
schema: String,
table: String,
},
}Expand description
Represents a path to a table that may require further resolution that owns the underlying names
Variants§
Bare
An unqualified table reference, e.g. “table”
Partial
A partially resolved table reference, e.g. “schema.table”
Full
Fields
A fully resolved table reference, e.g. “catalog.schema.table”
Implementations§
source§impl OwnedTableReference
impl OwnedTableReference
sourcepub fn as_table_reference(&self) -> TableReference<'_>
pub fn as_table_reference(&self) -> TableReference<'_>
Return a TableReference view of this OwnedTableReference
Trait Implementations§
source§impl Clone for OwnedTableReference
impl Clone for OwnedTableReference
source§fn clone(&self) -> OwnedTableReference
fn clone(&self) -> OwnedTableReference
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 OwnedTableReference
impl Debug for OwnedTableReference
source§impl Display for OwnedTableReference
impl Display for OwnedTableReference
source§impl<'a> From<&'a OwnedTableReference> for TableReference<'a>
impl<'a> From<&'a OwnedTableReference> for TableReference<'a>
Convert OwnedTableReference into a TableReference. Somewhat
awkward to use but ‘idiomatic’: (&table_ref).into()
source§fn from(r: &'a OwnedTableReference) -> Self
fn from(r: &'a OwnedTableReference) -> Self
Converts to this type from the input type.
source§impl Hash for OwnedTableReference
impl Hash for OwnedTableReference
source§impl PartialEq<OwnedTableReference> for OwnedTableReference
impl PartialEq<OwnedTableReference> for OwnedTableReference
source§fn eq(&self, other: &OwnedTableReference) -> bool
fn eq(&self, other: &OwnedTableReference) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for OwnedTableReference
impl StructuralEq for OwnedTableReference
impl StructuralPartialEq for OwnedTableReference
Auto Trait Implementations§
impl RefUnwindSafe for OwnedTableReference
impl Send for OwnedTableReference
impl Sync for OwnedTableReference
impl Unpin for OwnedTableReference
impl UnwindSafe for OwnedTableReference
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.