diff --git a/.sqlx/query-07a5781e783c9d4e676a3a0dbccb2856072d658844c0414b243a1ac49ee91d51.json b/.sqlx/query-07a5781e783c9d4e676a3a0dbccb2856072d658844c0414b243a1ac49ee91d51.json new file mode 100644 index 0000000..e164dc7 --- /dev/null +++ b/.sqlx/query-07a5781e783c9d4e676a3a0dbccb2856072d658844c0414b243a1ac49ee91d51.json @@ -0,0 +1,12 @@ +{ + "db_name": "MySQL", + "query": "\n INSERT INTO Rankings_Users (\n `ID`, `Accuracy_Catch`, `Accuracy_Mania`, `Accuracy_Standard`, \n `Accuracy_Stdev`, `Accuracy_Taiko`, `Count_Badges`, \n `Count_Maps_Loved`, `Count_Maps_Ranked`, `Count_Medals`, \n `Count_Replays_Watched`, `Count_Subscribers`, `Country_Code`, \n `Is_Restricted`, `Level_Catch`, `Level_Mania`, `Level_Standard`, \n `Level_Stdev`, `Level_Taiko`, `Name`, `PP_Catch`, `PP_Mania`, \n `PP_Standard`, `PP_Stdev`, `PP_Taiko`, `PP_Total`, \n `Rank_Global_Catch`, `Rank_Global_Mania`, `Rank_Global_Standard`, \n `Rank_Global_Taiko`, `Rarest_Medal_Achieved`, `Rarest_Medal_ID`\n )\n VALUES\n (\n ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,\n ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?\n ) ON DUPLICATE KEY\n UPDATE\n `ID` = VALUES(`ID`), \n `Accuracy_Catch` = VALUES(`Accuracy_Catch`), \n `Accuracy_Mania` = VALUES(`Accuracy_Mania`), \n `Accuracy_Standard` = VALUES(`Accuracy_Standard`), \n `Accuracy_Stdev` = VALUES(`Accuracy_Stdev`), \n `Accuracy_Taiko` = VALUES(`Accuracy_Taiko`), \n `Count_Badges` = VALUES(`Count_Badges`), \n `Count_Maps_Loved` = VALUES(`Count_Maps_Loved`), \n `Count_Maps_Ranked` = VALUES(`Count_Maps_Ranked`), \n `Count_Medals` = VALUES(`Count_Medals`), \n `Count_Replays_Watched` = VALUES(`Count_Replays_Watched`), \n `Count_Subscribers` = VALUES(`Count_Subscribers`), \n `Country_Code` = VALUES(`Country_Code`), \n `Is_Restricted` = VALUES(`Is_Restricted`), \n `Level_Catch` = VALUES(`Level_Catch`), \n `Level_Mania` = VALUES(`Level_Mania`), \n `Level_Standard` = VALUES(`Level_Standard`), \n `Level_Stdev` = VALUES(`Level_Stdev`), \n `Level_Taiko` = VALUES(`Level_Taiko`), \n `Name` = VALUES(`Name`), \n `PP_Catch` = VALUES(`PP_Catch`), \n `PP_Mania` = VALUES(`PP_Mania`), \n `PP_Standard` = VALUES(`PP_Standard`), \n `PP_Stdev` = VALUES(`PP_Stdev`), \n `PP_Taiko` = VALUES(`PP_Taiko`), \n `PP_Total` = VALUES(`PP_Total`), \n `Rank_Global_Catch` = VALUES(`Rank_Global_Catch`), \n `Rank_Global_Mania` = VALUES(`Rank_Global_Mania`), \n `Rank_Global_Standard` = VALUES(`Rank_Global_Standard`), \n `Rank_Global_Taiko` = VALUES(`Rank_Global_Taiko`), \n `Rarest_Medal_Achieved` = VALUES(`Rarest_Medal_Achieved`), \n `Rarest_Medal_ID` = VALUES(`Rarest_Medal_ID`)", + "describe": { + "columns": [], + "parameters": { + "Right": 32 + }, + "nullable": [] + }, + "hash": "07a5781e783c9d4e676a3a0dbccb2856072d658844c0414b243a1ac49ee91d51" +} diff --git a/.sqlx/query-86e83005db0e15c9591245a3afd0fd1538dea171e502cc3ff510516dba3fc584.json b/.sqlx/query-07c8c4ded41610d5e3f4f156086989164d774f7cd496537db09a6613fc26b1ac.json similarity index 65% rename from .sqlx/query-86e83005db0e15c9591245a3afd0fd1538dea171e502cc3ff510516dba3fc584.json rename to .sqlx/query-07c8c4ded41610d5e3f4f156086989164d774f7cd496537db09a6613fc26b1ac.json index 61a7ad1..480eb9c 100644 --- a/.sqlx/query-86e83005db0e15c9591245a3afd0fd1538dea171e502cc3ff510516dba3fc584.json +++ b/.sqlx/query-07c8c4ded41610d5e3f4f156086989164d774f7cd496537db09a6613fc26b1ac.json @@ -1,6 +1,6 @@ { "db_name": "MySQL", - "query": "\nSELECT \n id, \n frequency, \n count \nFROM \n MedalRarity", + "query": "\n SELECT\n `Medal_ID` as id,\n `Frequency` as frequency,\n `Count_Achieved_By` as count\n FROM\n Medals_Data", "describe": { "columns": [ { @@ -10,7 +10,7 @@ "type": "Long", "flags": "NOT_NULL | PRIMARY_KEY | NO_DEFAULT_VALUE", "char_set": 63, - "max_size": 11 + "max_size": 4 } }, { @@ -18,7 +18,7 @@ "name": "frequency", "type_info": { "type": "Float", - "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "flags": "", "char_set": 63, "max_size": 12 } @@ -28,9 +28,9 @@ "name": "count", "type_info": { "type": "Long", - "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "flags": "", "char_set": 63, - "max_size": 11 + "max_size": 10 } } ], @@ -39,9 +39,9 @@ }, "nullable": [ false, - false, - false + true, + true ] }, - "hash": "86e83005db0e15c9591245a3afd0fd1538dea171e502cc3ff510516dba3fc584" + "hash": "07c8c4ded41610d5e3f4f156086989164d774f7cd496537db09a6613fc26b1ac" } diff --git a/.sqlx/query-3ce9a4765104ae5c74f6b15c84919ae0a229979224c0867fbaf4a03d64424f3f.json b/.sqlx/query-3ce9a4765104ae5c74f6b15c84919ae0a229979224c0867fbaf4a03d64424f3f.json deleted file mode 100644 index 91594f8..0000000 --- a/.sqlx/query-3ce9a4765104ae5c74f6b15c84919ae0a229979224c0867fbaf4a03d64424f3f.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "MySQL", - "query": "\nINSERT INTO RankingLoopHistory (Time, LoopType, Amount) \nVALUES \n (CURRENT_TIMESTAMP, ?, ?)", - "describe": { - "columns": [], - "parameters": { - "Right": 2 - }, - "nullable": [] - }, - "hash": "3ce9a4765104ae5c74f6b15c84919ae0a229979224c0867fbaf4a03d64424f3f" -} diff --git a/.sqlx/query-4430081821ae2044bf26992be49bcca2911c2ef607ed1ae3eb9b0c2e77584f1c.json b/.sqlx/query-4430081821ae2044bf26992be49bcca2911c2ef607ed1ae3eb9b0c2e77584f1c.json new file mode 100644 index 0000000..e9685cc --- /dev/null +++ b/.sqlx/query-4430081821ae2044bf26992be49bcca2911c2ef607ed1ae3eb9b0c2e77584f1c.json @@ -0,0 +1,58 @@ +{ + "db_name": "MySQL", + "query": "\n SELECT\n `Name` as name, \n `User_ID` as user_id, \n `Description` as description, \n `Date_Awarded` as awarded_at \n FROM \n `Badge_Name`", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | PRIMARY_KEY | NO_DEFAULT_VALUE", + "char_set": 224, + "max_size": 400 + } + }, + { + "ordinal": 1, + "name": "user_id", + "type_info": { + "type": "Long", + "flags": "NOT_NULL | PRIMARY_KEY | NO_DEFAULT_VALUE", + "char_set": 63, + "max_size": 11 + } + }, + { + "ordinal": 2, + "name": "description", + "type_info": { + "type": "VarString", + "flags": "", + "char_set": 224, + "max_size": 8000 + } + }, + { + "ordinal": 3, + "name": "awarded_at", + "type_info": { + "type": "Datetime", + "flags": "BINARY", + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 0 + }, + "nullable": [ + false, + false, + true, + true + ] + }, + "hash": "4430081821ae2044bf26992be49bcca2911c2ef607ed1ae3eb9b0c2e77584f1c" +} diff --git a/.sqlx/query-4a63642abba6eb8c5ec297dbc8324ce906456820fbe104d81c0f0a52d49ad073.json b/.sqlx/query-4a63642abba6eb8c5ec297dbc8324ce906456820fbe104d81c0f0a52d49ad073.json new file mode 100644 index 0000000..aa0f166 --- /dev/null +++ b/.sqlx/query-4a63642abba6eb8c5ec297dbc8324ce906456820fbe104d81c0f0a52d49ad073.json @@ -0,0 +1,12 @@ +{ + "db_name": "MySQL", + "query": "\n INSERT INTO `Medals_Data` (\n `Medal_ID`, `Name`, `Link`, `Description`,\n `Gamemode`, `Grouping`, `Instructions`,\n `Ordering`\n )\n VALUES\n (?, ?, ?, ?, ?, ?, ?, ?) ON DUPLICATE KEY\n UPDATE\n `Medal_ID` = VALUES(`Medal_ID`),\n `Name` = VALUES(`Name`),\n `Link` = VALUES(`Link`),\n `Description` = VALUES(`Description`),\n `Gamemode` = VALUES(`Gamemode`),\n `Grouping` = VALUES(`Grouping`),\n `Instructions` = VALUES(`Instructions`),\n `Ordering` = VALUES(`Ordering`)", + "describe": { + "columns": [], + "parameters": { + "Right": 8 + }, + "nullable": [] + }, + "hash": "4a63642abba6eb8c5ec297dbc8324ce906456820fbe104d81c0f0a52d49ad073" +} diff --git a/.sqlx/query-512d73f8f3308d687dfc7b41f266af6a123e124b8dbf8dfb4de7e9b06d50096e.json b/.sqlx/query-512d73f8f3308d687dfc7b41f266af6a123e124b8dbf8dfb4de7e9b06d50096e.json deleted file mode 100644 index f34d223..0000000 --- a/.sqlx/query-512d73f8f3308d687dfc7b41f266af6a123e124b8dbf8dfb4de7e9b06d50096e.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "MySQL", - "query": "\nUPDATE \n RankingLoopInfo \nSET \n CurrentLoop = ?, \n CurrentCount = ?, \n TotalCount = ?, \n EtaSeconds = ? \nLIMIT \n 1", - "describe": { - "columns": [], - "parameters": { - "Right": 4 - }, - "nullable": [] - }, - "hash": "512d73f8f3308d687dfc7b41f266af6a123e124b8dbf8dfb4de7e9b06d50096e" -} diff --git a/.sqlx/query-67b726a26a9b59167b9d41adbf284024ffdbc959df873caee12b292c5ca64583.json b/.sqlx/query-67b726a26a9b59167b9d41adbf284024ffdbc959df873caee12b292c5ca64583.json deleted file mode 100644 index 4aa7eaa..0000000 --- a/.sqlx/query-67b726a26a9b59167b9d41adbf284024ffdbc959df873caee12b292c5ca64583.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "MySQL", - "query": "\nINSERT INTO Medals (\n medalid, name, link, description, \n restriction, `grouping`, instructions, \n ordering\n) \nVALUES \n (?, ?, ?, ?, ?, ?, ?, ?) ON DUPLICATE KEY \nUPDATE \n medalid = VALUES(medalid), \n name = VALUES(name), \n link = VALUES(link), \n description = VALUES(description), \n restriction = VALUES(restriction), \n `grouping` = VALUES(`grouping`), \n ordering = VALUES(ordering), \n instructions = VALUES(instructions)", - "describe": { - "columns": [], - "parameters": { - "Right": 8 - }, - "nullable": [] - }, - "hash": "67b726a26a9b59167b9d41adbf284024ffdbc959df873caee12b292c5ca64583" -} diff --git a/.sqlx/query-67f923e10eb70e82eee17d5d4335767a17d229d50570ce5993dcf543a9784ea7.json b/.sqlx/query-67f923e10eb70e82eee17d5d4335767a17d229d50570ce5993dcf543a9784ea7.json new file mode 100644 index 0000000..44e8da4 --- /dev/null +++ b/.sqlx/query-67f923e10eb70e82eee17d5d4335767a17d229d50570ce5993dcf543a9784ea7.json @@ -0,0 +1,12 @@ +{ + "db_name": "MySQL", + "query": "\nINSERT INTO \n Rankings_Script_History (\n `ID`, \n `Type`, \n `Time`, \n `Count_Current`, \n `Count_Total`, \n `Elapsed_Seconds`, \n `Elapsed_Last_Update` \n) VALUES (?, ?, ?, ?, ?, ?, NOW())\nON DUPLICATE KEY UPDATE\n `Count_Current` = VALUES(`Count_Current`), \n `Count_Total` = VALUES(`Count_Total`), \n `Elapsed_Seconds` = VALUES(`Elapsed_Seconds`), \n `Elapsed_Last_Update` = VALUES(`Elapsed_Last_Update`)", + "describe": { + "columns": [], + "parameters": { + "Right": 6 + }, + "nullable": [] + }, + "hash": "67f923e10eb70e82eee17d5d4335767a17d229d50570ce5993dcf543a9784ea7" +} diff --git a/.sqlx/query-864649ccdb5c40d9cf1dcb8fa114692062c3007bb54a2bcf95c73e61b4fcbafe.json b/.sqlx/query-864649ccdb5c40d9cf1dcb8fa114692062c3007bb54a2bcf95c73e61b4fcbafe.json new file mode 100644 index 0000000..c72e775 --- /dev/null +++ b/.sqlx/query-864649ccdb5c40d9cf1dcb8fa114692062c3007bb54a2bcf95c73e61b4fcbafe.json @@ -0,0 +1,12 @@ +{ + "db_name": "MySQL", + "query": "\n INSERT INTO `Badges_Data` (\n `Name`, `Image_URL`\n )\n VALUES\n (?, ?)\n ON DUPLICATE KEY UPDATE\n `Name` = `Name`", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] + }, + "hash": "864649ccdb5c40d9cf1dcb8fa114692062c3007bb54a2bcf95c73e61b4fcbafe" +} diff --git a/.sqlx/query-11a8020ae937b6f710b9fb5dd9dbd44486b3e71414732c19e6aa64b821632874.json b/.sqlx/query-88ae2deaf15ee10e45c6f9054f4c14dfa2f75bca3e1486ee8567a614ca1ba440.json similarity index 64% rename from .sqlx/query-11a8020ae937b6f710b9fb5dd9dbd44486b3e71414732c19e6aa64b821632874.json rename to .sqlx/query-88ae2deaf15ee10e45c6f9054f4c14dfa2f75bca3e1486ee8567a614ca1ba440.json index 0974f4c..e57c7f9 100644 --- a/.sqlx/query-11a8020ae937b6f710b9fb5dd9dbd44486b3e71414732c19e6aa64b821632874.json +++ b/.sqlx/query-88ae2deaf15ee10e45c6f9054f4c14dfa2f75bca3e1486ee8567a614ca1ba440.json @@ -1,6 +1,6 @@ { "db_name": "MySQL", - "query": "\nSELECT \n id \nFROM \n Members", + "query": "\n SELECT\n `Medal_ID` as id\n FROM\n Medals_Data", "describe": { "columns": [ { @@ -10,7 +10,7 @@ "type": "Long", "flags": "NOT_NULL | PRIMARY_KEY | NO_DEFAULT_VALUE", "char_set": 63, - "max_size": 15 + "max_size": 4 } } ], @@ -21,5 +21,5 @@ false ] }, - "hash": "11a8020ae937b6f710b9fb5dd9dbd44486b3e71414732c19e6aa64b821632874" + "hash": "88ae2deaf15ee10e45c6f9054f4c14dfa2f75bca3e1486ee8567a614ca1ba440" } diff --git a/.sqlx/query-a14089ef0add25410e5c9d62430504b87a7b1da7f12d86d99e931000d4078957.json b/.sqlx/query-a14089ef0add25410e5c9d62430504b87a7b1da7f12d86d99e931000d4078957.json new file mode 100644 index 0000000..18509e1 --- /dev/null +++ b/.sqlx/query-a14089ef0add25410e5c9d62430504b87a7b1da7f12d86d99e931000d4078957.json @@ -0,0 +1,12 @@ +{ + "db_name": "MySQL", + "query": "\n INSERT INTO `Badge_Name` (\n `Name`, `User_ID`, `Description`, `Date_Awarded`\n )\n VALUES\n (?, ?, ?, ?)", + "describe": { + "columns": [], + "parameters": { + "Right": 4 + }, + "nullable": [] + }, + "hash": "a14089ef0add25410e5c9d62430504b87a7b1da7f12d86d99e931000d4078957" +} diff --git a/.sqlx/query-933e028460ee44d3bf5472e02628e6fde92937082a997df813e5fa40272028fb.json b/.sqlx/query-a2c82f7fe06639aa1e0b2b6376806cfb63ab3f6c4cdcc7145b9327bf859909a9.json similarity index 60% rename from .sqlx/query-933e028460ee44d3bf5472e02628e6fde92937082a997df813e5fa40272028fb.json rename to .sqlx/query-a2c82f7fe06639aa1e0b2b6376806cfb63ab3f6c4cdcc7145b9327bf859909a9.json index 8fd32a8..4c11793 100644 --- a/.sqlx/query-933e028460ee44d3bf5472e02628e6fde92937082a997df813e5fa40272028fb.json +++ b/.sqlx/query-a2c82f7fe06639aa1e0b2b6376806cfb63ab3f6c4cdcc7145b9327bf859909a9.json @@ -1,16 +1,16 @@ { "db_name": "MySQL", - "query": "\nSELECT \n medalid \nFROM \n Medals", + "query": "\n SELECT\n `User_ID` as id\n FROM\n System_Users", "describe": { "columns": [ { "ordinal": 0, - "name": "medalid", + "name": "id", "type_info": { "type": "Long", "flags": "NOT_NULL | PRIMARY_KEY | NO_DEFAULT_VALUE", "char_set": 63, - "max_size": 5 + "max_size": 11 } } ], @@ -21,5 +21,5 @@ false ] }, - "hash": "933e028460ee44d3bf5472e02628e6fde92937082a997df813e5fa40272028fb" + "hash": "a2c82f7fe06639aa1e0b2b6376806cfb63ab3f6c4cdcc7145b9327bf859909a9" } diff --git a/.sqlx/query-5abf18d522021f6471dd4a47136bf86ea0352c5a68f7a7290b9bbe567df39e39.json b/.sqlx/query-b8d49eb5ebb434b92d58e4b8ce0deecd0bef56b4285e4f1a578b8a59d56c2b67.json similarity index 52% rename from .sqlx/query-5abf18d522021f6471dd4a47136bf86ea0352c5a68f7a7290b9bbe567df39e39.json rename to .sqlx/query-b8d49eb5ebb434b92d58e4b8ce0deecd0bef56b4285e4f1a578b8a59d56c2b67.json index c98d58e..69d6f5e 100644 --- a/.sqlx/query-5abf18d522021f6471dd4a47136bf86ea0352c5a68f7a7290b9bbe567df39e39.json +++ b/.sqlx/query-b8d49eb5ebb434b92d58e4b8ce0deecd0bef56b4285e4f1a578b8a59d56c2b67.json @@ -1,6 +1,6 @@ { "db_name": "MySQL", - "query": "DELETE FROM Badges", + "query": "DELETE FROM `Badge_Name`", "describe": { "columns": [], "parameters": { @@ -8,5 +8,5 @@ }, "nullable": [] }, - "hash": "5abf18d522021f6471dd4a47136bf86ea0352c5a68f7a7290b9bbe567df39e39" + "hash": "b8d49eb5ebb434b92d58e4b8ce0deecd0bef56b4285e4f1a578b8a59d56c2b67" } diff --git a/.sqlx/query-ba09296996a411511b263567746d3a94087a7532f6328d23c2692290207b93b9.json b/.sqlx/query-ba09296996a411511b263567746d3a94087a7532f6328d23c2692290207b93b9.json deleted file mode 100644 index 8ed0cec..0000000 --- a/.sqlx/query-ba09296996a411511b263567746d3a94087a7532f6328d23c2692290207b93b9.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "MySQL", - "query": "\nINSERT INTO Badges (\n id, name, image_url, description, awarded_at, users\n) \nVALUES \n (?, ?, ?, ?, ?, ?)", - "describe": { - "columns": [], - "parameters": { - "Right": 6 - }, - "nullable": [] - }, - "hash": "ba09296996a411511b263567746d3a94087a7532f6328d23c2692290207b93b9" -} diff --git a/.sqlx/query-bb0ccdb37554a8becd936b5a4b0b79fe848ed2bc38174031a4d06d62520d2dea.json b/.sqlx/query-bb0ccdb37554a8becd936b5a4b0b79fe848ed2bc38174031a4d06d62520d2dea.json new file mode 100644 index 0000000..5726772 --- /dev/null +++ b/.sqlx/query-bb0ccdb37554a8becd936b5a4b0b79fe848ed2bc38174031a4d06d62520d2dea.json @@ -0,0 +1,12 @@ +{ + "db_name": "MySQL", + "query": "\nUPDATE\n `Medals_Data`\nSET\n `Frequency` = ?,\n `Count_Achieved_By` = ?\nWHERE\n `Medal_ID` = ?", + "describe": { + "columns": [], + "parameters": { + "Right": 3 + }, + "nullable": [] + }, + "hash": "bb0ccdb37554a8becd936b5a4b0b79fe848ed2bc38174031a4d06d62520d2dea" +} diff --git a/.sqlx/query-bbe8fc109365c1c0441c0e964c282406514996e5dc36cc682c47a99ad17fb073.json b/.sqlx/query-bbe8fc109365c1c0441c0e964c282406514996e5dc36cc682c47a99ad17fb073.json deleted file mode 100644 index 009bcf3..0000000 --- a/.sqlx/query-bbe8fc109365c1c0441c0e964c282406514996e5dc36cc682c47a99ad17fb073.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "MySQL", - "query": "\nUPDATE \n RankingLoopInfo \nSET \n CurrentLoop = \"Complete\" \nLIMIT \n 1", - "describe": { - "columns": [], - "parameters": { - "Right": 0 - }, - "nullable": [] - }, - "hash": "bbe8fc109365c1c0441c0e964c282406514996e5dc36cc682c47a99ad17fb073" -} diff --git a/.sqlx/query-cb9c5daf88fe6e4eaa67d0594719031b81699377283ebf7a176fb32718dc7d82.json b/.sqlx/query-cb9c5daf88fe6e4eaa67d0594719031b81699377283ebf7a176fb32718dc7d82.json deleted file mode 100644 index 6abbf84..0000000 --- a/.sqlx/query-cb9c5daf88fe6e4eaa67d0594719031b81699377283ebf7a176fb32718dc7d82.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "db_name": "MySQL", - "query": "\nSELECT \n id, \n description, \n users, \n image_url \nFROM \n Badges", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": { - "type": "Long", - "flags": "NOT_NULL | PRIMARY_KEY | AUTO_INCREMENT", - "char_set": 63, - "max_size": 11 - } - }, - { - "ordinal": 1, - "name": "description", - "type_info": { - "type": "Blob", - "flags": "NOT_NULL | BLOB | NO_DEFAULT_VALUE", - "char_set": 224, - "max_size": 262140 - } - }, - { - "ordinal": 2, - "name": "users", - "type_info": { - "type": "Blob", - "flags": "NOT_NULL | BLOB | NO_DEFAULT_VALUE", - "char_set": 224, - "max_size": 262140 - } - }, - { - "ordinal": 3, - "name": "image_url", - "type_info": { - "type": "Blob", - "flags": "NOT_NULL | BLOB | NO_DEFAULT_VALUE", - "char_set": 224, - "max_size": 262140 - } - } - ], - "parameters": { - "Right": 0 - }, - "nullable": [ - false, - false, - false, - false - ] - }, - "hash": "cb9c5daf88fe6e4eaa67d0594719031b81699377283ebf7a176fb32718dc7d82" -} diff --git a/.sqlx/query-b464fac2b59b90125cc373771f65ff9527481439a36f390dacfaaa3488088ea8.json b/.sqlx/query-d0dc545c496b1f0a460f5a02f7d66068a549f5814da67e7f155f6562c24ab26b.json similarity index 69% rename from .sqlx/query-b464fac2b59b90125cc373771f65ff9527481439a36f390dacfaaa3488088ea8.json rename to .sqlx/query-d0dc545c496b1f0a460f5a02f7d66068a549f5814da67e7f155f6562c24ab26b.json index 31fa401..ca472c0 100644 --- a/.sqlx/query-b464fac2b59b90125cc373771f65ff9527481439a36f390dacfaaa3488088ea8.json +++ b/.sqlx/query-d0dc545c496b1f0a460f5a02f7d66068a549f5814da67e7f155f6562c24ab26b.json @@ -1,6 +1,6 @@ { "db_name": "MySQL", - "query": "\nSELECT \n id \nFROM \n Ranking", + "query": "\n SELECT\n `ID` as id\n FROM\n Rankings_Users", "describe": { "columns": [ { @@ -21,5 +21,5 @@ false ] }, - "hash": "b464fac2b59b90125cc373771f65ff9527481439a36f390dacfaaa3488088ea8" + "hash": "d0dc545c496b1f0a460f5a02f7d66068a549f5814da67e7f155f6562c24ab26b" } diff --git a/.sqlx/query-e6a425573a241e80c7c97753219f069d6c047eccf5cbbfacffa6f4ac42f69d73.json b/.sqlx/query-e6a425573a241e80c7c97753219f069d6c047eccf5cbbfacffa6f4ac42f69d73.json deleted file mode 100644 index ceae8ae..0000000 --- a/.sqlx/query-e6a425573a241e80c7c97753219f069d6c047eccf5cbbfacffa6f4ac42f69d73.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "MySQL", - "query": "\nINSERT INTO Ranking (\n id, name, total_pp, stdev_pp, standard_pp, \n taiko_pp, ctb_pp, mania_pp, medal_count, \n rarest_medal, country_code, standard_global, \n taiko_global, ctb_global, mania_global, \n badge_count, ranked_maps, loved_maps, \n subscribers, followers, replays_watched, \n rarest_medal_achieved, restricted, \n stdev_acc, standard_acc, taiko_acc, \n ctb_acc, mania_acc, stdev_level, \n standard_level, taiko_level, ctb_level, \n mania_level, kudosu, avatar_url\n) \nVALUES \n (\n ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \n ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \n ?, ?, ?, ?\n ) ON DUPLICATE KEY \nUPDATE \n id = VALUES(id), \n name = VALUES(name), \n total_pp = VALUES(total_pp), \n stdev_pp = VALUES(stdev_pp), \n standard_pp = VALUES(standard_pp), \n taiko_pp = VALUES(taiko_pp), \n ctb_pp = VALUES(ctb_pp), \n mania_pp = VALUES(mania_pp), \n medal_count = VALUES(medal_count), \n rarest_medal = VALUES(rarest_medal), \n country_code = VALUES(country_code), \n standard_global = VALUES(standard_global), \n taiko_global = VALUES(taiko_global), \n ctb_global = VALUES(ctb_global), \n mania_global = VALUES(mania_global), \n badge_count = VALUES(badge_count), \n ranked_maps = VALUES(ranked_maps), \n loved_maps = VALUES(loved_maps), \n subscribers = VALUES(subscribers), \n followers = VALUES(followers), \n replays_watched = VALUES(replays_watched), \n rarest_medal_achieved = VALUES(rarest_medal_achieved), \n restricted = VALUES(restricted), \n stdev_acc = VALUES(stdev_acc), \n standard_acc = VALUES(standard_acc), \n taiko_acc = VALUES(taiko_acc), \n ctb_acc = VALUES(ctb_acc), \n mania_acc = VALUES(mania_acc), \n stdev_level = VALUES(stdev_level), \n standard_level = VALUES(standard_level), \n taiko_level = VALUES(taiko_level), \n ctb_level = VALUES(ctb_level), \n mania_level = VALUES(mania_level), \n kudosu = VALUES(kudosu)", - "describe": { - "columns": [], - "parameters": { - "Right": 35 - }, - "nullable": [] - }, - "hash": "e6a425573a241e80c7c97753219f069d6c047eccf5cbbfacffa6f4ac42f69d73" -} diff --git a/.sqlx/query-f2b8d68feccb7bc24f26b69154949c07df7c27b732edb497e84de0db8ce68de4.json b/.sqlx/query-f2b8d68feccb7bc24f26b69154949c07df7c27b732edb497e84de0db8ce68de4.json new file mode 100644 index 0000000..7069feb --- /dev/null +++ b/.sqlx/query-f2b8d68feccb7bc24f26b69154949c07df7c27b732edb497e84de0db8ce68de4.json @@ -0,0 +1,36 @@ +{ + "db_name": "MySQL", + "query": "\n SELECT\n `Name` as name, \n `Image_URL` as image_url \n FROM\n `Badges_Data`", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "name", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | PRIMARY_KEY | NO_DEFAULT_VALUE", + "char_set": 224, + "max_size": 400 + } + }, + { + "ordinal": 1, + "name": "image_url", + "type_info": { + "type": "VarString", + "flags": "", + "char_set": 224, + "max_size": 400 + } + } + ], + "parameters": { + "Right": 0 + }, + "nullable": [ + false, + true + ] + }, + "hash": "f2b8d68feccb7bc24f26b69154949c07df7c27b732edb497e84de0db8ce68de4" +} diff --git a/.sqlx/query-fb0cd98c8a14890872b345930a9f4bb3a4f2ffc7fe0324c8ba46b8c419d721b0.json b/.sqlx/query-fb0cd98c8a14890872b345930a9f4bb3a4f2ffc7fe0324c8ba46b8c419d721b0.json deleted file mode 100644 index 60fcef0..0000000 --- a/.sqlx/query-fb0cd98c8a14890872b345930a9f4bb3a4f2ffc7fe0324c8ba46b8c419d721b0.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "MySQL", - "query": "\nINSERT INTO MedalRarity (id, frequency, count) \nVALUES \n (?, ?, ?) ON DUPLICATE KEY \nUPDATE \n id = VALUES(id), \n frequency = VALUES(frequency), \n count = VALUES(count)", - "describe": { - "columns": [], - "parameters": { - "Right": 3 - }, - "nullable": [] - }, - "hash": "fb0cd98c8a14890872b345930a9f4bb3a4f2ffc7fe0324c8ba46b8c419d721b0" -} diff --git a/.sqlx/query-fd32fb3aef4c97314bf097993733d513f9a8476ecd0f80c5d0a4bdce282c6fe4.json b/.sqlx/query-fd32fb3aef4c97314bf097993733d513f9a8476ecd0f80c5d0a4bdce282c6fe4.json new file mode 100644 index 0000000..4244c7b --- /dev/null +++ b/.sqlx/query-fd32fb3aef4c97314bf097993733d513f9a8476ecd0f80c5d0a4bdce282c6fe4.json @@ -0,0 +1,12 @@ +{ + "db_name": "MySQL", + "query": "\nUPDATE \n Rankings_Script_History\nSET \n `Count_Current` = ?, \n `Count_Total` = ?, \n `Elapsed_Seconds` = ?, \n `Elapsed_Last_Update` = NOW()\nWHERE\n `ID` = ?", + "describe": { + "columns": [], + "parameters": { + "Right": 4 + }, + "nullable": [] + }, + "hash": "fd32fb3aef4c97314bf097993733d513f9a8476ecd0f80c5d0a4bdce282c6fe4" +}