pub struct FindBatchQuery {
pub items: Vec<FindBatchItem>,
}Expand description
Backs find_batch(...) in “single query” mode: every item is compiled
into its own JSON-aggregated subquery (json_build_object/json_agg on
Postgres, JSON_OBJECT/JSON_ARRAYAGG on MySQL, json_object/
json_group_array on SQLite) and all of them are selected together in one
round trip, each producing a JSON array of rows.
Fields§
§items: Vec<FindBatchItem>Trait Implementations§
Source§impl Clone for FindBatchQuery
impl Clone for FindBatchQuery
Auto Trait Implementations§
impl Freeze for FindBatchQuery
impl RefUnwindSafe for FindBatchQuery
impl Send for FindBatchQuery
impl Sync for FindBatchQuery
impl Unpin for FindBatchQuery
impl UnsafeUnpin for FindBatchQuery
impl UnwindSafe for FindBatchQuery
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