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

Function pg_batch_execute

src/persist/src/postgres.rs:78–81  ·  view source on GitHub ↗

NOTE: `mz-persist` intentionally does not depend on `mz-postgres-util`. These helpers are the only direct driver-call boundary in this module.

(client: &Object, query: &str)

Source from the content-addressed store, hash-verified

76/// NOTE: `mz-persist` intentionally does not depend on `mz-postgres-util`.
77/// These helpers are the only direct driver-call boundary in this module.
78async fn pg_batch_execute(client: &Object, query: &str) -> Result<(), tokio_postgres::Error> {
79 #[allow(clippy::disallowed_methods)]
80 client.batch_execute(query).await
81}
82
83async fn pg_query_prepared(
84 client: &Object,

Callers 7

openMethod · 0.70
drop_and_recreateMethod · 0.70
serve_with_triggerMethod · 0.50
enable_feature_flagsMethod · 0.50
disable_feature_flagsMethod · 0.50

Calls 1

batch_executeMethod · 0.80

Tested by 5

serve_with_triggerMethod · 0.40
enable_feature_flagsMethod · 0.40
disable_feature_flagsMethod · 0.40