pub struct TablePath(pub Option<String>, pub String);Expand description
Represents a (possibly fully qualified) table. It is specified by an optional schema and a table name.
Tuple Fields§
§0: Option<String>§1: StringImplementations§
Source§impl TablePath
impl TablePath
pub fn unqualified(relname: impl Into<String>) -> Self
Sourcepub fn qualified(
schemaname: impl Into<String>,
relname: impl Into<String>,
) -> Self
pub fn qualified( schemaname: impl Into<String>, relname: impl Into<String>, ) -> Self
Qualify the path with the given schema
Note that if schemaname is an empty string, it will be set to None.
This is handy as Query ASTs often represent null schema as an empty string.
pub fn as_string(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TablePath
impl<'de> Deserialize<'de> for TablePath
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq<TablePath> for TableConfig
impl PartialEq<TablePath> for TableConfig
impl Eq for TablePath
Auto Trait Implementations§
impl Freeze for TablePath
impl RefUnwindSafe for TablePath
impl Send for TablePath
impl Sync for TablePath
impl Unpin for TablePath
impl UnwindSafe for TablePath
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