View Source WalEx.Event behaviour (WalEx v2.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

Link to this function

event(table_name, txn, app_name)

View Source

When single event per table is expected

Link to this function

events(table_name, txn, app_name)

View Source

When multiple events per table is expected (transaction)