ccql 0.2.1

Claude Code Query Language - SQL query engine for Claude Code data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::config::Config;
use crate::error::Result;
use crate::streaming;

pub struct CodexHistoryDataSource {
    config: Config,
}

impl CodexHistoryDataSource {
    pub fn new(config: Config) -> Self {
        Self { config }
    }

    pub async fn load_raw(&self) -> Result<Vec<serde_json::Value>> {
        streaming::read_jsonl_raw(self.config.jhistory_file()).await
    }
}