diff --git a/.sqlx/query-58c4216b3ce62314fa727e0f3c504bd64ca10a64a95e4eb8bd7bb822c1625ed6.json b/.sqlx/query-58c4216b3ce62314fa727e0f3c504bd64ca10a64a95e4eb8bd7bb822c1625ed6.json deleted file mode 100644 index 033c25bb3..000000000 --- a/.sqlx/query-58c4216b3ce62314fa727e0f3c504bd64ca10a64a95e4eb8bd7bb822c1625ed6.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n CREATE TABLE \"CostModels\"(\n id INT,\n deployment VARCHAR NOT NULL,\n model TEXT,\n variables JSONB,\n PRIMARY KEY( deployment )\n );\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [] - }, - "nullable": [] - }, - "hash": "58c4216b3ce62314fa727e0f3c504bd64ca10a64a95e4eb8bd7bb822c1625ed6" -} diff --git a/.sqlx/query-842bde7fba1c7652b7cfc2dc568edc4204bbbd32aac6f7da7e99fb501ca5cc14.json b/.sqlx/query-842bde7fba1c7652b7cfc2dc568edc4204bbbd32aac6f7da7e99fb501ca5cc14.json new file mode 100644 index 000000000..2b0cde21e --- /dev/null +++ b/.sqlx/query-842bde7fba1c7652b7cfc2dc568edc4204bbbd32aac6f7da7e99fb501ca5cc14.json @@ -0,0 +1,32 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT deployment, model, variables\n FROM \"CostModels\"\n WHERE deployment != 'global'\n ORDER BY deployment ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "deployment", + "type_info": "Varchar" + }, + { + "ordinal": 1, + "name": "model", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "variables", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + true, + true + ] + }, + "hash": "842bde7fba1c7652b7cfc2dc568edc4204bbbd32aac6f7da7e99fb501ca5cc14" +} diff --git a/.sqlx/query-88901c4779fdd2c4653a2f0544a5685daaed836ef4c927afd8ae7e2804d4a9fd.json b/.sqlx/query-88901c4779fdd2c4653a2f0544a5685daaed836ef4c927afd8ae7e2804d4a9fd.json deleted file mode 100644 index 3e1e0bb1e..000000000 --- a/.sqlx/query-88901c4779fdd2c4653a2f0544a5685daaed836ef4c927afd8ae7e2804d4a9fd.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO \"CostModels\" (deployment, model)\n VALUES ($1, $2);\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Varchar", - "Text" - ] - }, - "nullable": [] - }, - "hash": "88901c4779fdd2c4653a2f0544a5685daaed836ef4c927afd8ae7e2804d4a9fd" -} diff --git a/.sqlx/query-7a3adab989a9552349dea7dbd52bcbdb40e034ee610c786a2111c493939e7e94.json b/.sqlx/query-b54b1069daf03a377a0e7c09c9aa1732bb3638a3a4f942a665cf1fd38eb70c2d.json similarity index 70% rename from .sqlx/query-7a3adab989a9552349dea7dbd52bcbdb40e034ee610c786a2111c493939e7e94.json rename to .sqlx/query-b54b1069daf03a377a0e7c09c9aa1732bb3638a3a4f942a665cf1fd38eb70c2d.json index 6b00cac1f..7dbd08638 100644 --- a/.sqlx/query-7a3adab989a9552349dea7dbd52bcbdb40e034ee610c786a2111c493939e7e94.json +++ b/.sqlx/query-b54b1069daf03a377a0e7c09c9aa1732bb3638a3a4f942a665cf1fd38eb70c2d.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "\n SELECT deployment, model, variables\n FROM \"CostModels\"\n ORDER BY deployment ASC\n ", + "query": "\n SELECT deployment, model, variables\n FROM \"CostModels\"\n WHERE deployment = $1\n AND deployment != 'global'\n ", "describe": { "columns": [ { @@ -20,7 +20,9 @@ } ], "parameters": { - "Left": [] + "Left": [ + "Text" + ] }, "nullable": [ false, @@ -28,5 +30,5 @@ true ] }, - "hash": "7a3adab989a9552349dea7dbd52bcbdb40e034ee610c786a2111c493939e7e94" + "hash": "b54b1069daf03a377a0e7c09c9aa1732bb3638a3a4f942a665cf1fd38eb70c2d" } diff --git a/.sqlx/query-a3b0fb77cb7760254342dac981bc2f9c19f96fb5748629ebf0498d3820179d97.json b/.sqlx/query-d93dd26d7221c5e1ae15a919a2a651e43b6b9ffe9834df85a62707d3a2d051b4.json similarity index 77% rename from .sqlx/query-a3b0fb77cb7760254342dac981bc2f9c19f96fb5748629ebf0498d3820179d97.json rename to .sqlx/query-d93dd26d7221c5e1ae15a919a2a651e43b6b9ffe9834df85a62707d3a2d051b4.json index 2b11d5243..6b2da69c8 100644 --- a/.sqlx/query-a3b0fb77cb7760254342dac981bc2f9c19f96fb5748629ebf0498d3820179d97.json +++ b/.sqlx/query-d93dd26d7221c5e1ae15a919a2a651e43b6b9ffe9834df85a62707d3a2d051b4.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "\n SELECT deployment, model, variables\n FROM \"CostModels\"\n WHERE deployment = ANY($1)\n ORDER BY deployment ASC\n ", + "query": "\n SELECT deployment, model, variables\n FROM \"CostModels\"\n WHERE deployment = ANY($1)\n AND deployment != 'global'\n ORDER BY deployment ASC\n ", "describe": { "columns": [ { @@ -30,5 +30,5 @@ true ] }, - "hash": "a3b0fb77cb7760254342dac981bc2f9c19f96fb5748629ebf0498d3820179d97" + "hash": "d93dd26d7221c5e1ae15a919a2a651e43b6b9ffe9834df85a62707d3a2d051b4" } diff --git a/.sqlx/query-1ae5d2aa752bf2e9038455d7c643bba03daa9e26c7ad23f48f9959a120e28a84.json b/.sqlx/query-e14503b633fc673b65448e70c204651cfd94b4b82f26baf0755efa80e6045c0a.json similarity index 79% rename from .sqlx/query-1ae5d2aa752bf2e9038455d7c643bba03daa9e26c7ad23f48f9959a120e28a84.json rename to .sqlx/query-e14503b633fc673b65448e70c204651cfd94b4b82f26baf0755efa80e6045c0a.json index ca7766a0f..619967273 100644 --- a/.sqlx/query-1ae5d2aa752bf2e9038455d7c643bba03daa9e26c7ad23f48f9959a120e28a84.json +++ b/.sqlx/query-e14503b633fc673b65448e70c204651cfd94b4b82f26baf0755efa80e6045c0a.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "\n SELECT deployment, model, variables\n FROM \"CostModels\"\n WHERE deployment = $1\n ", + "query": "\n SELECT deployment, model, variables\n FROM \"CostModels\"\n WHERE deployment = $1\n ", "describe": { "columns": [ { @@ -30,5 +30,5 @@ true ] }, - "hash": "1ae5d2aa752bf2e9038455d7c643bba03daa9e26c7ad23f48f9959a120e28a84" + "hash": "e14503b633fc673b65448e70c204651cfd94b4b82f26baf0755efa80e6045c0a" }