1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! # codegraph
//!
//! A fast, reliable, and flexible graph database optimized for storing and querying code relationships.
//!
//! ## Core Principles
//!
//! - **Parser Agnostic**: Bring your own parser, we handle the graph
//! - **Performance First**: Sub-100ms queries for responsive tooling
//! - **Test-Driven**: Comprehensive test coverage ensures reliability
//! - **Zero Magic**: Explicit over implicit, always
//! - **Persistence Primary**: Durable storage with RocksDB
//!
//! ## Architecture
//!
//! codegraph is organized in layers:
//!
//! ```text
//! User Tools (parsers, analysis)
//! ↓
//! Code Helpers (convenience API)
//! ↓
//! Query Builder (fluent interface)
//! ↓
//! Core Graph (nodes, edges, algorithms)
//! ↓
//! Storage Backend (RocksDB, memory)
//! ```
//!
//! ## Example
//!
//! ```rust,no_run
//! use codegraph::{CodeGraph, helpers};
//! use std::path::Path;
//!
//! // Explicit graph creation with persistent storage
//! let mut graph = CodeGraph::open(Path::new("./my_project.graph")).unwrap();
//!
//! // Explicitly add a file to the graph using helper functions
//! let file_id = helpers::add_file(&mut graph, "main.rs", "rust").unwrap();
//!
//! // Users explicitly parse and add entities (no magic scanning)
//! // Parser integration is up to the user
//! ```
// Re-export main types
pub use ;
pub use ;
pub use QueryBuilder;
pub use ;