Are (async) transactions supposed to work in expo-sqlite?
I'm using drizzle with expo-sqlite in an expo/react-native project. The database works as expected except for transactions. As shown below, when an error happens inside a transaction the transaction is not rolled back and the error is not caught in any way.
With manual
tx.rollback()
, I get [DrizzleError: Rollback]
as expected, but it also is not caught and no rollback happens.
Am I doing something wrong or are transactions even supposed to work in expo-sqlite? I couldn't find anything explicit in the docs about this. There's also this open issue (https://github.com/drizzle-team/drizzle-orm/issues/1723) where expo-sqlite was also mentioned at some point.
GitHub
[BUG]: Transactions rollback doesn't work · Issue #1723 · drizzle-t...
What version of drizzle-orm are you using? 0.29.2 What version of drizzle-kit are you using? 0.20.9 Describe the Bug I wrote a pretty simple transaction but when the error appears rollback doesn...
0 Replies