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>
93 lines
2.2 KiB
JSON
93 lines
2.2 KiB
JSON
{
|
|
"name": "fgrp",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.fgrp",
|
|
"staging_table": "pipekit_staging.fgrp",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": "Financial Statement account groups 6.0",
|
|
"columns": [
|
|
{
|
|
"source_name": "BQ1COMP",
|
|
"source_type": "CHAR(2)",
|
|
"dest_name": "bq1comp",
|
|
"dest_type": "text",
|
|
"description": "Company Code Alpha"
|
|
},
|
|
{
|
|
"source_name": "BQ1LVL",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "bq1lvl",
|
|
"dest_type": "text",
|
|
"description": "Group Level"
|
|
},
|
|
{
|
|
"source_name": "BQ1GRP",
|
|
"source_type": "CHAR(7)",
|
|
"dest_name": "bq1grp",
|
|
"dest_type": "text",
|
|
"description": "Group Code"
|
|
},
|
|
{
|
|
"source_name": "BQ1TITL",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "bq1titl",
|
|
"dest_type": "text",
|
|
"description": "Group Title"
|
|
},
|
|
{
|
|
"source_name": "BQ1NPAG",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "bq1npag",
|
|
"dest_type": "text",
|
|
"description": "New Page"
|
|
},
|
|
{
|
|
"source_name": "BQ1ULIN",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "bq1ulin",
|
|
"dest_type": "text",
|
|
"description": "Underline"
|
|
},
|
|
{
|
|
"source_name": "BQ1BLIN",
|
|
"source_type": "NUMERIC(2,0)",
|
|
"dest_name": "bq1blin",
|
|
"dest_type": "numeric(2,0)",
|
|
"description": "Skip lines Before"
|
|
},
|
|
{
|
|
"source_name": "BQ1ALIN",
|
|
"source_type": "NUMERIC(2,0)",
|
|
"dest_name": "bq1alin",
|
|
"dest_type": "numeric(2,0)",
|
|
"description": "Skip lines After"
|
|
},
|
|
{
|
|
"source_name": "A1",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "a1",
|
|
"dest_type": "text",
|
|
"description": "Old Group Level"
|
|
},
|
|
{
|
|
"source_name": "A7",
|
|
"source_type": "CHAR(7)",
|
|
"dest_name": "a7",
|
|
"dest_type": "text",
|
|
"description": "Old Group Code"
|
|
},
|
|
{
|
|
"source_name": "A40",
|
|
"source_type": "CHAR(40)",
|
|
"dest_name": "a40",
|
|
"dest_type": "text",
|
|
"description": "Old Other Data"
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|