pub struct AuthorizedTransaction<'a> { /* private fields */ }Expand description
Authorized multi-statement transaction bound to one DatabaseHandle (P1.4).
Obtained from DatabaseHandle::begin. Mutations re-check the handle’s
read-only restriction; principal authorization is enforced by the underlying
crate::txn::Transaction.
Implementations§
Source§impl<'a> AuthorizedTransaction<'a>
impl<'a> AuthorizedTransaction<'a>
Sourcepub fn put(
&mut self,
table: &str,
cells: Vec<(u16, Value)>,
) -> Result<Option<i64>>
pub fn put( &mut self, table: &str, cells: Vec<(u16, Value)>, ) -> Result<Option<i64>>
Stage an insert.
Sourcepub fn put_batch(
&mut self,
table: &str,
rows: Vec<Vec<(u16, Value)>>,
) -> Result<Vec<Option<i64>>>
pub fn put_batch( &mut self, table: &str, rows: Vec<Vec<(u16, Value)>>, ) -> Result<Vec<Option<i64>>>
Stage many inserts.
Trait Implementations§
Source§impl Drop for AuthorizedTransaction<'_>
impl Drop for AuthorizedTransaction<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AuthorizedTransaction<'a>
impl<'a> !UnwindSafe for AuthorizedTransaction<'a>
impl<'a> Freeze for AuthorizedTransaction<'a>
impl<'a> Send for AuthorizedTransaction<'a>
impl<'a> Sync for AuthorizedTransaction<'a>
impl<'a> Unpin for AuthorizedTransaction<'a>
impl<'a> UnsafeUnpin for AuthorizedTransaction<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more