This commit is contained in:
seb
2026-10-09 21:43:20 +02:00
parent ba376686f3
commit 906ebafbbe
6 changed files with 90 additions and 0 deletions

View File

@@ -30,6 +30,12 @@ FROM pic
WHERE hash = @hash
`;
export const GET_SMALLTHUMB_BY_HASH = `
SELECT smallthumbw AS w, smallthumbh AS h, smallthumbbinary AS buffer
FROM pic
WHERE hash = @hash
`;
export const DELETE_BY_ARTICLE_AND_HASH = `
DELETE FROM pic
WHERE hash = @fullHash