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-b2964badc85da9ecd60b1...

44 lines
1.6 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 EXISTS (\n\t\t SELECT 1\n\t\t FROM room_member_kick_cooldowns rmkc\n\t\t WHERE rmkc.room_id = rooms.id\n\t AND rmkc.user_id = $2\n\t AND rmkc.ends_at > CURRENT_TIMESTAMP\n\t ) AS is_target_in_kick_cooldown\n\t 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"
},
{
"ordinal": 2,
"name": "is_target_in_kick_cooldown",
"type_info": "Bool",
"origin": "Expression"
}
],
"parameters": {
"Left": [
"Int8",
"Int8"
]
},
"nullable": [
true,
null,
null
]
},
"hash": "b2964badc85da9ecd60b15d4917898d2dbfd1bb8373d8930af6b4f27e3ce06e1"
}