Local stack scaffolding for a Postgres WAL observer.
- Rust stable toolchain plus a dependency manifest in
Cargo.toml - PostgreSQL 16 running locally from the repo
- Nix flake dev shell for reproducible setup
justrecipes for common workflow commands
nix develop path:. -c zsh
just db-initThe flake shell exports:
PGDATA=$PWD/.local/postgresPGHOST=$PWD/.local/postgresPGPORT=5433PGUSER=postgresPGDATABASE=pg_wal_visualizerDATABASE_URL=postgresql://postgres@127.0.0.1:5433/pg_wal_visualizer
just db-start
just db-stop
just db-resetSchema and seed data live in scripts/sql/schema.sql and scripts/sql/seed.sql.
RATE_PER_SEC=5 BATCH_SIZE=20 MODE=mixed just loadSupported modes:
insertupdatemixed
This keeps writing to the seeded events table so the future visualizer has changing WAL volume to observe.
tokio: async runtime for polling loopssqlx: direct Postgres access without an ORMclap: CLI commands likeinspect liveorrun experimenttracingandtracing-subscriber: structured logs during experimentsserdeandserde_json: payload and config serializationchrono,uuid: common DB-facing types
These are listed only as workspace dependencies for now. No Rust app logic is scaffolded.