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>
61 lines
1.4 KiB
SQL
61 lines
1.4 KiB
SQL
SELECT
|
|
RTRIM(ITEM) AS item,
|
|
RTRIM(DESCR) AS descr,
|
|
RTRIM(DESCR2) AS descr2,
|
|
RTRIM(DESCR3) AS descr3,
|
|
RTRIM(GLEC) AS glec,
|
|
RTRIM(STLC) AS stlc,
|
|
RTRIM(STLCD) AS stlcd,
|
|
RTRIM(P93) AS p93,
|
|
RTRIM(COLC) AS colc,
|
|
RTRIM(COLCD) AS colcd,
|
|
RTRIM(COLGRP) AS colgrp,
|
|
RTRIM(COLTIER) AS coltier,
|
|
RTRIM(COLTIERD) AS coltierd,
|
|
RTRIM(COLSTAT) AS colstat,
|
|
RTRIM(SIZC) AS sizc,
|
|
RTRIM(PACKAGE) AS package,
|
|
RTRIM(KIT) AS kit,
|
|
RTRIM(BRANDING) AS branding,
|
|
RTRIM(SUFFIX) AS suffix,
|
|
RTRIM(SUFFIXD) AS suffixd,
|
|
RTRIM(ACCS) AS accs,
|
|
RTRIM(ACCS_PS) AS accs_ps,
|
|
RTRIM(ACC_LIST) AS acc_list,
|
|
RTRIM(CATA) AS cata,
|
|
RTRIM(CLSS) AS clss,
|
|
RTRIM(ASSC) AS assc,
|
|
RTRIM(SASC) AS sasc,
|
|
RTRIM(BRAND) AS brand,
|
|
RTRIM(DPLT) AS dplt,
|
|
RTRIM(HARM) AS harm,
|
|
RTRIM(UOMP) AS uomp,
|
|
RTRIM(UNTI) AS unti,
|
|
NWHT AS nwht,
|
|
RTRIM(NWUN) AS nwun,
|
|
RTRIM(TYPE) AS type,
|
|
RTRIM(MAJG) AS majg,
|
|
RTRIM(MAJGD) AS majgd,
|
|
RTRIM(MING) AS ming,
|
|
RTRIM(MINGD) AS mingd,
|
|
RTRIM(MAJS) AS majs,
|
|
RTRIM(MAJSD) AS majsd,
|
|
RTRIM(MINS) AS mins,
|
|
RTRIM(MINSD) AS minsd,
|
|
RTRIM(GLCD) AS glcd,
|
|
RTRIM(GLDCD) AS gldcd,
|
|
MINO AS mino,
|
|
RTRIM(APLNT) AS aplnt,
|
|
RTRIM(IREAS) AS ireas,
|
|
RTRIM(PARTGROUP) AS partgroup,
|
|
RTRIM(PARTGROUPD) AS partgroupd,
|
|
RTRIM(PRICEGROUP) AS pricegroup,
|
|
RTRIM(V1DS) AS v1ds,
|
|
MPCK AS mpck,
|
|
CURSTD AS curstd,
|
|
CURSTDUS AS curstdus,
|
|
FUTSTD AS futstd,
|
|
FUTSTDUS AS futstdus,
|
|
RTRIM(PRODGROUP) AS prodgroup
|
|
FROM "CMS.CUSLG".ITEMM
|