Skip to main content

max / makenotwork

597 B · 24 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "SELECT DISTINCT p.thread_id\n FROM post_mentions pm\n JOIN posts p ON p.id = pm.post_id\n WHERE pm.mentioned_user_id = $1\n AND p.thread_id = ANY($2)\n AND p.is_active",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "thread_id",
9 "type_info": "Uuid"
10 }
11 ],
12 "parameters": {
13 "Left": [
14 "Uuid",
15 "UuidArray"
16 ]
17 },
18 "nullable": [
19 false
20 ]
21 },
22 "hash": "418e4e5f815910b3ce001e158d6c19aae819d459fb59371c589652df410aef49"
23 }
24