chore: update sqlx queries
version: ugg
This commit is contained in:
parent
396f9afcc9
commit
7891157c53
4 changed files with 52 additions and 2 deletions
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"db_name": "SQLite",
|
||||
"query": "SELECT\n id,\n cache_name,\n downloads >= max_downloads AS \"out_of_downloads: bool\",\n julianday('now') - julianday(uploaded) > 5 AS \"too_old: bool\"\nFROM records\nWHERE downloads >= max_downloads OR julianday('now') - julianday(uploaded) > 5;\n",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"ordinal": 0,
|
||||
"type_info": "Integer"
|
||||
},
|
||||
{
|
||||
"name": "cache_name",
|
||||
"ordinal": 1,
|
||||
"type_info": "Text"
|
||||
},
|
||||
{
|
||||
"name": "out_of_downloads: bool",
|
||||
"ordinal": 2,
|
||||
"type_info": "Integer"
|
||||
},
|
||||
{
|
||||
"name": "too_old: bool",
|
||||
"ordinal": 3,
|
||||
"type_info": "Integer"
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"Right": 0
|
||||
},
|
||||
"nullable": [
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"hash": "809dc67b2a48f747107e8afde9aafb5f4f8ce1c2956e59b65a06aeddcb53353a"
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"db_name": "SQLite",
|
||||
"query": "DELETE FROM records\nWHERE id = ?;\n",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Right": 1
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "916ac1a076cbf0d0256d2fb2b361f646081b87d5e7ff7909ab6dd32036d80a86"
|
||||
}
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1335,7 +1335,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "nyazoom"
|
||||
version = "0.2.4"
|
||||
version = "0.2.3"
|
||||
dependencies = [
|
||||
"async-bincode",
|
||||
"async-trait",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "nyazoom"
|
||||
version = "0.2.4"
|
||||
version = "0.2.3"
|
||||
edition = "2021"
|
||||
authors = ["Zynh Ludwig <Zynh0722@gmail.com>"]
|
||||
readme = "README.md"
|
||||
|
|
Loading…
Reference in a new issue