pub struct SqliteStorageAdapter { /* private fields */ }Expand description
SQLite-backed implementation of nostr_double_ratchet::StorageAdapter.
Keys are namespaced by (owner_pubkey_hex, device_pubkey_hex) so a
single database serves multiple owner accounts and devices without
keyspace collisions — matching the per-(owner, device) directory
scoping the previous file-backed adapter used.
Implementations§
Source§impl SqliteStorageAdapter
impl SqliteStorageAdapter
pub fn new( conn: SharedConnection, owner_pubkey_hex: String, device_pubkey_hex: String, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SqliteStorageAdapter
impl RefUnwindSafe for SqliteStorageAdapter
impl Send for SqliteStorageAdapter
impl Sync for SqliteStorageAdapter
impl Unpin for SqliteStorageAdapter
impl UnsafeUnpin for SqliteStorageAdapter
impl UnwindSafe for SqliteStorageAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more