pub struct SqlNamespace { /* private fields */ }Expand description
Generic SQL namespace metadata.
Implementations§
Source§impl SqlNamespace
impl SqlNamespace
Sourcepub const fn new(schema: SqlSchemaName) -> Self
pub const fn new(schema: SqlSchemaName) -> Self
Creates namespace metadata from a schema name.
Sourcepub fn with_database(self, database: SqlDatabaseName) -> Self
pub fn with_database(self, database: SqlDatabaseName) -> Self
Adds a database/catalog qualifier.
Sourcepub const fn database(&self) -> Option<&SqlDatabaseName>
pub const fn database(&self) -> Option<&SqlDatabaseName>
Returns the optional database/catalog name.
Sourcepub const fn schema(&self) -> &SqlSchemaName
pub const fn schema(&self) -> &SqlSchemaName
Returns the schema name.
Trait Implementations§
Source§impl Clone for SqlNamespace
impl Clone for SqlNamespace
Source§fn clone(&self) -> SqlNamespace
fn clone(&self) -> SqlNamespace
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 SqlNamespace
impl Debug for SqlNamespace
Source§impl Display for SqlNamespace
impl Display for SqlNamespace
Source§impl Hash for SqlNamespace
impl Hash for SqlNamespace
Source§impl Ord for SqlNamespace
impl Ord for SqlNamespace
Source§fn cmp(&self, other: &SqlNamespace) -> Ordering
fn cmp(&self, other: &SqlNamespace) -> 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 SqlNamespace
impl PartialEq for SqlNamespace
Source§fn eq(&self, other: &SqlNamespace) -> bool
fn eq(&self, other: &SqlNamespace) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SqlNamespace
impl PartialOrd for SqlNamespace
impl Eq for SqlNamespace
impl StructuralPartialEq for SqlNamespace
Auto Trait Implementations§
impl Freeze for SqlNamespace
impl RefUnwindSafe for SqlNamespace
impl Send for SqlNamespace
impl Sync for SqlNamespace
impl Unpin for SqlNamespace
impl UnsafeUnpin for SqlNamespace
impl UnwindSafe for SqlNamespace
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