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>
184 lines
4.4 KiB
JSON
184 lines
4.4 KiB
JSON
{
|
|
"name": "stkb",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.stkb",
|
|
"staging_table": "pipekit_staging.stkb",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": "Stock Balance (inventory) 6.0",
|
|
"columns": [
|
|
{
|
|
"source_name": "BXPART",
|
|
"source_type": "CHAR(20)",
|
|
"dest_name": "bxpart",
|
|
"dest_type": "text",
|
|
"description": "Part Number"
|
|
},
|
|
{
|
|
"source_name": "BXLOT",
|
|
"source_type": "CHAR(15)",
|
|
"dest_name": "bxlot",
|
|
"dest_type": "text",
|
|
"description": "Lot Number"
|
|
},
|
|
{
|
|
"source_name": "BXSTOK",
|
|
"source_type": "CHAR(6)",
|
|
"dest_name": "bxstok",
|
|
"dest_type": "text",
|
|
"description": "Stock Location"
|
|
},
|
|
{
|
|
"source_name": "BXUNIT",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "bxunit",
|
|
"dest_type": "text",
|
|
"description": "Unit of Measure"
|
|
},
|
|
{
|
|
"source_name": "BXQTOH",
|
|
"source_type": "DECIMAL(15,5)",
|
|
"dest_name": "bxqtoh",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Quantity On Hand"
|
|
},
|
|
{
|
|
"source_name": "BXQTAL",
|
|
"source_type": "DECIMAL(15,5)",
|
|
"dest_name": "bxqtal",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Quantity Allocated"
|
|
},
|
|
{
|
|
"source_name": "BXMNQT",
|
|
"source_type": "DECIMAL(15,5)",
|
|
"dest_name": "bxmnqt",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Minimum Quantity"
|
|
},
|
|
{
|
|
"source_name": "BXMXQT",
|
|
"source_type": "DECIMAL(15,5)",
|
|
"dest_name": "bxmxqt",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Maximum Quantity"
|
|
},
|
|
{
|
|
"source_name": "BXQTOD",
|
|
"source_type": "DECIMAL(15,5)",
|
|
"dest_name": "bxqtod",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Qty on Order/Production"
|
|
},
|
|
{
|
|
"source_name": "BXPDAT",
|
|
"source_type": "DATE",
|
|
"dest_name": "bxpdat",
|
|
"dest_type": "date",
|
|
"description": "Last Phys. Count Date"
|
|
},
|
|
{
|
|
"source_name": "BXCCGP",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "bxccgp",
|
|
"dest_type": "text",
|
|
"description": "Cycle Count Group"
|
|
},
|
|
{
|
|
"source_name": "BXQTSO",
|
|
"source_type": "DECIMAL(15,5)",
|
|
"dest_name": "bxqtso",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Qty on Sales Order"
|
|
},
|
|
{
|
|
"source_name": "BXPLNT",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "bxplnt",
|
|
"dest_type": "text",
|
|
"description": "Plant Code"
|
|
},
|
|
{
|
|
"source_name": "BXFUT1",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "bxfut1",
|
|
"dest_type": "text",
|
|
"description": "Future Use"
|
|
},
|
|
{
|
|
"source_name": "BXFUT2",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "bxfut2",
|
|
"dest_type": "text",
|
|
"description": "Future Use"
|
|
},
|
|
{
|
|
"source_name": "BXFUT3",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "bxfut3",
|
|
"dest_type": "text",
|
|
"description": "Future Use"
|
|
},
|
|
{
|
|
"source_name": "BXFUT4",
|
|
"source_type": "CHAR(1)",
|
|
"dest_name": "bxfut4",
|
|
"dest_type": "text",
|
|
"description": "Future Use"
|
|
},
|
|
{
|
|
"source_name": "BXFUT5",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "bxfut5",
|
|
"dest_type": "text",
|
|
"description": "Future Use"
|
|
},
|
|
{
|
|
"source_name": "BXFUT6",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "bxfut6",
|
|
"dest_type": "text",
|
|
"description": "Future Use"
|
|
},
|
|
{
|
|
"source_name": "BXFUT7",
|
|
"source_type": "CHAR(20)",
|
|
"dest_name": "bxfut7",
|
|
"dest_type": "text",
|
|
"description": "Future Use"
|
|
},
|
|
{
|
|
"source_name": "BXFUT8",
|
|
"source_type": "CHAR(20)",
|
|
"dest_name": "bxfut8",
|
|
"dest_type": "text",
|
|
"description": "Future Use"
|
|
},
|
|
{
|
|
"source_name": "BXFUT9",
|
|
"source_type": "CHAR(3)",
|
|
"dest_name": "bxfut9",
|
|
"dest_type": "text",
|
|
"description": "Future Use"
|
|
},
|
|
{
|
|
"source_name": "BXFUTA",
|
|
"source_type": "NUMERIC(15,5)",
|
|
"dest_name": "bxfuta",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "Future Use"
|
|
},
|
|
{
|
|
"source_name": "BXLEXP",
|
|
"source_type": "DATE",
|
|
"dest_name": "bxlexp",
|
|
"dest_type": "date",
|
|
"description": "Lot Expiry Date"
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|