pub struct BatchStateMachine { /* private fields */ }Expand description
State machine for batch execution (Parse? + (Bind + Execute)* + Sync).
Used by exec_batch to execute a statement with multiple parameter sets.
Implementations§
Source§impl BatchStateMachine
impl BatchStateMachine
Sourcepub fn new(needs_parse: bool) -> Self
pub fn new(needs_parse: bool) -> Self
Create a new batch state machine.
The caller is responsible for populating buffer_set.write_buffer with:
- Parse (optional, if needs_parse is true)
- Bind + Execute for each parameter set
- Sync
Sourcepub fn transaction_status(&self) -> TransactionStatus
pub fn transaction_status(&self) -> TransactionStatus
Get the transaction status after completion.
Auto Trait Implementations§
impl Freeze for BatchStateMachine
impl RefUnwindSafe for BatchStateMachine
impl Send for BatchStateMachine
impl Sync for BatchStateMachine
impl Unpin for BatchStateMachine
impl UnwindSafe for BatchStateMachine
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