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;
13pub mod vid_remapper;
14pub mod wal;
15pub mod working_graph;
16pub mod writer;
17
18pub use l0::L0Buffer;
19pub use l0_manager::L0Manager;
20// Threads through the executor as `Option<SnapshotView>`; only ever constructed
21// when a transaction pins a snapshot (`UniConfig::ssi_enabled`, default on).
22// See `L0Manager::pin_snapshot`.
23pub use l0_manager::SnapshotView;
24pub use property_manager::PropertyManager;
25pub use vid_remapper::{EidRemapper, VidRemapper};
26// Re-export SimpleGraph from uni-common
27pub use context::QueryContext;
28pub use id_reservoir::{DEFAULT_RESERVOIR_BATCH, TxIdReservoir};
29pub use uni_common::graph::simple_graph::{Direction, SimpleGraph};
30pub use wal::WriteAheadLog;
31pub use working_graph::WorkingGraph;
32pub use writer::Writer;
33
34use uni_common::core::id::{Eid, Vid};
35
36/// Vertex data - TOPOLOGY ONLY
37#[derive(Clone, Copy, Debug)]
38pub struct VertexData {
39    pub vid: Vid,
40}
41
42/// Edge data - TOPOLOGY ONLY
43#[derive(Clone, Copy, Debug)]
44pub struct EdgeData {
45    pub eid: Eid,
46    pub edge_type: u32,
47}