xorm icon indicating copy to clipboard operation
xorm copied to clipboard

Add a withTransaction method

Open rohit-gohri opened this issue 6 years ago • 2 comments

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 avatar Jul 08 '19 07:07 rohit-gohri

@rohit-gohri is this issue still there?/ can i take it?

shubhankar-mern avatar Feb 16 '23 06:02 shubhankar-mern

Hi @shubhankar-mern , I don't know. I'm no longer working on this project

rohit-gohri avatar Feb 16 '23 08:02 rohit-gohri