Redmage/db/queries/devices.sql

8 lines
265 B
MySQL
Raw Normal View History

2024-04-14 13:11:10 +07:00
-- name: GetDevices :many
SELECT * FROM devices;
-- name: CreateDevice :one
INSERT INTO devices (name, resolution_x, resolution_y, aspect_ratio_tolerance, min_x, min_y, max_x, max_y, nsfw, windows_wallpaper_mode)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
RETURNING *;