Module encrypted_store

Module encrypted_store 

Source
Expand description

A durable object store powered by Sqlite and Diesel.

Provides mechanism to store objects between sessions. The behavior of the store can be tailored by choosing an appropriate StoreOption.

§Migrations

Table definitions are located <PackageRoot>/migrations/. On initialization the store will see if there are any outstanding database migrations and perform them as needed. When updating the table definitions schema.rs must also be updated. To generate the correct schemas you can run diesel print-schema or use cargo run update-schema which will update the files for you.

Re-exports§

pub use self::db_connection::DbConnection;
pub use database::*;
pub use store::*;

Modules§

__mock_MockXmtpDb
__mock_MockXmtpDb_XmtpDb
association_state
consent_record
conversation_list
database
db_connection
group
The Group database table. Stored information surrounding group membership and ID’s.
group_intent
group_message
icebox
identity
identity_cache
identity_update
key_package_history
key_store_entry
local_commit_log
message_deletion
migrations
pending_remove
pragmas
Check that certain pragmas are set
processed_device_sync_messages
readd_status
refresh_state
remote_commit_log
schema
store
tasks
user_preferences

Structs§

MockXmtpDb
Sqlite
The SQLite backend
SqliteConnection
Connections for the SQLite backend. Unlike other backends, SQLite supported connection URLs are:

Enums§

ConnectionError
StorageOption

Constants§

MIGRATIONS

Traits§

ConnectionExt
MigrationSource
A migration source is an entity that can be used to receive a number of migrations from.
MlsProviderExt
XmtpDb

Type Aliases§

BoxedDatabase
EncryptionKey