Skip to main content

cypherlite_core/
lib.rs

1#![warn(missing_docs)]
2//! Core types, traits, and error definitions for the CypherLite graph database.
3
4/// Database configuration and sync mode definitions.
5pub mod config;
6/// Error types for all CypherLite operations.
7pub mod error;
8/// Trait definitions for transactions and registries.
9pub mod traits;
10/// Core graph data types (nodes, edges, properties, identifiers).
11pub mod types;
12
13/// Trigger-related data types (always available, not feature-gated).
14pub mod trigger_types;
15
16/// Plugin system: base trait, extension traits, and registry.
17#[cfg(feature = "plugin")]
18pub mod plugin;
19
20pub use config::{DatabaseConfig, SyncMode};
21pub use error::{CypherLiteError, Result};
22pub use traits::{LabelRegistry, TransactionView};
23pub use types::{Direction, EdgeId, NodeId, NodeRecord, PageId, PropertyValue, RelationshipRecord};
24
25#[cfg(feature = "subgraph")]
26pub use types::{GraphEntity, SubgraphId, SubgraphRecord};
27
28#[cfg(feature = "hypergraph")]
29pub use types::{HyperEdgeId, HyperEdgeRecord};
30
31pub use trigger_types::{EntityType, TriggerContext, TriggerOperation};