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;
5pub mod flush_coordinator;
6pub mod id_allocator;
7pub mod id_reservoir;
8pub mod l0;
9pub mod l0_manager;
10pub mod l0_visibility;
11pub mod occ;
12pub mod property_manager;
13/// Concurrency-primitive shim: aliases to `std` normally, `loom`/`shuttle` under
14/// their features, so the OCC commit core can be model-checked. See `sync.rs`.
15pub(crate) mod sync;
16pub mod vid_remapper;
17pub mod wal;
18pub mod working_graph;
19pub mod writer;
20
21pub use l0::L0Buffer;
22pub use l0_manager::L0Manager;
23// Threads through the executor as `Option<SnapshotView>`; only ever constructed
24// when a transaction pins a snapshot (`UniConfig::ssi_enabled`, default on).
25// See `L0Manager::pin_snapshot`.
26pub use l0_manager::SnapshotView;
27pub use property_manager::PropertyManager;
28pub use vid_remapper::{EidRemapper, VidRemapper};
29// Re-export SimpleGraph from uni-common
30pub use context::QueryContext;
31pub use id_reservoir::{DEFAULT_RESERVOIR_BATCH, TxIdReservoir};
32pub use uni_common::graph::simple_graph::{Direction, SimpleGraph};
33pub use wal::WriteAheadLog;
34pub use working_graph::WorkingGraph;
35pub use writer::{ForkPoint, Writer};
36
37use uni_common::core::id::{Eid, Vid};
38
39/// Vertex data - TOPOLOGY ONLY
40#[derive(Clone, Copy, Debug)]
41pub struct VertexData {
42    pub vid: Vid,
43}
44
45/// Edge data - TOPOLOGY ONLY
46#[derive(Clone, Copy, Debug)]
47pub struct EdgeData {
48    pub eid: Eid,
49    pub edge_type: u32,
50}