scryer-db 0.3.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
use toasty::Model;

/// What the last indexing run found, as JSON, one row per project: unresolved references,
/// parse failures, dependency state. Replaced on every run that changes the index.
#[derive(Debug, Clone, Model)]
#[table = "index_stats"]
pub struct IndexStats {
    #[key]
    #[auto]
    pub id: u64,
    pub project_id: u64,
    pub updated_at: String,
    pub stats_json: String,
}