Using Transactions in a Script
I'm trying to run a transaction in a file using tsx (e.g., tsx index.ts), but I'm getting the following error:
"Error: All attempts to open a WebSocket to connect to the database failed."
Is it possible to run transactions in this setup? When I remove the transactions and switch to using Neon HTTP, everything works, but I'd prefer to keep the transactions in place.
"Error: All attempts to open a WebSocket to connect to the database failed."
Is it possible to run transactions in this setup? When I remove the transactions and switch to using Neon HTTP, everything works, but I'd prefer to keep the transactions in place.
