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

Method call_sql_command

crates/core/src/host/module_host.rs:1981–1986  ·  view source on GitHub ↗
(&self, cmd: SqlCommand)

Source from the content-addressed store, hash-verified

1979 }
1980
1981 async fn call_sql_command(&self, cmd: SqlCommand) -> Result<SqlCommandResult, DBError> {
1982 call_instance!(self, "call_sql", cmd, |cmd, inst| inst.call_sql(cmd), |cmd, inst| inst
1983 .call_sql(cmd)
1984 .await,)
1985 .map_err(|_| DBError::Other(anyhow::anyhow!("no such module")))
1986 }
1987
1988 pub async fn disconnect_client(&self, client_id: ClientActorId) {
1989 log::trace!("disconnecting client {client_id}");

Callers 1

call_sqlMethod · 0.80

Calls 1

OtherClass · 0.85

Tested by

no test coverage detected