arche / internal/store/migrate/sql/005_zstd_dict.sql

commit 154431fd
1-- Persistent zstd dictionary storage.
2-- Each row is a trained dictionary; the decoder loads all stored dicts so it
3-- can decompress both old (no-dict) and new (with-dict) compressed frames.
4-- The encoder always uses the latest dict (highest id).
5CREATE TABLE IF NOT EXISTS zstd_dicts (
6    id         INTEGER PRIMARY KEY AUTOINCREMENT,
7    created_at INTEGER NOT NULL,
8    dict       BLOB    NOT NULL
9);