pub struct LiveSchema {
pub tables: HashMap<String, HashSet<String>>,
pub indexes: HashSet<(String, String)>,
}Expand description
What exists in the database, as reported by Adapter::introspect.
Fields§
§tables: HashMap<String, HashSet<String>>Table name to its column names.
indexes: HashSet<(String, String)>(table, column) pairs with a non-unique index named by index_name. Unique
columns are created with an inline constraint and aren’t listed here.
Trait Implementations§
Source§impl Clone for LiveSchema
impl Clone for LiveSchema
Source§impl Debug for LiveSchema
impl Debug for LiveSchema
Source§impl Default for LiveSchema
impl Default for LiveSchema
impl Eq for LiveSchema
Source§impl PartialEq for LiveSchema
impl PartialEq for LiveSchema
impl StructuralPartialEq for LiveSchema
Auto Trait Implementations§
impl Forget for LiveSchema
impl Freeze for LiveSchema
impl Move for LiveSchema
impl RefUnwindSafe for LiveSchema
impl Send for LiveSchema
impl Sync for LiveSchema
impl Unpin for LiveSchema
impl UnsafeUnpin for LiveSchema
impl UnwindSafe for LiveSchema
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