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>
71 lines
2.0 KiB
Transact-SQL
71 lines
2.0 KiB
Transact-SQL
SELECT
|
|
[HSTYEAR] AS hstyear,
|
|
[JRNENTRY] AS jrnentry,
|
|
[RCTRXSEQ] AS rctrxseq,
|
|
RTRIM([SOURCDOC]) AS sourcdoc,
|
|
RTRIM([REFRENCE]) AS refrence,
|
|
RTRIM([DSCRIPTN]) AS dscriptn,
|
|
[TRXDATE] AS trxdate,
|
|
[ACTINDX] AS actindx,
|
|
RTRIM([TRXSORCE]) AS trxsorce,
|
|
[POLLDTRX] AS polldtrx,
|
|
RTRIM([LASTUSER]) AS lastuser,
|
|
[LSTDTEDT] AS lstdtedt,
|
|
RTRIM([USWHPSTD]) AS uswhpstd,
|
|
RTRIM([ORGNTSRC]) AS orgntsrc,
|
|
[ORGNATYP] AS orgnatyp,
|
|
[QKOFSET] AS qkofset,
|
|
[SERIES] AS series,
|
|
[ORTRXTYP] AS ortrxtyp,
|
|
RTRIM([ORCTRNUM]) AS orctrnum,
|
|
RTRIM([ORMSTRID]) AS ormstrid,
|
|
RTRIM([ORMSTRNM]) AS ormstrnm,
|
|
RTRIM([ORDOCNUM]) AS ordocnum,
|
|
[ORPSTDDT] AS orpstddt,
|
|
RTRIM([ORTRXSRC]) AS ortrxsrc,
|
|
[OrigDTASeries] AS origdtaseries,
|
|
[OrigSeqNum] AS origseqnum,
|
|
[SEQNUMBR] AS seqnumbr,
|
|
[DTA_GL_Status] AS dta_gl_status,
|
|
[DTA_Index] AS dta_index,
|
|
RTRIM([CURNCYID]) AS curncyid,
|
|
[CURRNIDX] AS currnidx,
|
|
RTRIM([RATETPID]) AS ratetpid,
|
|
RTRIM([EXGTBLID]) AS exgtblid,
|
|
[XCHGRATE] AS xchgrate,
|
|
[EXCHDATE] AS exchdate,
|
|
[TIME1] AS time1,
|
|
[RTCLCMTD] AS rtclcmtd,
|
|
[NOTEINDX] AS noteindx,
|
|
[ICTRX] AS ictrx,
|
|
RTRIM([ORCOMID]) AS orcomid,
|
|
[ORIGINJE] AS originje,
|
|
[PERIODID] AS periodid,
|
|
[DEBITAMT] AS debitamt,
|
|
[CRDTAMNT] AS crdtamnt,
|
|
[ORDBTAMT] AS ordbtamt,
|
|
[ORCRDAMT] AS orcrdamt,
|
|
[DOCDATE] AS docdate,
|
|
[PSTGNMBR] AS pstgnmbr,
|
|
[PPSGNMBR] AS ppsgnmbr,
|
|
[DENXRATE] AS denxrate,
|
|
[MCTRXSTT] AS mctrxstt,
|
|
RTRIM([CorrespondingUnit]) AS correspondingunit,
|
|
[VOIDED] AS voided,
|
|
[Back_Out_JE] AS back_out_je,
|
|
[Back_Out_JE_Year] AS back_out_je_year,
|
|
[Correcting_JE] AS correcting_je,
|
|
[Correcting_JE_Year] AS correcting_je_year,
|
|
[Original_JE] AS original_je,
|
|
[Original_JE_Seq_Num] AS original_je_seq_num,
|
|
[Original_JE_Year] AS original_je_year,
|
|
[Ledger_ID] AS ledger_id,
|
|
[Adjustment_Transaction] AS adjustment_transaction,
|
|
RTRIM([APRVLUSERID]) AS aprvluserid,
|
|
[APPRVLDT] AS apprvldt,
|
|
[DEX_ROW_TS] AS dex_row_ts,
|
|
[DEX_ROW_ID] AS dex_row_id
|
|
FROM [GPSERVER].[CHG].[dbo].[GL30000]
|
|
WHERE
|
|
[DEX_ROW_ID] >= {dex_row_id}
|