(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.
0 Replies