

nodejs or node compat?node-postgres. I read somewhere that one benefit of Hyperdrive is it handles pooling for you. Does this mean that I can forget about generating/managing pools manually in my JS, and just leave that to Hyperdrive? i.e. I can just use rather than , or am I wrong here?



wrangler.toml, given that this file should be committed? This would mean committing sensitive information. Is there a way instead to have the connection string in .dev.vars?ERROR: In development, you should use a local postgres connection string to emulate hyperdrive functionality. Please setup postgres locally and set the value of "HYPERDRIVE"'s "localConnectionString" to the postgres connection string in your wrangler.toml
const client = new Client({ connectionString: env.REWARDS.connectionString });
try{
await client.connect();
} catch (ex){
console.log(ex)
}client.query()pool.query()hyperdrive = [
{ binding="REWARDS", id="40161c14328e4af193ee63631756f6ab" }
]