-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqlx-data.json
224 lines (224 loc) · 5.23 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{
"db": "PostgreSQL",
"0edd1ed4393583a28aa6c075dfd0282fcb69bc0496b111d5cee11e17dc797bce": {
"query": "insert into sounds(guild_id, name, source, uploader_id, length) values($1, $2, $3, $4, $5)\n returning id",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Int8",
"Text",
"Text",
"Int8",
"Int4"
]
},
"nullable": [
false
]
}
},
"11a173e6b22875ec5f7c27b69280f1f2e16235c344f860a4aa1254123b3c184c": {
"query": "update sounds set name = $1 where guild_id = $2 and name = $3 and deleted_at is null",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text",
"Int8",
"Text"
]
},
"nullable": []
}
},
"26fdc1c90013189507396cda57f5df86a2eb9d7871c944b837bcebf95f44c923": {
"query": "insert into playbacks(sound_id, player_id) select id, $1 from sounds where guild_id = $2 and name = $3 and deleted_at is null\n returning playbacks.id",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Int8",
"Int8",
"Text"
]
},
"nullable": [
false
]
}
},
"46b0f5f1978a3eb4720a77419029de778b0a29058b6707a02c52aba3563d7370": {
"query": "select name from sounds where guild_id = $1 and deleted_at is null order by name",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "name",
"type_info": "Text"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false
]
}
},
"64c584a34fc50ed46333418021cae73317f5084b6c7d6b7be146c8d1d34737d6": {
"query": "select playbacks.*, sounds.name from playbacks inner join sounds on sounds.id = playbacks.sound_id where sounds.guild_id = $1 and ($2::text is null or sounds.name = $2) order by playbacks.created_at desc",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int4"
},
{
"ordinal": 1,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 2,
"name": "updated_at",
"type_info": "Timestamptz"
},
{
"ordinal": 3,
"name": "deleted_at",
"type_info": "Timestamptz"
},
{
"ordinal": 4,
"name": "stopped_at",
"type_info": "Timestamptz"
},
{
"ordinal": 5,
"name": "sound_id",
"type_info": "Int4"
},
{
"ordinal": 6,
"name": "player_id",
"type_info": "Int8"
},
{
"ordinal": 7,
"name": "stopper_id",
"type_info": "Int8"
},
{
"ordinal": 8,
"name": "name",
"type_info": "Text"
}
],
"parameters": {
"Left": [
"Int8",
"Text"
]
},
"nullable": [
false,
false,
false,
true,
true,
false,
false,
true,
false
]
}
},
"803cf2017b1c299df0f9f2e7437da9aac9ea52154a1ff6b3e3ee4cfbc2a2be46": {
"query": "update sounds set deleted_at = current_timestamp where guild_id = $1 and name = $2 and deleted_at is null",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8",
"Text"
]
},
"nullable": []
}
},
"8500d5e7a7e9bfbcc68f7c6ca0ca362f825247342a2bb44961166c88ca4b2f52": {
"query": "select name from sounds where guild_id = $1 and starts_with(name, $2) and deleted_at is null order by name limit 25",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "name",
"type_info": "Text"
}
],
"parameters": {
"Left": [
"Int8",
"Text"
]
},
"nullable": [
false
]
}
},
"894f65cbabf727418119bf8a32434b88ae0d37b8212aab214eeda5758fd88ecd": {
"query": "update playbacks set stopper_id = $1, stopped_at = current_timestamp from (select unnest($2::int[]) as id) as stopped where playbacks.id = stopped.id",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8",
"Int4Array"
]
},
"nullable": []
}
},
"b102da4b5b3abf341568da23dff60bd7f7d3d70f0f0575958f8b32ba5072c2b9": {
"query": "update sounds set length = $1 where id = $2",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int4",
"Int4"
]
},
"nullable": []
}
},
"c137a585b076f53d1acdd2583fe487db10b5f26c4bfef4f4a3f49399b7c2a592": {
"query": "insert into guilds values($1) on conflict do nothing",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
}
}
}