pub struct NestedWriteOperations {
pub pre_statements: Vec<(String, Vec<FilterValue>)>,
pub post_statements: Vec<(String, Vec<FilterValue>)>,
}Expand description
A container for collecting all nested write operations to execute.
Fields§
§pre_statements: Vec<(String, Vec<FilterValue>)>SQL statements to execute before the main operation.
post_statements: Vec<(String, Vec<FilterValue>)>SQL statements to execute after the main operation.
Implementations§
Source§impl NestedWriteOperations
impl NestedWriteOperations
Sourcepub fn add_pre(&mut self, sql: String, params: Vec<FilterValue>)
pub fn add_pre(&mut self, sql: String, params: Vec<FilterValue>)
Add a pre-operation statement.
Sourcepub fn add_post(&mut self, sql: String, params: Vec<FilterValue>)
pub fn add_post(&mut self, sql: String, params: Vec<FilterValue>)
Add a post-operation statement.
Trait Implementations§
Source§impl Debug for NestedWriteOperations
impl Debug for NestedWriteOperations
Source§impl Default for NestedWriteOperations
impl Default for NestedWriteOperations
Source§fn default() -> NestedWriteOperations
fn default() -> NestedWriteOperations
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NestedWriteOperations
impl RefUnwindSafe for NestedWriteOperations
impl Send for NestedWriteOperations
impl Sync for NestedWriteOperations
impl Unpin for NestedWriteOperations
impl UnwindSafe for NestedWriteOperations
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more