pub struct MergeTxLimits {
pub max_rows: usize,
pub max_bytes: usize,
}Expand description
Hard materialization limits for one merge transaction.
Enforced on the writer connection inside the merge’s own BEGIN IMMEDIATE
transaction, so the counted rows are exactly the rows the merge operates
on — a pre-flight count on another connection could be outgrown between
the count and the merge. Exceeding either limit rejects the merge with the
observed counts before further state is materialized, and the transaction
rolls back. Dry runs are budgeted identically: the preview performs the
same reads and carries the same materialization hazard.
Fields§
§max_rows: usize§max_bytes: usizeTrait Implementations§
Source§impl Clone for MergeTxLimits
impl Clone for MergeTxLimits
impl Copy for MergeTxLimits
Source§impl Debug for MergeTxLimits
impl Debug for MergeTxLimits
Auto Trait Implementations§
impl Freeze for MergeTxLimits
impl RefUnwindSafe for MergeTxLimits
impl Send for MergeTxLimits
impl Sync for MergeTxLimits
impl Unpin for MergeTxLimits
impl UnsafeUnpin for MergeTxLimits
impl UnwindSafe for MergeTxLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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