MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / isInTransaction

Method isInTransaction

packages/core/src/EntityManager.ts:2644–2646  ·  view source on GitHub ↗

* Checks whether this EntityManager is currently operating inside a database transaction.

()

Source from the content-addressed store, hash-verified

2642 * Checks whether this EntityManager is currently operating inside a database transaction.
2643 */
2644 isInTransaction(): boolean {
2645 return !!this.getContext(false).#transactionContext;
2646 }
2647
2648 /**
2649 * Gets the transaction context (driver dependent object used to make sure queries are executed on same connection).

Callers 3

checkLockRequirementsMethod · 0.95
doCommitMethod · 0.80
lockPessimisticMethod · 0.80

Calls 1

getContextMethod · 0.95

Tested by

no test coverage detected