diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-21 12:00:43 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-22 14:54:35 -0400 |
| commit | 774302487c8595ec4383558e9d8387a6219ef2ed (patch) | |
| tree | 8a2001340c39e50f2f85b26cb5fabfb939c2b8a0 /src | |
| parent | digests: db digest taken once on file completion (diff) | |
test db: multilingual database test
one file holding several languages.
Both assumed <uid>.<lang>.ocda.db beside <uid>.<lang>.ssp, one for
one.
- test-abstraction-db.sh takes the language from the .ssp name, the
database from the stem, and scopes every query by the doc_id that
language resolves to: objects by doc_id, the four child tables
through their objects, metadata by doc_id, schema.version by doc_id
is null. It also checks what a per language loop cannot see, that the
languages a database holds are exactly the languages there are .ssp
files for.
- test-abstraction-db-roundtrip.sh asks for each language by name and
holds it against its own .ssp, and requires a database of more than
one language to refuse a round trip that names none: a reader quietly
emitting the first language would otherwise pass against the first
.ssp and say nothing about the other nine. Its language list comes
from the .ssp filenames, so it still needs no sqlite3.
databases (re-)emitting all .ssp files exactly.
(assisted by Claude-Code)
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
