Open nonua opened 8 months ago
Running into same issue using sqlite.
Running into a similar issue: I just noticed that async transactions aren't automatically rolled back on error, which would be the expected behavior 🥹
This is definitely an issue. https://github.com/drizzle-team/drizzle-orm/issues/1723#issuecomment-1947752593
This is a major issue that really needs to be fixed...
What version of
drizzle-orm
are you using?0.28.6
What version of
drizzle-kit
are you using?0.19.13
Describe the Bug
When using a synchronous
sqlite
driver with transactions, only a synchronous callback would apply the rollback.Example:
this was particularly difficult to debug because the docs describe that this is a valid syntax for any driver (or rather does not specify a difference).
Expected behavior
Either:
sqlite
sqlite
API work with transactions