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

Method execute

crates/execution/src/dml.rs:34–45  ·  view source on GitHub ↗
(
        &self,
        tx: &mut Tx,
        params: &impl ParamResolver,
        metrics: &mut ExecutionMetrics,
    )

Source from the content-addressed store, hash-verified

32
33impl MutExecutor {
34 pub fn execute<Tx: MutDatastore>(
35 &self,
36 tx: &mut Tx,
37 params: &impl ParamResolver,
38 metrics: &mut ExecutionMetrics,
39 ) -> Result<()> {
40 match self {
41 Self::Insert(exec) => exec.execute(tx, metrics),
42 Self::Delete(exec) => exec.execute(tx, params, metrics),
43 Self::Update(exec) => exec.execute(tx, params, metrics),
44 }
45 }
46}
47
48/// Executes row insertions

Callers 15

rpcVerifyFunction · 0.45
rpcSeedFunction · 0.45
rpcVerifyFunction · 0.45
rpcSeedFunction · 0.45
rpcVerifyFunction · 0.45
rpcSeedFunction · 0.45
rpcSeedFunction · 0.45
rpcVerifyFunction · 0.45
http_requestMethod · 0.45
run_query_for_viewFunction · 0.45
execute_plan_for_viewFunction · 0.45
execute_planFunction · 0.45

Calls 13

insert_product_valueMethod · 0.80
size_ofMethod · 0.80
delete_product_valueMethod · 0.80
iterMethod · 0.65
OkFunction · 0.50
mapMethod · 0.45
pushMethod · 0.45
to_product_valueMethod · 0.45
lenMethod · 0.45
into_iterMethod · 0.45
findMethod · 0.45
idxMethod · 0.45

Tested by

no test coverage detected