pub struct BatchStmt {
pub statements: Vec<Stmt>,
pub wait: Option<bool>,
pub params: Option<SearchParams>,
}Expand description
BATCH { <stmt>; … } — members execute as one batch RPC.
Members are full statements sharing one collection and one family (all
queries or all mutations). Homogeneity is validated by the lowerer; the
parser only rejects empty blocks, nested batches, and non-batchable
statement kinds (DDL, SHOW, COUNT, SCROLL, FACET, SET QUOTA).
Fields§
§statements: Vec<Stmt>Member statements in execution order.
wait: Option<bool>Durability flag for mutation batches (WAIT, ?wait=).
params: Option<SearchParams>Shared read opts for query batches (PARAMS, ?timeout=/?consistency=).
Trait Implementations§
impl StructuralPartialEq for BatchStmt
Auto Trait Implementations§
impl Freeze for BatchStmt
impl RefUnwindSafe for BatchStmt
impl Send for BatchStmt
impl Sync for BatchStmt
impl Unpin for BatchStmt
impl UnsafeUnpin for BatchStmt
impl UnwindSafe for BatchStmt
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