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-0a31c7b8361c0e992d3b7...

24 lines
852 B
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT COUNT(*) AS \"count!\"\n FROM media m\n WHERE m.room_id = $1\n AND m.deleted_at IS NULL\n AND EXISTS (SELECT 1 FROM rooms r WHERE r.id = m.room_id AND r.deleted_at IS NULL)\n AND (m.creator_id IS NULL OR EXISTS (\n SELECT 1 FROM users u WHERE u.id = m.creator_id AND u.deleted_at IS NULL\n ))\n AND m.playlist_id IS NULL\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count!",
"type_info": "Int8",
"origin": "Expression"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
null
]
},
"hash": "0a31c7b8361c0e992d3b752a8052f7a9ce288043ca9d68520e8668822506d423"
}