mirror of
https://github.com/1f349/violet.git
synced 2024-11-24 20:31:37 +00:00
17 lines
261 B
MySQL
17 lines
261 B
MySQL
|
-- name: GetActiveDomains :many
|
||
|
SELECT domain
|
||
|
FROM domains
|
||
|
WHERE active = 1;
|
||
|
|
||
|
-- name: AddDomain :exec
|
||
|
INSERT OR
|
||
|
REPLACE
|
||
|
INTO domains (domain, active)
|
||
|
VALUES (?, ?);
|
||
|
|
||
|
-- name: DeleteDomain :exec
|
||
|
INSERT OR
|
||
|
REPLACE
|
||
|
INTO domains(domain, active)
|
||
|
VALUES (?, false);
|