Struct assembly_fdb::core::Schema
source · pub struct Schema {
pub tables: BTreeMap<String, Table>,
}
Expand description
§An ordered map of tables
A schema is an ordered map of tables. It represents a full relational database and is the root struct type in this module.
Fields§
§tables: BTreeMap<String, Table>
The tables in this schema
Implementations§
source§impl Schema
impl Schema
sourcepub fn table(&self, name: &str) -> Option<&Table>
pub fn table(&self, name: &str) -> Option<&Table>
Get a reference to the table of that name it it exists
sourcepub fn table_mut(&mut self, name: &str) -> Option<&mut Table>
pub fn table_mut(&mut self, name: &str) -> Option<&mut Table>
Get a mutable reference to the table of that name it it exists
sourcepub fn table_count(&self) -> usize
pub fn table_count(&self) -> usize
Returns the number of tables
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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