MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / execute

Function execute

src/postgres-util/src/query.rs:99–105  ·  view source on GitHub ↗

Runs a query and returns the number of affected rows.

(
    client: &C,
    query: Sql,
    params: &[&(dyn ToSql + Sync)],
)

Source from the content-addressed store, hash-verified

97
98/// Runs a query and returns the number of affected rows.
99pub async fn execute<C: GenericClient + Sync>(
100 client: &C,
101 query: Sql,
102 params: &[&(dyn ToSql + Sync)],
103) -> Result<u64, PostgresError> {
104 Ok(client.execute(query.as_str(), params).await?)
105}
106
107/// Runs a prepared query and returns the number of affected rows.
108pub async fn execute_prepared<C: GenericClient + Sync>(

Callers 9

health_operator_runnerFunction · 0.50
renderFunction · 0.50
run_benchmarkFunction · 0.50
run_testFunction · 0.50
execute_sqlFunction · 0.50
newMethod · 0.50
dump_relationMethod · 0.50
run_dataflowFunction · 0.50
executeMethod · 0.50

Calls 2

executeMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected