#[non_exhaustive]pub enum BulkAccess {
Batched,
PerRow,
}Expand description
Whether the engine batches the rows of a multi-row UPDATE or DELETE itself, or lets MySQL drive the statement one row at a time.
MySQL’s start_bulk_update / start_bulk_delete encode this as an inverted
bool (true means “bulk not used”); this enum exists so engine code never
has to reason about that inversion.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Batched
Engine batches the rows; MySQL routes them through the bulk path
(bulk_update_row + exec_bulk_update for updates, end_bulk_delete
for deletes). Maps to C++ false.
PerRow
Engine declines batching; MySQL performs the statement row by row via
update_row / delete_row. Maps to C++ true, the handler-base default.
Implementations§
Source§impl BulkAccess
impl BulkAccess
Sourcepub fn to_mysql_bool(self) -> bool
pub fn to_mysql_bool(self) -> bool
The MySQL bool expected by start_bulk_update / start_bulk_delete:
true when the engine declines batching (normal per-row operation),
matching the inverted handler-base contract.
Trait Implementations§
Source§impl Clone for BulkAccess
impl Clone for BulkAccess
Source§fn clone(&self) -> BulkAccess
fn clone(&self) -> BulkAccess
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BulkAccess
Source§impl Debug for BulkAccess
impl Debug for BulkAccess
impl Eq for BulkAccess
Source§impl PartialEq for BulkAccess
impl PartialEq for BulkAccess
Source§fn eq(&self, other: &BulkAccess) -> bool
fn eq(&self, other: &BulkAccess) -> bool
self and other values to be equal, and is used by ==.