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>
247 lines
5.8 KiB
JSON
247 lines
5.8 KiB
JSON
{
|
|
"name": "coa_map",
|
|
"source_connection": "sqlserver",
|
|
"dest_connection": "usmidsap02",
|
|
"dest_table": "gs.coa_map",
|
|
"staging_table": "pipekit_staging.coa_map",
|
|
"merge_strategy": "full",
|
|
"merge_key": null,
|
|
"enabled": 1,
|
|
"dest_description": null,
|
|
"columns": [
|
|
{
|
|
"source_name": "Entity",
|
|
"source_type": "VARCHAR(3)",
|
|
"dest_name": "entity",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Company",
|
|
"source_type": "VARCHAR(2)",
|
|
"dest_name": "company",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Company Name",
|
|
"source_type": "VARCHAR(14)",
|
|
"dest_name": "company_name",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Account#",
|
|
"source_type": "VARCHAR(12)",
|
|
"dest_name": "account#",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "AZTITL CHG Description",
|
|
"source_type": "VARCHAR(39)",
|
|
"dest_name": "aztitl__chg_description",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "FGRP",
|
|
"source_type": "VARCHAR(39)",
|
|
"dest_name": "fgrp",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Department",
|
|
"source_type": "VARCHAR(24)",
|
|
"dest_name": "department",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Department Name",
|
|
"source_type": "VARCHAR(27)",
|
|
"dest_name": "department_name",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "STMT",
|
|
"source_type": "VARCHAR(16)",
|
|
"dest_name": "stmt",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "LVL0",
|
|
"source_type": "VARCHAR(60)",
|
|
"dest_name": "lvl0",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "LVL1",
|
|
"source_type": "VARCHAR(60)",
|
|
"dest_name": "lvl1",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "LVL2",
|
|
"source_type": "VARCHAR(60)",
|
|
"dest_name": "lvl2",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "LVL3",
|
|
"source_type": "VARCHAR(35)",
|
|
"dest_name": "lvl3",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Summary Acct",
|
|
"source_type": "VARCHAR(28)",
|
|
"dest_name": "summary_acct",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "CF Mapping",
|
|
"source_type": "VARCHAR(23)",
|
|
"dest_name": "cf_mapping",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "FS",
|
|
"source_type": "VARCHAR(2)",
|
|
"dest_name": "fs",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level 1",
|
|
"source_type": "VARCHAR(60)",
|
|
"dest_name": "level_1",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level 2",
|
|
"source_type": "VARCHAR(60)",
|
|
"dest_name": "level_2",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level 3",
|
|
"source_type": "VARCHAR(60)",
|
|
"dest_name": "level_3",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level 4",
|
|
"source_type": "VARCHAR(60)",
|
|
"dest_name": "level_4",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "D&A",
|
|
"source_type": "VARCHAR(19)",
|
|
"dest_name": "d_a",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Addback",
|
|
"source_type": "VARCHAR(1)",
|
|
"dest_name": "addback",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Anaplan Mapping",
|
|
"source_type": "VARCHAR(1)",
|
|
"dest_name": "anaplan_mapping",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Anaplan D&A PE Exp.",
|
|
"source_type": "VARCHAR(1)",
|
|
"dest_name": "anaplan_d_a__pe_exp.",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Mapping.Completion.Check",
|
|
"source_type": "VARCHAR(1)",
|
|
"dest_name": "mapping.completion.check",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "FS (Audit format)",
|
|
"source_type": "VARCHAR(2)",
|
|
"dest_name": "fs__audit_format_",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level 1 (Audit format)",
|
|
"source_type": "VARCHAR(41)",
|
|
"dest_name": "level_1__audit_format_",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Level 2 (BS)",
|
|
"source_type": "VARCHAR(22)",
|
|
"dest_name": "level_2__bs_",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "IS Mapping (Audit)",
|
|
"source_type": "VARCHAR(22)",
|
|
"dest_name": "is_mapping__audit_",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Manual Adjustment to Shua File",
|
|
"source_type": "VARCHAR(1)",
|
|
"dest_name": "manual_adjustment_to_shua_file",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "Difference in Mapping",
|
|
"source_type": "VARCHAR(1)",
|
|
"dest_name": "difference_in_mapping",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "EBITDA",
|
|
"source_type": "NVARCHAR(255)",
|
|
"dest_name": "ebitda",
|
|
"dest_type": "text",
|
|
"description": null
|
|
},
|
|
{
|
|
"source_name": "ELIM",
|
|
"source_type": "NVARCHAR(255)",
|
|
"dest_name": "elim",
|
|
"dest_type": "text",
|
|
"description": null
|
|
}
|
|
],
|
|
"watermarks": [],
|
|
"hooks": []
|
|
}
|