jsonextractionv0

This commit is contained in:
Michael McGuinness
2024-12-23 12:26:05 +00:00
parent 5f8c9c7b1d
commit 339ce185ad
132 changed files with 6448 additions and 651 deletions
@@ -0,0 +1 @@
DROP TABLE queryConfigs;
@@ -0,0 +1,9 @@
CREATE TABLE queryConfigs (
id uuid primary key,
queryId uuid not null,
config jsonb not null,
addedVersion int not null,
removedVersion int,
foreign key (queryId) references queries(id),
unique (queryId, removedVersion)
);
+2
View File
@@ -0,0 +1,2 @@
-- name: GetQueryConfig :one
SELECT id, config FROM queryConfigs where queryId = $1 and addedVersion >= $2 and COALESCE(removedVersion, $2 - 1) < $2;