EctoSync.Adapters.Postgres.Wal.Tx.Operation (EctoSync v0.5.1)

View Source

Describes a change within a transaction. The type field annotates the change that was persisted to the wal.

It can be seen as a combination of msg_relation and msg_insert | msg_update | msg_delete

Summary

Types

t()

@type t() :: %EctoSync.Adapters.Postgres.Wal.Tx.Operation{
  namespace: term(),
  old_record: term(),
  record: term(),
  schema: term(),
  table: term(),
  timestamp: term(),
  type: term()
}

Functions

from_msg(arg1, arg2, decode?)

@spec from_msg(tuple(), tuple(), decode :: boolean()) :: t()