catalog::system_schema

Trait SystemSchemaProvider

Source
pub trait SystemSchemaProvider {
    // Required method
    fn tables(&self) -> &HashMap<String, TableRef>;

    // Provided methods
    fn table(&self, name: &str) -> Option<TableRef> { ... }
    fn table_names(&self) -> Vec<String> { ... }
}

Required Methods§

Source

fn tables(&self) -> &HashMap<String, TableRef>

Returns a map of TableRef in information schema.

Provided Methods§

Source

fn table(&self, name: &str) -> Option<TableRef>

Returns the TableRef by table name.

Source

fn table_names(&self) -> Vec<String>

Returns table names in the order of table id.

Implementors§