pub struct MemoryTx { /* private fields */ }Expand description
A snapshot of the store. Commit writes it back; drop or rollback discards it.
Trait Implementations§
Source§impl Queries for MemoryTx
impl Queries for MemoryTx
async fn insert(&self, q: Insert<'_>) -> DbResult<Row>
async fn find_one(&self, q: Select<'_>) -> DbResult<Option<Row>>
async fn find_many(&self, q: Select<'_>) -> DbResult<Vec<Row>>
async fn update(&self, q: Update<'_>) -> DbResult<u64>
async fn delete(&self, q: Delete<'_>) -> DbResult<u64>
async fn count(&self, q: Select<'_>) -> DbResult<u64>
Auto Trait Implementations§
impl !Freeze for MemoryTx
impl Forget for MemoryTx
impl Move for MemoryTx
impl RefUnwindSafe for MemoryTx
impl Send for MemoryTx
impl Sync for MemoryTx
impl Unpin for MemoryTx
impl UnsafeUnpin for MemoryTx
impl UnwindSafe for MemoryTx
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