eorzea-votes/server/.sqlx/query-89816867273ca859cb854...

61 lines
1.5 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n select\n q.*,\n current_timestamp <= q.publish_date + interval '1 day' and current_timestamp > q.publish_date as \"active!\",\n (select answer from responses r where r.question_id = q.id and r.user_id = $1) as response\n from questions q\n where q.publish_date <= current_timestamp\n order by q.publish_date desc\n limit $2::bigint + 2 offset $3::bigint * $2::bigint\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "publish_date",
"type_info": "Timestamptz"
},
{
"ordinal": 2,
"name": "question_text",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "answers",
"type_info": "TextArray"
},
{
"ordinal": 4,
"name": "suggester",
"type_info": "Text"
},
{
"ordinal": 5,
"name": "active!",
"type_info": "Bool"
},
{
"ordinal": 6,
"name": "response",
"type_info": "Int2"
}
],
"parameters": {
"Left": [
"Uuid",
"Int8",
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
true,
null,
null
]
},
"hash": "89816867273ca859cb8544774cdfe506b03f31b2c0b895eec215921438640e97"
}