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>
44 lines
1.3 KiB
Transact-SQL
44 lines
1.3 KiB
Transact-SQL
SELECT
|
|
[ACTINDX] AS [actindx],
|
|
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],
|
|
RTRIM([ACTALIAS]) AS [actalias],
|
|
RTRIM([MNACSGMT]) AS [mnacsgmt],
|
|
[ACCTTYPE] AS [accttype],
|
|
RTRIM([ACTDESCR]) AS [actdescr],
|
|
[PSTNGTYP] AS [pstngtyp],
|
|
[ACCATNUM] AS [accatnum],
|
|
[ACTIVE] AS [active],
|
|
[TPCLBLNC] AS [tpclblnc],
|
|
[DECPLACS] AS [decplacs],
|
|
[FXDORVAR] AS [fxdorvar],
|
|
[BALFRCLC] AS [balfrclc],
|
|
[DSPLKUPS] AS [dsplkups],
|
|
[CNVRMTHD] AS [cnvrmthd],
|
|
[HSTRCLRT] AS [hstrclrt],
|
|
[NOTEINDX] AS [noteindx],
|
|
[CREATDDT] AS [creatddt],
|
|
[MODIFDT] AS [modifdt],
|
|
RTRIM([USERDEF1]) AS [userdef1],
|
|
RTRIM([USERDEF2]) AS [userdef2],
|
|
[PostSlsIn] AS [postslsin],
|
|
[PostIvIn] AS [postivin],
|
|
[PostPurchIn] AS [postpurchin],
|
|
[PostPRIn] AS [postprin],
|
|
[ADJINFL] AS [adjinfl],
|
|
[INFLAREV] AS [inflarev],
|
|
[INFLAEQU] AS [inflaequ],
|
|
[ACCTENTR] AS [acctentr],
|
|
RTRIM([USRDEFS1]) AS [usrdefs1],
|
|
RTRIM([USRDEFS2]) AS [usrdefs2],
|
|
[Clear_Balance] AS [clear_balance],
|
|
[DEX_ROW_TS] AS [dex_row_ts],
|
|
[DEX_ROW_ID] AS [dex_row_id]
|
|
FROM [GPSERVER].[CHG].[dbo].[GL00100]
|