Skip to content

Commit

Permalink
Prepare queries
Browse files Browse the repository at this point in the history
  • Loading branch information
reasv committed Mar 30, 2021
1 parent 4d19827 commit 32d4cd3
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions sqlx-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,56 +30,6 @@
]
}
},
"2628c4bc1e057d003cb7af29bd1ef8a0c3ad57ecf099ec79f10f50c73dc75cf7": {
"query": "\n SELECT * FROM thread_backlog\n ORDER BY (page, id) ASC\n LIMIT $1\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "board",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "no",
"type_info": "Int8"
},
{
"ordinal": 3,
"name": "last_modified",
"type_info": "Int8"
},
{
"ordinal": 4,
"name": "replies",
"type_info": "Int8"
},
{
"ordinal": 5,
"name": "page",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
false,
false
]
}
},
"4feadb02427137f3ce2cc930a9afd9cae179d8a2a041c3fa71d7fe0bf890c633": {
"query": "\n INSERT INTO image_backlog (\n board, -- 1\n no, -- 2\n url, -- 3\n thumbnail_url, -- 4\n ext, -- 5\n page, -- 6\n file_sha256, -- 7\n thumbnail_sha256 -- 8\n )\n VALUES\n ($1, $2, $3, $4, $5, $6, $7, $8)\n ON CONFLICT(board, no) DO UPDATE\n SET \n page = $6\n WHERE image_backlog.board = $1 AND image_backlog.no = $2\n RETURNING *;\n ",
"describe": {
Expand Down Expand Up @@ -1411,6 +1361,56 @@
]
}
},
"cf2b2448ef56f31ca9bad60f84192abaaba648e53c1a6372162547385561533d": {
"query": "\n SELECT * FROM thread_backlog\n ORDER BY page DESC, id ASC\n LIMIT $1\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "board",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "no",
"type_info": "Int8"
},
{
"ordinal": 3,
"name": "last_modified",
"type_info": "Int8"
},
{
"ordinal": 4,
"name": "replies",
"type_info": "Int8"
},
{
"ordinal": 5,
"name": "page",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
false,
false
]
}
},
"cff628bba05903d6389150444f13dc8749f2893def8099b28f25fe57890f829d": {
"query": "DELETE FROM image_backlog WHERE id = $1",
"describe": {
Expand Down Expand Up @@ -1790,8 +1790,8 @@
]
}
},
"e3fcb30bd0439e028e9b9433da0d2c577ca1615fa822d14fb5618a0bcd68e0db": {
"query": "\n SELECT * FROM image_backlog\n ORDER BY (page, id) ASC\n LIMIT $1\n ",
"f88cd0fdeb5a2544a940992d55b84960a486f3b9e443c8eb6b609f36e731fc0a": {
"query": "\n SELECT * FROM image_backlog\n ORDER BY page DESC, id ASC\n LIMIT $1\n ",
"describe": {
"columns": [
{
Expand Down

0 comments on commit 32d4cd3

Please sign in to comment.