pub struct CommitProperties { /* private fields */ }
Expand description
End user facing interface to be used by operations on the table. Enable controling commit behaviour and modifying metadata that is written during a commit.
Implementations§
Source§impl CommitProperties
impl CommitProperties
Sourcepub fn with_metadata(
self,
metadata: impl IntoIterator<Item = (String, Value)>,
) -> Self
pub fn with_metadata( self, metadata: impl IntoIterator<Item = (String, Value)>, ) -> Self
Specify metadata the be comitted
Sourcepub fn with_max_retries(self, max_retries: usize) -> Self
pub fn with_max_retries(self, max_retries: usize) -> Self
Specify maximum number of times to retry the transaction before failing to commit
Sourcepub fn with_create_checkpoint(self, create_checkpoint: bool) -> Self
pub fn with_create_checkpoint(self, create_checkpoint: bool) -> Self
Specify if it should create a checkpoint when the commit interval condition is met
Sourcepub fn with_application_transaction(self, txn: Transaction) -> Self
pub fn with_application_transaction(self, txn: Transaction) -> Self
Add an additonal application transaction to the commit
Sourcepub fn with_application_transactions(self, txn: Vec<Transaction>) -> Self
pub fn with_application_transactions(self, txn: Vec<Transaction>) -> Self
Override application transactions for the commit
Sourcepub fn with_cleanup_expired_logs(
self,
cleanup_expired_logs: Option<bool>,
) -> Self
pub fn with_cleanup_expired_logs( self, cleanup_expired_logs: Option<bool>, ) -> Self
Specify if it should clean up the logs when the logRetentionDuration interval is met
Trait Implementations§
Source§impl Clone for CommitProperties
impl Clone for CommitProperties
Source§fn clone(&self) -> CommitProperties
fn clone(&self) -> CommitProperties
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CommitProperties
impl Debug for CommitProperties
Source§impl Default for CommitProperties
impl Default for CommitProperties
Source§impl From<CommitProperties> for CommitBuilder
impl From<CommitProperties> for CommitBuilder
Source§fn from(value: CommitProperties) -> Self
fn from(value: CommitProperties) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommitProperties
impl RefUnwindSafe for CommitProperties
impl Send for CommitProperties
impl Sync for CommitProperties
impl Unpin for CommitProperties
impl UnwindSafe for CommitProperties
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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