A system for getting immediate data from Placer's mysql database into nidus-sync.
  • Go 96.4%
  • Nix 3.6%
Find a file
Eli Ribble 0b67b0a802
Auto-discover tables and push to /api/placer-mysql-feed/{db}/{table}/{id}
Replace the single-table WATCH_* config with auto-discovery: enumerate
every non-system schema and BASE TABLE, skipping scratch (bak_/csv_/scratch),
geometry, and no-PK tables. Per-table cursor is auto-detected (auto-increment
PK, else first timestamp/datetime column); each table gets its own poller with
independent cursor state, merged into one change stream.

Each change PUTs the full row to /api/placer-mysql-feed/{database}/{table}/{id}
(id = first PK column value), keyed by source column names. path_template and
id_column are removed from the sink config; multi-sink fan-out and per-env
bearer auth are unchanged.
2026-08-24 22:52:27 +00:00
docs Auto-discover tables and push to /api/placer-mysql-feed/{db}/{table}/{id} 2026-08-24 22:52:27 +00:00
.gitignore Add config and initial sink for streamed data 2026-08-23 01:21:24 +00:00
change.go Auto-discover tables and push to /api/placer-mysql-feed/{db}/{table}/{id} 2026-08-24 22:52:27 +00:00
config.example.toml Auto-discover tables and push to /api/placer-mysql-feed/{db}/{table}/{id} 2026-08-24 22:52:27 +00:00
config.go Auto-discover tables and push to /api/placer-mysql-feed/{db}/{table}/{id} 2026-08-24 22:52:27 +00:00
discovery.go Auto-discover tables and push to /api/placer-mysql-feed/{db}/{table}/{id} 2026-08-24 22:52:27 +00:00
flake.lock Initial creation of 'hello world' 2026-08-22 23:05:22 +00:00
flake.nix Add config and initial sink for streamed data 2026-08-23 01:21:24 +00:00
go.mod Add config and initial sink for streamed data 2026-08-23 01:21:24 +00:00
go.sum Add config and initial sink for streamed data 2026-08-23 01:21:24 +00:00
main.go Auto-discover tables and push to /api/placer-mysql-feed/{db}/{table}/{id} 2026-08-24 22:52:27 +00:00
poller.go Auto-discover tables and push to /api/placer-mysql-feed/{db}/{table}/{id} 2026-08-24 22:52:27 +00:00
sink.go Auto-discover tables and push to /api/placer-mysql-feed/{db}/{table}/{id} 2026-08-24 22:52:27 +00:00