Packages
Framework-agnostic Elixir CDC consumer for Postgres logical replication (pgoutput) with zero-loss delivery to a pluggable sink — exactly-once for transactional sinks, at-least-once (duplicate-bounded) for non-transactional sinks.
Retired package: Removed QueryBuilder.table_columns/0 used by ash_replicant; use 1.5.1
Current section
Files
Jump to
Current section
Files
examples/README.md
# replicant examples
Runnable, minimal consumers that show how to integrate replicant end-to-end.
The example **code** is **not** part of the Hex package and **not** part of the
library's test suite — the `reference-example` CI job builds and exercises them
as the public sink API's canary. (Their READMEs, including this one, *are*
shipped in the package as documentation — Hex-only consumers will therefore see
these docs linking to code that is not in the tarball; clone the repository to
run an example.)
## `replication_pipeline/` — the reference stack (docker)
The deployment shape consumers actually build, as one `docker compose up`:
Postgres source (`wal_level=logical` + publication) → replicant as an OTP
release in one container → Postgres destination, with an idempotent
orders replica and a durable commit-LSN checkpoint. See
[replication_pipeline/README.md](replication_pipeline/README.md).
The interactive feature tour (snapshot/backfill, logical-decoding messages) lives
in the repo's [getting-started Livebook](../notebooks/getting_started.livemd);
the unchanged-TOAST sentinel is exercised right here — the stack's CI canary
forces the sentinel and asserts the destination value survives.