{ "db": "PostgreSQL", "06f83a51e9d2ca842dc0d6947ad39d9be966636700de58d404d8e1471a260c9a": { "describe": { "columns": [ { "name": "newsletter_issue_id", "ordinal": 0, "type_info": "Uuid" }, { "name": "subscriber_email", "ordinal": 1, "type_info": "Text" } ], "nullable": [ false, false ], "parameters": { "Left": [] } }, "query": "\n SELECT newsletter_issue_id, subscriber_email\n FROM issue_delivery_queue\n FOR UPDATE\n SKIP LOCKED\n LIMIT 1\n " }, "0b93f6f4f1bc59e7ee597ef6df52bbee1233d98e0a4cf53e29c153ccdae0537b": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Uuid", "Text", "Text", "Text" ] } }, "query": "\n INSERT INTO newsletter_issues (\n newsletter_issue_id, \n title, \n text_content, \n html_content,\n published_at\n )\n VALUES ($1, $2, $3, $4, now())\n " }, "1bb5d1c15161a276262535134c306bc392dda0fa1d7bb7deddcd544583a19fc8": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Uuid", "Text" ] } }, "query": "\n INSERT INTO idempotency (\n user_id, \n idempotency_key,\n created_at\n ) \n VALUES ($1, $2, now()) \n ON CONFLICT DO NOTHING\n " }, "21f0f4c2ae0e88b99684823b83ce6126c218cec3badc8126492aab8fc7042109": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Uuid", "Text", "Int2", { "Custom": { "kind": { "Array": { "Custom": { "kind": { "Composite": [ [ "name", "Text" ], [ "value", "Bytea" ] ] }, "name": "header_pair" } } }, "name": "_header_pair" } }, "Bytea" ] } }, "query": "\n UPDATE idempotency\n SET \n response_status_code = $3, \n response_headers = $4,\n response_body = $5\n WHERE\n user_id = $1 AND\n idempotency_key = $2\n " }, "2880480077b654e38b63f423ab40680697a500ffe1af1d1b39108910594b581b": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Uuid" ] } }, "query": "\n UPDATE users\n SET password_hash = $1\n WHERE user_id = $2\n " }, "33b11051e779866db9aeb86d28a59db07a94323ffdc59a5a2c1da694ebe9a65f": { "describe": { "columns": [ { "name": "username", "ordinal": 0, "type_info": "Text" } ], "nullable": [ false ], "parameters": { "Left": [ "Uuid" ] } }, "query": "\n SELECT username\n FROM users\n WHERE user_id = $1\n " }, "38d1a12165ad4f50d8fbd4fc92376d9cc243dcc344c67b37f7fef13c6589e1eb": { "describe": { "columns": [ { "name": "title", "ordinal": 0, "type_info": "Text" }, { "name": "text_content", "ordinal": 1, "type_info": "Text" }, { "name": "html_content", "ordinal": 2, "type_info": "Text" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Uuid" ] } }, "query": "\n SELECT title, text_content, html_content\n FROM newsletter_issues\n WHERE\n newsletter_issue_id = $1\n " }, "51c9c995452d3359e3da7e2f2ff8a6e68690f740a36d2a32ec7c40b08931ebdb": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Uuid", "Text", "Text", "Timestamptz" ] } }, "query": "\n INSERT INTO subscriptions (id, email, name, subscribed_at, status)\n VALUES ($1, $2, $3, $4, 'pending_confirmation')\n " }, "753c8ecfac0ea7d052e60cb582e3b3ebac5e50eb133152712ca18ab5d5e202f3": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Uuid" ] } }, "query": "\n INSERT INTO subscription_tokens (subscription_token, subscriber_id)\n VALUES ($1, $2)\n " }, "9f103f7d6dfa569bafce4546e6e610f3d31b95fe81f96ea72575b27ddfea796e": { "describe": { "columns": [ { "name": "response_status_code!", "ordinal": 0, "type_info": "Int2" }, { "name": "response_headers!: Vec", "ordinal": 1, "type_info": { "Custom": { "kind": { "Array": { "Custom": { "kind": { "Composite": [ [ "name", "Text" ], [ "value", "Bytea" ] ] }, "name": "header_pair" } } }, "name": "_header_pair" } } }, { "name": "response_body!", "ordinal": 2, "type_info": "Bytea" } ], "nullable": [ true, true, true ], "parameters": { "Left": [ "Uuid", "Text" ] } }, "query": "\n SELECT \n response_status_code as \"response_status_code!\", \n response_headers as \"response_headers!: Vec\",\n response_body as \"response_body!\"\n FROM idempotency\n WHERE \n user_id = $1 AND\n idempotency_key = $2\n " }, "a71a1932b894572106460ca2e34a63dc0cb8c1ba7a70547add1cddbb68133c2b": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Uuid" ] } }, "query": "UPDATE subscriptions SET status = 'confirmed' WHERE id = $1" }, "aa682ff5c6485c4faa8168322413294a282ddcc0ef4e38ca3980e6fc7c00c87c": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Uuid" ] } }, "query": "\n INSERT INTO issue_delivery_queue (\n newsletter_issue_id, \n subscriber_email\n )\n SELECT $1, email\n FROM subscriptions\n WHERE status = 'confirmed'\n " }, "acf1b96c82ddf18db02e71a0e297c822b46f10add52c54649cf599b883165e58": { "describe": { "columns": [ { "name": "user_id", "ordinal": 0, "type_info": "Uuid" }, { "name": "password_hash", "ordinal": 1, "type_info": "Text" } ], "nullable": [ false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "\n SELECT user_id, password_hash\n FROM users\n WHERE username = $1\n " }, "ad120337ee606be7b8d87238e2bb765d0da8ee61b1a3bc142414c4305ec5e17f": { "describe": { "columns": [ { "name": "subscriber_id", "ordinal": 0, "type_info": "Uuid" } ], "nullable": [ false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT subscriber_id FROM subscription_tokens WHERE subscription_token = $1" }, "c00b32b331e0444b4bb0cd823b71a8c7ed3a3c8f2b8db3b12c6fbc434aa4d34b": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Uuid", "Text" ] } }, "query": "\n DELETE FROM issue_delivery_queue\n WHERE \n newsletter_issue_id = $1 AND\n subscriber_email = $2 \n " } }