Trait SchemaView

Source
pub trait SchemaView {
    // Required methods
    fn table_id(&self, name: &str) -> Option<TableId>;
    fn schema_for_table(&self, table_id: TableId) -> Option<Arc<TableSchema>>;

    // Provided method
    fn schema(&self, name: &str) -> Option<Arc<TableSchema>> { ... }
}
Expand description

A view of the database schema

Required Methods§

Source

fn table_id(&self, name: &str) -> Option<TableId>

Source

fn schema_for_table(&self, table_id: TableId) -> Option<Arc<TableSchema>>

Provided Methods§

Source

fn schema(&self, name: &str) -> Option<Arc<TableSchema>>

Implementors§