(&self)
| 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) { |
nothing calls this directly
no test coverage detected