We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drizzle-orm
0.30.9
drizzle-kit
0.20.17
The following async transaction doesn't work for any of the sqlite implementation (except sqlite-proxy)
await db.transaction(async tx => { await tx.delete(schema.items) if (items.length >= 1) { await tx.insert(schema.items) .values(items) .onConflictDoNothing() } })
Logger will print something like this:
begin delete from "items" commit insert into "items" values (...)
Async transactions (like in the sqlite documentation)
should work, like sync transactions
db.transaction(tx => { tx.delete(schema.items).run() if (items.length >= 1) { tx.insert(schema.items) .values(items) .onConflictDoNothing() .run() } })
, but the transaction callbacks are not awaited, except for sqlite-proxy.
await
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of
drizzle-orm
are you using?0.30.9
What version of
drizzle-kit
are you using?0.20.17
Describe the Bug
The following async transaction doesn't work for any of the sqlite implementation (except sqlite-proxy)
Logger will print something like this:
Expected behavior
Async transactions (like in the sqlite documentation)
should work, like sync transactions
, but the transaction callbacks are not
await
ed, except for sqlite-proxy.Environment & setup
The text was updated successfully, but these errors were encountered: