pub struct PipelineConfig {
pub max_batch_size: usize,
pub execution_timeout: Duration,
pub use_transaction: bool,
pub rollback_on_error: bool,
pub max_depth: usize,
pub collect_stats: bool,
}Expand description
Configuration for pipeline execution.
Fields§
§max_batch_size: usizeMaximum queries per pipeline batch.
execution_timeout: DurationTimeout for entire pipeline execution.
use_transaction: boolWhether to wrap pipeline in a transaction.
rollback_on_error: boolWhether to rollback on any error.
max_depth: usizeMaximum pipeline depth (pending queries).
collect_stats: boolWhether to collect execution statistics.
Implementations§
Source§impl PipelineConfig
impl PipelineConfig
Sourcepub fn for_bulk_inserts() -> Self
pub fn for_bulk_inserts() -> Self
Create config optimized for bulk inserts.
Sourcepub fn for_bulk_updates() -> Self
pub fn for_bulk_updates() -> Self
Create config optimized for bulk updates.
Sourcepub fn for_mixed_operations() -> Self
pub fn for_mixed_operations() -> Self
Create config optimized for mixed operations.
Sourcepub fn with_max_batch_size(self, size: usize) -> Self
pub fn with_max_batch_size(self, size: usize) -> Self
Set maximum batch size.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set execution timeout.
Sourcepub fn with_transaction(self, use_tx: bool) -> Self
pub fn with_transaction(self, use_tx: bool) -> Self
Set whether to use transaction.
Trait Implementations§
Source§impl Clone for PipelineConfig
impl Clone for PipelineConfig
Source§fn clone(&self) -> PipelineConfig
fn clone(&self) -> PipelineConfig
Returns a duplicate 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 PipelineConfig
impl Debug for PipelineConfig
Auto Trait Implementations§
impl Freeze for PipelineConfig
impl RefUnwindSafe for PipelineConfig
impl Send for PipelineConfig
impl Sync for PipelineConfig
impl Unpin for PipelineConfig
impl UnwindSafe for PipelineConfig
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