feat(sqlx): adding the cache sqlx
This commit is contained in:
parent
dbfc5cbf62
commit
281f69115e
5 changed files with 143 additions and 0 deletions
27
.sqlx/query-25f0a10d405cb2f35759bb5eebacea276863f1c5321c2d72b7cae5a009c7bd12.json
generated
Normal file
27
.sqlx/query-25f0a10d405cb2f35759bb5eebacea276863f1c5321c2d72b7cae5a009c7bd12.json
generated
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "UPDATE bots SET presence = $1::bot_presence WHERE id = $2",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": [
|
||||
{
|
||||
"Custom": {
|
||||
"name": "bot_presence",
|
||||
"kind": {
|
||||
"Enum": [
|
||||
"online",
|
||||
"idle",
|
||||
"dnd",
|
||||
"invisible"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Int4"
|
||||
]
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "25f0a10d405cb2f35759bb5eebacea276863f1c5321c2d72b7cae5a009c7bd12"
|
||||
}
|
||||
59
.sqlx/query-2702523871f6edf697d2467a70d0ed4faf9e27109d54f4a594b97116750cd1a7.json
generated
Normal file
59
.sqlx/query-2702523871f6edf697d2467a70d0ed4faf9e27109d54f4a594b97116750cd1a7.json
generated
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "SELECT status, activity_type as \"activity_type: BotActivity\", presence as \"presence: BotPresence\" FROM bots WHERE id = $1",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
"ordinal": 0,
|
||||
"name": "status",
|
||||
"type_info": "Text"
|
||||
},
|
||||
{
|
||||
"ordinal": 1,
|
||||
"name": "activity_type: BotActivity",
|
||||
"type_info": {
|
||||
"Custom": {
|
||||
"name": "bot_activity",
|
||||
"kind": {
|
||||
"Enum": [
|
||||
"Playing",
|
||||
"Streaming",
|
||||
"Listening",
|
||||
"Watching",
|
||||
"Competing"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"ordinal": 2,
|
||||
"name": "presence: BotPresence",
|
||||
"type_info": {
|
||||
"Custom": {
|
||||
"name": "bot_presence",
|
||||
"kind": {
|
||||
"Enum": [
|
||||
"online",
|
||||
"idle",
|
||||
"dnd",
|
||||
"invisible"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"Left": [
|
||||
"Int4"
|
||||
]
|
||||
},
|
||||
"nullable": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"hash": "2702523871f6edf697d2467a70d0ed4faf9e27109d54f4a594b97116750cd1a7"
|
||||
}
|
||||
14
.sqlx/query-36336bfa8eb9820fa1053f3c71b328dc95a26f72cfbd8c54b1154afe90c882f9.json
generated
Normal file
14
.sqlx/query-36336bfa8eb9820fa1053f3c71b328dc95a26f72cfbd8c54b1154afe90c882f9.json
generated
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "INSERT INTO bots (id) VALUES ($1) ON CONFLICT DO NOTHING",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": [
|
||||
"Int4"
|
||||
]
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "36336bfa8eb9820fa1053f3c71b328dc95a26f72cfbd8c54b1154afe90c882f9"
|
||||
}
|
||||
28
.sqlx/query-a76ba51833bda6f3f0702a3f678b1ad48cc87c197b63a4bc7c8523ec3a55ae22.json
generated
Normal file
28
.sqlx/query-a76ba51833bda6f3f0702a3f678b1ad48cc87c197b63a4bc7c8523ec3a55ae22.json
generated
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "UPDATE bots SET activity_type = $1::bot_activity WHERE id = $2",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": [
|
||||
{
|
||||
"Custom": {
|
||||
"name": "bot_activity",
|
||||
"kind": {
|
||||
"Enum": [
|
||||
"Playing",
|
||||
"Streaming",
|
||||
"Listening",
|
||||
"Watching",
|
||||
"Competing"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Int4"
|
||||
]
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "a76ba51833bda6f3f0702a3f678b1ad48cc87c197b63a4bc7c8523ec3a55ae22"
|
||||
}
|
||||
15
.sqlx/query-eb2b669a3d8d4ca1e5814afc986727f1df2fd0a81011cdbebc94ced0ebffc2cb.json
generated
Normal file
15
.sqlx/query-eb2b669a3d8d4ca1e5814afc986727f1df2fd0a81011cdbebc94ced0ebffc2cb.json
generated
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "UPDATE bots SET status = $1 WHERE id = $2",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": [
|
||||
"Text",
|
||||
"Int4"
|
||||
]
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "eb2b669a3d8d4ca1e5814afc986727f1df2fd0a81011cdbebc94ced0ebffc2cb"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue