mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-02-11 09:23:26 +00:00
* feat: shared storage crate * chore: remove backup codes * chore: remove feature gates * chore: clean out of order demo * chore: refactor create session * chore: shorten error name * chore: clean errors * chore: remove table exist check * chore: remove unused traits * chore: remove unused functions. * chore: use tempfile for examples
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};
|