pub struct BulkUpdatePipeline { /* private fields */ }Expand description
Builder for creating bulk update pipelines.
Implementations§
Source§impl BulkUpdatePipeline
impl BulkUpdatePipeline
Sourcepub fn for_database(self, db_type: DatabaseType) -> Self
pub fn for_database(self, db_type: DatabaseType) -> Self
Set database type.
Sourcepub fn add_update(
&mut self,
set: Vec<(String, FilterValue)>,
where_clause: Vec<(String, FilterValue)>,
)
pub fn add_update( &mut self, set: Vec<(String, FilterValue)>, where_clause: Vec<(String, FilterValue)>, )
Add an update.
Sourcepub fn to_update_statements(&self) -> Vec<(String, Vec<FilterValue>)>
pub fn to_update_statements(&self) -> Vec<(String, Vec<FilterValue>)>
Generate UPDATE statements.
Sourcepub fn to_pipeline(self) -> QueryPipeline
pub fn to_pipeline(self) -> QueryPipeline
Convert to query pipeline.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BulkUpdatePipeline
impl RefUnwindSafe for BulkUpdatePipeline
impl Send for BulkUpdatePipeline
impl Sync for BulkUpdatePipeline
impl Unpin for BulkUpdatePipeline
impl UnwindSafe for BulkUpdatePipeline
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