Electric.Replication.ShapeLogCollector (electric v1.1.0)

View Source

When any txn comes from postgres, we need to store it into the log for this shape if and only if it has txid >= xmin of the snapshot.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

handle_relation_msg(rel, server)

init(opts)

Callback implementation for GenServer.init/1.

name(stack_id)

set_last_processed_lsn(server, last_processed_lsn)

start_link(opts)

store_transaction(txn, server)

subscribe(server, shape)