Skip to main content

Module db

Module db 

Source
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§

AggregateExpr
AggregateExpr
ComparePredicate
ComparePredicate
CompiledQuery
CompiledQuery
DataStore
DataStore
DbSession
DbSession
DeleteSpec
DeleteSpec
EntityFieldDescription
EntityFieldDescription
EntityIndexDescription
EntityIndexDescription
EntityName
EntityName
EntityRelationDescription
EntityRelationDescription
EntityRuntimeHooks
EntityRuntimeHooks
EntitySchemaDescription
EntitySchemaDescription
ExecutionMetrics
ExecutionMetrics
ExecutionTrace
ExecutionTrace
ExplainAggregateTerminalPlan
ExplainAggregateTerminalPlan
ExplainExecutionDescriptor
ExplainExecutionDescriptor
ExplainExecutionNodeDescriptor
ExplainExecutionNodeDescriptor
ExplainPlan
ExplainPlan
FieldRef
FieldRef
FilterExpr
FilterExpr Schema-agnostic filter expression for dynamic query input. Lowered into a validated predicate at the intent boundary.
FluentDeleteQuery
FluentDeleteQuery
FluentLoadQuery
FluentLoadQuery
GroupedRow
GroupedRow
IndexName
IndexName
IndexStore
IndexStore
IntegrityReport
IntegrityReport
IntegrityStoreSnapshot
IntegrityStoreSnapshot
IntegrityTotals
IntegrityTotals
LoadSpec
LoadSpec
LoweredSqlCommand
LoweredSqlCommand
MigrationCursor
MigrationCursor
MigrationPlan
MigrationPlan
MigrationRowOp
MigrationRowOp
MigrationRunOutcome
MigrationRunOutcome
MigrationStep
MigrationStep
PagedGroupedExecution
PagedGroupedExecution
PagedGroupedExecutionWithTrace
PagedGroupedExecutionWithTrace
PagedLoadExecution
PagedLoadExecution
PagedLoadExecutionWithTrace
PagedLoadExecutionWithTrace
PagedLoadQuery
PagedLoadQuery
PlannedQuery
PlannedQuery
ProjectedRow
ProjectedRow
Query
Query
QueryTracePlan
QueryTracePlan
Row
Row
RowResponse
Response
SortExpr
SortExpr Schema-agnostic sort expression for dynamic query input. Lowered into a validated order spec at the intent boundary.
SqlParsedStatement
SqlParsedStatement
StorageReport
StorageReport
StoreRegistry
StoreRegistry Thread-local registry for both row and index stores.
UpdatePatch
UpdatePatch
WriteBatchResponse
WriteBatchResponse

Enums§

CoercionId
CoercionId
CompareOp
CompareOp
EntityRelationCardinality
EntityRelationCardinality
EntityRelationStrength
EntityRelationStrength
ExecutionAccessPathVariant
ExecutionAccessPathVariant
ExecutionFamily
ExecutionFamily
ExecutionOptimization
ExecutionOptimization
ExplainExecutionNodeType
ExplainExecutionNodeType
ExplainExecutionOrderingSource
ExplainExecutionOrderingSource
IndexState
IntentError
IntentError
MigrationRunState
MigrationRunState
MissingRowPolicy
MissingRowPolicy
MutationMode
OrderDirection
OrderDirection Executor-facing ordering direction (applied after filtering).
PlanError
PlanError
Predicate
Predicate
QueryError
QueryError
QueryExecutionError
QueryExecutionError
QueryMode
QueryMode
ResponseError
ResponseError
RouteExecutionMode
RouteExecutionMode
ScalarSlotValueRef
ScalarSlotValueRef
ScalarValueRef
ScalarValueRef
SqlDispatchResult
Unified SQL dispatch payload returned by shared SQL lane execution.
SqlStatementRoute
Canonical SQL statement routing metadata derived from reduced SQL parser output.
UnsupportedQueryFeature
UnsupportedQueryFeature
ValidateError
Predicate/schema validation failures, including invalid model contracts.

Traits§

PersistedRow
PersistedRow
PersistedScalar
PersistedScalar
ResponseCardinalityExt
ResponseCardinalityExt
ResponseRow
ResponseRow
SlotReader
SlotReader
SlotWriter
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::List and reconstruct each item via FieldValue.
decode_persisted_custom_slot_payload
Decode one persisted custom-schema payload through Value and reconstruct the typed field via FieldValue.
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 FieldValue representation 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§

EntityResponse
EntityResponse
ExplainExecutionMode
ExplainExecutionMode
ProjectionResponse
ProjectionResponse
TraceExecutionFamily
TraceExecutionFamily