Skip to main content

max / makenotwork

1.5 KB · 59 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "SELECT f.id, f.post_id, f.author_id,\n COALESCE(u.display_name, u.username) AS \"author_name!\",\n u.username AS author_username,\n f.body_html,\n f.created_at AS \"created_at: chrono::DateTime<chrono::Utc>\"\n FROM post_footnotes f\n JOIN users u ON u.mnw_account_id = f.author_id\n WHERE f.post_id = ANY($1)\n ORDER BY f.created_at",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "id",
9 "type_info": "Uuid"
10 },
11 {
12 "ordinal": 1,
13 "name": "post_id",
14 "type_info": "Uuid"
15 },
16 {
17 "ordinal": 2,
18 "name": "author_id",
19 "type_info": "Uuid"
20 },
21 {
22 "ordinal": 3,
23 "name": "author_name!",
24 "type_info": "Text"
25 },
26 {
27 "ordinal": 4,
28 "name": "author_username",
29 "type_info": "Text"
30 },
31 {
32 "ordinal": 5,
33 "name": "body_html",
34 "type_info": "Text"
35 },
36 {
37 "ordinal": 6,
38 "name": "created_at: chrono::DateTime<chrono::Utc>",
39 "type_info": "Timestamptz"
40 }
41 ],
42 "parameters": {
43 "Left": [
44 "UuidArray"
45 ]
46 },
47 "nullable": [
48 false,
49 false,
50 false,
51 null,
52 false,
53 false,
54 false
55 ]
56 },
57 "hash": "0830906e69639e409caf641739ac5ccc16662f9800fdccea7c1c0eeef5193f9e"
58 }
59