scryer-db 0.2.0

Database models and Turso/SQLite storage layer for Scryer code intelligence
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use toasty::Model;

#[derive(Debug, Clone, Model)]
#[table = "code_graph_edge"]
pub struct CodeGraphEdge {
    #[key]
    #[auto]
    pub id: u64,
    #[index]
    pub project_id: u64,
    #[index]
    pub source_symbol_id: u64,
    #[index]
    pub target_symbol_id: u64,
    pub edge_type: String, // "calls", "implements", "instantiates", "imports"
}