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

135 lines
3.1 KiB
JSON

{
"name": "gl10111",
"source_connection": "sqlserver",
"dest_connection": "usmidsap02",
"dest_table": "gp.gl10111",
"staging_table": "pipekit_staging.gl10111",
"merge_strategy": "incremental",
"merge_key": "dex_row_id",
"enabled": 1,
"dest_description": null,
"columns": [
{
"source_name": "ACTINDX",
"source_type": "INT",
"dest_name": "actindx",
"dest_type": "integer",
"description": null
},
{
"source_name": "YEAR1",
"source_type": "SMALLINT",
"dest_name": "year1",
"dest_type": "smallint",
"description": null
},
{
"source_name": "PERIODID",
"source_type": "SMALLINT",
"dest_name": "periodid",
"dest_type": "smallint",
"description": null
},
{
"source_name": "Ledger_ID",
"source_type": "SMALLINT",
"dest_name": "ledger_id",
"dest_type": "smallint",
"description": null
},
{
"source_name": "ACTNUMBR_1",
"source_type": "CHAR(7)",
"dest_name": "actnumbr_1",
"dest_type": "text",
"description": null
},
{
"source_name": "ACTNUMBR_2",
"source_type": "CHAR(7)",
"dest_name": "actnumbr_2",
"dest_type": "text",
"description": null
},
{
"source_name": "ACTNUMBR_3",
"source_type": "CHAR(9)",
"dest_name": "actnumbr_3",
"dest_type": "text",
"description": null
},
{
"source_name": "ACTNUMBR_4",
"source_type": "CHAR(9)",
"dest_name": "actnumbr_4",
"dest_type": "text",
"description": null
},
{
"source_name": "ACTNUMBR_5",
"source_type": "CHAR(9)",
"dest_name": "actnumbr_5",
"dest_type": "text",
"description": null
},
{
"source_name": "ACTNUMBR_6",
"source_type": "CHAR(9)",
"dest_name": "actnumbr_6",
"dest_type": "text",
"description": null
},
{
"source_name": "ACTNUMBR_7",
"source_type": "CHAR(11)",
"dest_name": "actnumbr_7",
"dest_type": "text",
"description": null
},
{
"source_name": "ACTNUMBR_8",
"source_type": "CHAR(11)",
"dest_name": "actnumbr_8",
"dest_type": "text",
"description": null
},
{
"source_name": "ACCATNUM",
"source_type": "SMALLINT",
"dest_name": "accatnum",
"dest_type": "smallint",
"description": null
},
{
"source_name": "PERDBLNC",
"source_type": "NUMERIC(19,5)",
"dest_name": "perdblnc",
"dest_type": "numeric(19,5)",
"description": null
},
{
"source_name": "DEBITAMT",
"source_type": "NUMERIC(19,5)",
"dest_name": "debitamt",
"dest_type": "numeric(19,5)",
"description": null
},
{
"source_name": "CRDTAMNT",
"source_type": "NUMERIC(19,5)",
"dest_name": "crdtamnt",
"dest_type": "numeric(19,5)",
"description": null
},
{
"source_name": "DEX_ROW_ID",
"source_type": "INT",
"dest_name": "dex_row_id",
"dest_type": "integer",
"description": null
}
],
"watermarks": [],
"hooks": []
}