You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/.sqlx/query-8d055da1ebbc806a63cb5...

36 lines
1.1 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT closed_at,\n EXISTS (\n SELECT 1\n FROM room_bans rb\n WHERE rb.room_id = rooms.id\n AND rb.revoked_at IS NULL\n AND (rb.ends_at IS NULL OR rb.ends_at > CURRENT_TIMESTAMP)\n ) AS is_banned\n FROM rooms\n WHERE id = $1\n AND deleted_at IS NULL\n FOR UPDATE\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "closed_at",
"type_info": "Timestamptz",
"origin": {
"Table": {
"table": "rooms",
"name": "closed_at"
}
}
},
{
"ordinal": 1,
"name": "is_banned",
"type_info": "Bool",
"origin": "Expression"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
true,
null
]
},
"hash": "8d055da1ebbc806a63cb5af96d2864c8a8301f15cb036175a4675ba37a62740e"
}