Stores one or many messages in the outbox, all or none.
Pass tx to store them in the transaction of your application, so that they are stored only when it commits.
Optionaloptions: PublishOptionsRuns the migrations (unless migrate is false) and starts polling the outbox.
A function that stops polling, waits for the message being published, releases the claims and closes the pool that Hermes polls with. It does not close the pool of getDbConnection.
Returns the pool that
queue()uses withouttx. It is created on the first call and stays open afterstop(), so the application can keep using it; close it withend()when the application shuts down. Hermes polls with another pool.