pipekit/config/modules/rprh.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

57 lines
1.1 KiB
SQL

SELECT
NWBTID AS nwbtid,
NWLABL AS nwlabl,
NWBPRT AS nwbprt,
NWPOST AS nwpost,
NWFSYY AS nwfsyy,
NWFSPP AS nwfspp,
NWRDAT AS nwrdat,
NWTMZN AS nwtmzn,
NWSHFT AS nwshft,
NWSHGP AS nwshgp,
NWNXT# AS nwnxt#,
NWCRBY AS nwcrby,
NWCDAT AS nwcdat,
NWCTIM AS nwctim,
NWUPBY AS nwupby,
NWUDAT AS nwudat,
NWUTIM AS nwutim,
NWIUSE AS nwiuse,
NWSRCE AS nwsrce,
NWSTKL AS nwstkl,
NWSCPR AS nwscpr,
NWIUCN AS nwiucn,
NWAPFC AS nwapfc,
NWAPCP AS nwapcp,
NWFUT1 AS nwfut1,
NWFUT2 AS nwfut2,
NWFUT3 AS nwfut3,
NWFUT4 AS nwfut4,
NWFUT5 AS nwfut5,
NWFUT6 AS nwfut6,
NWFUT7 AS nwfut7,
NWFUT8 AS nwfut8,
NWFUT9 AS nwfut9,
NWFLG1 AS nwflg1,
NWFLG2 AS nwflg2,
NWFLG3 AS nwflg3,
NWPLNT AS nwplnt,
NWEDILN AS nwediln,
NWEDILE AS nwedile,
NWSHFS AS nwshfs,
NWFLBH AS nwflbh,
NWOBTID AS nwobtid,
NWFUT10 AS nwfut10,
NWFUT11 AS nwfut11,
NWFUT12 AS nwfut12,
NWFUT13 AS nwfut13,
NWFUT14 AS nwfut14,
NWFUT15 AS nwfut15,
NWFUT16 AS nwfut16,
NWFUT17 AS nwfut17,
NWPUSR AS nwpusr,
NWPDAT AS nwpdat,
NWPTIM AS nwptim
FROM LGDAT.RPRH
WHERE NWPDAT >= DATE('{stamp}')