Skip to content

Access to the event store transaction and events #172

Description

@peterschutt

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(...)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions