🚧 Add sqlite extraction

This commit is contained in:
Jonas Bengtsson
2026-09-12 23:32:19 +02:00
parent e773703ed3
commit 2e24683347
11 changed files with 988 additions and 19 deletions
+21
View File
@@ -22,6 +22,10 @@ files:
- "**/*.tmp"
- "**/*.log"
- ".git/**"
# When content extraction (Section 45) is enabled, exclude the raw
# binary databases so the repository tracks the readable artifacts
# instead of opaque blobs:
# - "**/*.sqlite"
security:
forbidden_patterns:
@@ -42,6 +46,23 @@ commit:
# identifiers or timestamps.
file_separator: ";"
# Derived artifacts (Section 45): extracts configured SQLite databases
# into plain-text artifacts that are tracked like any other file. One
# sub-folder per source database (named after the database file), one
# JSON Lines file per table, under a configurable output root inside
# the repository. Extraction opens the source read-only via a snapshot
# copy; artifacts are byte-stable so unchanged content produces no
# commit; a table removed from the database removes its artifact.
extraction:
enabled: true
output_root: "extracted"
format: "jsonl"
sources:
- path: "data/VV_FALKENBERG.signals.db"
# tables: # optional; default: all user tables
# - "alarms"
# - "events"
logging:
level: INFO
console: true