Closed psarna closed 1 year ago
@penberg NOTE: this is entirely untested yet, because I have no idea how to run tests for this typescript driver, and this is pretty much the first snippet of typescript code I ever produced. I'll keep researching how to validate this
@penberg any clue why CI with Vercel Edge fails? It doesn't look related to the patch
This commit attempts to implement the following mechanism:
That way we can safely run multiple transactions from a single client, without risking a "cannot begin transaction within transaction" error that comes from trying to send BEGIN twice on a single db connection.