View Source WalEx.Event (WalEx v3.7.0)

Event DSL and casting

Summary

Functions

Macros for processing events

Filter out events by table and type (optional) from transaction and cast to Event struct

Types

@type t() :: %WalEx.Event{
  changes: map() | nil,
  name: atom(),
  new_record: map() | nil,
  old_record: map() | nil,
  source: WalEx.Event.Source.t(),
  timestamp: DateTime.t(),
  type: :insert | :update | :delete
}

Functions

Link to this macro

__using__(opts)

View Source (macro)

Macros for processing events

Link to this function

cast_events(changes, app_name)

View Source
Link to this function

filter_and_cast(app_name, txn)

View Source

Filter out events by table and type (optional) from transaction and cast to Event struct

Link to this function

filter_and_cast(app_name, txn, table, type, arg5)

View Source