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>
20 lines
534 B
Transact-SQL
20 lines
534 B
Transact-SQL
SELECT
|
|
[CLOSED] AS [closed],
|
|
[SERIES] AS [series],
|
|
RTRIM([ODESCTN]) AS [odesctn],
|
|
[FORIGIN] AS [forigin],
|
|
[PERIODID] AS [periodid],
|
|
[PERIODDT] AS [perioddt],
|
|
RTRIM([PERNAME]) AS [pername],
|
|
[PSERIES_1] AS [pseries_1],
|
|
[PSERIES_2] AS [pseries_2],
|
|
[PSERIES_3] AS [pseries_3],
|
|
[PSERIES_4] AS [pseries_4],
|
|
[PSERIES_5] AS [pseries_5],
|
|
[PSERIES_6] AS [pseries_6],
|
|
[YEAR1] AS [year1],
|
|
[PERDENDT] AS [perdendt],
|
|
[DEX_ROW_TS] AS [dex_row_ts],
|
|
[DEX_ROW_ID] AS [dex_row_id]
|
|
FROM [GPSERVER].[CHG].[dbo].[SY40100]
|