This repository has been archived by the owner on Aug 15, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
sqlx-data.json
180 lines (180 loc) · 4.34 KB
/
sqlx-data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
{
"db": "PostgreSQL",
"1039a6d3d732a86b9b3b2e19e6c8e3c857125d1c4cf916ac32789bfd0176b6b5": {
"describe": {
"columns": [
{
"name": "result",
"ordinal": 0,
"type_info": "Jsonb"
}
],
"nullable": [
true
],
"parameters": {
"Left": [
"Int4",
"Int8",
"Int8"
]
}
},
"query": "\n\t\tSELECT result FROM email_results\n\t\tWHERE job_id = $1\n\t\tORDER BY id\n\t\tLIMIT $2 OFFSET $3\n\t\t"
},
"13862fe23ea729215fb1cfee3aadc14dfa9373dc8137c4f1da199e3ae66efd50": {
"describe": {
"columns": [
{
"name": "total_processed",
"ordinal": 0,
"type_info": "Int8"
},
{
"name": "safe_count",
"ordinal": 1,
"type_info": "Int8"
},
{
"name": "risky_count",
"ordinal": 2,
"type_info": "Int8"
},
{
"name": "invalid_count",
"ordinal": 3,
"type_info": "Int8"
},
{
"name": "unknown_count",
"ordinal": 4,
"type_info": "Int8"
},
{
"name": "finished_at",
"ordinal": 5,
"type_info": "Timestamptz"
}
],
"nullable": [
null,
null,
null,
null,
null,
null
],
"parameters": {
"Left": [
"Int4"
]
}
},
"query": "\n\t\tSELECT\n\t\t\tCOUNT(*) as total_processed,\n\t\t\tCOUNT(CASE WHEN result ->> 'is_reachable' LIKE 'safe' THEN 1 END) as safe_count,\n\t\t\tCOUNT(CASE WHEN result ->> 'is_reachable' LIKE 'risky' THEN 1 END) as risky_count,\n\t\t\tCOUNT(CASE WHEN result ->> 'is_reachable' LIKE 'invalid' THEN 1 END) as invalid_count,\n\t\t\tCOUNT(CASE WHEN result ->> 'is_reachable' LIKE 'unknown' THEN 1 END) as unknown_count,\n\t\t\t(SELECT created_at FROM email_results WHERE job_id = $1 ORDER BY created_at DESC LIMIT 1) as finished_at\n\t\tFROM email_results\n\t\tWHERE job_id = $1\n\t\t"
},
"1a964da4784832e5f631f2c2e727382532c86c7e66e46254d72ef0af03021975": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Int4",
"Jsonb"
]
}
},
"query": "\n\t\t\tINSERT INTO email_results (job_id, result)\n\t\t\tVALUES ($1, $2)\n\t\t\t"
},
"47af0157fa867e147e49d80b121b1881df93a6619434a1fd1fc9a58315b4044b": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Int4"
},
{
"name": "created_at",
"ordinal": 1,
"type_info": "Timestamptz"
},
{
"name": "total_records",
"ordinal": 2,
"type_info": "Int4"
}
],
"nullable": [
false,
false,
false
],
"parameters": {
"Left": [
"Int4"
]
}
},
"query": "\n\t\tSELECT id, created_at, total_records FROM bulk_jobs\n\t\tWHERE id = $1\n\t\tLIMIT 1\n\t\t"
},
"981f650b6c663feeae8a93e7ecf86326e7a5e6d5c8fd03c03565d86982d0381a": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Int4"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Int4"
]
}
},
"query": "\n\t\tINSERT INTO bulk_jobs (total_records)\n\t\tVALUES ($1)\n\t\tRETURNING id\n\t\t"
},
"ac5e197ca20a1393e4ea45248d5e702c0edbbf57624f2bb416f0fd0401a44dcf": {
"describe": {
"columns": [
{
"name": "total_records",
"ordinal": 0,
"type_info": "Int4"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Int4"
]
}
},
"query": "SELECT total_records FROM bulk_jobs WHERE id = $1;"
},
"f58d4d05a6ab4c1ffda39396df4c403f7588266ae8d954985fc1eda9751febcc": {
"describe": {
"columns": [
{
"name": "count",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
null
],
"parameters": {
"Left": [
"Int4"
]
}
},
"query": "SELECT COUNT(*) FROM email_results WHERE job_id = $1;"
}
}