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>
135 lines
3.1 KiB
JSON
135 lines
3.1 KiB
JSON
{
|
|
"name": "sy40100",
|
|
"source_connection": "sqlserver",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "gp.sy40100",
|
|
"staging_table": "pipekit_staging.sy40100",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": null,
|
|
"columns": [
|
|
{
|
|
"source_name": "CLOSED",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "closed",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "SERIES",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "series",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "ODESCTN",
|
|
"source_type": "CHAR(51)",
|
|
"dest_name": "odesctn",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "FORIGIN",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "forigin",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "PERIODID",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "periodid",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "PERIODDT",
|
|
"source_type": "DATETIME",
|
|
"dest_name": "perioddt",
|
|
"dest_type": "timestamp",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "PERNAME",
|
|
"source_type": "CHAR(21)",
|
|
"dest_name": "pername",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "PSERIES_1",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "pseries_1",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "PSERIES_2",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "pseries_2",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "PSERIES_3",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "pseries_3",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "PSERIES_4",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "pseries_4",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "PSERIES_5",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "pseries_5",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "PSERIES_6",
|
|
"source_type": "TINYINT",
|
|
"dest_name": "pseries_6",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "YEAR1",
|
|
"source_type": "SMALLINT",
|
|
"dest_name": "year1",
|
|
"dest_type": "smallint",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "PERDENDT",
|
|
"source_type": "DATETIME",
|
|
"dest_name": "perdendt",
|
|
"dest_type": "timestamp",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DEX_ROW_TS",
|
|
"source_type": "DATETIME",
|
|
"dest_name": "dex_row_ts",
|
|
"dest_type": "timestamp",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "DEX_ROW_ID",
|
|
"source_type": "INT",
|
|
"dest_name": "dex_row_id",
|
|
"dest_type": "integer",
|
|
"description": null
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|