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>
163 lines
4.0 KiB
JSON
163 lines
4.0 KiB
JSON
{
|
|
"name": "userdetail",
|
|
"source_connection": "sqlserver",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "pricequote.userdetail",
|
|
"staging_table": "pipekit_staging.userdetail",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": null,
|
|
"columns": [
|
|
{
|
|
"source_name": "UserDetailId",
|
|
"source_type": "INT",
|
|
"dest_name": "userdetailid",
|
|
"dest_type": "integer",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "UserName",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "username",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Class",
|
|
"source_type": "VARCHAR(50)",
|
|
"dest_name": "class",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "CmsUserId",
|
|
"source_type": "VARCHAR(5)",
|
|
"dest_name": "cmsuserid",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "MApprovalRuleLevel1",
|
|
"source_type": "DECIMAL(18,9)",
|
|
"dest_name": "mapprovalrulelevel1",
|
|
"dest_type": "numeric(18,9)",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level1ApprovalManager",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "level1approvalmanager",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level2ApprovalManager",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "level2approvalmanager",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "EmailAddress",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "emailaddress",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "CreatedBy",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "createdby",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "CreatedOn",
|
|
"source_type": "DATETIME",
|
|
"dest_name": "createdon",
|
|
"dest_type": "timestamp",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "ModifiedBy",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "modifiedby",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "ModifiedOn",
|
|
"source_type": "DATETIME",
|
|
"dest_name": "modifiedon",
|
|
"dest_type": "timestamp",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level1DelegateTo",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "level1delegateto",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level2DelegateTo",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "level2delegateto",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "MApprovalRuleLevel2",
|
|
"source_type": "DECIMAL(18,9)",
|
|
"dest_name": "mapprovalrulelevel2",
|
|
"dest_type": "numeric(18,9)",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "MApprovalRuleLevel3",
|
|
"source_type": "DECIMAL(18,9)",
|
|
"dest_name": "mapprovalrulelevel3",
|
|
"dest_type": "numeric(18,9)",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level3ApprovalManager",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "level3approvalmanager",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level3DelegateTo",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "level3delegateto",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Director",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "director",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "QuoteManager",
|
|
"source_type": "VARCHAR(128)",
|
|
"dest_name": "quotemanager",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "UserLevel",
|
|
"source_type": "INT",
|
|
"dest_name": "userlevel",
|
|
"dest_type": "integer",
|
|
"description": null
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|