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

Method update

crates/client-api/src/lib.rs:196–206  ·  view source on GitHub ↗
(
        &self,
        database: Database,
        host_type: HostType,
        program_bytes: Box<[u8]>,
        policy: MigrationPolicy,
    )

Source from the content-addressed store, hash-verified

194 }
195
196 pub async fn update(
197 &self,
198 database: Database,
199 host_type: HostType,
200 program_bytes: Box<[u8]>,
201 policy: MigrationPolicy,
202 ) -> anyhow::Result<UpdateDatabaseResult> {
203 self.host_controller
204 .update_module_host(database, host_type, self.replica_id, program_bytes, policy)
205 .await
206 }
207}
208/// Parameters for publishing a database.
209///

Callers 15

index.tsFile · 0.45
reducers.tsFile · 0.45
updateActivityFunction · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
processScheduledMessagesFunction · 0.45
index.tsFile · 0.45
checkRateLimitFunction · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
upsertRoomReadPositionFunction · 0.45
index.tsFile · 0.45

Calls 1

update_module_hostMethod · 0.80

Tested by

no test coverage detected