pipekit/config/modules/ab.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

86 lines
1.9 KiB
JSON

{
"name": "ab",
"source_connection": "sqlserver",
"dest_connection": "usmidsap02",
"dest_table": "gs.ab",
"staging_table": "pipekit_staging.ab",
"merge_strategy": "full",
"merge_key": null,
"enabled": 0,
"dest_description": null,
"columns": [
{
"source_name": "Origin",
"source_type": "VARCHAR(3)",
"dest_name": "origin",
"dest_type": "text",
"description": null
},
{
"source_name": "Account",
"source_type": "VARCHAR(12)",
"dest_name": "account",
"dest_type": "text",
"description": null
},
{
"source_name": "FSPR",
"source_type": "VARCHAR(4)",
"dest_name": "fspr",
"dest_type": "text",
"description": null
},
{
"source_name": "TDATE",
"source_type": "VARCHAR(10)",
"dest_name": "tdate",
"dest_type": "text",
"description": null
},
{
"source_name": "Party",
"source_type": "VARCHAR(76)",
"dest_name": "party",
"dest_type": "text",
"description": null
},
{
"source_name": "Amount",
"source_type": "DECIMAL(18,2)",
"dest_name": "amount",
"dest_type": "numeric(18,2)",
"description": null
},
{
"source_name": "EBITDA",
"source_type": "VARCHAR(30)",
"dest_name": "ebitda",
"dest_type": "text",
"description": null
},
{
"source_name": "Project",
"source_type": "VARCHAR(53)",
"dest_name": "project",
"dest_type": "text",
"description": null
},
{
"source_name": "Clause",
"source_type": "VARCHAR(27)",
"dest_name": "clause",
"dest_type": "text",
"description": null
},
{
"source_name": "flag",
"source_type": "NVARCHAR(255)",
"dest_name": "flag",
"dest_type": "text",
"description": null
}
],
"watermarks": [],
"hooks": []
}