Skip to main content

uni_common/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2024-2026 Dragonscale Team
3
4pub mod api {
5    pub mod error;
6}
7
8pub mod config;
9pub mod cypher_value_codec;
10pub mod sync;
11pub mod value;
12
13pub mod core {
14    pub mod edge_type;
15    pub mod id;
16    pub mod schema;
17    pub mod snapshot;
18}
19
20pub mod graph {
21    pub mod simple_graph;
22}
23
24// Re-exports for convenience
25pub use api::error::{Result, UniError};
26pub use config::{CloudStorageConfig, UniConfig};
27pub use core::edge_type::EdgeTypeId;
28pub use core::id::{Eid, UniId, Vid};
29pub use core::schema::{CrdtType, DataType, Schema};
30pub use graph::simple_graph::SimpleGraph;
31#[doc(inline)]
32pub use value::{Edge, FromValue, Node, Path, TemporalType, TemporalValue, Value};
33
34/// String-keyed property map using [`Value`] for type-preserving storage.
35pub type Properties = std::collections::HashMap<String, Value>;