Expand description
Module: db
Responsibility: root subsystem wiring, façade re-exports, and runtime hook contracts.
Does not own: feature semantics delegated to child modules (query, executor, etc.).
Boundary: top-level db API and internal orchestration entrypoints.
Structs§
- Aggregate
Expr - AggregateExpr
- Compare
Predicate - ComparePredicate
- Compiled
Query - CompiledQuery
- Data
Store - DataStore
- DbSession
- DbSession
- Delete
Spec - DeleteSpec
- Entity
Field Description - EntityFieldDescription
- Entity
Index Description - EntityIndexDescription
- Entity
Name - EntityName
- Entity
Relation Description - EntityRelationDescription
- Entity
Runtime Hooks - EntityRuntimeHooks
- Entity
Schema Description - EntitySchemaDescription
- Execution
Metrics - ExecutionMetrics
- Execution
Trace - ExecutionTrace
- Explain
Aggregate Terminal Plan - ExplainAggregateTerminalPlan
- Explain
Execution Descriptor - ExplainExecutionDescriptor
- Explain
Execution Node Descriptor - ExplainExecutionNodeDescriptor
- Explain
Plan - ExplainPlan
- Field
Ref - FieldRef
- Filter
Expr - FilterExpr Schema-agnostic filter expression for dynamic query input. Lowered into a validated predicate at the intent boundary.
- Fluent
Delete Query - FluentDeleteQuery
- Fluent
Load Query - FluentLoadQuery
- Grouped
Row - GroupedRow
- Index
Name - IndexName
- Index
Store - IndexStore
- Integrity
Report - IntegrityReport
- Integrity
Store Snapshot - IntegrityStoreSnapshot
- Integrity
Totals - IntegrityTotals
- Load
Spec - LoadSpec
- Lowered
SqlCommand - LoweredSqlCommand
- Migration
Cursor - MigrationCursor
- Migration
Plan - MigrationPlan
- Migration
RowOp - MigrationRowOp
- Migration
RunOutcome - MigrationRunOutcome
- Migration
Step - MigrationStep
- Paged
Grouped Execution - PagedGroupedExecution
- Paged
Grouped Execution With Trace - PagedGroupedExecutionWithTrace
- Paged
Load Execution - PagedLoadExecution
- Paged
Load Execution With Trace - PagedLoadExecutionWithTrace
- Paged
Load Query - PagedLoadQuery
- Planned
Query - PlannedQuery
- Projected
Row - ProjectedRow
- Query
- Query
- Query
Trace Plan - QueryTracePlan
- Row
- Row
- RowResponse
- Response
- Sort
Expr - SortExpr Schema-agnostic sort expression for dynamic query input. Lowered into a validated order spec at the intent boundary.
- SqlParsed
Statement - SqlParsedStatement
- Storage
Report - StorageReport
- Store
Registry - StoreRegistry Thread-local registry for both row and index stores.
- Update
Patch - UpdatePatch
- Write
Batch Response - WriteBatchResponse
Enums§
- Coercion
Id - CoercionId
- Compare
Op - CompareOp
- Entity
Relation Cardinality - EntityRelationCardinality
- Entity
Relation Strength - EntityRelationStrength
- Execution
Access Path Variant - ExecutionAccessPathVariant
- Execution
Family - ExecutionFamily
- Execution
Optimization - ExecutionOptimization
- Explain
Execution Node Type - ExplainExecutionNodeType
- Explain
Execution Ordering Source - ExplainExecutionOrderingSource
- Index
State - Intent
Error - IntentError
- Migration
RunState - MigrationRunState
- Missing
RowPolicy - MissingRowPolicy
- Mutation
Mode - Order
Direction - OrderDirection Executor-facing ordering direction (applied after filtering).
- Plan
Error - PlanError
- Predicate
- Predicate
- Query
Error - QueryError
- Query
Execution Error - QueryExecutionError
- Query
Mode - QueryMode
- Response
Error - ResponseError
- Route
Execution Mode - RouteExecutionMode
- Scalar
Slot Value Ref - ScalarSlotValueRef
- Scalar
Value Ref - ScalarValueRef
- SqlDispatch
Result - Unified SQL dispatch payload returned by shared SQL lane execution.
- SqlStatement
Route - Canonical SQL statement routing metadata derived from reduced SQL parser output.
- Unsupported
Query Feature - UnsupportedQueryFeature
- Validate
Error - Predicate/schema validation failures, including invalid model contracts.
Traits§
- Persisted
Row - PersistedRow
- Persisted
Scalar - PersistedScalar
- Response
Cardinality Ext - ResponseCardinalityExt
- Response
Row - ResponseRow
- Slot
Reader - SlotReader
- Slot
Writer - SlotWriter
Functions§
- avg
- Build
avg(field). - count
- Build
count(*). - count_
by - Build
count(field). - decode_
cursor - Decode a lowercase/uppercase hex cursor token into raw bytes.
- decode_
persisted_ custom_ many_ slot_ payload - Decode one persisted repeated custom-schema payload through
Value::Listand reconstruct each item viaFieldValue. - decode_
persisted_ custom_ slot_ payload - Decode one persisted custom-schema payload through
Valueand reconstruct the typed field viaFieldValue. - decode_
persisted_ non_ null_ slot_ payload - Decode one non-null persisted slot payload through the shared leaf codec boundary.
- decode_
persisted_ option_ scalar_ slot_ payload - Decode one optional persisted scalar slot payload preserving explicit
NULL. - decode_
persisted_ option_ slot_ payload - Decode one optional persisted slot payload preserving explicit CBOR
NULL. - decode_
persisted_ scalar_ slot_ payload - Decode one persisted scalar slot payload using the canonical scalar envelope.
- decode_
persisted_ slot_ payload - Decode one persisted slot payload using the shared leaf codec boundary.
- encode_
cursor - Encode raw cursor bytes as a lowercase hex token.
- encode_
persisted_ custom_ many_ slot_ payload - Encode one repeated custom-schema payload through
Value::List. - encode_
persisted_ custom_ slot_ payload - Encode one custom-schema field payload through its
FieldValuerepresentation so structural decode preserves nested custom values. - encode_
persisted_ option_ scalar_ slot_ payload - Encode one optional persisted scalar slot payload preserving explicit
NULL. - encode_
persisted_ scalar_ slot_ payload - Encode one persisted scalar slot payload using the canonical scalar envelope.
- encode_
persisted_ slot_ payload - Encode one persisted slot payload using the shared leaf codec boundary.
- exists
- Build
exists. - first
- Build
first. - identifier_
last_ segment - Return one final dotted identifier segment.
- identifiers_
tail_ match - Return whether two SQL identifiers resolve to the same entity tail segment.
- last
- Build
last. - max
- Build
max. - max_by
- Build
max(field). - min
- Build
min. - min_by
- Build
min(field). - normalize_
identifier_ to_ scope - Normalize one possibly-qualified identifier against one SQL entity scope.
- split_
qualified_ identifier - Split one qualified identifier into
(qualifier, leaf)on the last.. - sum
- Build
sum(field).
Type Aliases§
- Entity
Response - EntityResponse
- Explain
Execution Mode - ExplainExecutionMode
- Projection
Response - ProjectionResponse
- Trace
Execution Family - TraceExecutionFamily