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

Function query

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

Runs a query and returns all resulting rows.

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

Source from the content-addressed store, hash-verified

43
44/// Runs a query and returns all resulting rows.
45pub async fn query<C: GenericClient + Sync>(
46 client: &C,
47 query: Sql,
48 params: &[&(dyn ToSql + Sync)],
49) -> Result<Vec<Row>, PostgresError> {
50 Ok(client.query(query.as_str(), params).await?)
51}
52
53/// Runs a prepared query and returns all resulting rows.
54pub async fn query_prepared<C: GenericClient + Sync>(

Callers 13

get_schemasFunction · 0.70
publication_infoFunction · 0.70
validate_no_rls_policiesFunction · 0.70
drop_replication_slotsFunction · 0.70
check_schema_privilegesFunction · 0.50
check_table_privilegesFunction · 0.50
run_testFunction · 0.50
query_column_namesFunction · 0.50
newMethod · 0.50
innerFunction · 0.50
run_verify_slotFunction · 0.50

Calls 2

queryMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected