Start a Knex transaction and run callback inside it, passing a
transaction-bound BoundQuery factory as the argument. The transaction
is committed when the callback resolves and rolled back if it rejects.
This is the callback-style counterpart to withTransaction — you
don't need to obtain a Knex.Transaction object yourself.
An async function that receives a transaction-bound
BoundQuery and returns a value. The returned value is forwarded as
the resolved value of the outer Promise.
A Promise that resolves with the value returned by callback.
Return a version of this bound factory whose queries all run within the
given Knex transaction. Equivalent to calling .transacting(trx) on
each individual builder, but more convenient when every query in a block
must share the same transaction.
Bound query function returned by createQuery.