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": "ggtp",
|
|
"source_connection": "S78030956",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "cms.ggtp",
|
|
"staging_table": "pipekit_staging.ggtp",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": "G/L Category Code 5.3",
|
|
"columns": [
|
|
{
|
|
"source_name": "D35GCDE",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "d35gcde",
|
|
"dest_type": "text",
|
|
"description": "G/L Category Code"
|
|
},
|
|
{
|
|
"source_name": "D35DES1",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "d35des1",
|
|
"dest_type": "text",
|
|
"description": "Description 1"
|
|
},
|
|
{
|
|
"source_name": "D35DES2",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "d35des2",
|
|
"dest_type": "text",
|
|
"description": "Description 2"
|
|
},
|
|
{
|
|
"source_name": "D35DES3",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "d35des3",
|
|
"dest_type": "text",
|
|
"description": "Description 3"
|
|
},
|
|
{
|
|
"source_name": "D35USR1",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "d35usr1",
|
|
"dest_type": "text",
|
|
"description": "User Field 1"
|
|
},
|
|
{
|
|
"source_name": "D35USR2",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "d35usr2",
|
|
"dest_type": "text",
|
|
"description": "User Field 2"
|
|
},
|
|
{
|
|
"source_name": "D35USR3",
|
|
"source_type": "CHAR(30)",
|
|
"dest_name": "d35usr3",
|
|
"dest_type": "text",
|
|
"description": "User Field 3"
|
|
},
|
|
{
|
|
"source_name": "D35USR4",
|
|
"source_type": "DECIMAL(15,5)",
|
|
"dest_name": "d35usr4",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "User Field 4"
|
|
},
|
|
{
|
|
"source_name": "D35USR5",
|
|
"source_type": "DECIMAL(15,5)",
|
|
"dest_name": "d35usr5",
|
|
"dest_type": "numeric(15,5)",
|
|
"description": "User Field 5"
|
|
},
|
|
{
|
|
"source_name": "D35CUSR",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "d35cusr",
|
|
"dest_type": "text",
|
|
"description": "Created By User"
|
|
},
|
|
{
|
|
"source_name": "D35CDAT",
|
|
"source_type": "DATE",
|
|
"dest_name": "d35cdat",
|
|
"dest_type": "date",
|
|
"description": "Date Created"
|
|
},
|
|
{
|
|
"source_name": "D35CTME",
|
|
"source_type": "TIME",
|
|
"dest_name": "d35ctme",
|
|
"dest_type": "time",
|
|
"description": "Time Created"
|
|
},
|
|
{
|
|
"source_name": "D35UUSR",
|
|
"source_type": "CHAR(10)",
|
|
"dest_name": "d35uusr",
|
|
"dest_type": "text",
|
|
"description": "Updated By User"
|
|
},
|
|
{
|
|
"source_name": "D35UDAT",
|
|
"source_type": "DATE",
|
|
"dest_name": "d35udat",
|
|
"dest_type": "date",
|
|
"description": "Date Updated"
|
|
},
|
|
{
|
|
"source_name": "D35UTME",
|
|
"source_type": "TIME",
|
|
"dest_name": "d35utme",
|
|
"dest_type": "time",
|
|
"description": "Time Updated"
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|