pub struct TableName { /* private fields */ }Expand description
SQL Server table name.
Implementations§
Source§impl TableName
impl TableName
Sourcepub fn new(schema: impl Into<String>, table: impl Into<String>) -> Result<Self>
pub fn new(schema: impl Into<String>, table: impl Into<String>) -> Result<Self>
Creates a schema-qualified table name.
Sourcepub fn unqualified(table: impl Into<String>) -> Result<Self>
pub fn unqualified(table: impl Into<String>) -> Result<Self>
Creates an unqualified table name.
Sourcepub fn schema(&self) -> Option<&Identifier>
pub fn schema(&self) -> Option<&Identifier>
Returns the optional schema identifier.
Sourcepub fn table(&self) -> &Identifier
pub fn table(&self) -> &Identifier
Returns the table identifier.
Sourcepub fn quoted_sql(&self) -> String
pub fn quoted_sql(&self) -> String
Renders the table name with bracket-quoted identifier parts.
Trait Implementations§
impl Eq for TableName
impl StructuralPartialEq for TableName
Auto Trait Implementations§
impl Freeze for TableName
impl RefUnwindSafe for TableName
impl Send for TableName
impl Sync for TableName
impl Unpin for TableName
impl UnsafeUnpin for TableName
impl UnwindSafe for TableName
Blanket Implementations§
impl<T> Allocation for T
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