Electric.Replication.Changes.Transaction (electric v1.1.0)

View Source

Summary

Types

t()

@type t() :: %Electric.Replication.Changes.Transaction{
  affected_relations: MapSet.t(Electric.Replication.Changes.relation_name()),
  changes: [Electric.Replication.Changes.change()],
  commit_timestamp: DateTime.t(),
  last_log_offset: Electric.Replication.LogOffset.t(),
  lsn: Electric.Postgres.Lsn.t(),
  num_changes: non_neg_integer(),
  xid: Electric.Replication.Changes.xid() | nil
}

Functions

finalize(txn)

prepend_change(txn, change)

@spec prepend_change(t(), Electric.Replication.Changes.change()) :: t()