pipekit/config/modules/ffsbglr1.sql
Paul Trowbridge dd9f89f4b5 feat: version-control pipeline definitions via export/apply
Add `pipekit export` / `pipekit apply` (pipekit/config_io.py) to serialise the
DB's config — drivers, connections, modules (+ columns, watermarks, hooks),
groups, schedules — to a git-trackable text tree under config/, and rehydrate
it. SQLite stays runtime state; definitions become diffable/reviewable/
revertible.

- config only: run_log/group_run/settings and per-run state columns excluded
- name-keyed refs (portable across databases); source_query in .sql sidecars;
  columns as real JSON arrays for line-by-line diffs
- newline-normalised so CRLF-vs-LF is never a spurious change
- apply is create/update by name; child collections fully synced; top-level
  deletes gated behind --prune; --dry-run prints the plan
- round-trip is identity (export -> apply --dry-run == nothing to do)

Commits the current config/ as the first baseline, capturing the freshly
populated columns_json for rm00101/rm00301/iv00101. Documented in SPEC.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 10:56:55 -04:00

26 lines
482 B
SQL

SELECT
MODULE AS module,
BATCH AS batch,
PERD AS perd,
TDATE AS tdate,
PDATE AS pdate,
ACCT AS acct,
AMT AS amt,
PROJ AS proj,
USRN AS usrn,
REV AS rev,
CUSMOD AS cusmod,
CUSKEY1 AS cuskey1,
CUSKEY1D AS cuskey1d,
CUSKEY2 AS cuskey2,
CUSKEY2D AS cuskey2d,
CUSKEY3 AS cuskey3,
CUSKEY3D AS cuskey3d,
CUSKEY4 AS cuskey4,
CUSKEY4D AS cuskey4d,
CUSVEND AS cusvend,
CUSCUST AS cuscust,
RECID AS recid
FROM FANALDEV.FFSBGLR1
WHERE PERD >= '2702'