pipekit/config/modules/usrc.json
Paul Trowbridge dd9f89f4b5 feat: version-control pipeline definitions via export/apply
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>
2026-07-22 10:56:55 -04:00

58 lines
1.3 KiB
JSON

{
"name": "usrc",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.usrc",
"staging_table": "pipekit_staging.usrc",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "User Defined Data Records",
"columns": [
{
"source_name": "MFSRCE",
"source_type": "CHAR(3)",
"dest_name": "mfsrce",
"dest_type": "text",
"description": "Source"
},
{
"source_name": "MFKEY1",
"source_type": "CHAR(20)",
"dest_name": "mfkey1",
"dest_type": "text",
"description": "Key Field1"
},
{
"source_name": "MFKEY2",
"source_type": "CHAR(20)",
"dest_name": "mfkey2",
"dest_type": "text",
"description": "Key Field2"
},
{
"source_name": "MFENT#",
"source_type": "NUMERIC(3,0)",
"dest_name": "mfent#",
"dest_type": "numeric(3,0)",
"description": "Entry #"
},
{
"source_name": "MFRESP",
"source_type": "CHAR(20)",
"dest_name": "mfresp",
"dest_type": "text",
"description": "Alpha Value"
},
{
"source_name": "MFNUMB",
"source_type": "NUMERIC(15,5)",
"dest_name": "mfnumb",
"dest_type": "numeric(15,5)",
"description": "Numeric Value"
}
],
"watermarks": [],
"hooks": []
}