pub struct SqliteBackend { /* private fields */ }Expand description
SQLite persistence backend.
Clone is cheap — it only clones the mpsc::SyncSender handle.
The writer thread shuts down automatically when all SyncSender handles
(i.e. all SqliteBackend clones) are dropped.
Implementations§
Source§impl SqliteBackend
impl SqliteBackend
Trait Implementations§
Source§impl Clone for SqliteBackend
impl Clone for SqliteBackend
Source§fn clone(&self) -> SqliteBackend
fn clone(&self) -> SqliteBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PersistenceBackend for SqliteBackend
impl PersistenceBackend for SqliteBackend
Source§fn store<'a>(
&'a self,
record_name: &'a str,
value: &'a Value,
timestamp: u64,
) -> BoxFuture<'a, Result<(), PersistenceError>>
fn store<'a>( &'a self, record_name: &'a str, value: &'a Value, timestamp: u64, ) -> BoxFuture<'a, Result<(), PersistenceError>>
Store a JSON value for a record.
Source§fn query<'a>(
&'a self,
record_pattern: &'a str,
params: QueryParams,
) -> BoxFuture<'a, Result<Vec<StoredValue>, PersistenceError>>
fn query<'a>( &'a self, record_pattern: &'a str, params: QueryParams, ) -> BoxFuture<'a, Result<Vec<StoredValue>, PersistenceError>>
Query stored values, with optional pattern and time-range support. Read more
Auto Trait Implementations§
impl Freeze for SqliteBackend
impl RefUnwindSafe for SqliteBackend
impl Send for SqliteBackend
impl Sync for SqliteBackend
impl Unpin for SqliteBackend
impl UnsafeUnpin for SqliteBackend
impl UnwindSafe for SqliteBackend
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