mirror of https://github.com/synctv-org/synctv
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.
36 lines
1.1 KiB
JSON
36 lines
1.1 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\n SELECT room_id as \"room_id: RoomId\", COUNT(*)::int as \"member_count!\"\n FROM room_members rm\n WHERE rm.room_id = ANY($1)\n \n AND NOT EXISTS (\n SELECT 1 FROM room_member_kick_cooldowns rmkc\n WHERE rmkc.room_id = rm.room_id\n AND rmkc.user_id = rm.user_id\n AND rmkc.ends_at > CURRENT_TIMESTAMP\n )\n GROUP BY room_id\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "room_id: RoomId",
|
|
"type_info": "Int8",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "room_members",
|
|
"name": "room_id"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "member_count!",
|
|
"type_info": "Int4",
|
|
"origin": "Expression"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Int8Array"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
null
|
|
]
|
|
},
|
|
"hash": "5519bb0051c7ffb7d73ba763bf0587366660c9e5d9f45237ea4702c19f496334"
|
|
}
|