pub trait DatabaseManager<C>: Sync + Sendwhere
    C: DatabaseCollection,{
    // Required methods
    fn default() -> Self;
    fn create_collection(&self, identifier: &str) -> C;
}
Expand description

Trait to define a database compatible with Taple

Required Methods§

source

fn default() -> Self

Default constructor for the database manager. Is is mainly used for the battery test

source

fn create_collection(&self, identifier: &str) -> C

Creates a database collection

Arguments
  • identifier: The identifier of the collection

Implementors§