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
17
use toasty::Model;

#[derive(Debug, Clone, Model)]
#[table = "tool_invocation_metric"]
pub struct ToolInvocationMetric {
    #[key]
    #[auto]
    pub id: u64,
    pub session_id: String,
    pub project_id: Option<u64>,
    pub tool_name: String,
    pub payload_tokens: u64,
    pub estimated_naive_tokens: u64,
    pub tokens_saved: u64,
    pub execution_duration_ms: u32,
    pub created_at: String,
}