Expand description
Contracts a query engine and a write engine share.
The in-memory query engine and the local write engine are the only implementations. A later engine implements these traits in its own crate. Nothing here names a concrete graph or a concrete log.
Re-exports§
pub use catalog_image::map_put_database;pub use catalog_image::SchemaSnapshot;pub use catalog_image::ShowSchema;pub use catalog_image::TheaterData;pub use graph_type::canonical_default_clause;pub use graph_type::DefaultValue;pub use graph_type::GraphTypeSpec;pub use redo::legacy_property_encoding;pub use redo::props_from_json;pub use redo::props_json;pub use redo::split_legacy_property_encoding;pub use redo::CatalogName;pub use redo::IndexDetailSpec;pub use redo::IndexKindSpec;pub use redo::OntologyOp;pub use redo::PullKind;pub use redo::RedoOp;pub use redo::WriteTarget;pub use redo::MAX_ONTOLOGY_SPEC_BYTES;
Modules§
- graph_
type - Persisted graph-type model shared by query engines and snapshot codecs. Semantic validation and derivation stay with the in-memory engine.
- redo
- Physical redo ops for the WAL (ADR-0012). Not Cypher text.
Structs§
- Commit
Group - One group’s redo, captured against the snapshot the statement read.
- Commit
Record - Committed
Slot - The clock value the log assigned to one group.
- Engine
Ids - The pair a manifest records. Absent fields mean the historical engines.
- Read
Request - A read the facade has already planned and admitted.
- Schema
Snapshot - Catalog facts captured alongside an entity pin at read admission. The caller serializes capture with commit publication; execution needs no publication lock and never consults newer named schema.
- Show
Schema - The read-admission SHOW metadata: the store-level databases table plus
the graph’s committed theater maps, captured at one admission point.
Composes
TheaterDatathe way [CheckpointTheater] does, so the five maps exist once. Speculative catalog redo is applied by the query engine that owns derivation; committed state changes only when that engine applies redo. - Theater
Data - The five committed per-graph SHOW-metadata maps that make up a checkpoint
theater. Composed by the live graph state (a plain
TheaterData), the serialized checkpoint image (CheckpointTheater’s flatteneddata) and the read-admission snapshot (ShowSchema’sdata). The databases table is NOT here: it is the store-level databases table (ADR-0276). - Write
Request - A write the facade has already planned.
scratchis the engine’s private transaction state.
Enums§
- Follow
Batch - What a follower poll returns.
- Query
Engine Id - Write
Engine Id
Constants§
- LOCAL_
WRITE_ ENGINE - Write engine identity stored in a checkpoint manifest.
- MEMORY_
QUERY_ ENGINE - Query engine identity stored in a checkpoint manifest.
Traits§
- Graph
Export - Graph
Import - The fill side of a graph: what a codec installs checkpoint rows through.
Syncbecause the restore installs one worker’s rows per core — a slice’s install is the same interior-mutable call the single-threaded path made. - Query
Engine - Snapshot
Graph - A graph a codec can both read and fill.
Defaultbuilds the empty engine recovery starts from. - Write
Engine
Functions§
- map_
put_ database - ADR-0116 §8: record a namespace’s default language in
map. The redo name is the serde/replay boundary: it matches the fixed namespaces case-insensitively and is stored under the typed key; entries for any other name (written by earlierCREATE DATABASEcalls or an older binary) are dropped here.