StorageNamespaceOps

Trait StorageNamespaceOps 

Source
pub trait StorageNamespaceOps: Send + Sync {
    // Required methods
    fn namespace_id(&self) -> &NamespaceId;
    fn list_tables(&self) -> Vec<String>;
    fn owns_table(&self, canonical: &str) -> bool;
    fn as_any(&self) -> &dyn Any;
}
Expand description

Helper trait for storing namespaces behind trait objects with basic inspection support.

Required Methods§

Source

fn namespace_id(&self) -> &NamespaceId

Source

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

Source

fn owns_table(&self, canonical: &str) -> bool

Source

fn as_any(&self) -> &dyn Any

Implementors§