pub struct SqlTableRef { /* private fields */ }Expand description
SQL table reference metadata.
Implementations§
Source§impl SqlTableRef
impl SqlTableRef
Sourcepub const fn new(name: SqlTableName) -> Self
pub const fn new(name: SqlTableName) -> Self
Creates a table reference from a table name.
Sourcepub fn with_schema(self, schema: SqlSchemaName) -> Self
pub fn with_schema(self, schema: SqlSchemaName) -> Self
Adds schema qualification.
Sourcepub fn with_alias(self, alias: SqlTableAlias) -> Self
pub fn with_alias(self, alias: SqlTableAlias) -> Self
Adds a table alias.
Sourcepub const fn schema(&self) -> Option<&SqlSchemaName>
pub const fn schema(&self) -> Option<&SqlSchemaName>
Returns the optional schema name.
Sourcepub const fn name(&self) -> &SqlTableName
pub const fn name(&self) -> &SqlTableName
Returns the table name.
Sourcepub const fn alias(&self) -> Option<&SqlTableAlias>
pub const fn alias(&self) -> Option<&SqlTableAlias>
Returns the optional alias.
Trait Implementations§
Source§impl Clone for SqlTableRef
impl Clone for SqlTableRef
Source§fn clone(&self) -> SqlTableRef
fn clone(&self) -> SqlTableRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SqlTableRef
impl Debug for SqlTableRef
Source§impl Display for SqlTableRef
impl Display for SqlTableRef
Source§impl Hash for SqlTableRef
impl Hash for SqlTableRef
Source§impl Ord for SqlTableRef
impl Ord for SqlTableRef
Source§fn cmp(&self, other: &SqlTableRef) -> Ordering
fn cmp(&self, other: &SqlTableRef) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SqlTableRef
impl PartialEq for SqlTableRef
Source§fn eq(&self, other: &SqlTableRef) -> bool
fn eq(&self, other: &SqlTableRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SqlTableRef
impl PartialOrd for SqlTableRef
impl Eq for SqlTableRef
impl StructuralPartialEq for SqlTableRef
Auto Trait Implementations§
impl Freeze for SqlTableRef
impl RefUnwindSafe for SqlTableRef
impl Send for SqlTableRef
impl Sync for SqlTableRef
impl Unpin for SqlTableRef
impl UnsafeUnpin for SqlTableRef
impl UnwindSafe for SqlTableRef
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