29 lines
798 B
JSON
29 lines
798 B
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\n select\n current_timestamp <= q.publish_date + interval '1 day' and current_timestamp > q.publish_date as \"active!\",\n exists(select 1 from responses r where r.question_id = q.id and r.user_id = $1) as \"voted!\"\n from questions q\n where q.id = $1\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "active!",
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "voted!",
|
|
"type_info": "Bool"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
},
|
|
"nullable": [
|
|
null,
|
|
null
|
|
]
|
|
},
|
|
"hash": "cc0cc9c85602ac3b0b658891f06ea753d28255fa70e1a01ece90b12cb3bd4676"
|
|
}
|