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

303 lines
7.0 KiB
JSON

{
"name": "gl00100",
"source_connection": "sqlserver",
"dest_connection": "usmidsap02",
"dest_table": "gp.gl00100",
"staging_table": "pipekit_staging.gl00100",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": null,
"columns": [
{
"source_name": "ACTINDX",
"source_type": "INT",
"dest_name": "actindx",
"dest_type": "integer",
"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": "ACTALIAS",
"source_type": "CHAR(21)",
"dest_name": "actalias",
"dest_type": "text",
"description": null
},
{
"source_name": "MNACSGMT",
"source_type": "CHAR(67)",
"dest_name": "mnacsgmt",
"dest_type": "text",
"description": null
},
{
"source_name": "ACCTTYPE",
"source_type": "SMALLINT",
"dest_name": "accttype",
"dest_type": "smallint",
"description": null
},
{
"source_name": "ACTDESCR",
"source_type": "CHAR(51)",
"dest_name": "actdescr",
"dest_type": "text",
"description": null
},
{
"source_name": "PSTNGTYP",
"source_type": "SMALLINT",
"dest_name": "pstngtyp",
"dest_type": "smallint",
"description": null
},
{
"source_name": "ACCATNUM",
"source_type": "SMALLINT",
"dest_name": "accatnum",
"dest_type": "smallint",
"description": null
},
{
"source_name": "ACTIVE",
"source_type": "TINYINT",
"dest_name": "active",
"dest_type": "smallint",
"description": null
},
{
"source_name": "TPCLBLNC",
"source_type": "SMALLINT",
"dest_name": "tpclblnc",
"dest_type": "smallint",
"description": null
},
{
"source_name": "DECPLACS",
"source_type": "SMALLINT",
"dest_name": "decplacs",
"dest_type": "smallint",
"description": null
},
{
"source_name": "FXDORVAR",
"source_type": "SMALLINT",
"dest_name": "fxdorvar",
"dest_type": "smallint",
"description": null
},
{
"source_name": "BALFRCLC",
"source_type": "SMALLINT",
"dest_name": "balfrclc",
"dest_type": "smallint",
"description": null
},
{
"source_name": "DSPLKUPS",
"source_type": "BINARY",
"dest_name": "dsplkups",
"dest_type": "bytea",
"description": null
},
{
"source_name": "CNVRMTHD",
"source_type": "SMALLINT",
"dest_name": "cnvrmthd",
"dest_type": "smallint",
"description": null
},
{
"source_name": "HSTRCLRT",
"source_type": "NUMERIC(19,7)",
"dest_name": "hstrclrt",
"dest_type": "numeric(19,7)",
"description": null
},
{
"source_name": "NOTEINDX",
"source_type": "NUMERIC(19,5)",
"dest_name": "noteindx",
"dest_type": "numeric(19,5)",
"description": null
},
{
"source_name": "CREATDDT",
"source_type": "DATETIME",
"dest_name": "creatddt",
"dest_type": "timestamp",
"description": null
},
{
"source_name": "MODIFDT",
"source_type": "DATETIME",
"dest_name": "modifdt",
"dest_type": "timestamp",
"description": null
},
{
"source_name": "USERDEF1",
"source_type": "CHAR(21)",
"dest_name": "userdef1",
"dest_type": "text",
"description": null
},
{
"source_name": "USERDEF2",
"source_type": "CHAR(21)",
"dest_name": "userdef2",
"dest_type": "text",
"description": null
},
{
"source_name": "PostSlsIn",
"source_type": "SMALLINT",
"dest_name": "postslsin",
"dest_type": "smallint",
"description": null
},
{
"source_name": "PostIvIn",
"source_type": "SMALLINT",
"dest_name": "postivin",
"dest_type": "smallint",
"description": null
},
{
"source_name": "PostPurchIn",
"source_type": "SMALLINT",
"dest_name": "postpurchin",
"dest_type": "smallint",
"description": null
},
{
"source_name": "PostPRIn",
"source_type": "SMALLINT",
"dest_name": "postprin",
"dest_type": "smallint",
"description": null
},
{
"source_name": "ADJINFL",
"source_type": "TINYINT",
"dest_name": "adjinfl",
"dest_type": "smallint",
"description": null
},
{
"source_name": "INFLAREV",
"source_type": "INT",
"dest_name": "inflarev",
"dest_type": "integer",
"description": null
},
{
"source_name": "INFLAEQU",
"source_type": "INT",
"dest_name": "inflaequ",
"dest_type": "integer",
"description": null
},
{
"source_name": "ACCTENTR",
"source_type": "TINYINT",
"dest_name": "acctentr",
"dest_type": "smallint",
"description": null
},
{
"source_name": "USRDEFS1",
"source_type": "CHAR(31)",
"dest_name": "usrdefs1",
"dest_type": "text",
"description": null
},
{
"source_name": "USRDEFS2",
"source_type": "CHAR(31)",
"dest_name": "usrdefs2",
"dest_type": "text",
"description": null
},
{
"source_name": "Clear_Balance",
"source_type": "TINYINT",
"dest_name": "clear_balance",
"dest_type": "smallint",
"description": null
},
{
"source_name": "DEX_ROW_TS",
"source_type": "DATETIME",
"dest_name": "dex_row_ts",
"dest_type": "timestamp",
"description": null
},
{
"source_name": "DEX_ROW_ID",
"source_type": "INT",
"dest_name": "dex_row_id",
"dest_type": "integer",
"description": null
}
],
"watermarks": [],
"hooks": []
}