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>
40 lines
951 B
SQL
40 lines
951 B
SQL
SELECT
|
|
AZCOMP AS azcomp,
|
|
"AZGL#1" AS "azgl#1",
|
|
"AZGL#2" AS "azgl#2",
|
|
AZBTYP AS azbtyp,
|
|
RTRIM(AZTITL) AS aztitl,
|
|
RTRIM(AZATYP) AS azatyp,
|
|
RTRIM(AZGROP) AS azgrop,
|
|
RTRIM(AZSTAT) AS azstat,
|
|
RTRIM(AZUVER) AS azuver,
|
|
AZGIFI AS azgifi,
|
|
RTRIM(AZPJMN) AS azpjmn,
|
|
RTRIM(AZCODE) AS azcode,
|
|
RTRIM(AZFTCD) AS azftcd,
|
|
RTRIM(AZFLG1) AS azflg1,
|
|
RTRIM(AZFLG2) AS azflg2,
|
|
RTRIM(AZFLG3) AS azflg3,
|
|
RTRIM(AZFLG4) AS azflg4,
|
|
RTRIM(AZFLG5) AS azflg5,
|
|
RTRIM(AZFUT1) AS azfut1,
|
|
RTRIM(AZFUT2) AS azfut2,
|
|
RTRIM(AZFUT3) AS azfut3,
|
|
RTRIM(AZFUT4) AS azfut4,
|
|
RTRIM(AZFUT5) AS azfut5,
|
|
RTRIM(AZFUT6) AS azfut6,
|
|
RTRIM(AZFUT7) AS azfut7,
|
|
AZFUT8 AS azfut8,
|
|
AZFUT9 AS azfut9,
|
|
AZFUT10 AS azfut10,
|
|
AZFUT11 AS azfut11,
|
|
AZFUT12 AS azfut12,
|
|
RTRIM(AZCLSC) AS azclsc,
|
|
AZBSLN AS azbsln,
|
|
AZISLN AS azisln,
|
|
RTRIM(AZTTL2) AS azttl2,
|
|
RTRIM(AZICMA) AS azicma,
|
|
RTRIM(AZCURC) AS azcurc,
|
|
RTRIM(AZCATC) AS azcatc
|
|
FROM LGDAT.MAST
|