Redmage/db/queries/subreddits.sql

11 lines
189 B
MySQL
Raw Normal View History

-- name: ListSubreddits :many
SELECT * FROM subreddits
2024-04-07 23:41:00 +07:00
ORDER BY name
LIMIT ?;
-- name: CreateSubreddit :one
INSERT INTO subreddits (name, subtype, schedule)
VALUES (?, ?, ?)
RETURNING *;