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

Method call

crates/cli/src/api.rs:75–83  ·  view source on GitHub ↗
(&self, reducer_name: &str, arg_json: String)

Source from the content-addressed store, hash-verified

73 }
74
75 pub async fn call(&self, reducer_name: &str, arg_json: String) -> anyhow::Result<reqwest::Response> {
76 Ok(self
77 .client
78 .post(self.con.db_uri("call") + "/" + reducer_name)
79 .header(http::header::CONTENT_TYPE, "application/json")
80 .body(arg_json)
81 .send()
82 .await?)
83 }
84}
85
86pub(crate) type SqlStmtResult<'a> =

Callers

nothing calls this directly

Calls 4

db_uriMethod · 0.80
sendMethod · 0.65
OkFunction · 0.50
postMethod · 0.45

Tested by

no test coverage detected