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

Method call_reducer_json

crates/testing/src/modules.rs:91–94  ·  view source on GitHub ↗
(&self, reducer: &str, args: &sats::ProductValue)

Source from the content-addressed store, hash-verified

89 }
90
91 pub async fn call_reducer_json(&self, reducer: &str, args: &sats::ProductValue) -> anyhow::Result<()> {
92 let args = serde_json::to_string(&args).unwrap();
93 self.call_reducer(reducer, FunctionArgs::Json(args.into())).await
94 }
95
96 pub async fn call_reducer_binary(&self, reducer: &str, args: &sats::ProductValue) -> anyhow::Result<()> {
97 let args = bsatn::to_vec(&args).unwrap();

Callers 2

test_call_query_macroFunction · 0.80
bench_callFunction · 0.80

Calls 3

to_stringFunction · 0.50
unwrapMethod · 0.45
call_reducerMethod · 0.45

Tested by 2

test_call_query_macroFunction · 0.64
bench_callFunction · 0.64