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.
22 lines
1.1 KiB
JSON
22 lines
1.1 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\n SELECT COUNT(*) AS \"count!\"\n FROM media m\n WHERE 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 OR EXISTS (\n SELECT 1\n FROM playlists p\n WHERE p.id = m.playlist_id\n AND p.deleted_at IS NULL\n AND (p.creator_id IS NULL OR EXISTS (\n SELECT 1 FROM users u WHERE u.id = p.creator_id AND u.deleted_at IS NULL\n ))\n ))\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "count!",
|
|
"type_info": "Int8",
|
|
"origin": "Expression"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
},
|
|
"nullable": [
|
|
null
|
|
]
|
|
},
|
|
"hash": "c4585eab1b8b1bed5d9e02cfd61ca0e749ac8baa5337e930e772c13be1f6d999"
|
|
}
|