first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
-- name: FindTag :one
|
||||
SELECT *
|
||||
FROM tag
|
||||
WHERE id = ?;
|
||||
|
||||
-- name: ListTags :many
|
||||
SELECT *
|
||||
FROM tag;
|
||||
|
||||
-- name: ListListedTags :many
|
||||
SELECT *
|
||||
FROM tag
|
||||
WHERE listed = 1;
|
||||
|
||||
-- name: ReplaceTag :exec
|
||||
REPLACE INTO tag (id, parent_id, owner_id, name, kind, description, listed, secret)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?);
|
||||
|
||||
-- name: DeleteTag :exec
|
||||
DELETE FROM tag WHERE id = ?;
|
||||
Reference in New Issue
Block a user