Skip to main content

TestKeyValueDatabase

Trait TestKeyValueDatabase 

Source
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§

Source

async fn new_test_config() -> Result<Self::Config, Self::Error>

Obtains a test config

Provided Methods§

Source

async fn connect_test_namespace() -> Result<Self, Self::Error>

Creates a database for testing purposes

Source

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§

Source§

impl TestKeyValueDatabase for JournalingKeyValueDatabase<ScyllaDbDatabaseInternal>

Available on with_testing only.
Source§

impl TestKeyValueDatabase for MemoryDatabase

Available on with_testing only.
Source§

impl TestKeyValueDatabase for RocksDbDatabaseInternal

Available on with_testing only.
Source§

impl<D1, D2, A> TestKeyValueDatabase for DualDatabase<D1, D2, A>

Available on with_testing only.
Source§

impl<D> TestKeyValueDatabase for LruCachingDatabase<D>

Available on with_testing only.
Source§

impl<D> TestKeyValueDatabase for ValueSplittingDatabase<D>
where D: TestKeyValueDatabase, D::Error: 'static,

Available on with_testing only.