pub struct QueryStmt {
pub ctes: Vec<Cte>,
pub collection: QueryCollection,
pub collection_span: Option<Span>,
pub expression: QueryExpr,
pub filter: Option<Box<FilterExpr>>,
pub params: Option<SearchParams>,
pub score_threshold: Option<f64>,
pub group: Option<GroupSpec>,
pub output: QueryOutput,
pub page: PageSpec,
pub shard_key: Option<ShardKey>,
}Expand description
A full QUERY statement: CTEs, expression, clauses, and output options.
Fields§
§ctes: Vec<Cte>Leading WITH definitions.
collection: QueryCollectionTarget collection (explicit or inherited).
collection_span: Option<Span>Source span of the FROM <collection> name token, when explicit.
None for inherited collections (no token exists) and for
programmatically built statements. Skipped by serde so AST snapshots
stay span-free; the planner threads it into QQL-PLAN-COLLECTION
instead of returning None.
expression: QueryExprRetrieval strategy body.
filter: Option<Box<FilterExpr>>WHERE filter.
params: Option<SearchParams>PARAMS (…) execution settings.
score_threshold: Option<f64>SCORE THRESHOLD minimum score.
group: Option<GroupSpec>GROUP BY settings.
output: QueryOutputWITH PAYLOAD / WITH VECTOR projection.
page: PageSpecLIMIT / OFFSET paging.
shard_key: Option<ShardKey>SHARD '<key>' routing for tenant-partitioned collections.
Trait Implementations§
impl StructuralPartialEq for QueryStmt
Auto Trait Implementations§
impl Freeze for QueryStmt
impl RefUnwindSafe for QueryStmt
impl Send for QueryStmt
impl Sync for QueryStmt
impl Unpin for QueryStmt
impl UnsafeUnpin for QueryStmt
impl UnwindSafe for QueryStmt
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