View Source WalEx.Event behaviour (WalEx v1.0.0)

Link to this section Summary

Callbacks

Behaviour for processing event

Functions

When single event per table is expected

When multiple events per table is expected (transaction)

Link to this section Callbacks

@callback process(
  payload :: %WalEx.Changes.Transaction{
    changes: term(),
    commit_timestamp: term()
  }
) ::
  :ok | {:error, any()}

Behaviour for processing event

Link to this section Functions

When single event per table is expected

When multiple events per table is expected (transaction)