pub struct Write(/* private fields */);Expand description
A write of a batch: a statement, a job’s add of a queue opened from the
database, queue.adding(&job), or an event’s append of a stream opened
from it, audit.appending(name, &fields). A statement becomes one by
into:
let db = store.database("app").open()?;
let indexing = db.queue::<Index>("indexing").open()?;
db.batch([
tinystore::sql!("update notes set body = ? where id = ?", body, note).into(),
indexing.adding(&Index { note }), // committed with the row, or not at all
])?;Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Write
impl !Sync for Write
impl !UnwindSafe for Write
impl Forget for Write
impl Freeze for Write
impl Move for Write
impl Send for Write
impl Unpin for Write
impl UnsafeUnpin for Write
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