Skip to main content

max / makenotwork

2.3 KB · 83 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "SELECT p.id, p.author_id,\n COALESCE(u.display_name, u.username) AS \"author_name!\",\n u.username AS author_username,\n p.body_html,\n p.created_at AS \"created_at: chrono::DateTime<chrono::Utc>\",\n p.edited_at AS \"edited_at: chrono::DateTime<chrono::Utc>\",\n p.deleted_at AS \"deleted_at: chrono::DateTime<chrono::Utc>\",\n p.removed_at AS \"removed_at: chrono::DateTime<chrono::Utc>\",\n u.is_fan_plus AS author_is_fan_plus,\n u.signature_html AS author_signature_html\n FROM posts p\n JOIN users u ON u.mnw_account_id = p.author_id\n WHERE p.thread_id = $1\n ORDER BY p.created_at",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "id",
9 "type_info": "Uuid"
10 },
11 {
12 "ordinal": 1,
13 "name": "author_id",
14 "type_info": "Uuid"
15 },
16 {
17 "ordinal": 2,
18 "name": "author_name!",
19 "type_info": "Text"
20 },
21 {
22 "ordinal": 3,
23 "name": "author_username",
24 "type_info": "Text"
25 },
26 {
27 "ordinal": 4,
28 "name": "body_html",
29 "type_info": "Text"
30 },
31 {
32 "ordinal": 5,
33 "name": "created_at: chrono::DateTime<chrono::Utc>",
34 "type_info": "Timestamptz"
35 },
36 {
37 "ordinal": 6,
38 "name": "edited_at: chrono::DateTime<chrono::Utc>",
39 "type_info": "Timestamptz"
40 },
41 {
42 "ordinal": 7,
43 "name": "deleted_at: chrono::DateTime<chrono::Utc>",
44 "type_info": "Timestamptz"
45 },
46 {
47 "ordinal": 8,
48 "name": "removed_at: chrono::DateTime<chrono::Utc>",
49 "type_info": "Timestamptz"
50 },
51 {
52 "ordinal": 9,
53 "name": "author_is_fan_plus",
54 "type_info": "Bool"
55 },
56 {
57 "ordinal": 10,
58 "name": "author_signature_html",
59 "type_info": "Text"
60 }
61 ],
62 "parameters": {
63 "Left": [
64 "Uuid"
65 ]
66 },
67 "nullable": [
68 false,
69 false,
70 null,
71 false,
72 false,
73 false,
74 true,
75 true,
76 true,
77 false,
78 true
79 ]
80 },
81 "hash": "a473a20653da5bccd87eec0b68b05d3fe8f7698987b900538737fcea76f35b52"
82 }
83