WalEx.Event (WalEx v4.6.0)

View Source

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

t()

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

Functions

__using__(opts)

(macro)

Macros for processing events

cast(arg1, app_name)

cast_events(changes, app_name)

filter_and_cast(app_name, txn)

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

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

lsn_to_string(arg)

@spec lsn_to_string({integer(), integer()}) :: String.t()