use string tag in domain layer
This commit is contained in:
+7
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user