Skip to main content

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§

association_state
consent_record
conversation_list
database
db_connection
delivery
Database-local message order and fenced default-consumer progress.
group
The Group database table. Stored information surrounding group membership and ID’s.
group_intent
group_message
identity
identity_cache
identity_update
incoming_envelope
Durable receipt and ordered processing positions for network envelopes.
key_package_history
key_store_entry
local_commit_log
message_deletion
migrations
notifications
Durable notification configuration and confirmed subscription uploads.
pending_remove
pragmas
Check that certain pragmas are set
processed_device_sync_messages
readd_status
refresh_state
remote_commit_log
schema
server_configuration
The one row that binds this database to one backend deployment.
store
stream_storage
Shared transaction and error types for durable client streams.
tasks
user_preferences

Structs§

EncryptionKey
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