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>
86 lines
1.9 KiB
JSON
86 lines
1.9 KiB
JSON
{
|
|
"name": "tbfc",
|
|
"source_connection": "sqlserver",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "gs.tbfc",
|
|
"staging_table": "pipekit_staging.tbfc",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": null,
|
|
"columns": [
|
|
{
|
|
"source_name": "Date",
|
|
"source_type": "DATE",
|
|
"dest_name": "date",
|
|
"dest_type": "date",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Account GL",
|
|
"source_type": "VARCHAR(100)",
|
|
"dest_name": "account_gl",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Amount",
|
|
"source_type": "DECIMAL(18,2)",
|
|
"dest_name": "amount",
|
|
"dest_type": "numeric(18,2)",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "FS Line",
|
|
"source_type": "VARCHAR(100)",
|
|
"dest_name": "fs_line",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "EBITDA",
|
|
"source_type": "VARCHAR(100)",
|
|
"dest_name": "ebitda",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Entity",
|
|
"source_type": "VARCHAR(100)",
|
|
"dest_name": "entity",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "FS",
|
|
"source_type": "VARCHAR(100)",
|
|
"dest_name": "fs",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Department Code",
|
|
"source_type": "VARCHAR(100)",
|
|
"dest_name": "department_code",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Source",
|
|
"source_type": "VARCHAR(100)",
|
|
"dest_name": "source",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Origin",
|
|
"source_type": "VARCHAR(100)",
|
|
"dest_name": "origin",
|
|
"dest_type": "text",
|
|
"description": null
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|