TODO: Add support for multi table requests - currently the existing fields are being merged.
17 lines
327 B
SQL
17 lines
327 B
SQL
CREATE TABLE "queries" (
|
|
"id" bigserial UNIQUE PRIMARY KEY NOT NULL,
|
|
"name" varchar NOT NULL,
|
|
"query" varchar NOT NULL
|
|
);
|
|
|
|
INSERT INTO "queries" (name, query)
|
|
VALUES (
|
|
'all_accounts',
|
|
'SELECT * FROM accounts'
|
|
);
|
|
|
|
INSERT INTO "queries" (name, query)
|
|
VALUES (
|
|
'all_persons',
|
|
'SELECT * FROM persons'
|
|
); |