Stamp seed rows with language + add --language flag #9

Merged
raisondetredev merged 1 commit from refs/pull/9/head into main 2026-06-05 23:35:11 +02:00
raisondetredev commented 2026-06-05 23:34:59 +02:00 (Migrated from codeberg.org)

The catalog's primary key is now (id, language), so the seed should send
language explicitly rather than leaning on the column default. DictionarySeedRow
gains a language field (default 'ja') emitted in toJson, and the seed_dictionary
bin gains a --language option (default ja). Re-seeding Japanese is unchanged;
the flag is the hook a future non-Japanese wordlist sets (that source needs its
own parser — the input here is still JMdict). 2 new tests; dry-run confirms the
language column lands in the upsert body.

Signed-off-by: Tizian 「ティツィアーン」 raisondetredev@pm.me

The catalog's primary key is now (id, language), so the seed should send language explicitly rather than leaning on the column default. DictionarySeedRow gains a language field (default 'ja') emitted in toJson, and the seed_dictionary bin gains a --language option (default ja). Re-seeding Japanese is unchanged; the flag is the hook a future non-Japanese wordlist sets (that source needs its own parser — the input here is still JMdict). 2 new tests; dry-run confirms the language column lands in the upsert body. Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
project-halkyon/halkyon-curator!9
No description provided.