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>
114 lines
2.7 KiB
JSON
114 lines
2.7 KiB
JSON
{
|
|
"name": "dsdisc",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.dsdisc",
|
|
"staging_table": "pipekit_staging.dsdisc",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": "Discount codes file 6.0",
|
|
"columns": [
|
|
{
|
|
"source_name": "FADISC",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "fadisc",
|
|
"dest_type": "text",
|
|
"description": "Discount Code"
|
|
},
|
|
{
|
|
"source_name": "FADDES",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "faddes",
|
|
"dest_type": "text",
|
|
"description": "Discount Description"
|
|
},
|
|
{
|
|
"source_name": "FAPERC",
|
|
"source_type": "NUMERIC(8,5)",
|
|
"dest_name": "faperc",
|
|
"dest_type": "numeric(8,5)",
|
|
"description": "Default Rate"
|
|
},
|
|
{
|
|
"source_name": "FADRCR",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "fadrcr",
|
|
"dest_type": "text",
|
|
"description": "Debit Credit"
|
|
},
|
|
{
|
|
"source_name": "FABANT",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "fabant",
|
|
"dest_type": "text",
|
|
"description": "Rate Base"
|
|
},
|
|
{
|
|
"source_name": "FADAMT",
|
|
"source_type": "NUMERIC(13,5)",
|
|
"dest_name": "fadamt",
|
|
"dest_type": "numeric(13,5)",
|
|
"description": "Default Amount"
|
|
},
|
|
{
|
|
"source_name": "FAAPER",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "faaper",
|
|
"dest_type": "text",
|
|
"description": "Fixed or per Unit"
|
|
},
|
|
{
|
|
"source_name": "FACRAR",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "facrar",
|
|
"dest_type": "text",
|
|
"description": "Create A/R"
|
|
},
|
|
{
|
|
"source_name": "FACUST",
|
|
"source_type": "CHAR(8)",
|
|
"dest_name": "facust",
|
|
"dest_type": "text",
|
|
"description": "Customer Code"
|
|
},
|
|
{
|
|
"source_name": "FAARSC",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "faarsc",
|
|
"dest_type": "text",
|
|
"description": "Sales Code"
|
|
},
|
|
{
|
|
"source_name": "FADINV",
|
|
"source_type": "NUMERIC(9,0)",
|
|
"dest_name": "fadinv",
|
|
"dest_type": "numeric(9,0)",
|
|
"description": "Discount Accumulation Inv#"
|
|
},
|
|
{
|
|
"source_name": "FAAUNT",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "faaunt",
|
|
"dest_type": "text",
|
|
"description": "Amount Per-Unit"
|
|
},
|
|
{
|
|
"source_name": "FARTEF",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "fartef",
|
|
"dest_type": "text",
|
|
"description": "Rate Flag"
|
|
},
|
|
{
|
|
"source_name": "FARNDD",
|
|
"source_type": "NUMERIC(2,0)",
|
|
"dest_name": "farndd",
|
|
"dest_type": "numeric(2,0)",
|
|
"description": "Rounding # of Decimals"
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|