mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 10:14:11 +02:00
fix nix build
This commit is contained in:
parent
f08aad7370
commit
50157d4ada
7 changed files with 283 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,4 +1,3 @@
|
||||||
target
|
target
|
||||||
result*
|
result*
|
||||||
.direnv
|
.direnv
|
||||||
*.json
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.sources) sourceByRegex;
|
inherit (lib.sources) sourceByRegex;
|
||||||
inherit (builtins) fromTOML readFile;
|
inherit (builtins) fromTOML readFile;
|
||||||
src = sourceByRegex ./. ["Cargo.*" "((types|archiver|)/?(src)?)(/.*)?" "README.md"];
|
src = sourceByRegex ./. ["Cargo.*" "((types|archiver|)/?(src|.sqlx)?)(/.*)?" "README.md"];
|
||||||
version = (fromTOML (readFile archiver/Cargo.toml)).package.version;
|
version = (fromTOML (readFile archiver/Cargo.toml)).package.version;
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
|
|
|
||||||
20
archiver/.sqlx/query-631de9f3d616e0ef8783af472b3c8f19e40fe49da51ac0eecea3b9ca495d5c16.json
generated
Normal file
20
archiver/.sqlx/query-631de9f3d616e0ef8783af472b3c8f19e40fe49da51ac0eecea3b9ca495d5c16.json
generated
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"db_name": "PostgreSQL",
|
||||||
|
"query": "select LEAST(MIN(team_home), MIN(team_away)) as team_id from matches\n INNER JOIN teams ON (team_home = teams.id OR team_away = teams.id)\n WHERE matches.default_date IS NULL AND matches.format in ('highlander', 'sixes', 'fours', 'ultiduo')\n AND region in ('europe', 'north-america', 'south-america', 'australia')\n ",
|
||||||
|
"describe": {
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"ordinal": 0,
|
||||||
|
"name": "team_id",
|
||||||
|
"type_info": "Int4"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"parameters": {
|
||||||
|
"Left": []
|
||||||
|
},
|
||||||
|
"nullable": [
|
||||||
|
null
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hash": "631de9f3d616e0ef8783af472b3c8f19e40fe49da51ac0eecea3b9ca495d5c16"
|
||||||
|
}
|
||||||
38
archiver/.sqlx/query-9508cd11882cb0ad9c894643a5ae410c86595c3ce83a59234a077bd92154e071.json
generated
Normal file
38
archiver/.sqlx/query-9508cd11882cb0ad9c894643a5ae410c86595c3ce83a59234a077bd92154e071.json
generated
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"db_name": "PostgreSQL",
|
||||||
|
"query": "select steam_id, name, avatar, country from players\n order by steam_id asc",
|
||||||
|
"describe": {
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"ordinal": 0,
|
||||||
|
"name": "steam_id",
|
||||||
|
"type_info": "Int8"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 1,
|
||||||
|
"name": "name",
|
||||||
|
"type_info": "Varchar"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 2,
|
||||||
|
"name": "avatar",
|
||||||
|
"type_info": "Varchar"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 3,
|
||||||
|
"name": "country",
|
||||||
|
"type_info": "Varchar"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"parameters": {
|
||||||
|
"Left": []
|
||||||
|
},
|
||||||
|
"nullable": [
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
true
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hash": "9508cd11882cb0ad9c894643a5ae410c86595c3ce83a59234a077bd92154e071"
|
||||||
|
}
|
||||||
54
archiver/.sqlx/query-a8724905f6efc0001f0f28f78662a217a86b3fa6badfd3d8eee92eb90e84304a.json
generated
Normal file
54
archiver/.sqlx/query-a8724905f6efc0001f0f28f78662a217a86b3fa6badfd3d8eee92eb90e84304a.json
generated
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
{
|
||||||
|
"db_name": "PostgreSQL",
|
||||||
|
"query": "select team_id, steam_id, role as \"role: MembershipRole\", joined, \"left\" from membership_history\n order by team_id, steam_id asc",
|
||||||
|
"describe": {
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"ordinal": 0,
|
||||||
|
"name": "team_id",
|
||||||
|
"type_info": "Int4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 1,
|
||||||
|
"name": "steam_id",
|
||||||
|
"type_info": "Int8"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 2,
|
||||||
|
"name": "role: MembershipRole",
|
||||||
|
"type_info": {
|
||||||
|
"Custom": {
|
||||||
|
"name": "membership_role",
|
||||||
|
"kind": {
|
||||||
|
"Enum": [
|
||||||
|
"leader",
|
||||||
|
"member"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 3,
|
||||||
|
"name": "joined",
|
||||||
|
"type_info": "Date"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 4,
|
||||||
|
"name": "left",
|
||||||
|
"type_info": "Date"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"parameters": {
|
||||||
|
"Left": []
|
||||||
|
},
|
||||||
|
"nullable": [
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
true
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hash": "a8724905f6efc0001f0f28f78662a217a86b3fa6badfd3d8eee92eb90e84304a"
|
||||||
|
}
|
||||||
87
archiver/.sqlx/query-bbef4a36f0e6ec541d19a6cd9f254dd2f24667e0457e56f1731c7fbdc238b9a2.json
generated
Normal file
87
archiver/.sqlx/query-bbef4a36f0e6ec541d19a6cd9f254dd2f24667e0457e56f1731c7fbdc238b9a2.json
generated
Normal file
|
|
@ -0,0 +1,87 @@
|
||||||
|
{
|
||||||
|
"db_name": "PostgreSQL",
|
||||||
|
"query": "select matches.id, team_home, team_away, score_home, score_away, matches.format as \"format!: GameMode\", season as \"season!\", week as \"week!\", default_date as \"default_date!\", map as \"map!\" from matches\n inner join teams on teams.id in (team_home, team_away)\n where matches.format in ('highlander', 'sixes', 'fours', 'ultiduo')\n and region != 'asia'\n order by id asc",
|
||||||
|
"describe": {
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"ordinal": 0,
|
||||||
|
"name": "id",
|
||||||
|
"type_info": "Int4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 1,
|
||||||
|
"name": "team_home",
|
||||||
|
"type_info": "Int4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 2,
|
||||||
|
"name": "team_away",
|
||||||
|
"type_info": "Int4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 3,
|
||||||
|
"name": "score_home",
|
||||||
|
"type_info": "Int2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 4,
|
||||||
|
"name": "score_away",
|
||||||
|
"type_info": "Int2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 5,
|
||||||
|
"name": "format!: GameMode",
|
||||||
|
"type_info": {
|
||||||
|
"Custom": {
|
||||||
|
"name": "game_mode",
|
||||||
|
"kind": {
|
||||||
|
"Enum": [
|
||||||
|
"highlander",
|
||||||
|
"eights",
|
||||||
|
"sixes",
|
||||||
|
"fours",
|
||||||
|
"ultiduo"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 6,
|
||||||
|
"name": "season!",
|
||||||
|
"type_info": "Int4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 7,
|
||||||
|
"name": "week!",
|
||||||
|
"type_info": "Int4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 8,
|
||||||
|
"name": "default_date!",
|
||||||
|
"type_info": "Date"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 9,
|
||||||
|
"name": "map!",
|
||||||
|
"type_info": "Varchar"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"parameters": {
|
||||||
|
"Left": []
|
||||||
|
},
|
||||||
|
"nullable": [
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
true
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hash": "bbef4a36f0e6ec541d19a6cd9f254dd2f24667e0457e56f1731c7fbdc238b9a2"
|
||||||
|
}
|
||||||
82
archiver/.sqlx/query-fd582a872003f15fc6856592677744528569587bb05c57b1b17890ccb40af3bc.json
generated
Normal file
82
archiver/.sqlx/query-fd582a872003f15fc6856592677744528569587bb05c57b1b17890ccb40af3bc.json
generated
Normal file
|
|
@ -0,0 +1,82 @@
|
||||||
|
{
|
||||||
|
"db_name": "PostgreSQL",
|
||||||
|
"query": "select id, tag, name, image, format as \"format!: GameMode\", region as \"region!: Region\", timezone from teams\n where format in ('highlander', 'sixes', 'fours', 'ultiduo')\n order by id asc",
|
||||||
|
"describe": {
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"ordinal": 0,
|
||||||
|
"name": "id",
|
||||||
|
"type_info": "Int4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 1,
|
||||||
|
"name": "tag",
|
||||||
|
"type_info": "Varchar"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 2,
|
||||||
|
"name": "name",
|
||||||
|
"type_info": "Varchar"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 3,
|
||||||
|
"name": "image",
|
||||||
|
"type_info": "Varchar"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 4,
|
||||||
|
"name": "format!: GameMode",
|
||||||
|
"type_info": {
|
||||||
|
"Custom": {
|
||||||
|
"name": "game_mode",
|
||||||
|
"kind": {
|
||||||
|
"Enum": [
|
||||||
|
"highlander",
|
||||||
|
"eights",
|
||||||
|
"sixes",
|
||||||
|
"fours",
|
||||||
|
"ultiduo"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 5,
|
||||||
|
"name": "region!: Region",
|
||||||
|
"type_info": {
|
||||||
|
"Custom": {
|
||||||
|
"name": "region",
|
||||||
|
"kind": {
|
||||||
|
"Enum": [
|
||||||
|
"europe",
|
||||||
|
"north-america",
|
||||||
|
"south-america",
|
||||||
|
"asia",
|
||||||
|
"australia"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ordinal": 6,
|
||||||
|
"name": "timezone",
|
||||||
|
"type_info": "Varchar"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"parameters": {
|
||||||
|
"Left": []
|
||||||
|
},
|
||||||
|
"nullable": [
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
true
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hash": "fd582a872003f15fc6856592677744528569587bb05c57b1b17890ccb40af3bc"
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue