xorm
xorm copied to clipboard
Add a withTransaction method
Something like: https://github.com/tgriesser/knex/issues/2462#issuecomment-364813102 can be added to Model class
async function withTransaction(knex, fn) {
if (knex) return fn(knex);
return transaction(Model.knex(), fn);
}
@rohit-gohri is this issue still there?/ can i take it?
Hi @shubhankar-mern , I don't know. I'm no longer working on this project