Struct iceberg_rust::view::transaction::Transaction
source · 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_representation(
self,
representation: ViewRepresentation,
schema: StructType
) -> Self
pub fn update_representation( self, representation: 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