pub struct Schema { /* private fields */ }Expand description
Schema registry mapping SQL names to store types.
Implementations§
Source§impl Schema
impl Schema
Sourcepub fn add_table(&mut self, name: impl Into<TableName>, def: TableDef)
pub fn add_table(&mut self, name: impl Into<TableName>, def: TableDef)
Adds a table to the schema.
Sourcepub fn table_names(&self) -> impl Iterator<Item = &TableName>
pub fn table_names(&self) -> impl Iterator<Item = &TableName>
Returns all table names.
Sourcepub fn all_tables(&self) -> impl Iterator<Item = (&TableName, &TableDef)>
pub fn all_tables(&self) -> impl Iterator<Item = (&TableName, &TableDef)>
AUDIT-2026-04 S3.4 — iterate (table_name, &TableDef) pairs.
Used by information_schema virtual-table rendering.
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 UnsafeUnpin 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