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
Database.transaction
According to docs, this code should be valid:
await Database.transaction(async (trx) => { await trx.insert({username: 'virk'}).into('users') })
However, method transaction() is not defined.
transaction()
The text was updated successfully, but these errors were encountered:
Fortunately there's a simple workaround:
const { knex } = Database.connection() await knex.transaction(async (trx) => { await trx.insert({username: 'virk'}).into('users') })
Sorry, something went wrong.
Weird, should have worked. Will look into it
56695d7
No branches or pull requests
According to docs, this code should be valid:
However, method
transaction()
is not defined.The text was updated successfully, but these errors were encountered: