Matthias
DTDrizzle Team
•Created by Matthias on 5/13/2025 in #help
(Async) Transactions & SQLite
The docs at https://orm.drizzle.team/docs/transactions suggest using both await db.transaction() and an async callback function, which seems straightforward.
However, SQLite discourages the use of async callbacks for documented reasons.
As of better-sqlite3 version 11.10, using an async function triggers an exception.
What is the recommended way to handle transactions with (better-)sqlite3?
Any hints would be appreciated.
Thanks 🙂
1 replies