Closed OultimoCoder closed 2 months ago
Does it work in a simpler case like
await db.transaction().execute(async (tx) => {
console.log(await sql`SELECT 1`.execute(tx));
});
This can be closed. This was me misunderstanding schema databases and using one instead of a normal one.
They work locally when running tests but as soon as I am running it with my turso db the simple transaction below will fail (the same code works with planetscale):
The same error everytime:
I want to be clear I am 100% not running a migration whatsoever. This is a cloudflare worker endpoint all it does is instantiate a db and call this code.
Any idea what's going on? I can't use this if i can't use transactions.