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.3 KiB
JSON
184 lines
4.3 KiB
JSON
{
|
|
"name": "sy03300",
|
|
"source_connection": "sqlserver",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "gp.sy03300",
|
|
"staging_table": "pipekit_staging.sy03300",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": null,
|
|
"columns": [
|
|
{
|
|
"source_name": "PYMTRMID",
|
|
"source_type": "CHAR(21)",
|
|
"dest_name": "pymtrmid",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DUETYPE",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "duetype",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DUEDTDS",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "duedtds",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DISCTYPE",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "disctype",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DISCDTDS",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "discdtds",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DSCLCTYP",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "dsclctyp",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DSCDLRAM",
|
|
"source_type": "NUMERIC(19,5)",
|
|
"dest_name": "dscdlram",
|
|
"dest_type": "numeric(19,5)",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DSCPCTAM",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "dscpctam",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "SALPURCH",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "salpurch",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DISCNTCB",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "discntcb",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "FREIGHT",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "freight",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "MISC",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "misc",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "TAX",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "tax",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "NOTEINDX",
|
|
"source_type": "NUMERIC(19,5)",
|
|
"dest_name": "noteindx",
|
|
"dest_type": "numeric(19,5)",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "CBUVATMD",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "cbuvatmd",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "LSTUSRED",
|
|
"source_type": "CHAR(15)",
|
|
"dest_name": "lstusred",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "MODIFDT",
|
|
"source_type": "DATETIME",
|
|
"dest_name": "modifdt",
|
|
"dest_type": "timestamp",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "CREATDDT",
|
|
"source_type": "DATETIME",
|
|
"dest_name": "creatddt",
|
|
"dest_type": "timestamp",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "USEGRPER",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "usegrper",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "CalculateDateFrom",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "calculatedatefrom",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "CalculateDateFromDays",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "calculatedatefromdays",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DueMonth",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "duemonth",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DiscountMonth",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "discountmonth",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DEX_ROW_ID",
|
|
"source_type": "INT",
|
|
"dest_name": "dex_row_id",
|
|
"dest_type": "integer",
|
|
"description": null
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|