TransactionContext
Index
Constructors
constructor
Parameters
Returns TransactionContext
Properties
readonlyem
readonlyid
Methods
staticcreate
Parameters
em: EntityManager<IDatabaseDriver<Connection>>
next: (...args: any[]) => T
Returns T
staticcurrentTransactionContext
Returns current TransactionContext (if available).
Returns undefined | TransactionContext
staticgetEntityManager
Returns current EntityManager (if available).
Parameters
name: string = 'default'
Returns undefined | EntityManager<IDatabaseDriver<Connection>>
Creates new TransactionContext instance and runs the code inside its domain.