From d1a812f5c7cb095bf0e0eea8f3fb1e81afc1f7e7 Mon Sep 17 00:00:00 2001 From: Maximilian Pohl Date: Tue, 27 Aug 2024 16:51:42 +0200 Subject: [PATCH] sqlx prepare --- ...975a4e1fca4ac3698322c20c0b398144e274f.json | 76 +++++++++++++++++++ ...288bbb5d72909cdc05f10155a24b285dd8903.json | 70 +++++++++++++++++ ...44272f5ac2c700b581ac1b75956c380e63d72.json | 70 +++++++++++++++++ ...40687dd6d1987cc6fabe0284bb9649bb4ec05.json | 74 ++++++++++++++++++ ...c0c63884f59e8a850980c5c2bc51c9890a7cb.json | 75 ++++++++++++++++++ 5 files changed, 365 insertions(+) create mode 100644 .sqlx/query-1fcd2577289bb66aadfc016104e975a4e1fca4ac3698322c20c0b398144e274f.json create mode 100644 .sqlx/query-291de23f446a49549cbb427de34288bbb5d72909cdc05f10155a24b285dd8903.json create mode 100644 .sqlx/query-6caf8fb782584a1dfa04f8f27c144272f5ac2c700b581ac1b75956c380e63d72.json create mode 100644 .sqlx/query-a2462ab3b7af6ecae0a4e817edc40687dd6d1987cc6fabe0284bb9649bb4ec05.json create mode 100644 .sqlx/query-f4a84cdd22d4cde0609b297c2dcc0c63884f59e8a850980c5c2bc51c9890a7cb.json diff --git a/.sqlx/query-1fcd2577289bb66aadfc016104e975a4e1fca4ac3698322c20c0b398144e274f.json b/.sqlx/query-1fcd2577289bb66aadfc016104e975a4e1fca4ac3698322c20c0b398144e274f.json new file mode 100644 index 0000000..773ea8d --- /dev/null +++ b/.sqlx/query-1fcd2577289bb66aadfc016104e975a4e1fca4ac3698322c20c0b398144e274f.json @@ -0,0 +1,76 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE report\n SET modification_date_time = now(),\n program_id = $2,\n event_id = $3,\n client_name = $4,\n report_name = $5,\n payload_descriptors = $6,\n resources = $7\n WHERE id = $1\n RETURNING *\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "created_date_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "modification_date_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "program_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "event_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "client_name", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "report_name", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "payload_descriptors", + "type_info": "Jsonb" + }, + { + "ordinal": 8, + "name": "resources", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text", + "Text", + "Jsonb", + "Jsonb" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + false + ] + }, + "hash": "1fcd2577289bb66aadfc016104e975a4e1fca4ac3698322c20c0b398144e274f" +} diff --git a/.sqlx/query-291de23f446a49549cbb427de34288bbb5d72909cdc05f10155a24b285dd8903.json b/.sqlx/query-291de23f446a49549cbb427de34288bbb5d72909cdc05f10155a24b285dd8903.json new file mode 100644 index 0000000..5f4ea72 --- /dev/null +++ b/.sqlx/query-291de23f446a49549cbb427de34288bbb5d72909cdc05f10155a24b285dd8903.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM report WHERE id = $1 RETURNING *\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "created_date_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "modification_date_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "program_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "event_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "client_name", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "report_name", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "payload_descriptors", + "type_info": "Jsonb" + }, + { + "ordinal": 8, + "name": "resources", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + false + ] + }, + "hash": "291de23f446a49549cbb427de34288bbb5d72909cdc05f10155a24b285dd8903" +} diff --git a/.sqlx/query-6caf8fb782584a1dfa04f8f27c144272f5ac2c700b581ac1b75956c380e63d72.json b/.sqlx/query-6caf8fb782584a1dfa04f8f27c144272f5ac2c700b581ac1b75956c380e63d72.json new file mode 100644 index 0000000..7d279ab --- /dev/null +++ b/.sqlx/query-6caf8fb782584a1dfa04f8f27c144272f5ac2c700b581ac1b75956c380e63d72.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT * FROM report WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "created_date_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "modification_date_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "program_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "event_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "client_name", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "report_name", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "payload_descriptors", + "type_info": "Jsonb" + }, + { + "ordinal": 8, + "name": "resources", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + false + ] + }, + "hash": "6caf8fb782584a1dfa04f8f27c144272f5ac2c700b581ac1b75956c380e63d72" +} diff --git a/.sqlx/query-a2462ab3b7af6ecae0a4e817edc40687dd6d1987cc6fabe0284bb9649bb4ec05.json b/.sqlx/query-a2462ab3b7af6ecae0a4e817edc40687dd6d1987cc6fabe0284bb9649bb4ec05.json new file mode 100644 index 0000000..abddf2d --- /dev/null +++ b/.sqlx/query-a2462ab3b7af6ecae0a4e817edc40687dd6d1987cc6fabe0284bb9649bb4ec05.json @@ -0,0 +1,74 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT * FROM report\n WHERE ($1::text IS NULL OR $1 like program_id)\n AND ($2::text IS NULL OR $2 like event_id)\n AND ($3::text IS NULL OR $3 like client_name)\n LIMIT $4 OFFSET $5\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "created_date_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "modification_date_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "program_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "event_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "client_name", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "report_name", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "payload_descriptors", + "type_info": "Jsonb" + }, + { + "ordinal": 8, + "name": "resources", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + false + ] + }, + "hash": "a2462ab3b7af6ecae0a4e817edc40687dd6d1987cc6fabe0284bb9649bb4ec05" +} diff --git a/.sqlx/query-f4a84cdd22d4cde0609b297c2dcc0c63884f59e8a850980c5c2bc51c9890a7cb.json b/.sqlx/query-f4a84cdd22d4cde0609b297c2dcc0c63884f59e8a850980c5c2bc51c9890a7cb.json new file mode 100644 index 0000000..abb3438 --- /dev/null +++ b/.sqlx/query-f4a84cdd22d4cde0609b297c2dcc0c63884f59e8a850980c5c2bc51c9890a7cb.json @@ -0,0 +1,75 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO report (id, created_date_time, modification_date_time, program_id, event_id, client_name, report_name, payload_descriptors, resources)\n VALUES (gen_random_uuid(), now(), now(), $1, $2, $3, $4, $5, $6)\n RETURNING *\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "created_date_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 2, + "name": "modification_date_time", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, + "name": "program_id", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "event_id", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "client_name", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "report_name", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "payload_descriptors", + "type_info": "Jsonb" + }, + { + "ordinal": 8, + "name": "resources", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Text", + "Text", + "Text", + "Text", + "Jsonb", + "Jsonb" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + false + ] + }, + "hash": "f4a84cdd22d4cde0609b297c2dcc0c63884f59e8a850980c5c2bc51c9890a7cb" +}