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.2 KiB
SQL
44 lines
1.2 KiB
SQL
SELECT
|
|
[qid] AS qid,
|
|
[qline] AS qline,
|
|
RTRIM([rep]) AS rep,
|
|
RTRIM([approverusername]) AS approverusername,
|
|
[touched] AS touched,
|
|
[expires] AS expires,
|
|
[request] AS request,
|
|
RTRIM([qtitle]) AS qtitle,
|
|
[qstatid] AS qstatid,
|
|
RTRIM([qstat]) AS qstat,
|
|
[quotenumber] AS quotenumber,
|
|
RTRIM([billto]) AS billto,
|
|
RTRIM([shipto]) AS shipto,
|
|
RTRIM([qchan]) AS qchan,
|
|
RTRIM([qcustomer]) AS qcustomer,
|
|
RTRIM([part]) AS part,
|
|
RTRIM([qoptions]) AS qoptions,
|
|
RTRIM([partbuilt]) AS partbuilt,
|
|
RTRIM([colgrp]) AS colgrp,
|
|
RTRIM([colc]) AS colc,
|
|
RTRIM([coltier]) AS coltier,
|
|
RTRIM([brand]) AS brand,
|
|
RTRIM([dataseg]) AS dataseg,
|
|
RTRIM([v1ds]) AS v1ds,
|
|
RTRIM([comment]) AS comment,
|
|
[units_each] AS units_each,
|
|
[price] AS price,
|
|
[sales] AS sales,
|
|
[histprice] AS histprice,
|
|
[targetp] AS targetp,
|
|
[LastSalesPrice] AS lastsalesprice,
|
|
RTRIM([r_curr]) AS r_curr,
|
|
[qt_rate] AS qt_rate,
|
|
[qrn] AS qrn,
|
|
RTRIM([url]) AS url,
|
|
RTRIM([tacticalmodifier]) AS tacticalmodifier,
|
|
[FinalRecommendedPrice] AS finalrecommendedprice,
|
|
[LowerPriceLimit] AS lowerpricelimit,
|
|
[UpperPriceLimit] AS upperpricelimit,
|
|
[curstdus] AS curstdus,
|
|
[futstdus] AS futstdus
|
|
FROM [FANALYSIS].[RLARP].[live_quotes]
|