File processing context

This commit is contained in:
illian64 2025-09-26 21:42:15 +07:00 committed by GitHub
parent 8b95486447
commit 061454a684
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 269 additions and 93 deletions

View file

@ -0,0 +1,16 @@
CREATE TABLE IF NOT EXISTS cache_translate (
key TEXT NOT NULL,
created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
from_lang TEXT NOT NULL,
to_lang TEXT NOT NULL,
plugin TEXT NOT NULL,
model TEXT NOT NULL,
context_hash INTEGER NOT NULL,
value TEXT NOT NULL
);
CREATE UNIQUE INDEX IF NOT EXISTS idx_translate_cols
ON cache_translate (key, from_lang, to_lang, plugin, model, context_hash);
CREATE INDEX IF NOT EXISTS idx_created
ON cache_translate (created);