|
@ -22,6 +22,7 @@ WHERE id = @id; |
|
|
-- name: SelectComments :many |
|
|
-- name: SelectComments :many |
|
|
SELECT * FROM story_comment |
|
|
SELECT * FROM story_comment |
|
|
WHERE (@chapter_id = '' OR chapter_id = @chapter_id) |
|
|
WHERE (@chapter_id = '' OR chapter_id = @chapter_id) |
|
|
|
|
|
ORDER BY fictional_date, created_date |
|
|
LIMIT NULLIF(@limit_size::INT, 0); |
|
|
LIMIT NULLIF(@limit_size::INT, 0); |
|
|
|
|
|
|
|
|
-- name: DeleteComment :exec |
|
|
-- name: DeleteComment :exec |
|
|