SnapshotQueryBackend

class SnapshotQueryBackend(val bindings: QueryBindings<AggregateType>?, prepare: (AggregateType) -> Unit = {}, indexes: (AggregateType, QueryIndexPlan) -> QueryIndexReport? = null, serves: (AggregateType) -> Boolean = { bindings != null }, store: (AggregateType) -> String? = { null })

The snapshot query backend of the node: the bindings of each aggregate type's backend and storage facts (null when no backend serves the node's snapshots), and, for a backend the host manages, how it prepares an aggregate's storage and manages its x-wow-index indexes and those of its access attributes at startup.

Constructors

Link copied to clipboard
constructor(bindings: QueryBindings<AggregateType>?, prepare: (AggregateType) -> Unit = {}, indexes: (AggregateType, QueryIndexPlan) -> QueryIndexReport? = null, serves: (AggregateType) -> Boolean = { bindings != null }, store: (AggregateType) -> String? = { null })

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

Whether the host manages this backend's indexes; an application's own backend manages its own.

Functions

Link copied to clipboard

Manages plan, type's indexes planned on its query model, as the ddl of its store says.

Link copied to clipboard

Makes sure type's storage exists, so its facts are the storage's own.

Link copied to clipboard

Whether the backend queries type's snapshots: their store has a query backend.

Link copied to clipboard

The store type's snapshot queries run on, or null when the host does not know it.