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

Function query_prepared

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

Runs a prepared query and returns all resulting rows.

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

Source from the content-addressed store, hash-verified

52
53/// Runs a prepared query and returns all resulting rows.
54pub async fn query_prepared<C: GenericClient + Sync>(
55 client: &C,
56 statement: &Statement,
57 params: &[&(dyn ToSql + Sync)],
58) -> Result<Vec<Row>, PostgresError> {
59 Ok(client.query(statement, params).await?)
60}
61
62/// Runs a query and returns exactly one row.
63pub async fn query_one<C: GenericClient + Sync>(

Callers 1

try_run_sqlFunction · 0.85

Calls 1

queryMethod · 0.45

Tested by

no test coverage detected