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-1da0b11f8c3874d241457...

27 lines
950 B
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT COUNT(*) AS \"count!\"\n FROM chat_messages\n WHERE room_id = $1\n AND deletion_source IS DISTINCT FROM $4\n AND status <> $2\n AND (user_id IS NULL OR user_id <> $3)\n AND NOT EXISTS (\n SELECT 1 FROM user_blocks ub\n WHERE ub.blocker_user_id = $3 AND ub.blocked_user_id = user_id\n )\n AND created_at >= NOW() - INTERVAL '90 days'\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count!",
"type_info": "Int8",
"origin": "Expression"
}
],
"parameters": {
"Left": [
"Int8",
"Int2",
"Int8",
"Int2"
]
},
"nullable": [
null
]
},
"hash": "1da0b11f8c3874d241457aea05bd30d4d17e5b7995f702cd839a3fd3b70eea04"
}