mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-02-11 09:23:26 +00:00
16 lines
475 B
Rust
16 lines
475 B
Rust
|
|
//! Shared storage layer for libchat.
|
||
|
|
//!
|
||
|
|
//! This crate provides a common storage abstraction that can be used by
|
||
|
|
//! multiple crates in the libchat workspace (double-ratchets, conversations, etc.).
|
||
|
|
//!
|
||
|
|
//! Uses SQLCipher for encrypted SQLite storage.
|
||
|
|
|
||
|
|
mod errors;
|
||
|
|
mod sqlite;
|
||
|
|
|
||
|
|
pub use errors::StorageError;
|
||
|
|
pub use sqlite::{SqliteDb, StorageConfig};
|
||
|
|
|
||
|
|
// Re-export rusqlite types that domain crates will need
|
||
|
|
pub use rusqlite::{Error as RusqliteError, Transaction, params};
|