TestDb

Type Alias TestDb 

Source
pub type TestDb = EncryptedMessageStore<DefaultDatabase>;

Aliased Type§

pub struct TestDb { /* private fields */ }

Trait Implementations§

Source§

impl XmtpTestDb for TestDb

Source§

async fn create_ephemeral_store() -> DefaultStore

Create a validated, ephemeral database, running the migrations
Source§

async fn create_ephemeral_store_from_snapshot( snapshot: &[u8], path: Option<impl AsRef<Path>>, ) -> DefaultStore

Source§

async fn create_persistent_store(path: Option<String>) -> DefaultStore

Create a validated, persistent database running the migrations
Source§

async fn create_database(path: Option<String>) -> DefaultDatabase

Create an empty database does no validation and does not run migrations.