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>
44 lines
980 B
JSON
44 lines
980 B
JSON
{
|
|
"name": "code",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.code",
|
|
"staging_table": "pipekit_staging.code",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": "System Codes Master 6.1",
|
|
"columns": [
|
|
{
|
|
"source_name": "A2",
|
|
"source_type": "CHAR(2)",
|
|
"dest_name": "a2",
|
|
"dest_type": "text",
|
|
"description": "Record Type"
|
|
},
|
|
{
|
|
"source_name": "A9",
|
|
"source_type": "CHAR(9)",
|
|
"dest_name": "a9",
|
|
"dest_type": "text",
|
|
"description": "Key Data"
|
|
},
|
|
{
|
|
"source_name": "A30",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "a30",
|
|
"dest_type": "text",
|
|
"description": "Description Usually"
|
|
},
|
|
{
|
|
"source_name": "A215",
|
|
"source_type": "CHAR(215)",
|
|
"dest_name": "a215",
|
|
"dest_type": "text",
|
|
"description": "Other Data"
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|