Skip to main content

uni_store/runtime/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2024-2026 Dragonscale Team
3
4pub mod context;
5/// Embedding-capability mapping (task→heads) and per-alias head requirements,
6/// shared by open-time validation and write-time auto-embed routing.
7pub mod embed_caps;
8pub mod flush_coordinator;
9pub mod id_allocator;
10pub mod id_reservoir;
11pub mod l0;
12pub mod l0_manager;
13pub mod l0_visibility;
14pub mod occ;
15pub mod property_manager;
16/// Concurrency-primitive shim: aliases to `std` normally, `loom`/`shuttle` under
17/// their features, so the OCC commit core can be model-checked. See `sync.rs`.
18pub(crate) mod sync;
19pub mod vid_remapper;
20pub mod wal;
21pub mod working_graph;
22pub mod writer;
23
24pub use l0::L0Buffer;
25pub use l0_manager::L0Manager;
26// Threads through the executor as `Option<SnapshotView>`; only ever constructed
27// when a transaction pins a snapshot (`UniConfig::ssi_enabled`, default on).
28// See `L0Manager::pin_snapshot`.
29pub use l0_manager::SnapshotView;
30pub use property_manager::PropertyManager;
31pub use vid_remapper::{EidRemapper, VidRemapper};
32// Re-export SimpleGraph from uni-common
33pub use context::QueryContext;
34pub use id_reservoir::{DEFAULT_RESERVOIR_BATCH, TxIdReservoir};
35pub use uni_common::graph::simple_graph::{Direction, SimpleGraph};
36pub use wal::WriteAheadLog;
37pub use working_graph::WorkingGraph;
38pub use writer::{ForkPoint, Writer};
39
40use uni_common::core::id::{Eid, Vid};
41
42/// Vertex data - TOPOLOGY ONLY
43#[derive(Clone, Copy, Debug)]
44pub struct VertexData {
45    pub vid: Vid,
46}
47
48/// Edge data - TOPOLOGY ONLY
49#[derive(Clone, Copy, Debug)]
50pub struct EdgeData {
51    pub eid: Eid,
52    pub edge_type: u32,
53}