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

Function execute_prepared

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

Runs a prepared query and returns the number of affected rows.

(
    client: &C,
    statement: &Statement,
    params: &[&(dyn ToSql + Sync)],
)

Source from the content-addressed store, hash-verified

106
107/// Runs a prepared query and returns the number of affected rows.
108pub async fn execute_prepared<C: GenericClient + Sync>(
109 client: &C,
110 statement: &Statement,
111 params: &[&(dyn ToSql + Sync)],
112) -> Result<u64, PostgresError> {
113 Ok(client.execute(statement, params).await?)
114}
115
116/// Runs one or more SQL statements with no returned rows.
117pub async fn batch_execute<C: GenericClient + Sync>(

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected