Integrated, working.

This integrates the liteq, and it prevents duplicates in a way that
matches my use-case.

I might try and push things back out to a separate module, but for now,
this will do.
This commit is contained in:
Matt Jadud
2025-11-30 18:01:35 -05:00
parent d212a354fe
commit 06cdc68be7
13 changed files with 70 additions and 41 deletions

View File

@@ -20,10 +20,9 @@ VALUES
unixepoch(),
?,
?
) ON CONFLICT (deduping_key, job_status)
) ON CONFLICT (deduping_key)
WHERE
deduping_key != ''
AND (job_status = 'queued' OR job_status = 'fetched' OR job_status = 'completed') DO NOTHING;
deduping_key != '' DO NOTHING;
-- name: doQueueJobReplaceDupe :exec
INSERT INTO