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>
79 lines
1.8 KiB
JSON
79 lines
1.8 KiB
JSON
{
|
|
"name": "stnote",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.stnote",
|
|
"staging_table": "pipekit_staging.stnote",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": "Note pad file 6.1",
|
|
"columns": [
|
|
{
|
|
"source_name": "GGKEY",
|
|
"source_type": "CHAR(20)",
|
|
"dest_name": "ggkey",
|
|
"dest_type": "text",
|
|
"description": "Alpha Key"
|
|
},
|
|
{
|
|
"source_name": "GGPAG#",
|
|
"source_type": "NUMERIC(3,0)",
|
|
"dest_name": "ggpag#",
|
|
"dest_type": "numeric(3,0)",
|
|
"description": "Page Number"
|
|
},
|
|
{
|
|
"source_name": "GGLIN#",
|
|
"source_type": "NUMERIC(2,0)",
|
|
"dest_name": "gglin#",
|
|
"dest_type": "numeric(2,0)",
|
|
"description": "Line Number"
|
|
},
|
|
{
|
|
"source_name": "GGTEXT",
|
|
"source_type": "CHAR(75)",
|
|
"dest_name": "ggtext",
|
|
"dest_type": "text",
|
|
"description": "Text"
|
|
},
|
|
{
|
|
"source_name": "GGFUT1",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "ggfut1",
|
|
"dest_type": "text",
|
|
"description": "Future Use 1"
|
|
},
|
|
{
|
|
"source_name": "GGFUT2",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "ggfut2",
|
|
"dest_type": "text",
|
|
"description": "Future Use 2"
|
|
},
|
|
{
|
|
"source_name": "GGFUT3",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "ggfut3",
|
|
"dest_type": "text",
|
|
"description": "Future Use 3"
|
|
},
|
|
{
|
|
"source_name": "GGFUT4",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "ggfut4",
|
|
"dest_type": "text",
|
|
"description": "Create User ID"
|
|
},
|
|
{
|
|
"source_name": "GGFUT5",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "ggfut5",
|
|
"dest_type": "text",
|
|
"description": "Future Use 5"
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|