Trait DatabaseManager

Source
pub trait DatabaseManager<C>: Sync + Send{
    // 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§