Skip to main content

omnigraph/db/
mod.rs

1pub mod commit_graph;
2pub mod graph_coordinator;
3pub mod manifest;
4mod omnigraph;
5mod run_registry;
6mod schema_state;
7
8pub use commit_graph::GraphCommit;
9pub use graph_coordinator::{GraphCoordinator, ReadTarget, ResolvedTarget, SnapshotId};
10pub use manifest::{Snapshot, SubTableEntry, SubTableUpdate};
11pub use omnigraph::{
12    CleanupPolicyOptions, MergeOutcome, Omnigraph, SchemaApplyResult, TableCleanupStats,
13    TableOptimizeStats,
14};
15pub(crate) use omnigraph::ensure_public_branch_ref;
16pub(crate) use run_registry::is_internal_run_branch;
17
18pub(crate) const SCHEMA_APPLY_LOCK_BRANCH: &str = "__schema_apply_lock__";
19
20pub(crate) fn is_schema_apply_lock_branch(name: &str) -> bool {
21    name.trim_start_matches('/') == SCHEMA_APPLY_LOCK_BRANCH
22}
23
24pub(crate) fn is_internal_system_branch(name: &str) -> bool {
25    is_internal_run_branch(name) || is_schema_apply_lock_branch(name)
26}