Installable execution boundary for canonical Flow queries.
OSS uses the bounded cost-aware planner. Extensions may inject trusted mandatory scope, authorization, budgets, and index metadata through the existing instance behaviours after parsing and parameter binding.
Summary
Functions
Returns the absolute Unix-millisecond request deadline, when one was supplied.
Returns the immutable FerricStore instance carried by an execution context.
Returns trusted request authority carried by the execution context.
Returns the trusted query response codec selected by the protocol boundary.
Types
Callbacks
@callback capabilities() :: capability_manifest()
@callback execute(context(), Ferricstore.Flow.Query.Request.t()) :: result()
Functions
@spec capabilities(context()) :: capability_manifest()
@spec deadline_ms(context()) :: pos_integer() | nil
Returns the absolute Unix-millisecond request deadline, when one was supplied.
Engines should convert this value to a monotonic deadline once at query initialization and use that value for subsequent budget checks.
@spec execute(context(), Ferricstore.Flow.Query.Request.t(), keyword()) :: result()
@spec instance_context(context()) :: FerricStore.Instance.t() | map()
Returns the immutable FerricStore instance carried by an execution context.
Query-engine implementations should use this accessor instead of depending on the protocol layer's context wrapper.
Returns trusted request authority carried by the execution context.
Embedded calls and native requests without trusted authority return an empty map.
@spec response_codec(context()) :: Ferricstore.Flow.Query.ExecutionContext.response_codec()
Returns the trusted query response codec selected by the protocol boundary.
Embedded callers and contexts that do not carry a negotiated codec use the typed native-value representation.