Represents a change delivered to a sink as part of a Replicant.Transaction
or a snapshot batch.
Unchanged TOAST
An UPDATE can omit a TOASTed value that it leaves unchanged. Replicant lists
that column in unchanged and omits it from record. Leave that column's
stored value intact when applying the change.
Replica identity
Under the default identity, a DELETE and an UPDATE's old_record carry only
key columns. old_record is key-only unless the table is REPLICA IDENTITY FULL.
String keys
Column names in record and old_record are strings.
Summary
Types
@type op() :: :insert | :update | :delete | :truncate | :snapshot
@type t() :: %Replicant.Change{ columns: [Replicant.Change.Column.t()], commit_lsn: Replicant.lsn() | nil, old_record: %{required(String.t()) => term()} | nil, op: op() | nil, ordinal: non_neg_integer(), record: %{required(String.t()) => term()} | nil, schema: String.t() | nil, table: String.t() | nil, unchanged: [String.t()] }