{ "db": "PostgreSQL", "10d30dade86d79210203bdbce4b6db5d2aa446b0f88ca834771ecbbe11be51fb": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "UPDATE librepages_sites SET deleted = true\n WHERE hostname = ($1)\n AND owned_by = ( SELECT ID FROM librepages_users WHERE name = $2);\n " }, "12391b10cf16a807322c49c9cc7e0a015f26b445beacf4cdd4e7714f36b4adf6": { "describe": { "columns": [ { "name": "site_secret", "ordinal": 0, "type_info": "Varchar" }, { "name": "repo_url", "ordinal": 1, "type_info": "Varchar" }, { "name": "branch", "ordinal": 2, "type_info": "Text" }, { "name": "hostname", "ordinal": 3, "type_info": "Varchar" }, { "name": "pub_id", "ordinal": 4, "type_info": "Uuid" } ], "nullable": [ false, false, false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT site_secret, repo_url, branch, hostname, pub_id\n FROM librepages_sites\n WHERE deleted = false\n AND owned_by = (SELECT ID FROM librepages_users WHERE name = $1 );\n " }, "14cdc724af64942e93994f97e9eafc8272d15605eff7aab9e5177d01f2bf6118": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Timestamptz", "Text", "Uuid" ] } }, "query": "INSERT INTO librepages_site_deploy_events\n (event_type, time, site, pub_id) VALUES (\n (SELECT iD from librepages_deploy_event_type WHERE name = $1),\n $2,\n (SELECT ID from librepages_sites WHERE hostname = $3),\n $4\n );\n " }, "1be33ea4fe0e6079c88768ff912b824f4b0250193f2d086046c1fd0da125ae0c": { "describe": { "columns": [ { "name": "name", "ordinal": 0, "type_info": "Varchar" }, { "name": "password", "ordinal": 1, "type_info": "Text" } ], "nullable": [ false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT name, password FROM librepages_users WHERE name = ($1)" }, "278dafae8343ee7b15b7014707a769e6d8f5042478c001d3dbe6cdad919f4546": { "describe": { "columns": [ { "name": "gitea_url", "ordinal": 0, "type_info": "Varchar" }, { "name": "auth_token", "ordinal": 1, "type_info": "Varchar" }, { "name": "gitea_webhook_secret", "ordinal": 2, "type_info": "Varchar" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT\n gitea_url, auth_token, gitea_webhook_secret\n FROM\n librepages_gitea_webhooks\n WHERE\n owned_by = (SELECT ID FROM librepages_users WHERE name = $1);\n " }, "279b5ae27935279b06d2799eef2da6a316324a05d23ba7a729c608c70168c496": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Text" ] } }, "query": "UPDATE librepages_users set name = $1\n WHERE name = $2" }, "39854fcbfb0247377c6c5ca70c2c0fa7804548848bf56f881eea2f8242e7a09d": { "describe": { "columns": [ { "name": "name", "ordinal": 0, "type_info": "Varchar" }, { "name": "time", "ordinal": 1, "type_info": "Timestamptz" }, { "name": "pub_id", "ordinal": 2, "type_info": "Uuid" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Text", "Uuid" ] } }, "query": "SELECT\n librepages_deploy_event_type.name,\n librepages_site_deploy_events.time,\n librepages_site_deploy_events.pub_id\n FROM\n librepages_site_deploy_events\n INNER JOIN librepages_deploy_event_type ON\n librepages_deploy_event_type.ID = librepages_site_deploy_events.event_type\n WHERE\n librepages_site_deploy_events.site = (\n SELECT ID FROM librepages_sites WHERE hostname = $1\n )\n AND\n librepages_site_deploy_events.pub_id = $2\n " }, "432fe829719ce8110f768b4a611724bb34191ac224d2143ff4c81548da75c103": { "describe": { "columns": [ { "name": "repo_url", "ordinal": 0, "type_info": "Varchar" }, { "name": "branch", "ordinal": 1, "type_info": "Text" }, { "name": "hostname", "ordinal": 2, "type_info": "Varchar" }, { "name": "owned_by", "ordinal": 3, "type_info": "Int4" }, { "name": "site_secret", "ordinal": 4, "type_info": "Varchar" } ], "nullable": [ false, false, false, false, false ], "parameters": { "Left": [ "Uuid", "Text" ] } }, "query": "SELECT repo_url, branch, hostname, owned_by, site_secret\n FROM librepages_sites\n WHERE pub_id = $1\n AND\n owned_by = (SELECT ID from librepages_users WHERE name = $2)\n AND\n deleted = false;\n " }, "4445ff3226af3b5a24b255c5bb012c99b222cc7bd6dda80f232809ed273fc712": { "describe": { "columns": [ { "name": "repo_url", "ordinal": 0, "type_info": "Varchar" }, { "name": "site_secret", "ordinal": 1, "type_info": "Varchar" }, { "name": "branch", "ordinal": 2, "type_info": "Text" }, { "name": "hostname", "ordinal": 3, "type_info": "Varchar" }, { "name": "owned_by", "ordinal": 4, "type_info": "Int4" }, { "name": "pub_id", "ordinal": 5, "type_info": "Uuid" } ], "nullable": [ false, false, false, false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT repo_url, site_secret, branch, hostname, owned_by, pub_id\n FROM librepages_sites\n WHERE repo_url = $1\n AND deleted = false;\n " }, "53f3c21c06c8d1c218537dfa9183fd0604aaf28200d8aa12e97db4ac317df39e": { "describe": { "columns": [ { "name": "name", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Int4" ] } }, "query": "SELECT name FROM librepages_users WHERE ID = $1" }, "54f1ad328c83997d5e80686665d4cfef58d3529d24cb6caaa7ff301479e5d735": { "describe": { "columns": [ { "name": "repo_url", "ordinal": 0, "type_info": "Varchar" }, { "name": "branch", "ordinal": 1, "type_info": "Text" }, { "name": "hostname", "ordinal": 2, "type_info": "Varchar" }, { "name": "owned_by", "ordinal": 3, "type_info": "Int4" }, { "name": "pub_id", "ordinal": 4, "type_info": "Uuid" } ], "nullable": [ false, false, false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT repo_url, branch, hostname, owned_by, pub_id\n FROM librepages_sites\n WHERE site_secret = $1\n AND deleted = false;\n " }, "5c5d774bde06c0ab83c3616a56a28f12dfd9c546cbaac9f246d3b350c587823e": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text" ] } }, "query": "DELETE FROM librepages_users WHERE name = ($1)" }, "65f6181364cd8c6ed4eae3f62b5ae771a27e8da6e698c235ca77d4cec784d04b": { "describe": { "columns": [ { "name": "site_secret", "ordinal": 0, "type_info": "Varchar" }, { "name": "repo_url", "ordinal": 1, "type_info": "Varchar" }, { "name": "branch", "ordinal": 2, "type_info": "Text" }, { "name": "hostname", "ordinal": 3, "type_info": "Varchar" }, { "name": "pub_id", "ordinal": 4, "type_info": "Uuid" } ], "nullable": [ false, false, false, false, false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT site_secret, repo_url, branch, hostname, pub_id\n FROM librepages_sites\n WHERE deleted = false\n AND owned_by = (SELECT ID FROM librepages_users WHERE name = $1 )\n AND hostname = $2;\n " }, "6a557f851d4f47383b864085093beb0954e79779f21b655978f07e285281e0ac": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Text" ] } }, "query": "UPDATE librepages_users set email = $1\n WHERE name = $2" }, "6db98c6ae90b8eb98ace1a5acfa3c8af2b6ed7d51c6debda12637f5d7b076c15": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT EXISTS (SELECT 1 from librepages_sites WHERE hostname = $1 AND deleted = false)" }, "77612c85be99e6de2e4a6e3105ebaeb470d6cc57b2999b673a085da41c035f9e": { "describe": { "columns": [ { "name": "time", "ordinal": 0, "type_info": "Timestamptz" }, { "name": "pub_id", "ordinal": 1, "type_info": "Uuid" } ], "nullable": [ false, false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT\n time,\n pub_id\n FROM\n librepages_site_deploy_events\n WHERE\n site = (SELECT ID FROM librepages_sites WHERE hostname = $1)\n AND\n event_type = (SELECT ID FROM librepages_deploy_event_type WHERE name = $2)\n AND\n time = (\n SELECT MAX(time) \n FROM\n librepages_site_deploy_events\n WHERE\n site = (SELECT ID FROM librepages_sites WHERE hostname = $1)\n )\n " }, "78d6aacc46441d72e42bc8d74f36f98056b442dd0e624757b1f25db29610cb08": { "describe": { "columns": [ { "name": "gitea_url", "ordinal": 0, "type_info": "Varchar" }, { "name": "auth_token", "ordinal": 1, "type_info": "Varchar" }, { "name": "gitea_webhook_secret", "ordinal": 2, "type_info": "Varchar" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT\n gitea_url, auth_token, gitea_webhook_secret\n FROM\n librepages_gitea_webhooks\n WHERE\n auth_token = $1\n AND\n owned_by = (SELECT ID FROM librepages_users WHERE name = $2);\n " }, "7d2b7a4a57b9b031d15db57116807355e9e03b7bf9b0cff0958bfebe4bc1d1be": { "describe": { "columns": [ { "name": "gitea_url", "ordinal": 0, "type_info": "Varchar" }, { "name": "auth_token", "ordinal": 1, "type_info": "Varchar" }, { "name": "gitea_webhook_secret", "ordinal": 2, "type_info": "Varchar" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT gitea_url, auth_token, gitea_webhook_secret\n FROM librepages_gitea_webhooks\n WHERE auth_token = $1\n " }, "8735b654bc261571e6a5908d55a8217474c76bdff7f3cbcc71500a0fe13249db": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT EXISTS (SELECT 1 from librepages_users WHERE email = $1)" }, "90907d6cb4ca3b485f7b583584fb5821a950362679d061e490545c76634c211e": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT EXISTS (SELECT 1 from librepages_sites WHERE repo_url = $1)" }, "924e756de5544cece865a10a7e136ecc6126e3a603947264cc7899387c18c819": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "UPDATE librepages_users set password = $1\n WHERE name = $2" }, "b48c77db6e663d97df44bf9ec2ee92fd3e02f2dcbcdbd1d491e09fab2da68494": { "describe": { "columns": [ { "name": "name", "ordinal": 0, "type_info": "Varchar" }, { "name": "password", "ordinal": 1, "type_info": "Text" } ], "nullable": [ false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT name, password FROM librepages_users WHERE email = ($1)" }, "b8b1b3c5fa205b071f577b2ce9993ddfc7c99ada26aea48aa1c201c8c3c7fcf6": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Text", "Varchar", "Uuid", "Text" ] } }, "query": "\n INSERT INTO librepages_sites\n (site_secret, repo_url, branch, hostname, pub_id, owned_by)\n VALUES ($1, $2, $3, $4, $5, ( SELECT ID FROM librepages_users WHERE name = $6 ));\n " }, "bdd4d2a1b0b97ebf8ed61cfd120b40146fbf3ea9afb5cd0e03c9d29860b6a26b": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT EXISTS (SELECT 1 from librepages_users WHERE name = $1)" }, "cd2347774ea740deae59e031a398adfc0b5c2942e556faa676fbd161297a81a6": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar", "Text" ] } }, "query": "INSERT INTO librepages_gitea_webhooks\n (gitea_url , auth_token, gitea_webhook_secret, owned_by) VALUES ($1, $2, $3, \n (SELECT ID FROM librepages_users WHERE name = $4)\n )" }, "ced69a08729ffb906e8971dbdce6a8d4197bc9bb8ccd7c58b3a88eb7be73fc2e": { "describe": { "columns": [ { "name": "email", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT email FROM librepages_users WHERE name = $1" }, "d2327c1bcb40e18518c2112413a19a9b26eb0f54f83c53e968c9752d70c8dd4e": { "describe": { "columns": [ { "name": "name", "ordinal": 0, "type_info": "Varchar" }, { "name": "time", "ordinal": 1, "type_info": "Timestamptz" }, { "name": "pub_id", "ordinal": 2, "type_info": "Uuid" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT\n librepages_deploy_event_type.name,\n librepages_site_deploy_events.time,\n librepages_site_deploy_events.pub_id\n FROM\n librepages_site_deploy_events\n INNER JOIN librepages_deploy_event_type ON\n librepages_deploy_event_type.ID = librepages_site_deploy_events.event_type\n WHERE\n librepages_site_deploy_events.site = (\n SELECT ID FROM librepages_sites WHERE hostname = $1\n );\n " }, "e4adf1bc9175eeb9d61b495653bb452039cc38818c8792acdc6a1c732b6f4554": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT EXISTS (SELECT 1 from librepages_deploy_event_type WHERE name = $1)" }, "f651da8f411b7977cb87dd8d4bd5d167661d7ef1d865747e76219453d386d593": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar" ] } }, "query": "INSERT INTO librepages_deploy_event_type\n (name) VALUES ($1) ON CONFLICT (name) DO NOTHING;" }, "faa4170a309f19a4abf1ca3f8dd3c0526945aa00f028ebf8bd7063825d448f5b": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Text", "Varchar" ] } }, "query": "INSERT INTO librepages_users\n (name , password, email) VALUES ($1, $2, $3)" }, "fdcad0cd77ae37ed74cc7c92f20f9d95d851af5f9c9e6e4c34c39abf4a1d0f14": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "INSERT INTO librepages_gitea_webhook_site_mapping\n (site_id, gitea_webhook_id) VALUES (\n (SELECT ID FROM librepages_sites WHERE repo_url = $1),\n (SELECT ID FROM librepages_gitea_webhooks WHERE auth_token = $2)\n ) ON CONFLICT (site_id, gitea_webhook_id) DO NOTHING;" } }