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

Method insert_schema

crates/ccql/src/sql/composite_storage.rs:590–598  ·  view source on GitHub ↗
(&mut self, schema: &Schema)

Source from the content-addressed store, hash-verified

588#[async_trait]
589impl StoreMut for CompositeStorage {
590 async fn insert_schema(&mut self, schema: &Schema) -> Result<()> {
591 if self.is_virtual_table(&schema.table_name) {
592 Err(GlueError::StorageMsg(
593 "Cannot create schema for virtual table".to_string(),
594 ))
595 } else {
596 self.json_storage.insert_schema(schema).await
597 }
598 }
599
600 async fn delete_schema(&mut self, table_name: &str) -> Result<()> {
601 if self.is_virtual_table(table_name) {

Callers

nothing calls this directly

Calls 1

is_virtual_tableMethod · 0.80

Tested by

no test coverage detected