pub struct Catalog {
pub catalog_version: u64,
pub format_version: u64,
pub created_at: u64,
pub updated_at: u64,
pub engine: Option<String>,
pub layout: Option<CatalogLayout>,
pub defaults: Option<TableOptions>,
pub tables: BTreeMap<String, TableEntry>,
pub relations: Option<Vec<Relation>>,
pub views: Option<Vec<ViewEntry>>,
pub triggers: Option<Vec<TriggerEntry>>,
}Expand description
The hayson.json of a format-2 database: every table, index, relation, trigger and view of it
in one document.
Fields§
§catalog_version: u64§format_version: u64§created_at: u64§updated_at: u64§engine: Option<String>§layout: Option<CatalogLayout>§defaults: Option<TableOptions>§tables: BTreeMap<String, TableEntry>§relations: Option<Vec<Relation>>§views: Option<Vec<ViewEntry>>§triggers: Option<Vec<TriggerEntry>>Trait Implementations§
impl StructuralPartialEq for Catalog
Auto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
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