Expand description
Versioned schema identities, facts, provenance, and fingerprints. Reusable typed query plans and the first public V2 read vocabulary. Reusable typed query plans: the first public V2 read vocabulary.
A QueryPlan extends the minimal
migration-assertion primitives into a
reusable, invocation-free read program: dense typed bindings, declared
typed inputs, one closed pattern conjunction, and an ordered pipeline of
V1-parity stages (select, require, distinct, sort, offset,
limit) ending in one explicit output. Later vocabulary — functions,
reductions, documents, reachability — stays reserved behind independent
capabilities and is absent from this format, not defaulted.
The persisted assertion algebra keeps its exact meaning: this
module defines its own pattern vocabulary rather than widening
AssertionPattern.
Structs§
- Compatibility
Value V2 - One exact V2 compatibility scalar.
- Document
Field - One key-value field of a fetched document.
- Hydration
Binding V2 - Declared-to-concrete subtype authority for one plan binding.
- Hydration
Descriptor V2 - Complete field/role authority for one concrete model descriptor.
- Hydration
Field V2 - One descriptor-qualified hydrated model field.
- Hydration
Player V2 - Declared-to-concrete authority for one hydrated role-player occurrence.
- Hydration
Projection V2 - Complete same-snapshot hydration authority for one model query.
- Hydration
Role V2 - One descriptor-qualified hydrated relation role.
- Input
Column - One typed input column declaration owned by the reusable plan.
- Input
Column Id - One dense typed input column identity.
- Input
Row - One rectangular invocation input row.
- Local
Function - One plan-local function defined from the closed pattern algebra.
- Local
Return - The declared scalar return of one plan-local function.
- Order
Term - One typed sort key.
- Query
Binding Pair V2 - One canonical explicit cross-join permission.
- Query
Field V2 - One descriptor-qualified field reference in the compatibility algebra.
- Query
Invocation - One executable invocation of a reusable validated plan.
- Query
Named Output Slot V2 - One named public output member.
- Query
Order Term V2 - One descriptor-qualified model-query order term.
- Query
Plan - A reusable, invocation-free typed read program.
- Query
Plan Fingerprint - Fingerprint of exact canonical query-plan bytes.
- Query
Plan V2Compatibility - The additive V2-only compatibility portion of one query plan.
- Query
Reduction Term V2 - One ordered typed reducer term.
- Query
Stable Order V2 - A validator-proven stable total order.
- Query
Window V2 - One bounded model-query result window.
- Reduce
Assignment - One reduce-stage assignment producing a fresh value binding.
Enums§
- Document
Source - One value source of a fetched document field.
- Model
Query V2 - The released model-query terminal contract carried by a V2 plan.
- Order
Direction - The sort direction of one order term.
- Query
Comparator V2 - The closed comparison vocabulary accepted by the released match facade.
- Query
Missing Order V2 - Placement of missing order values.
- Query
Model Output Slot V2 - One public model-query output slot.
- Query
Model Output V2 - Positional or named model-query output shape.
- Query
Operand - One typed operand inside a query value comparison.
- Query
Operation - The closed operation vocabulary of the first public revision.
- Query
Order Direction V2 - Direction of one model-query order term.
- Query
Output - The explicit output category of the first public vocabulary.
- Query
Pattern - The closed typed pattern algebra of the first public vocabulary.
- Query
Pattern V2 - The closed boolean compatibility algebra used by the production adapter.
- Query
Reduction Group V2 - Optional grouping contract for one model-compatible reduction terminal.
- Query
Reduction Kind V2 - The closed reducer vocabulary used by model-compatible V2 terminals.
- Query
RowCardinality V2 - Cardinality required from a hydrated row query.
- Read
Stage - One ordered read stage of the first public vocabulary.
- Reducer
- The closed reducer vocabulary of the first reduce stage.
- Released
Value Kind V2 - A released-only lexical scalar domain carried by a V2 compatibility value.
Constants§
- QUERY_
PLAN_ CANONICALIZATION - V1 canonicalization version retained for source compatibility.
- QUERY_
PLAN_ CANONICALIZATION_ V1 - The V1 canonicalization version.
- QUERY_
PLAN_ CANONICALIZATION_ V2 - The additive V2 canonicalization version.
- QUERY_
PLAN_ FINGERPRINT_ DOMAIN - Domain separating query-plan fingerprints from every other digest.
- QUERY_
PLAN_ FORMAT_ V1 - The exact wire discriminator for first-format query plans.
- QUERY_
PLAN_ FORMAT_ V2 - The exact wire discriminator for additive query plans.
Functions§
- decode_
query_ invocation - Decode exact canonical invocation bytes and bind them to one trusted plan.
- decode_
query_ plan - Decode canonical bytes through private constructor-rebuilding wire types.
- query_
given_ rows_ capability - Return the transport capability exact
giveninvocations require. - query_
plan_ authoring_ capability_ vocabulary - Return every capability the public low-level V2 authoring surface can derive.
- query_
plan_ capability_ vocabulary - Return every capability the first query-plan vocabulary can require.
- query_
plan_ v2_ capability_ vocabulary - Return every capability an additive V2 plan can syntax-derive.
Type Aliases§
- Model
Output V2 - Concise alias used by remote response-shape contracts.