(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 🙂
Drizzle ORM - Transactions
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
1 Reply
Matthias
MatthiasOP•3mo ago
Hi there, does anyone has thoughts on this? Still an issue… Thanks & best regards

Did you find this page helpful?