pub struct DynamicQuery { /* private fields */ }Expand description
DynamicQuery
Entity-name-driven structural read request. The session resolves fields, ordering, indexes, and projection against the accepted schema; no generated entity descriptor participates.
Implementations§
Source§impl DynamicQuery
impl DynamicQuery
Sourcepub fn new(entity: impl Into<String>) -> Self
pub fn new(entity: impl Into<String>) -> Self
Start one dynamic read for an accepted entity name.
Sourcepub fn filter(self, filter: impl Into<FilterExpr>) -> Self
pub fn filter(self, filter: impl Into<FilterExpr>) -> Self
Add one filter expression.
Sourcepub fn select<I, S>(self, fields: I) -> Self
pub fn select<I, S>(self, fields: I) -> Self
Select explicit fields in scalar output order.
Grouped execution rejects an explicit scalar selection because group keys and aggregates define its output contract.
Sourcepub fn group_by(self, field: impl Into<String>) -> Self
pub fn group_by(self, field: impl Into<String>) -> Self
Append one accepted field to the grouped key in declaration order.
Sourcepub fn aggregate(self, aggregate: AggregateExpr) -> Self
pub fn aggregate(self, aggregate: AggregateExpr) -> Self
Append one grouped aggregate in declaration order.
Sourcepub const fn grouped_limits(self, max_groups: u32, max_group_bytes: u32) -> Self
pub const fn grouped_limits(self, max_groups: u32, max_group_bytes: u32) -> Self
Set explicit hard limits for grouped execution.
Ordinary public reads additionally enforce their built-in admission ceilings. Zero values are rejected before execution.
Trait Implementations§
Source§impl Clone for DynamicQuery
impl Clone for DynamicQuery
Source§fn clone(&self) -> DynamicQuery
fn clone(&self) -> DynamicQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DynamicQuery
impl RefUnwindSafe for DynamicQuery
impl Send for DynamicQuery
impl Sync for DynamicQuery
impl Unpin for DynamicQuery
impl UnsafeUnpin for DynamicQuery
impl UnwindSafe for DynamicQuery
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