Ooo that’s good to know! So I should limit postgres.js to like 5 connections to be safe? (To avoid d
Ooo that’s good to know! So I should limit postgres.js to like 5 connections to be safe? (To avoid deadlocking unrelated http requests.)


.execute() does (I believe, that's a Postgres.js internals thing but reading through it there's nothing about what it's doing that shouldn't, it's just firing off an Execute postgres message early, which we support). .cancel() does not, Hyperdrive is not able to support query cancellation.4870f521c22c2295fdfaceef9b4aeca5.hyperdrive.local for the host.
.execute()Execute.cancel()4870f521c22c2295fdfaceef9b4aeca5.hyperdrive.locallet db: DbConnection | null = null;
let dbUrl: string | null = null:
// URL would come from `env.URL` or similar secret stored with the Worker
const getDb(url: string) => {
if(dbUrl !== url || db = null) {
db = new DbConnection(url);
dbUrl = url;
}
return db;
};