mirror of
https://github.com/illian64/llm-translate.git
synced 2026-05-04 22:51:53 +00:00
File processing context
This commit is contained in:
parent
8b95486447
commit
061454a684
24 changed files with 269 additions and 93 deletions
16
resources/migrations/V01_01__cache_init.sql
Normal file
16
resources/migrations/V01_01__cache_init.sql
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue