The slice of a unit of work the outbox write needs: a repository whose create runs inside the caller's transaction.
create
@setu-ts/database-plugin's IUnitOfWork satisfies it structurally, so a caller passes the unit of work its own transaction(...) handed it.
@setu-ts/database-plugin
IUnitOfWork
transaction(...)
0.9.0
Returns the transaction-scoped repository for an entity.
The entity name
A repository whose create writes inside the caller's transaction
Creates a row.
The row to write
A promise that settles when the row is written (or buffered for commit)
The slice of a unit of work the outbox write needs: a repository whose
createruns inside the caller's transaction.@setu-ts/database-plugin'sIUnitOfWorksatisfies it structurally, so a caller passes the unit of work its owntransaction(...)handed it.Since
0.9.0