extract common create and updatelogic

This commit is contained in:
Michael McGuinness
2025-01-03 16:00:36 +00:00
parent 9f505dd94c
commit 0447ec4c4b
9 changed files with 24 additions and 72 deletions
-3
View File
@@ -1,9 +1,6 @@
-- name: GetQueryConfig :one
SELECT id, config FROM queryConfigs where queryId = $1 and addedVersion >= $2 and COALESCE(removedVersion, $2 - 1) < $2;
-- name: GetQueryType :one
SELECT type FROM queries where id = $1;
-- name: DeprecateQuery :exec
INSERT INTO queryDeprecations (queryId) VALUES ($1);