pub struct BatchBuilder { /* private fields */ }Expand description
Builder for creating batches fluently.
Implementations§
Source§impl BatchBuilder
impl BatchBuilder
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create a builder with pre-allocated capacity.
Sourcepub fn insert(
self,
table: impl Into<String>,
data: HashMap<String, FilterValue>,
) -> Self
pub fn insert( self, table: impl Into<String>, data: HashMap<String, FilterValue>, ) -> Self
Add an INSERT operation.
Sourcepub fn update(
self,
table: impl Into<String>,
filter: HashMap<String, FilterValue>,
data: HashMap<String, FilterValue>,
) -> Self
pub fn update( self, table: impl Into<String>, filter: HashMap<String, FilterValue>, data: HashMap<String, FilterValue>, ) -> Self
Add an UPDATE operation.
Sourcepub fn delete(
self,
table: impl Into<String>,
filter: HashMap<String, FilterValue>,
) -> Self
pub fn delete( self, table: impl Into<String>, filter: HashMap<String, FilterValue>, ) -> Self
Add a DELETE operation.
Trait Implementations§
Source§impl Debug for BatchBuilder
impl Debug for BatchBuilder
Source§impl Default for BatchBuilder
impl Default for BatchBuilder
Source§fn default() -> BatchBuilder
fn default() -> BatchBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BatchBuilder
impl RefUnwindSafe for BatchBuilder
impl Send for BatchBuilder
impl Sync for BatchBuilder
impl Unpin for BatchBuilder
impl UnwindSafe for BatchBuilder
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