Skip to content

Input all categorical data via YAML files#164

Open
ScriptRaccoon wants to merge 37 commits intomainfrom
yaml-transformation
Open

Input all categorical data via YAML files#164
ScriptRaccoon wants to merge 37 commits intomainfrom
yaml-transformation

Conversation

@ScriptRaccoon
Copy link
Copy Markdown
Owner

@ScriptRaccoon ScriptRaccoon commented May 7, 2026

All categorical data is now authored in YAML files. Contributors no longer need to touch SQL seed files anymore. YAML is more readable, structured, and independent of the database layer.

To support this change, existing seed data has been converted (once) into YAML. From now on, YAML is the single source of truth for seeded data. The SQL seed files have been deleted.

The SQLite database is kept as before. It is still used for storage, querying, and for running deduction scripts. The schema is still defined in SQL files.

Previously, SQL seed files were doing two things at once: defining the data and also implementing the logic to insert and normalize it into multiple tables. This PR separates those concerns. The insertion logic is now handled explicitly in the new seed script, while YAML only defines the data itself.

This does introduce an extra layer (YAML parsing + import step), but this layer already existed implicitly before in the SQL seed files.

This resolves #163 (but with YAML instead of markdown).

@ScriptRaccoon ScriptRaccoon force-pushed the yaml-transformation branch from 02a836c to 0615d32 Compare May 7, 2026 16:09
@ScriptRaccoon ScriptRaccoon changed the title Yaml transformation (WIP) Input all categorical data via YAML files (WIP) May 7, 2026
@ScriptRaccoon ScriptRaccoon changed the title Input all categorical data via YAML files (WIP) Input all categorical data via YAML files May 8, 2026
@ScriptRaccoon ScriptRaccoon marked this pull request as ready for review May 8, 2026 18:03
@ScriptRaccoon ScriptRaccoon force-pushed the yaml-transformation branch 2 times, most recently from 77744ba to 07ca96d Compare May 9, 2026 17:06
@ScriptRaccoon ScriptRaccoon force-pushed the yaml-transformation branch from 07ca96d to f30aab0 Compare May 10, 2026 07:27
@ScriptRaccoon ScriptRaccoon force-pushed the yaml-transformation branch from 7f61e79 to 335351c Compare May 10, 2026 11:12
@ScriptRaccoon ScriptRaccoon force-pushed the yaml-transformation branch from 335351c to e3240bc Compare May 10, 2026 11:20
@ScriptRaccoon ScriptRaccoon force-pushed the yaml-transformation branch from 1ff7bdc to ddb213b Compare May 10, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Input via markdown files?

1 participant