-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
Feature request
It would be great to have some way to monitor connection events for reporting purposes and to setup defaults for the connection. For example, in Node I would run:
dbPool.on("connect", (client: PoolClient) => {
if (ENV.TEST) {
// Prefer indexes even on small tables. This disables optimizations in PostgreSQL that
// prefers scanning small tables, thus changing how EXPLAIN works between test and prod environments.
// @see: https://www.postgresql.org/docs/9.4/static/runtime-config-query.html#GUC-ENABLE-SEQSCAN
client.query(`SET enable_seqscan = OFF;`);
}
});I don't see a similar way to do this in the Deno driver.
Metadata
Metadata
Assignees
Labels
No labels