2021-05-15 15:27:40 +00:00
|
|
|
{
|
|
|
|
"db": "SQLite",
|
2021-05-16 14:17:03 +00:00
|
|
|
"19d89370cac05c1bc4de0eb3508712da9ca133b1cf9445b5407d238f89c3ab0c": {
|
|
|
|
"query": "SELECT device_id FROM bot_state limit 1",
|
|
|
|
"describe": {
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "device_id",
|
|
|
|
"ordinal": 0,
|
|
|
|
"type_info": "Text"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": {
|
|
|
|
"Right": 0
|
|
|
|
},
|
|
|
|
"nullable": [
|
|
|
|
false
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2021-05-25 15:05:35 +00:00
|
|
|
"26903a92a7de34df3e227fe599e41ae1bb61612eb80befad398383af36df0ce4": {
|
|
|
|
"query": "DELETE FROM accounts WHERE user_id = ?",
|
|
|
|
"describe": {
|
|
|
|
"columns": [],
|
|
|
|
"parameters": {
|
|
|
|
"Right": 1
|
|
|
|
},
|
|
|
|
"nullable": []
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"2d4a32735da04509c2e3c4f99bef79ef699964f58ae332b0611f3de088596e1e": {
|
|
|
|
"query": "INSERT INTO accounts (user_id, password, account_status)\n VALUES (?, ?, ?)\n ON CONFLICT(user_id) DO\n UPDATE SET password = ?, account_status = ?",
|
|
|
|
"describe": {
|
|
|
|
"columns": [],
|
|
|
|
"parameters": {
|
|
|
|
"Right": 5
|
|
|
|
},
|
|
|
|
"nullable": []
|
|
|
|
}
|
|
|
|
},
|
2021-05-18 14:27:15 +00:00
|
|
|
"59313c67900a1a9399389720b522e572f181ae503559cd2b49d6305acb9e2207": {
|
|
|
|
"query": "SELECT key, value as \"value: i32\" FROM user_variables\n WHERE room_id = ? AND user_id = ?",
|
|
|
|
"describe": {
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"ordinal": 0,
|
|
|
|
"type_info": "Text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "value: i32",
|
|
|
|
"ordinal": 1,
|
|
|
|
"type_info": "Int64"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": {
|
|
|
|
"Right": 2
|
|
|
|
},
|
|
|
|
"nullable": [
|
|
|
|
false,
|
|
|
|
false
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2021-05-15 15:27:40 +00:00
|
|
|
"636b1b868eaf04cd234fbf17747d94a66e81f7bc1b060ba14151dbfaf40eeefc": {
|
|
|
|
"query": "SELECT value as \"value: i32\" FROM user_variables\n WHERE user_id = ? AND room_id = ? AND key = ?",
|
|
|
|
"describe": {
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "value: i32",
|
|
|
|
"ordinal": 0,
|
|
|
|
"type_info": "Int64"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": {
|
|
|
|
"Right": 3
|
|
|
|
},
|
|
|
|
"nullable": [
|
|
|
|
false
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2021-05-25 15:05:35 +00:00
|
|
|
"667b26343ce44e1c48ac689ce887ef6a0558a2ce199f7372a5dce58672499c5a": {
|
|
|
|
"query": "INSERT INTO user_state (user_id, active_room)\n VALUES (?, ?)\n ON CONFLICT(user_id) DO\n UPDATE SET active_room = ?",
|
2021-05-22 22:53:01 +00:00
|
|
|
"describe": {
|
2021-05-25 15:05:35 +00:00
|
|
|
"columns": [],
|
2021-05-22 22:53:01 +00:00
|
|
|
"parameters": {
|
2021-05-25 15:05:35 +00:00
|
|
|
"Right": 3
|
2021-05-22 22:53:01 +00:00
|
|
|
},
|
2021-05-25 15:05:35 +00:00
|
|
|
"nullable": []
|
2021-05-22 22:53:01 +00:00
|
|
|
}
|
|
|
|
},
|
2021-05-18 14:27:15 +00:00
|
|
|
"711d222911c1258365a6a0de1fe00eeec4686fd3589e976e225ad599e7cfc75d": {
|
|
|
|
"query": "SELECT count(*) as \"count: i32\" FROM user_variables\n WHERE room_id = ? and user_id = ?",
|
2021-05-16 14:17:03 +00:00
|
|
|
"describe": {
|
|
|
|
"columns": [
|
|
|
|
{
|
2021-05-18 14:27:15 +00:00
|
|
|
"name": "count: i32",
|
2021-05-16 14:17:03 +00:00
|
|
|
"ordinal": 0,
|
2021-05-18 14:27:15 +00:00
|
|
|
"type_info": "Int"
|
2021-05-16 14:17:03 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": {
|
2021-05-18 14:27:15 +00:00
|
|
|
"Right": 2
|
2021-05-16 14:17:03 +00:00
|
|
|
},
|
|
|
|
"nullable": [
|
|
|
|
false
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2021-05-25 15:05:35 +00:00
|
|
|
"bba0fc255e7c30d1d2d9468c68ba38db6e8a13be035aa1152933ba9247b14f8c": {
|
|
|
|
"query": "SELECT event_id FROM room_events\n WHERE room_id = ? AND event_id = ?",
|
2021-05-19 21:36:16 +00:00
|
|
|
"describe": {
|
|
|
|
"columns": [
|
|
|
|
{
|
2021-05-25 15:05:35 +00:00
|
|
|
"name": "event_id",
|
2021-05-19 21:36:16 +00:00
|
|
|
"ordinal": 0,
|
|
|
|
"type_info": "Text"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": {
|
2021-05-25 15:05:35 +00:00
|
|
|
"Right": 2
|
2021-05-19 21:36:16 +00:00
|
|
|
},
|
|
|
|
"nullable": [
|
|
|
|
false
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2021-05-25 15:05:35 +00:00
|
|
|
"dce9bb45cf954054a920ee8b53852c6d562e3588d76bbfaa1433d8309d4e4921": {
|
|
|
|
"query": "DELETE FROM user_state WHERE user_id = ?",
|
2021-05-16 14:17:03 +00:00
|
|
|
"describe": {
|
2021-05-25 15:05:35 +00:00
|
|
|
"columns": [],
|
2021-05-16 14:17:03 +00:00
|
|
|
"parameters": {
|
2021-05-18 14:27:15 +00:00
|
|
|
"Right": 1
|
2021-05-16 14:17:03 +00:00
|
|
|
},
|
2021-05-25 15:05:35 +00:00
|
|
|
"nullable": []
|
2021-05-15 15:27:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|