pub struct SchemaSnapshot {
pub tables: BTreeMap<String, TableSnapshot>,
}Expand description
A snapshot of an entire database schema (multiple tables).
Fields§
§tables: BTreeMap<String, TableSnapshot>Tables keyed by name, sorted for deterministic iteration.
Implementations§
Source§impl SchemaSnapshot
impl SchemaSnapshot
Sourcepub fn add_table(&mut self, table: TableSnapshot)
pub fn add_table(&mut self, table: TableSnapshot)
Adds a table snapshot.
Sourcepub fn add_from_table_schema<T: TableSchema>(
&mut self,
dialect: &impl RustTypeMapping,
)
pub fn add_from_table_schema<T: TableSchema>( &mut self, dialect: &impl RustTypeMapping, )
Adds a table snapshot built from a #[derive(Table)] struct.
Trait Implementations§
Source§impl Clone for SchemaSnapshot
impl Clone for SchemaSnapshot
Source§fn clone(&self) -> SchemaSnapshot
fn clone(&self) -> SchemaSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 SchemaSnapshot
impl Debug for SchemaSnapshot
Source§impl Default for SchemaSnapshot
impl Default for SchemaSnapshot
Source§impl PartialEq for SchemaSnapshot
impl PartialEq for SchemaSnapshot
impl StructuralPartialEq for SchemaSnapshot
Auto Trait Implementations§
impl Freeze for SchemaSnapshot
impl RefUnwindSafe for SchemaSnapshot
impl Send for SchemaSnapshot
impl Sync for SchemaSnapshot
impl Unpin for SchemaSnapshot
impl UnwindSafe for SchemaSnapshot
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