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

Method fetch_all_schemas

crates/ccql/src/sql/composite_storage.rs:531–547  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

529 }
530
531 async fn fetch_all_schemas(&self) -> Result<Vec<Schema>> {
532 let mut schemas = self.json_storage.fetch_all_schemas().await?;
533
534 if self.config.jhistory_file().exists() {
535 schemas.push(self.jhistory_schema());
536 schemas.push(self.codex_history_alias_schema());
537 }
538 if self.config.transcripts_dir().exists() || self.config.projects_dir().exists() {
539 schemas.push(self.transcripts_schema());
540 schemas.push(self.sessions_schema());
541 }
542 if self.config.todos_dir().exists() {
543 schemas.push(self.todos_schema());
544 }
545
546 Ok(schemas)
547 }
548
549 async fn fetch_data(&self, table_name: &str, key: &Key) -> Result<Option<DataRow>> {
550 if self.is_virtual_table(table_name) {

Callers

nothing calls this directly

Calls 9

jhistory_fileMethod · 0.80
jhistory_schemaMethod · 0.80
transcripts_dirMethod · 0.80
projects_dirMethod · 0.80
transcripts_schemaMethod · 0.80
sessions_schemaMethod · 0.80
todos_dirMethod · 0.80
todos_schemaMethod · 0.80

Tested by

no test coverage detected