pub struct BulkSqlContext<'connection> { /* private fields */ }Expand description
App SQL inside one bulk write (§4): it changes device-local tables alone, and may read any table app SQL reads. Returning an error rolls back every statement. This borrowed context cannot change the transaction, access coven’s tables or write a synced one.
Implementations§
Source§impl<'connection> BulkSqlContext<'connection>
impl<'connection> BulkSqlContext<'connection>
Sourcepub fn execute<P: Params>(&self, sql: &str, params: P) -> Result<usize>
pub fn execute<P: Params>(&self, sql: &str, params: P) -> Result<usize>
Execute one app statement with parameters.
Sourcepub fn execute_batch(&self, sql: &str) -> Result<()>
pub fn execute_batch(&self, sql: &str) -> Result<()>
Execute app statements within this write’s transaction.
Trait Implementations§
Auto Trait Implementations§
impl<'connection> Freeze for BulkSqlContext<'connection>
impl<'connection> !RefUnwindSafe for BulkSqlContext<'connection>
impl<'connection> !Send for BulkSqlContext<'connection>
impl<'connection> !Sync for BulkSqlContext<'connection>
impl<'connection> Unpin for BulkSqlContext<'connection>
impl<'connection> UnsafeUnpin for BulkSqlContext<'connection>
impl<'connection> !UnwindSafe for BulkSqlContext<'connection>
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