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>
121 lines
2.9 KiB
JSON
121 lines
2.9 KiB
JSON
{
|
|
"name": "binb",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.binb",
|
|
"staging_table": "pipekit_staging.binb",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": "Bin Balances 6.0",
|
|
"columns": [
|
|
{
|
|
"source_name": "LQSTKL",
|
|
"source_type": "CHAR(6)",
|
|
"dest_name": "lqstkl",
|
|
"dest_type": "text",
|
|
"description": "Stock Location"
|
|
},
|
|
{
|
|
"source_name": "LQBIN#",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "lqbin#",
|
|
"dest_type": "text",
|
|
"description": "Bin Code"
|
|
},
|
|
{
|
|
"source_name": "LQPART",
|
|
"source_type": "CHAR(20)",
|
|
"dest_name": "lqpart",
|
|
"dest_type": "text",
|
|
"description": "Part Number"
|
|
},
|
|
{
|
|
"source_name": "LQLOT#",
|
|
"source_type": "CHAR(15)",
|
|
"dest_name": "lqlot#",
|
|
"dest_type": "text",
|
|
"description": "Lot Number"
|
|
},
|
|
{
|
|
"source_name": "LQQTYH",
|
|
"source_type": "NUMERIC(15,5)",
|
|
"dest_name": "lqqtyh",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Qty on hand in base unit"
|
|
},
|
|
{
|
|
"source_name": "LQBTC#",
|
|
"source_type": "NUMERIC(5,0)",
|
|
"dest_name": "lqbtc#",
|
|
"dest_type": "numeric(5,0)",
|
|
"description": "Physical Inventory Batch Number"
|
|
},
|
|
{
|
|
"source_name": "LQRDAT",
|
|
"source_type": "DATE",
|
|
"dest_name": "lqrdat",
|
|
"dest_type": "date",
|
|
"description": "Last Receipt Date"
|
|
},
|
|
{
|
|
"source_name": "LQIDAT",
|
|
"source_type": "DATE",
|
|
"dest_name": "lqidat",
|
|
"dest_type": "date",
|
|
"description": "Last Issue Date"
|
|
},
|
|
{
|
|
"source_name": "LQQTY",
|
|
"source_type": "NUMERIC(15,5)",
|
|
"dest_name": "lqqty",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Qty on hand"
|
|
},
|
|
{
|
|
"source_name": "LQUNIT",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "lqunit",
|
|
"dest_type": "text",
|
|
"description": "Unit of Measure"
|
|
},
|
|
{
|
|
"source_name": "LQPLNT",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "lqplnt",
|
|
"dest_type": "text",
|
|
"description": "Plant Code"
|
|
},
|
|
{
|
|
"source_name": "LQMINQ",
|
|
"source_type": "NUMERIC(15,5)",
|
|
"dest_name": "lqminq",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Minimum Quantity"
|
|
},
|
|
{
|
|
"source_name": "LQMAXQ",
|
|
"source_type": "NUMERIC(15,5)",
|
|
"dest_name": "lqmaxq",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Maximum Quantity"
|
|
},
|
|
{
|
|
"source_name": "LQRPLQ",
|
|
"source_type": "NUMERIC(15,5)",
|
|
"dest_name": "lqrplq",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Replenishment Multiplier"
|
|
},
|
|
{
|
|
"source_name": "LQLEXP",
|
|
"source_type": "DATE",
|
|
"dest_name": "lqlexp",
|
|
"dest_type": "date",
|
|
"description": "Lot Expiry Date"
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|