MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / extract_schema

Method extract_schema

crates/testing/src/modules.rs:211–217  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

209 }
210
211 pub async fn extract_schema(&self) -> ModuleDef {
212 // TODO: extract_schema should accept &[u8]
213 let boxed_bytes: Box<[u8]> = self.program_bytes()[..].into();
214 spacetimedb::host::extract_schema(boxed_bytes, self.host_type)
215 .await
216 .unwrap()
217 }
218
219 pub fn extract_schema_blocking(&self) -> ModuleDef {
220 start_runtime().block_on(self.extract_schema())

Callers 1

Calls 3

extract_schemaFunction · 0.50
program_bytesMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected