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

65 lines
1.6 KiB
JSON

{
"name": "gldatref",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.gldatref",
"staging_table": "pipekit_staging.gldatref",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "G/L Period Dates Reference File 6.0",
"columns": [
{
"source_name": "N1COMP",
"source_type": "NUMERIC(2,0)",
"dest_name": "n1comp",
"dest_type": "numeric(2,0)",
"description": "Company Number"
},
{
"source_name": "N1CCYY",
"source_type": "NUMERIC(4,0)",
"dest_name": "n1ccyy",
"dest_type": "numeric(4,0)",
"description": "Fiscal Year"
},
{
"source_name": "N1FSPP",
"source_type": "NUMERIC(2,0)",
"dest_name": "n1fspp",
"dest_type": "numeric(2,0)",
"description": "Fiscal Period"
},
{
"source_name": "N1FSYY",
"source_type": "NUMERIC(2,0)",
"dest_name": "n1fsyy",
"dest_type": "numeric(2,0)",
"description": "Fiscal Year"
},
{
"source_name": "N1FSYP",
"source_type": "NUMERIC(4,0)",
"dest_name": "n1fsyp",
"dest_type": "numeric(4,0)",
"description": "Fiscal Year/Period"
},
{
"source_name": "N1SD01",
"source_type": "DATE",
"dest_name": "n1sd01",
"dest_type": "date",
"description": "Starting Date"
},
{
"source_name": "N1ED01",
"source_type": "DATE",
"dest_name": "n1ed01",
"dest_type": "date",
"description": "Ending Date"
}
],
"watermarks": [],
"hooks": []
}