Skip to main content

max / makenotwork

803 B · 25 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "SELECT COUNT(DISTINCT t.id) AS \"count!\"\n FROM threads t\n JOIN categories c ON c.id = t.category_id\n JOIN communities co ON co.id = c.community_id\n JOIN thread_tags tt ON tt.thread_id = t.id\n JOIN tags tg ON tg.id = tt.tag_id AND tg.slug = $3 AND tg.community_id = co.id\n WHERE co.slug = $1 AND c.slug = $2 AND t.deleted_at IS NULL",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "count!",
9 "type_info": "Int8"
10 }
11 ],
12 "parameters": {
13 "Left": [
14 "Text",
15 "Text",
16 "Text"
17 ]
18 },
19 "nullable": [
20 null
21 ]
22 },
23 "hash": "aa577640ff7b6896e3d1f336f0629c4d5abd8d42f0c4073da12add17bec85939"
24 }
25