Crate xmtp_db

Crate xmtp_db 

Source

Re-exports§

pub use crate::xmtp_openmls_provider::XmtpMlsStorageProvider;
pub use diesel;
pub use xmtp_proto as proto;
pub use serialization::*;
pub use xmtp_openmls_provider::*;
pub use test_utils::*;
pub use encrypted_store::*;

Modules§

__mock_MockTransactionalKeyStore
__mock_MockTransactionalKeyStore_TransactionalKeyStore
encrypted_store
A durable object store powered by Sqlite and Diesel.
mock
prelude
serialization
sql_key_store
test_util
test_utils
xmtp_openmls_provider

Macros§

impl_fetch
impl_fetch_list
impl_store
impl_store_or_ignore

Structs§

Mls
MockTransactionalKeyStore
Get an MLS Key store in the context of a transaction this must only be used within transactions.

Enums§

DuplicateItem
NotFound
StorageError

Traits§

DbQuery
Delete
Deletes a model from the underlying data store
Fetch
Fetches a model from the underlying data store, returning None if it does not exist
FetchList
Fetches all instances of Model from the data store. Returns an empty list if no items are found or an error if the fetch fails.
FetchListWithKey
Fetches a filtered list of Model instances matching the specified key. Logs an error and returns an empty list if no items are found or if an error occurs.
IntoConnection
ReadOnly
Store
Inserts a model to the underlying data store, erroring if it already exists
StoreOrIgnore
Inserts a model to the underlying data store, silent no-op on unique constraint violations
TransactionalKeyStore
Get an MLS Key store in the context of a transaction this must only be used within transactions.

Functions§

init_sqlite

Type Aliases§

DefaultDbConnection
DefaultMlsStore
DefaultStore
The default platform-specific store