BEGIN ... COMMIT inserted wrong
I'm trying to run this code:
And it prints the following line to console
Why is this? Is it a serious bug with transactions (using better-sqlite3) or just a weirdness of the console log?
DB setup is as simple as
2 Replies
Ah, I think I get it, adding the async/await when using a sync driver, like better-sqlite3 is totally corrupting the transaction logic.
Opened a discussion:
https://github.com/drizzle-team/drizzle-orm/discussions/4631
GitHub
Universal transactions for both sync and async drivers · drizzle-t...
I'm trying to write a transaction snippet which works both with sync and async drivers. It took me a while to realize, that: I can write async code and it'll seem to work with all drivers, ...