{ "db": "PostgreSQL", "230fdd38b5d4b5847e48caeffaa685649643d94d4a545e95eedc8654e8e6a18e": { "query": "\nINSERT INTO keekijanai_visit(belong, uuid, created_time)\n VALUES ($1, $2, $3)\n ", "describe": { "columns": [], "parameters": { "Left": [ "Varchar", "Varchar", "Int8" ] }, "nullable": [] } }, "31a4177440be1d0943ce844645012d95ed6e1e4fbc33b11d2e6ce5c696145b6b": { "query": "\nSELECT\n star_type\nFROM keekijanai_star\nWHERE belong = $1\n AND user_id = $2\n ", "describe": { "columns": [ { "ordinal": 0, "name": "star_type", "type_info": "Int2" } ], "parameters": { "Left": [ "Text", "Int8" ] }, "nullable": [ false ] } }, "43d084a52d19ad198f19d9c91aa366a724e25ca290f431bad789175cda09ba47": { "query": "\nSELECT\n COUNT(id) as cnt,\n star_type,\n belong\nFROM keekijanai_star\nWHERE belong IN ($1)\nGROUP BY belong, star_type\n ", "describe": { "columns": [ { "ordinal": 0, "name": "cnt", "type_info": "Int8" }, { "ordinal": 1, "name": "star_type", "type_info": "Int2" }, { "ordinal": 2, "name": "belong", "type_info": "Varchar" } ], "parameters": { "Left": [ "Text" ] }, "nullable": [ null, false, false ] } }, "55613b59e0ae850273475a7b599c936b80b54e7e4106bc3b0571f6326a7cfbb0": { "query": "\nUPDATE keekijanai_comment\nSET child_count = (child_count + 1)\nWHERE id = $1;\n ", "describe": { "columns": [], "parameters": { "Left": [ "Int8" ] }, "nullable": [] } }, "67c6416ccd280443a5d661a4fb1b93b2e4b1338159b6fe7aceebb589368c2e83": { "query": "\nSELECT *\nFROM keekijanai_user\nWHERE id IN (SELECT * FROM UNNEST($1::bigint[]))\nORDER BY id DESC\n ", "describe": { "columns": [ { "ordinal": 0, "name": "id", "type_info": "Int8" }, { "ordinal": 1, "name": "name", "type_info": "Varchar" }, { "ordinal": 2, "name": "role", "type_info": "Int4" }, { "ordinal": 3, "name": "password", "type_info": "Varchar" }, { "ordinal": 4, "name": "provider", "type_info": "Varchar" }, { "ordinal": 5, "name": "avatar_url", "type_info": "Varchar" }, { "ordinal": 6, "name": "email", "type_info": "Varchar" }, { "ordinal": 7, "name": "last_login", "type_info": "Int8" }, { "ordinal": 8, "name": "in_provider_id", "type_info": "Varchar" } ], "parameters": { "Left": [ "Int8Array" ] }, "nullable": [ false, false, false, true, false, true, true, true, false ] } }, "6922fb5c81a2825f3a50c3e811cd37bfc782f8371c471ec1cbd5220c2e90c576": { "query": "\nSELECT COUNT(*) as cnt\n FROM keekijanai_visit\n WHERE belong = $1\n ", "describe": { "columns": [ { "ordinal": 0, "name": "cnt", "type_info": "Int8" } ], "parameters": { "Left": [ "Text" ] }, "nullable": [ null ] } }, "6c20285055eea0ab67f05a3c4c6bc3a0b359703ddaba0391f252ae43b0a07467": { "query": "\nSELECT *\nFROM keekijanai_comment\nWHERE belong = $1\n AND parent_id = $2\nORDER BY id DESC\nLIMIT $3\n ", "describe": { "columns": [ { "ordinal": 0, "name": "id", "type_info": "Int8" }, { "ordinal": 1, "name": "belong", "type_info": "Varchar" }, { "ordinal": 2, "name": "user_id", "type_info": "Int8" }, { "ordinal": 3, "name": "content", "type_info": "Text" }, { "ordinal": 4, "name": "reference_id", "type_info": "Int8" }, { "ordinal": 5, "name": "parent_id", "type_info": "Int8" }, { "ordinal": 6, "name": "child_count", "type_info": "Int4" }, { "ordinal": 7, "name": "created_time", "type_info": "Int8" }, { "ordinal": 8, "name": "updated_time", "type_info": "Int8" } ], "parameters": { "Left": [ "Text", "Int8", "Int8" ] }, "nullable": [ false, false, false, false, true, false, false, false, false ] } }, "7df1538837a5fd0f4067bc771e5fa14b1e35938c8e735ea441b925444d847da7": { "query": "\nSELECT * from keekijanai_comment\n WHERE id = $1;\n ", "describe": { "columns": [ { "ordinal": 0, "name": "id", "type_info": "Int8" }, { "ordinal": 1, "name": "belong", "type_info": "Varchar" }, { "ordinal": 2, "name": "user_id", "type_info": "Int8" }, { "ordinal": 3, "name": "content", "type_info": "Text" }, { "ordinal": 4, "name": "reference_id", "type_info": "Int8" }, { "ordinal": 5, "name": "parent_id", "type_info": "Int8" }, { "ordinal": 6, "name": "child_count", "type_info": "Int4" }, { "ordinal": 7, "name": "created_time", "type_info": "Int8" }, { "ordinal": 8, "name": "updated_time", "type_info": "Int8" } ], "parameters": { "Left": [ "Int8" ] }, "nullable": [ false, false, false, false, true, false, false, false, false ] } }, "8074ab1edbef67e046b4870f5ae7e6e339e69b73532c62d05a659daeace7149b": { "query": "\nSELECT COUNT(DISTINCT uuid) as cnt\n FROM keekijanai_visit\n WHERE belong = $1\n ", "describe": { "columns": [ { "ordinal": 0, "name": "cnt", "type_info": "Int8" } ], "parameters": { "Left": [ "Text" ] }, "nullable": [ null ] } }, "8de30705260e736a32ecc3d9b0e26128c057f2fb04cc15d885baed611f4af2cb": { "query": "\nUPDATE keekijanai_comment\nSET child_count = (child_count - 1)\nWHERE id = ANY (\n SELECT parent_id FROM keekijanai_comment\n WHERE id = $1\n)\n ", "describe": { "columns": [], "parameters": { "Left": [ "Int8" ] }, "nullable": [] } }, "9c41dfa6169e47090a0ccee68b12e59f695fa071e99bf808389dce0533d69050": { "query": "\nSELECT *\nFROM keekijanai_comment\nWHERE belong = $1\n AND id < $2\n AND parent_id = $3\nORDER BY id DESC\nLIMIT $4\n ", "describe": { "columns": [ { "ordinal": 0, "name": "id", "type_info": "Int8" }, { "ordinal": 1, "name": "belong", "type_info": "Varchar" }, { "ordinal": 2, "name": "user_id", "type_info": "Int8" }, { "ordinal": 3, "name": "content", "type_info": "Text" }, { "ordinal": 4, "name": "reference_id", "type_info": "Int8" }, { "ordinal": 5, "name": "parent_id", "type_info": "Int8" }, { "ordinal": 6, "name": "child_count", "type_info": "Int4" }, { "ordinal": 7, "name": "created_time", "type_info": "Int8" }, { "ordinal": 8, "name": "updated_time", "type_info": "Int8" } ], "parameters": { "Left": [ "Text", "Int8", "Int8", "Int8" ] }, "nullable": [ false, false, false, false, true, false, false, false, false ] } }, "ad89b557beab6e7731a6b875ce1bca094b3b3bc9b94d45af191a3cc4734865e9": { "query": "\nSELECT *\nFROM keekijanai_comment\nWHERE belong = $1\n AND parent_id IN (SELECT * FROM UNNEST($2::bigint[]))\nORDER BY id DESC\n ", "describe": { "columns": [ { "ordinal": 0, "name": "id", "type_info": "Int8" }, { "ordinal": 1, "name": "belong", "type_info": "Varchar" }, { "ordinal": 2, "name": "user_id", "type_info": "Int8" }, { "ordinal": 3, "name": "content", "type_info": "Text" }, { "ordinal": 4, "name": "reference_id", "type_info": "Int8" }, { "ordinal": 5, "name": "parent_id", "type_info": "Int8" }, { "ordinal": 6, "name": "child_count", "type_info": "Int4" }, { "ordinal": 7, "name": "created_time", "type_info": "Int8" }, { "ordinal": 8, "name": "updated_time", "type_info": "Int8" } ], "parameters": { "Left": [ "Text", "Int8Array" ] }, "nullable": [ false, false, false, false, true, false, false, false, false ] } }, "b35e69186b9eac905d410373ca4f1d88a866fcf8ca8a81f974bc48332f5ef3a3": { "query": "\nDELETE FROM keekijanai_comment \nWHERE\n id = $1\n ", "describe": { "columns": [], "parameters": { "Left": [ "Int8" ] }, "nullable": [] } }, "b94412dbc636243b545fac1bbca46ff7f6e730fcdab9e390c6c73302e5170bae": { "query": "\nSELECT *\nFROM keekijanai_user\nWHERE id = $1\n ", "describe": { "columns": [ { "ordinal": 0, "name": "id", "type_info": "Int8" }, { "ordinal": 1, "name": "name", "type_info": "Varchar" }, { "ordinal": 2, "name": "role", "type_info": "Int4" }, { "ordinal": 3, "name": "password", "type_info": "Varchar" }, { "ordinal": 4, "name": "provider", "type_info": "Varchar" }, { "ordinal": 5, "name": "avatar_url", "type_info": "Varchar" }, { "ordinal": 6, "name": "email", "type_info": "Varchar" }, { "ordinal": 7, "name": "last_login", "type_info": "Int8" }, { "ordinal": 8, "name": "in_provider_id", "type_info": "Varchar" } ], "parameters": { "Left": [ "Int8" ] }, "nullable": [ false, false, false, true, false, true, true, true, false ] } }, "f85ef4e789010642abe3bb515c1479ccc951a606e5436c662edd0208db45b78c": { "query": "\nSELECT\n star_type,\n COUNT(*) as cnt\nFROM keekijanai_star\nWHERE belong = $1\nGROUP BY star_type\n ", "describe": { "columns": [ { "ordinal": 0, "name": "star_type", "type_info": "Int2" }, { "ordinal": 1, "name": "cnt", "type_info": "Int8" } ], "parameters": { "Left": [ "Text" ] }, "nullable": [ false, null ] } }, "f9700ec67fc51f5740d04e43be01044a06ee03da421b0adafbef4f5c03f01bc9": { "query": "\nSELECT *\nFROM keekijanai_user\nWHERE provider = $1 AND in_provider_id = $2\n ", "describe": { "columns": [ { "ordinal": 0, "name": "id", "type_info": "Int8" }, { "ordinal": 1, "name": "name", "type_info": "Varchar" }, { "ordinal": 2, "name": "role", "type_info": "Int4" }, { "ordinal": 3, "name": "password", "type_info": "Varchar" }, { "ordinal": 4, "name": "provider", "type_info": "Varchar" }, { "ordinal": 5, "name": "avatar_url", "type_info": "Varchar" }, { "ordinal": 6, "name": "email", "type_info": "Varchar" }, { "ordinal": 7, "name": "last_login", "type_info": "Int8" }, { "ordinal": 8, "name": "in_provider_id", "type_info": "Varchar" } ], "parameters": { "Left": [ "Text", "Text" ] }, "nullable": [ false, false, false, true, false, true, true, true, false ] } } }