forUpdate() should not require a transaction if Knex is used as a query builder only #2403
Labels
Comments
Sounds like a legit use case. I don't see any reason why this couldn't be implemented. |
wubzz
added a commit
to wubzz/knex
that referenced
this issue
Feb 16, 2018
wubzz
added a commit
that referenced
this issue
Feb 16, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use Knex as a query builder (not using the built in connection support) and I have problems with forUpdate() requiring a transaction.
I am using a transaction, but not via Knex. So if Knex is not connected to a database (used as a query builder only) I don't think it should require a transaction. To get around this problem I have to manually add the FOR UPDATE statement to my queries. Would it be possible to fix this?
The text was updated successfully, but these errors were encountered: