pub struct Schema {
pub tables: Vec<Table>,
}Expand description
Every table a program’s read model has.
Fields§
§tables: Vec<Table>Implementations§
Source§impl Schema
impl Schema
Sourcepub const CATALOGUE: &'static str = "beck_columns"
pub const CATALOGUE: &'static str = "beck_columns"
The name of the catalogue table. There is no pg_catalog here, and a client that cannot
find out what exists cannot use what exists, so the schema is a table in itself.
pub fn table(&self, name: &str) -> Option<&Table>
Sourcepub fn catalogue_rows(&self) -> Vec<Vec<Cell>>
pub fn catalogue_rows(&self) -> Vec<Vec<Cell>>
The catalogue’s own rows: this schema, described.
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