Would you consider some sort of hook that gives access to the transaction used by the event store repository and the events.
I'd like to be able to write events to an outbox atomic with persistence of the events themselves.
Perhaps something like
fn configure_repo(pool: Pool<Postgres>) -> PostgresEventRepository {
let store = PostgresEventRepository::new(pool);
store.with_transaction_hooks(...)
}
Would you consider some sort of hook that gives access to the transaction used by the event store repository and the events.
I'd like to be able to write events to an outbox atomic with persistence of the events themselves.
Perhaps something like