Skip to main content

kaizen/store/
query.rs

1// SPDX-License-Identifier: AGPL-3.0-or-later
2//! Analytics query facade over canonical SQLite data.
3
4use crate::store::sqlite::{Store, SummaryStats};
5use anyhow::Result;
6use std::path::Path;
7
8pub struct QueryStore;
9
10impl QueryStore {
11    pub fn open(_root: &Path) -> Result<Self> {
12        Ok(Self)
13    }
14
15    pub fn summary_stats(&self, sqlite: &Store, workspace: &str) -> Result<SummaryStats> {
16        sqlite.summary_stats(workspace)
17    }
18
19    pub fn cold_event_count(&self) -> Result<u64> {
20        Ok(0)
21    }
22}