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§
Sourcefn default() -> Self
fn default() -> Self
Default constructor for the database manager. Is is mainly used for the battery test
Sourcefn create_collection(&self, identifier: &str) -> C
fn create_collection(&self, identifier: &str) -> C
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.