Add SQLx offline query files

This commit is contained in:
Aadi Desai 2023-09-23 23:01:36 +01:00
parent 5b20f1318f
commit 99a930c49a
Signed by: supleed2
SSH key fingerprint: SHA256:CkbNRs0yVzXEiUp2zd0PSxsfRUMFF9bLlKXtE1xEbKM
22 changed files with 642 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "delete from pending",
"describe": {
"columns": [],
"parameters": {
"Left": []
},
"nullable": []
},
"hash": "185b353a2ab187c7b7a8cabaf541e9acee3760250e1ab807e241f17ad253cae9"
}

View file

@ -0,0 +1,34 @@
{
"db_name": "PostgreSQL",
"query": "select * from pending where discord_id=$1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "discord_id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "shortcode",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "realname",
"type_info": "Text"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false
]
},
"hash": "29e5c3aa576e804e9aeb29f707eda28a70ba3c6c630b29451e7030842591fc5b"
}

View file

@ -0,0 +1,46 @@
{
"db_name": "PostgreSQL",
"query": "select * from members where discord_id=$1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "discord_id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "shortcode",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "nickname",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "realname",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "fresher",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
false
]
},
"hash": "3b5f8a3a55705a61f79428359d4cff67aa9e7dea25c3d4f381e38151b8f078fe"
}

View file

@ -0,0 +1,20 @@
{
"db_name": "PostgreSQL",
"query": "select count(*) as \"i64!\" from pending",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "i64!",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "452905f611b1e2ab2f5211021a792f9c246ccd4176f3445252288a5a301a99a7"
}

View file

@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "delete from manual where discord_id=$1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "506b557edcffc8d10ed6f39dfde3908bfea14fc36d055311577308e54e953bee"
}

View file

@ -0,0 +1,32 @@
{
"db_name": "PostgreSQL",
"query": "select * from pending",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "discord_id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "shortcode",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "realname",
"type_info": "Text"
}
],
"parameters": {
"Left": []
},
"nullable": [
false,
false,
false
]
},
"hash": "5103448285fcc839f2fd049496e0a627e444361a3d0967f5ef8a4d33d57fa1da"
}

View file

@ -0,0 +1,44 @@
{
"db_name": "PostgreSQL",
"query": "select * from members",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "discord_id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "shortcode",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "nickname",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "realname",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "fresher",
"type_info": "Bool"
}
],
"parameters": {
"Left": []
},
"nullable": [
false,
false,
false,
false,
false
]
},
"hash": "514d244ce160e919502188e7f35e3c6b7043b9d8f5a2f181170ea2da17e4dfc9"
}

View file

@ -0,0 +1,16 @@
{
"db_name": "PostgreSQL",
"query": "insert into pending values ($1, $2, $3)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8",
"Varchar",
"Text"
]
},
"nullable": []
},
"hash": "531a8e0382020c55a09cc57719cbe83919a903d62fb26e6e8619893c709faa2e"
}

View file

@ -0,0 +1,46 @@
{
"db_name": "PostgreSQL",
"query": "delete from manual where discord_id=$1 returning *",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "discord_id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "shortcode",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "nickname",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "realname",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "fresher",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
false
]
},
"hash": "560961426f3fb5eb6a020f7d4dff7015fdbe80647bb9d17ef71e7846177fd698"
}

View file

@ -0,0 +1,46 @@
{
"db_name": "PostgreSQL",
"query": "select * from members where realname=$1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "discord_id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "shortcode",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "nickname",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "realname",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "fresher",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false
]
},
"hash": "56f54bfdc63d7c09add2bb4dec1e6a4544a684611755bcf2fa9424702ecd11cf"
}

View file

@ -0,0 +1,34 @@
{
"db_name": "PostgreSQL",
"query": "delete from pending where discord_id=$1 returning *",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "discord_id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "shortcode",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "realname",
"type_info": "Text"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false
]
},
"hash": "7265c99235c9deff752d1a21aa38f8b33148b3e252924370a66e799b2aa4b23b"
}

View file

@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "delete from members where discord_id=$1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "78ef4944c36a5121b4041c51a369f99c6848ace8177e5f6fa2c921fd8df50c80"
}

View file

@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "delete from pending where discord_id=$1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "7fdb5e74d26ac02fb8a027e542fcf7d24ade076f939ebaefbb502a802ef68e01"
}

View file

@ -0,0 +1,46 @@
{
"db_name": "PostgreSQL",
"query": "select * from members where nickname=$1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "discord_id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "shortcode",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "nickname",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "realname",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "fresher",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false
]
},
"hash": "87fdce1d94c71a23196d11d87fbc748cb4c9ef59333f546da68b52322bd104c2"
}

View file

@ -0,0 +1,44 @@
{
"db_name": "PostgreSQL",
"query": "select * from manual",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "discord_id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "shortcode",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "nickname",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "realname",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "fresher",
"type_info": "Bool"
}
],
"parameters": {
"Left": []
},
"nullable": [
false,
false,
false,
false,
false
]
},
"hash": "8ccd348dc2d95d9e5f0997cfe9aac6965b351fe8668eb00423f86c957e81fa70"
}

View file

@ -0,0 +1,18 @@
{
"db_name": "PostgreSQL",
"query": "insert into manual values ($1,$2,$3,$4,$5)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8",
"Varchar",
"Text",
"Text",
"Bool"
]
},
"nullable": []
},
"hash": "9a3fe852e141be35b521fb790e54e3c690fbf9a76ce4840ec479d19597bc41fe"
}

View file

@ -0,0 +1,20 @@
{
"db_name": "PostgreSQL",
"query": "select count(*) as \"i64!\" from members",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "i64!",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "b2eb28ae45dbd52f32c437b6f8a99d993c838afa170e67df23e4413bcc27ce92"
}

View file

@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "delete from manual",
"describe": {
"columns": [],
"parameters": {
"Left": []
},
"nullable": []
},
"hash": "bc57cdf4b9c32e56068c1659e3b677a9e563557008c42b798e5afd0686c0acd2"
}

View file

@ -0,0 +1,46 @@
{
"db_name": "PostgreSQL",
"query": "select * from members where shortcode=$1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "discord_id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "shortcode",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "nickname",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "realname",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "fresher",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false
]
},
"hash": "bf9ceffdd9058b787a2c3571704eaa81743040ed74f96e1f9c085f2fc6e6cb44"
}

View file

@ -0,0 +1,46 @@
{
"db_name": "PostgreSQL",
"query": "select * from manual where discord_id=$1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "discord_id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "shortcode",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "nickname",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "realname",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "fresher",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
false
]
},
"hash": "cd97b0f0c6a420a6322d16be4a0b45a917320dfec496ffbbf8f512faae13265b"
}

View file

@ -0,0 +1,18 @@
{
"db_name": "PostgreSQL",
"query": "insert into members values ($1, $2, $3, $4, $5)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8",
"Varchar",
"Text",
"Text",
"Bool"
]
},
"nullable": []
},
"hash": "f121933f1933984739f64ba50cef1dee3d4d3fe92fde8970d4c8a21cbffb6efd"
}

View file

@ -0,0 +1,20 @@
{
"db_name": "PostgreSQL",
"query": "select count(*) as \"i64!\" from manual",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "i64!",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "f48b8c7f9671622b8b2de938cf5f66543b940ef16b165f76ab2e7582bdcb4fc2"
}