From 42f613acdf3de6286fa02ed055f2a861c19067ee Mon Sep 17 00:00:00 2001 From: PolpOnline Date: Thu, 21 Nov 2024 01:23:35 +0100 Subject: [PATCH] Revert the need of a database connection while building by pushing sqlx metadata --- .github/workflows/ci-backend.yml | 2 - ...4f15e73852e4631d91f0251c2085ad04bb154.json | 15 ++++ ...18c0447e22aff503a344c15a6bce7f4cc35f8.json | 46 +++++++++++ ...df5d7e548209eaad315860d5cc8c444f395ab.json | 15 ++++ ...22a8b084898fffa9cbec9eb1ddf2592b29759.json | 30 +++++++ ...01b6e92202d605660f95cac5935004e933678.json | 14 ++++ ...0d7f0643d4239cb5eea1b079c3d16ff2feff1.json | 68 ++++++++++++++++ ...2323988d9b5478560fe613c845f626959681f.json | 22 +++++ ...0d7212787d3b92d210a14d60d0d177d8084be.json | 49 ++++++++++++ ...6962e8913f1fe637c65442e18a22ab5d86b6c.json | 15 ++++ ...7f1c28af4c3dbe724c27e77ac4fb1131c55a9.json | 14 ++++ ...c32da52af942e85c03eff780eeab98a5866b7.json | 15 ++++ ...54ea5b7cd932fcd7fc3f835c356ca391840ea.json | 36 +++++++++ ...45f6ddc9d0b2cbe2512a70606d6509cbdc3f5.json | 80 +++++++++++++++++++ ...00b5bb31950a3a0f1b3baf53d3f056e6cae7a.json | 22 +++++ ...fe186867301fef95f14beac65b4d0f66ea1d2.json | 28 +++++++ ...b10f69ad99797e30db92e44893c48b8cc53dd.json | 14 ++++ ...da3603e5033089d4c925589920042ceb415f0.json | 80 +++++++++++++++++++ ...320d0904293325d8cfce111c7be054d7c948b.json | 25 ++++++ ...213fffd0e4c00618d8bbe353316b428306b05.json | 46 +++++++++++ 20 files changed, 634 insertions(+), 2 deletions(-) create mode 100644 src/backend/.sqlx/query-05e1caf657326ca954f4d241ccd4f15e73852e4631d91f0251c2085ad04bb154.json create mode 100644 src/backend/.sqlx/query-3332fc91a10c76452ecef88069f18c0447e22aff503a344c15a6bce7f4cc35f8.json create mode 100644 src/backend/.sqlx/query-3603437a55de3730999fa7c409ddf5d7e548209eaad315860d5cc8c444f395ab.json create mode 100644 src/backend/.sqlx/query-362c317678e025ee3918971452422a8b084898fffa9cbec9eb1ddf2592b29759.json create mode 100644 src/backend/.sqlx/query-48e4d1ade4572495eb67aa1b7bd01b6e92202d605660f95cac5935004e933678.json create mode 100644 src/backend/.sqlx/query-546f4d2a985eae3ef242dca976a0d7f0643d4239cb5eea1b079c3d16ff2feff1.json create mode 100644 src/backend/.sqlx/query-750c7d9567725acddf3e2c514482323988d9b5478560fe613c845f626959681f.json create mode 100644 src/backend/.sqlx/query-756ebb8947b9af2a176553566d40d7212787d3b92d210a14d60d0d177d8084be.json create mode 100644 src/backend/.sqlx/query-8df1852f9bbb9e87515442ea7b46962e8913f1fe637c65442e18a22ab5d86b6c.json create mode 100644 src/backend/.sqlx/query-8fd797b7ef2e8a73abb7652fe6b7f1c28af4c3dbe724c27e77ac4fb1131c55a9.json create mode 100644 src/backend/.sqlx/query-9c5a450a2584ab945d351b281a7c32da52af942e85c03eff780eeab98a5866b7.json create mode 100644 src/backend/.sqlx/query-9d887edffbe813cfa5342eb233854ea5b7cd932fcd7fc3f835c356ca391840ea.json create mode 100644 src/backend/.sqlx/query-a9eb834a318ca26e4bb8f2505c645f6ddc9d0b2cbe2512a70606d6509cbdc3f5.json create mode 100644 src/backend/.sqlx/query-ad46e6c4ecda38b85b622b3bedc00b5bb31950a3a0f1b3baf53d3f056e6cae7a.json create mode 100644 src/backend/.sqlx/query-b07763c4b32876a1bba22510bcbfe186867301fef95f14beac65b4d0f66ea1d2.json create mode 100644 src/backend/.sqlx/query-bc1e9e839086dfab0910a828053b10f69ad99797e30db92e44893c48b8cc53dd.json create mode 100644 src/backend/.sqlx/query-cafb682d4832d09c749d3c27c68da3603e5033089d4c925589920042ceb415f0.json create mode 100644 src/backend/.sqlx/query-d0b253510f9a3b2076a06112a09320d0904293325d8cfce111c7be054d7c948b.json create mode 100644 src/backend/.sqlx/query-da354d5e6ac6a5d7b8749836189213fffd0e4c00618d8bbe353316b428306b05.json diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml index f9112a3..3c8250c 100644 --- a/.github/workflows/ci-backend.yml +++ b/.github/workflows/ci-backend.yml @@ -30,8 +30,6 @@ jobs: - name: Build and push Docker images uses: iloveitaly/github-action-nixpacks@main - env: - DATABASE_URL: ${{ secrets.DATABASE_URL }} with: context: './src/backend' push: true diff --git a/src/backend/.sqlx/query-05e1caf657326ca954f4d241ccd4f15e73852e4631d91f0251c2085ad04bb154.json b/src/backend/.sqlx/query-05e1caf657326ca954f4d241ccd4f15e73852e4631d91f0251c2085ad04bb154.json new file mode 100644 index 0000000..3565b00 --- /dev/null +++ b/src/backend/.sqlx/query-05e1caf657326ca954f4d241ccd4f15e73852e4631d91f0251c2085ad04bb154.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE system SET name = ($1) WHERE id = $2 \n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "05e1caf657326ca954f4d241ccd4f15e73852e4631d91f0251c2085ad04bb154" +} diff --git a/src/backend/.sqlx/query-3332fc91a10c76452ecef88069f18c0447e22aff503a344c15a6bce7f4cc35f8.json b/src/backend/.sqlx/query-3332fc91a10c76452ecef88069f18c0447e22aff503a344c15a6bce7f4cc35f8.json new file mode 100644 index 0000000..b8a7cd3 --- /dev/null +++ b/src/backend/.sqlx/query-3332fc91a10c76452ecef88069f18c0447e22aff503a344c15a6bce7f4cc35f8.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT * FROM \"user\" WHERE email = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "password", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "timezone", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "language", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "3332fc91a10c76452ecef88069f18c0447e22aff503a344c15a6bce7f4cc35f8" +} diff --git a/src/backend/.sqlx/query-3603437a55de3730999fa7c409ddf5d7e548209eaad315860d5cc8c444f395ab.json b/src/backend/.sqlx/query-3603437a55de3730999fa7c409ddf5d7e548209eaad315860d5cc8c444f395ab.json new file mode 100644 index 0000000..a0e8e0d --- /dev/null +++ b/src/backend/.sqlx/query-3603437a55de3730999fa7c409ddf5d7e548209eaad315860d5cc8c444f395ab.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"user\" SET language = $1 WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Varchar", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "3603437a55de3730999fa7c409ddf5d7e548209eaad315860d5cc8c444f395ab" +} diff --git a/src/backend/.sqlx/query-362c317678e025ee3918971452422a8b084898fffa9cbec9eb1ddf2592b29759.json b/src/backend/.sqlx/query-362c317678e025ee3918971452422a8b084898fffa9cbec9eb1ddf2592b29759.json new file mode 100644 index 0000000..396ef25 --- /dev/null +++ b/src/backend/.sqlx/query-362c317678e025ee3918971452422a8b084898fffa9cbec9eb1ddf2592b29759.json @@ -0,0 +1,30 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO system (id, name, user_id, frequency, starts_at, down_after, visibility)\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Text", + "Int4", + "Interval", + "Timestamp", + "Interval", + { + "Custom": { + "name": "visibility", + "kind": { + "Enum": [ + "public", + "private" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "362c317678e025ee3918971452422a8b084898fffa9cbec9eb1ddf2592b29759" +} diff --git a/src/backend/.sqlx/query-48e4d1ade4572495eb67aa1b7bd01b6e92202d605660f95cac5935004e933678.json b/src/backend/.sqlx/query-48e4d1ade4572495eb67aa1b7bd01b6e92202d605660f95cac5935004e933678.json new file mode 100644 index 0000000..20c3623 --- /dev/null +++ b/src/backend/.sqlx/query-48e4d1ade4572495eb67aa1b7bd01b6e92202d605660f95cac5935004e933678.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE system\n SET down_sent_email = TRUE\n WHERE id = ANY($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "UuidArray" + ] + }, + "nullable": [] + }, + "hash": "48e4d1ade4572495eb67aa1b7bd01b6e92202d605660f95cac5935004e933678" +} diff --git a/src/backend/.sqlx/query-546f4d2a985eae3ef242dca976a0d7f0643d4239cb5eea1b079c3d16ff2feff1.json b/src/backend/.sqlx/query-546f4d2a985eae3ef242dca976a0d7f0643d4239cb5eea1b079c3d16ff2feff1.json new file mode 100644 index 0000000..d7e5b68 --- /dev/null +++ b/src/backend/.sqlx/query-546f4d2a985eae3ef242dca976a0d7f0643d4239cb5eea1b079c3d16ff2feff1.json @@ -0,0 +1,68 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT s.id AS system_id,\n s.name AS system_name,\n s.starts_at AS system_starts_at,\n s.down_after,\n u.email AS user_email,\n u.timezone AS user_timezone,\n u.language AS user_language,\n s.frequency,\n latest_ping.timestamp\n FROM system s\n JOIN \"user\" u ON s.user_id = u.id\n LEFT JOIN LATERAL (\n SELECT p.timestamp\n FROM ping p\n WHERE p.system_id = s.id\n ORDER BY p.timestamp DESC\n LIMIT 1\n ) latest_ping ON TRUE\n WHERE (NOW() - latest_ping.timestamp) > s.down_after\n AND s.deleted = FALSE\n AND s.down_sent_email = FALSE;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "system_id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "system_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "system_starts_at", + "type_info": "Timestamp" + }, + { + "ordinal": 3, + "name": "down_after", + "type_info": "Interval" + }, + { + "ordinal": 4, + "name": "user_email", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "user_timezone", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "user_language", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "frequency", + "type_info": "Interval" + }, + { + "ordinal": 8, + "name": "timestamp", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "546f4d2a985eae3ef242dca976a0d7f0643d4239cb5eea1b079c3d16ff2feff1" +} diff --git a/src/backend/.sqlx/query-750c7d9567725acddf3e2c514482323988d9b5478560fe613c845f626959681f.json b/src/backend/.sqlx/query-750c7d9567725acddf3e2c514482323988d9b5478560fe613c845f626959681f.json new file mode 100644 index 0000000..17b296d --- /dev/null +++ b/src/backend/.sqlx/query-750c7d9567725acddf3e2c514482323988d9b5478560fe613c845f626959681f.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT email\n FROM \"user\"\n WHERE email = $1;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "email", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "750c7d9567725acddf3e2c514482323988d9b5478560fe613c845f626959681f" +} diff --git a/src/backend/.sqlx/query-756ebb8947b9af2a176553566d40d7212787d3b92d210a14d60d0d177d8084be.json b/src/backend/.sqlx/query-756ebb8947b9af2a176553566d40d7212787d3b92d210a14d60d0d177d8084be.json new file mode 100644 index 0000000..f9fe4dd --- /dev/null +++ b/src/backend/.sqlx/query-756ebb8947b9af2a176553566d40d7212787d3b92d210a14d60d0d177d8084be.json @@ -0,0 +1,49 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO \"user\" (email, password, timezone, language)\n VALUES ($1, $2, $3, $4)\n RETURNING id, email, password, timezone, language;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "password", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "timezone", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "language", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Varchar" + ] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "756ebb8947b9af2a176553566d40d7212787d3b92d210a14d60d0d177d8084be" +} diff --git a/src/backend/.sqlx/query-8df1852f9bbb9e87515442ea7b46962e8913f1fe637c65442e18a22ab5d86b6c.json b/src/backend/.sqlx/query-8df1852f9bbb9e87515442ea7b46962e8913f1fe637c65442e18a22ab5d86b6c.json new file mode 100644 index 0000000..32f6a9d --- /dev/null +++ b/src/backend/.sqlx/query-8df1852f9bbb9e87515442ea7b46962e8913f1fe637c65442e18a22ab5d86b6c.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"user\" SET timezone = $1 WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "8df1852f9bbb9e87515442ea7b46962e8913f1fe637c65442e18a22ab5d86b6c" +} diff --git a/src/backend/.sqlx/query-8fd797b7ef2e8a73abb7652fe6b7f1c28af4c3dbe724c27e77ac4fb1131c55a9.json b/src/backend/.sqlx/query-8fd797b7ef2e8a73abb7652fe6b7f1c28af4c3dbe724c27e77ac4fb1131c55a9.json new file mode 100644 index 0000000..e567793 --- /dev/null +++ b/src/backend/.sqlx/query-8fd797b7ef2e8a73abb7652fe6b7f1c28af4c3dbe724c27e77ac4fb1131c55a9.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE system SET deleted = true WHERE id = $1 \n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "8fd797b7ef2e8a73abb7652fe6b7f1c28af4c3dbe724c27e77ac4fb1131c55a9" +} diff --git a/src/backend/.sqlx/query-9c5a450a2584ab945d351b281a7c32da52af942e85c03eff780eeab98a5866b7.json b/src/backend/.sqlx/query-9c5a450a2584ab945d351b281a7c32da52af942e85c03eff780eeab98a5866b7.json new file mode 100644 index 0000000..e4844c3 --- /dev/null +++ b/src/backend/.sqlx/query-9c5a450a2584ab945d351b281a7c32da52af942e85c03eff780eeab98a5866b7.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE \"user\" SET password = $1 WHERE id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "9c5a450a2584ab945d351b281a7c32da52af942e85c03eff780eeab98a5866b7" +} diff --git a/src/backend/.sqlx/query-9d887edffbe813cfa5342eb233854ea5b7cd932fcd7fc3f835c356ca391840ea.json b/src/backend/.sqlx/query-9d887edffbe813cfa5342eb233854ea5b7cd932fcd7fc3f835c356ca391840ea.json new file mode 100644 index 0000000..b1a80dc --- /dev/null +++ b/src/backend/.sqlx/query-9d887edffbe813cfa5342eb233854ea5b7cd932fcd7fc3f835c356ca391840ea.json @@ -0,0 +1,36 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT * FROM ping WHERE system_id = $1\n AND timestamp < $2\n AND timestamp > $3\n ORDER BY timestamp DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "system_id", + "type_info": "Uuid" + }, + { + "ordinal": 2, + "name": "timestamp", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Uuid", + "Timestamp", + "Timestamp" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "9d887edffbe813cfa5342eb233854ea5b7cd932fcd7fc3f835c356ca391840ea" +} diff --git a/src/backend/.sqlx/query-a9eb834a318ca26e4bb8f2505c645f6ddc9d0b2cbe2512a70606d6509cbdc3f5.json b/src/backend/.sqlx/query-a9eb834a318ca26e4bb8f2505c645f6ddc9d0b2cbe2512a70606d6509cbdc3f5.json new file mode 100644 index 0000000..27ae710 --- /dev/null +++ b/src/backend/.sqlx/query-a9eb834a318ca26e4bb8f2505c645f6ddc9d0b2cbe2512a70606d6509cbdc3f5.json @@ -0,0 +1,80 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, name, user_id, frequency, starts_at, deleted, down_after, down_sent_email, visibility AS \"visibility: Visibility\"\n FROM system WHERE user_id = $1 AND deleted = false ORDER BY starts_at\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "frequency", + "type_info": "Interval" + }, + { + "ordinal": 4, + "name": "starts_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "deleted", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "down_after", + "type_info": "Interval" + }, + { + "ordinal": 7, + "name": "down_sent_email", + "type_info": "Bool" + }, + { + "ordinal": 8, + "name": "visibility: Visibility", + "type_info": { + "Custom": { + "name": "visibility", + "kind": { + "Enum": [ + "public", + "private" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "a9eb834a318ca26e4bb8f2505c645f6ddc9d0b2cbe2512a70606d6509cbdc3f5" +} diff --git a/src/backend/.sqlx/query-ad46e6c4ecda38b85b622b3bedc00b5bb31950a3a0f1b3baf53d3f056e6cae7a.json b/src/backend/.sqlx/query-ad46e6c4ecda38b85b622b3bedc00b5bb31950a3a0f1b3baf53d3f056e6cae7a.json new file mode 100644 index 0000000..41a0cf0 --- /dev/null +++ b/src/backend/.sqlx/query-ad46e6c4ecda38b85b622b3bedc00b5bb31950a3a0f1b3baf53d3f056e6cae7a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id FROM system WHERE id = $1 AND deleted = false\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "ad46e6c4ecda38b85b622b3bedc00b5bb31950a3a0f1b3baf53d3f056e6cae7a" +} diff --git a/src/backend/.sqlx/query-b07763c4b32876a1bba22510bcbfe186867301fef95f14beac65b4d0f66ea1d2.json b/src/backend/.sqlx/query-b07763c4b32876a1bba22510bcbfe186867301fef95f14beac65b4d0f66ea1d2.json new file mode 100644 index 0000000..fa38a11 --- /dev/null +++ b/src/backend/.sqlx/query-b07763c4b32876a1bba22510bcbfe186867301fef95f14beac65b4d0f66ea1d2.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT timezone, language FROM \"user\" WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "timezone", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "language", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "b07763c4b32876a1bba22510bcbfe186867301fef95f14beac65b4d0f66ea1d2" +} diff --git a/src/backend/.sqlx/query-bc1e9e839086dfab0910a828053b10f69ad99797e30db92e44893c48b8cc53dd.json b/src/backend/.sqlx/query-bc1e9e839086dfab0910a828053b10f69ad99797e30db92e44893c48b8cc53dd.json new file mode 100644 index 0000000..e8ce869 --- /dev/null +++ b/src/backend/.sqlx/query-bc1e9e839086dfab0910a828053b10f69ad99797e30db92e44893c48b8cc53dd.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH updated AS (\n UPDATE system\n SET down_sent_email = false\n WHERE id = $1\n )\n INSERT INTO ping (system_id) VALUES ($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "bc1e9e839086dfab0910a828053b10f69ad99797e30db92e44893c48b8cc53dd" +} diff --git a/src/backend/.sqlx/query-cafb682d4832d09c749d3c27c68da3603e5033089d4c925589920042ceb415f0.json b/src/backend/.sqlx/query-cafb682d4832d09c749d3c27c68da3603e5033089d4c925589920042ceb415f0.json new file mode 100644 index 0000000..0ef5f13 --- /dev/null +++ b/src/backend/.sqlx/query-cafb682d4832d09c749d3c27c68da3603e5033089d4c925589920042ceb415f0.json @@ -0,0 +1,80 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT id, name, user_id, frequency, starts_at, deleted, down_after, down_sent_email, visibility AS \"visibility: Visibility\"\n FROM system WHERE id = $1 AND visibility = 'public'\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Uuid" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_id", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "frequency", + "type_info": "Interval" + }, + { + "ordinal": 4, + "name": "starts_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "deleted", + "type_info": "Bool" + }, + { + "ordinal": 6, + "name": "down_after", + "type_info": "Interval" + }, + { + "ordinal": 7, + "name": "down_sent_email", + "type_info": "Bool" + }, + { + "ordinal": 8, + "name": "visibility: Visibility", + "type_info": { + "Custom": { + "name": "visibility", + "kind": { + "Enum": [ + "public", + "private" + ] + } + } + } + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "cafb682d4832d09c749d3c27c68da3603e5033089d4c925589920042ceb415f0" +} diff --git a/src/backend/.sqlx/query-d0b253510f9a3b2076a06112a09320d0904293325d8cfce111c7be054d7c948b.json b/src/backend/.sqlx/query-d0b253510f9a3b2076a06112a09320d0904293325d8cfce111c7be054d7c948b.json new file mode 100644 index 0000000..c182715 --- /dev/null +++ b/src/backend/.sqlx/query-d0b253510f9a3b2076a06112a09320d0904293325d8cfce111c7be054d7c948b.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE system SET visibility = ($1) WHERE id = $2 \n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + { + "Custom": { + "name": "visibility", + "kind": { + "Enum": [ + "public", + "private" + ] + } + } + }, + "Uuid" + ] + }, + "nullable": [] + }, + "hash": "d0b253510f9a3b2076a06112a09320d0904293325d8cfce111c7be054d7c948b" +} diff --git a/src/backend/.sqlx/query-da354d5e6ac6a5d7b8749836189213fffd0e4c00618d8bbe353316b428306b05.json b/src/backend/.sqlx/query-da354d5e6ac6a5d7b8749836189213fffd0e4c00618d8bbe353316b428306b05.json new file mode 100644 index 0000000..a126591 --- /dev/null +++ b/src/backend/.sqlx/query-da354d5e6ac6a5d7b8749836189213fffd0e4c00618d8bbe353316b428306b05.json @@ -0,0 +1,46 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT * FROM \"user\" WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "email", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "password", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "timezone", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "language", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "da354d5e6ac6a5d7b8749836189213fffd0e4c00618d8bbe353316b428306b05" +}