Skip to content

Commit

Permalink
generate sqlx offline data
Browse files Browse the repository at this point in the history
  • Loading branch information
PsychicNoodles committed Oct 28, 2022
1 parent 8cb9418 commit eeed89a
Showing 1 changed file with 150 additions and 28 deletions.
178 changes: 150 additions & 28 deletions sqlx-data.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,54 @@
{
"db": "PostgreSQL",
"1178340c2146fe16564a4aad62f7d291f3383c35fadd2cef52c8539963321098": {
"3ffd61e0a9ad4ce58fdc1b56ad15ab32c44e58b8b03364cadc6d9be31831b0bf": {
"describe": {
"columns": [
{
"name": "count",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
null
],
"parameters": {
"Left": [
"Bpchar",
"Bpchar"
]
}
},
"query": "\n SELECT COUNT(*) FROM emote_log_tags\n JOIN emote_logs ON emote_log_tags.emote_log_id = emote_logs.emote_log_id\n JOIN guilds on emote_logs.guild_id = guilds.guild_id\n JOIN users on emote_logs.user_id = users.user_id\n WHERE guilds.discord_id = $1 AND users.discord_id = $2\n "
},
"40e0b7685ef7c91b516677b7626fa2b27747f3e1ec951aa6d06403d95d4a4941": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Bpchar",
"Int4",
"Int4",
"Varchar",
"Timestamptz"
]
}
},
"query": "\n INSERT INTO emotes (xiv_id, command, insert_tm, update_tm)\n VALUES ($1, $2, $3, $3)\n ON CONFLICT (xiv_id) DO UPDATE SET update_tm = $3\n "
"query": "\n INSERT INTO guilds (discord_id, language, gender, prefix, is_set_flg, insert_tm, update_tm)\n VALUES ($1, $2, $3, $4, true, $5, $5)\n ON CONFLICT (discord_id) DO UPDATE\n SET discord_id = $1, language = $2, gender = $3, prefix = $4, is_set_flg = true, update_tm = $5\n "
},
"614a4fecf38855de04059820779fa5393e6ea8942d4930b687afea25564355bb": {
"4de9b006bf05dab548b58fcdb0c6ef457b61997a0ee6f04851a884ec2c93255a": {
"describe": {
"columns": [],
"nullable": [],
"columns": [
{
"name": "guild_id",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Bpchar",
Expand All @@ -28,12 +59,20 @@
]
}
},
"query": "\n INSERT INTO guilds (discord_id, language, gender, prefix, is_set_flg, insert_tm, update_tm)\n VALUES ($1, $2, $3, $4, true, $5, $5)\n ON CONFLICT (discord_id) DO UPDATE\n SET discord_id = $1, language = $2, gender = $3, prefix = $4, is_set_flg = true, update_tm = $5\n "
"query": "\n INSERT INTO guilds (discord_id, language, gender, prefix, is_set_flg, insert_tm, update_tm)\n VALUES ($1, $2, $3, $4, false, $5, $5)\n ON CONFLICT (discord_id) DO UPDATE SET update_tm = $5\n RETURNING guild_id\n "
},
"74845e20073eb6c5712543b02fc01f6f0de83620bfc6af53afae5b94e29c2f61": {
"5ba1db9a9111f4e0584486627b306cfbc7869a7a72af8efeffd05caf9ec2a4d9": {
"describe": {
"columns": [],
"nullable": [],
"columns": [
{
"name": "user_id",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Bpchar",
Expand All @@ -43,46 +82,117 @@
]
}
},
"query": "\n INSERT INTO users (discord_id, language, gender, is_set_flg, insert_tm, update_tm)\n VALUES ($1, $2, $3, true, $4, $4)\n ON CONFLICT (discord_id) DO UPDATE\n SET discord_id = $1, language = $2, gender = $3, is_set_flg = true, update_tm = $4\n "
"query": "\n INSERT INTO users (discord_id, language, gender, is_set_flg, insert_tm, update_tm)\n VALUES ($1, $2, $3, false, $4, $4)\n ON CONFLICT (discord_id) DO UPDATE SET update_tm = $4\n RETURNING user_id\n "
},
"5e7d1aedc5d8bba961b710d2e65be0f4877010289946f85dcd017ed1464c58a7": {
"describe": {
"columns": [
{
"name": "count",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
null
],
"parameters": {
"Left": [
"Bpchar",
"Bpchar"
]
}
},
"query": "\n SELECT COUNT(*) FROM emote_logs\n JOIN guilds on emote_logs.guild_id = guilds.guild_id\n JOIN users on emote_logs.user_id = users.user_id\n WHERE guilds.discord_id = $1 AND users.discord_id = $2\n "
},
"77bf8d18d6ad3693202bd261f0e249ab09a427aa2208a6b24f319eec3a1643dd": {
"6c679452c9c0fb5e7f2b71fd2cbf5484f60371f7f4fad8fe4bbf432a3ac08415": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Int8",
"Int8",
"Bpchar",
"Int4",
"Int4",
"Timestamptz"
]
}
},
"query": "\n INSERT INTO emote_logs (user_id, guild_id, emote_id, sent_at, insert_tm, update_tm)\n VALUES ($1, $2, $3, $4, $4, $4)\n "
"query": "\n INSERT INTO users (discord_id, language, gender, is_set_flg, insert_tm, update_tm)\n VALUES ($1, $2, $3, true, $4, $4)\n ON CONFLICT (discord_id) DO UPDATE\n SET discord_id = $1, language = $2, gender = $3, is_set_flg = true, update_tm = $4\n "
},
"b295ea4c5b972a60425eceaed2c86d45c822831b6e89a1462b89864769c22674": {
"6c9b960bc8d161a1033b011d873ab3fb05d99089c34ae5add5d680f967b45c72": {
"describe": {
"columns": [
{
"name": "guild_id",
"name": "count",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
false
null
],
"parameters": {
"Left": [
"Bpchar",
"Int4",
"Bpchar"
]
}
},
"query": "\n SELECT COUNT(*) FROM emote_logs\n JOIN users on emote_logs.user_id = users.user_id\n WHERE users.discord_id = $1\n "
},
"ab1e3335bfe918a95466bbf9eb57fc1377b0cf48697b4ee84fc85085d8f9fffa": {
"describe": {
"columns": [
{
"name": "count",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
null
],
"parameters": {
"Left": [
"Bpchar"
]
}
},
"query": "\n SELECT COUNT(*) FROM emote_logs\n JOIN guilds ON emote_logs.guild_id = guilds.guild_id\n WHERE guilds.discord_id = $1\n "
},
"b786d51bc35fb8dd99da1c2baa36ef8729e7f7d0581579af503b897b923c8891": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Int4",
"Varchar",
"Timestamptz"
]
}
},
"query": "\n INSERT INTO guilds (discord_id, language, gender, prefix, is_set_flg, insert_tm, update_tm)\n VALUES ($1, $2, $3, $4, false, $5, $5)\n ON CONFLICT (discord_id) DO UPDATE SET update_tm = $5\n RETURNING guild_id\n "
"query": "\n INSERT INTO emotes (xiv_id, command, insert_tm, update_tm)\n VALUES ($1, $2, $3, $3)\n ON CONFLICT (xiv_id) DO UPDATE SET update_tm = $3\n "
},
"c1328d30b8d573760826d30dc340f5b5a0a881df2dda60cdb86f564ca7d2262f": {
"describe": {
"columns": [
{
"name": "count",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
null
],
"parameters": {
"Left": [
"Bpchar"
]
}
},
"query": "\n SELECT COUNT(*) FROM emote_log_tags\n JOIN emote_logs ON emote_log_tags.emote_log_id = emote_logs.emote_log_id\n JOIN users on emote_logs.user_id = users.user_id\n WHERE users.discord_id = $1\n "
},
"c1460d1af5bd0236b8a0324c7b1a19f2b209312c5f5efcb0cf577f19560344c0": {
"describe": {
Expand Down Expand Up @@ -134,6 +244,21 @@
},
"query": "\n SELECT\n discord_id,\n language as \"language: DbLanguage\",\n gender as \"gender: DbGender\",\n is_set_flg,\n insert_tm,\n update_tm\n FROM users\n WHERE discord_id = $1\n "
},
"e22c5da081be62d114de7b0d0e480e8aa1528baf9b3dd8bbd2c59fc26241a5aa": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Int8",
"Int8",
"Int4",
"Timestamptz"
]
}
},
"query": "\n INSERT INTO emote_logs (user_id, guild_id, emote_id, sent_at, insert_tm, update_tm)\n VALUES ($1, $2, $3, $4, $4, $4)\n "
},
"ebc7d6da0f5558decc278a96d6ad6f11bfc095fa9b2213f1978257a7ac298bf1": {
"describe": {
"columns": [
Expand Down Expand Up @@ -190,27 +315,24 @@
},
"query": "\n SELECT\n discord_id,\n language as \"language: DbLanguage\",\n gender as \"gender: DbGender\",\n prefix,\n is_set_flg,\n insert_tm,\n update_tm\n FROM guilds\n WHERE discord_id = $1\n "
},
"f58498a2f4f30a8fe08eab864ed77d2ca22a7486056bd226363c0ed295116f10": {
"fe76b9291b8c604650e17f5063120eeb39ec51e50497d2f1aeb267cfc608f12b": {
"describe": {
"columns": [
{
"name": "user_id",
"name": "count",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
false
null
],
"parameters": {
"Left": [
"Bpchar",
"Int4",
"Int4",
"Timestamptz"
"Bpchar"
]
}
},
"query": "\n INSERT INTO users (discord_id, language, gender, is_set_flg, insert_tm, update_tm)\n VALUES ($1, $2, $3, false, $4, $4)\n ON CONFLICT (discord_id) DO UPDATE SET update_tm = $4\n RETURNING user_id\n "
"query": "\n SELECT COUNT(*) FROM emote_log_tags\n JOIN emote_logs ON emote_log_tags.emote_log_id = emote_logs.emote_log_id\n JOIN guilds on emote_logs.guild_id = guilds.guild_id\n WHERE guilds.discord_id = $1\n "
}
}

0 comments on commit eeed89a

Please sign in to comment.