pipekit/config/modules/gl10111.sql
Paul Trowbridge dd9f89f4b5 feat: version-control pipeline definitions via export/apply
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>
2026-07-22 10:56:55 -04:00

20 lines
572 B
Transact-SQL

SELECT
[ACTINDX] AS actindx,
[YEAR1] AS year1,
[PERIODID] AS periodid,
[Ledger_ID] AS ledger_id,
RTRIM([ACTNUMBR_1]) AS actnumbr_1,
RTRIM([ACTNUMBR_2]) AS actnumbr_2,
RTRIM([ACTNUMBR_3]) AS actnumbr_3,
RTRIM([ACTNUMBR_4]) AS actnumbr_4,
RTRIM([ACTNUMBR_5]) AS actnumbr_5,
RTRIM([ACTNUMBR_6]) AS actnumbr_6,
RTRIM([ACTNUMBR_7]) AS actnumbr_7,
RTRIM([ACTNUMBR_8]) AS actnumbr_8,
[ACCATNUM] AS accatnum,
[PERDBLNC] AS perdblnc,
[DEBITAMT] AS debitamt,
[CRDTAMNT] AS crdtamnt,
[DEX_ROW_ID] AS dex_row_id
FROM [GPSERVER].[CHG].[dbo].[GL10111]