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

Method fetch_schema

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

Source from the content-addressed store, hash-verified

518#[async_trait]
519impl Store for CompositeStorage {
520 async fn fetch_schema(&self, table_name: &str) -> Result<Option<Schema>> {
521 match table_name {
522 "jhistory" => Ok(Some(self.jhistory_schema())),
523 "codex_history" => Ok(Some(self.codex_history_alias_schema())),
524 "transcripts" => Ok(Some(self.transcripts_schema())),
525 "sessions" => Ok(Some(self.sessions_schema())),
526 "todos" => Ok(Some(self.todos_schema())),
527 _ => self.json_storage.fetch_schema(table_name).await,
528 }
529 }
530
531 async fn fetch_all_schemas(&self) -> Result<Vec<Schema>> {
532 let mut schemas = self.json_storage.fetch_all_schemas().await?;

Callers

nothing calls this directly

Calls 5

jhistory_schemaMethod · 0.80
transcripts_schemaMethod · 0.80
sessions_schemaMethod · 0.80
todos_schemaMethod · 0.80

Tested by

no test coverage detected