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

Method init_database

crates/core/src/host/module_host.rs:3066–3075  ·  view source on GitHub ↗
(&self, program: Program)

Source from the content-addressed store, hash-verified

3064 }
3065
3066 pub async fn init_database(&self, program: Program) -> Result<Option<ReducerCallResult>, InitDatabaseError> {
3067 call_instance!(
3068 self,
3069 "<init_database>",
3070 program,
3071 |p, inst| inst.init_database(p),
3072 |p, inst| inst.init_database(p).await,
3073 )?
3074 .map_err(InitDatabaseError::Other)
3075 }
3076
3077 pub async fn update_database(
3078 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected