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

Method update_database

crates/core/src/host/module_host.rs:3077–3090  ·  view source on GitHub ↗
(
        &self,
        program: Program,
        old_module_info: Arc<ModuleInfo>,
        policy: MigrationPolicy,
    )

Source from the content-addressed store, hash-verified

3075 }
3076
3077 pub async fn update_database(
3078 &self,
3079 program: Program,
3080 old_module_info: Arc<ModuleInfo>,
3081 policy: MigrationPolicy,
3082 ) -> Result<UpdateDatabaseResult, anyhow::Error> {
3083 call_instance!(
3084 self,
3085 "<update_database>",
3086 (program, old_module_info, policy),
3087 |(a, b, c), inst| inst.update_database(a, b, c),
3088 |(a, b, c), inst| inst.update_database(a, b, c).await,
3089 )?
3090 }
3091
3092 pub async fn exit(&self) {
3093 // As in `Self::marked_closed`, `Relaxed` is sufficient because we're not synchronizing any external state.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected