pub struct Transaction<'view> { /* private fields */ }Expand description
Transactions let you perform a sequence of [Operation]s that can be committed to be performed with ACID guarantees.
Implementations§
Source§impl<'view> Transaction<'view>
impl<'view> Transaction<'view>
Sourcepub fn new(view: &'view mut View, branch: Option<&str>) -> Self
pub fn new(view: &'view mut View, branch: Option<&str>) -> Self
Create a transaction for the given view.
Sourcepub fn update_representations(
self,
representations: Vec<ViewRepresentation>,
schema: StructType,
) -> Self
pub fn update_representations( self, representations: Vec<ViewRepresentation>, schema: StructType, ) -> Self
Update the schmema of the view
Sourcepub fn update_properties(self, entries: Vec<(String, String)>) -> Self
pub fn update_properties(self, entries: Vec<(String, String)>) -> Self
Update view properties
Auto Trait Implementations§
impl<'view> Freeze for Transaction<'view>
impl<'view> !RefUnwindSafe for Transaction<'view>
impl<'view> Send for Transaction<'view>
impl<'view> Sync for Transaction<'view>
impl<'view> Unpin for Transaction<'view>
impl<'view> !UnwindSafe for Transaction<'view>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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