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

Method scan_data

crates/ccql/src/sql/composite_storage.rs:570–584  ·  view source on GitHub ↗
(&self, table_name: &str)

Source from the content-addressed store, hash-verified

568 }
569
570 async fn scan_data(&self, table_name: &str) -> Result<RowIter<'_>> {
571 if self.is_virtual_table(table_name) {
572 let rows = match table_name {
573 "jhistory" | "codex_history" => self.scan_jhistory()?,
574 "transcripts" => self.scan_transcripts()?,
575 "sessions" => self.scan_sessions()?,
576 "todos" => self.scan_todos()?,
577 _ => Vec::new(),
578 };
579
580 Ok(rows_to_iter(rows))
581 } else {
582 self.json_storage.scan_data(table_name).await
583 }
584 }
585}
586
587// Implement StoreMut (delegate to JsonStorage for non-virtual tables)

Callers 1

scan_indexed_dataMethod · 0.80

Calls 6

rows_to_iterFunction · 0.85
is_virtual_tableMethod · 0.80
scan_jhistoryMethod · 0.80
scan_transcriptsMethod · 0.80
scan_sessionsMethod · 0.80
scan_todosMethod · 0.80

Tested by

no test coverage detected