pub struct SchemaRef { /* private fields */ }Expand description
A database schema reference.
Implementations§
Source§impl SchemaRef
impl SchemaRef
Sourcepub const fn new(schema: SchemaName) -> SchemaRef
pub const fn new(schema: SchemaName) -> SchemaRef
Creates a schema reference.
Sourcepub fn with_database(self, database: DatabaseName) -> SchemaRef
pub fn with_database(self, database: DatabaseName) -> SchemaRef
Adds a database/catalog qualifier.
Sourcepub const fn database(&self) -> Option<&DatabaseName>
pub const fn database(&self) -> Option<&DatabaseName>
Returns the optional database/catalog name.
Sourcepub const fn schema(&self) -> &SchemaName
pub const fn schema(&self) -> &SchemaName
Returns the schema name.
Trait Implementations§
Source§impl Ord for SchemaRef
impl Ord for SchemaRef
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 PartialOrd for SchemaRef
impl PartialOrd for SchemaRef
impl Eq for SchemaRef
impl StructuralPartialEq for SchemaRef
Auto Trait Implementations§
impl Freeze for SchemaRef
impl RefUnwindSafe for SchemaRef
impl Send for SchemaRef
impl Sync for SchemaRef
impl Unpin for SchemaRef
impl UnsafeUnpin for SchemaRef
impl UnwindSafe for SchemaRef
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