pub trait TestKeyValueDatabase: KeyValueDatabase {
// Required method
async fn new_test_config() -> Result<Self::Config, Self::Error>;
// Provided methods
async fn connect_test_namespace() -> Result<Self, Self::Error> { ... }
async fn new_test_store() -> Result<Self::Store, Self::Error> { ... }
}Expand description
The functions needed for testing purposes
Required Methods§
Sourceasync fn new_test_config() -> Result<Self::Config, Self::Error>
async fn new_test_config() -> Result<Self::Config, Self::Error>
Obtains a test config
Provided Methods§
Sourceasync fn connect_test_namespace() -> Result<Self, Self::Error>
async fn connect_test_namespace() -> Result<Self, Self::Error>
Creates a database for testing purposes
Sourceasync fn new_test_store() -> Result<Self::Store, Self::Error>
async fn new_test_store() -> Result<Self::Store, Self::Error>
Creates a store for testing purposes
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl TestKeyValueDatabase for JournalingKeyValueDatabase<ScyllaDbDatabaseInternal>
Available on
with_testing only.impl TestKeyValueDatabase for MemoryDatabase
Available on
with_testing only.impl TestKeyValueDatabase for RocksDbDatabaseInternal
Available on
with_testing only.impl<D1, D2, A> TestKeyValueDatabase for DualDatabase<D1, D2, A>
Available on
with_testing only.impl<D> TestKeyValueDatabase for LruCachingDatabase<D>where
D: TestKeyValueDatabase,
Available on
with_testing only.impl<D> TestKeyValueDatabase for ValueSplittingDatabase<D>where
D: TestKeyValueDatabase,
D::Error: 'static,
Available on
with_testing only.