MCPcopy Create free account
hub / github.com/douglance/devsql / load_all_sessions

Method load_all_sessions

crates/ccql/src/datasources/transcript.rs:300–312  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

298 }
299
300 pub async fn load_all_sessions(&self) -> Result<Vec<(String, Vec<serde_json::Value>)>> {
301 let sessions = self.list_sessions()?;
302 let mut all = Vec::new();
303
304 for session in sessions {
305 match streaming::read_jsonl_raw(&session.path).await {
306 Ok(entries) => all.push((session.session_id, entries)),
307 Err(e) => tracing::debug!("Failed to load session {}: {}", session.session_id, e),
308 }
309 }
310
311 Ok(all)
312 }
313
314 pub async fn search_in_sessions(&self, pattern: &regex::Regex) -> Result<Vec<SearchResult>> {
315 let sessions = self.list_sessions()?;

Callers 2

queryFunction · 0.80
searchFunction · 0.80

Calls 2

read_jsonl_rawFunction · 0.85
list_sessionsMethod · 0.80

Tested by

no test coverage detected