use string tag in domain layer

This commit is contained in:
2026-06-21 21:38:56 +03:00
parent 21a768edd5
commit b66fe60e48
25 changed files with 195 additions and 169 deletions
@@ -5,8 +5,12 @@ CREATE TABLE UserTag (
selectAll:
SELECT id, tag
FROM UserTag;
find:
SELECT id, tag
FROM UserTag
ORDER BY id DESC;
WHERE tag = ?;
insert:
INSERT OR IGNORE INTO UserTag(tag)
@@ -15,11 +19,11 @@ VALUES (?);
update:
UPDATE UserTag
SET tag = :newTag
WHERE id = :id;
WHERE tag = ?;
delete:
DELETE FROM UserTag
WHERE id = ?;
WHERE tag = ?;
clear:
DELETE FROM UserTag;