pub struct SchemaManager { /* private fields */ }Expand description
In-memory catalog of caller-supplied schema metadata.
Implementations§
Source§impl SchemaManager
impl SchemaManager
pub fn new() -> Self
Sourcepub fn register_schema(&mut self, schema: TableSchema) -> Option<TableSchema>
pub fn register_schema(&mut self, schema: TableSchema) -> Option<TableSchema>
Records metadata and returns the previous value for the same name.
This method does not create or alter a database table.
pub fn get_schema(&self, table_name: &str) -> Option<&TableSchema>
pub fn schema_count(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for SchemaManager
impl Clone for SchemaManager
Source§fn clone(&self) -> SchemaManager
fn clone(&self) -> SchemaManager
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 SchemaManager
impl Debug for SchemaManager
Source§impl Default for SchemaManager
impl Default for SchemaManager
Source§fn default() -> SchemaManager
fn default() -> SchemaManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SchemaManager
impl RefUnwindSafe for SchemaManager
impl Send for SchemaManager
impl Sync for SchemaManager
impl Unpin for SchemaManager
impl UnsafeUnpin for SchemaManager
impl UnwindSafe for SchemaManager
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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