forked from vapor/fluent-postgres-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 5d9b4ec
Custom JSON Coder for Postgres Coders (vapor#129)
* Changed dependencies to Skelpo forks
* Added .encoder and .decoder properties to FluentPostgresDatabase
* Replaced PostgresRow:DatabaseRow with .databaseRow(using:) methods
* Pass custom PostgresData<Coder> instances as properties of _FluentPostgresDatabase
* Made PostgresRow.databaseRow(using:) method internal
* Created FluentPostgresDriverTests.testCustomJSON test case
* Replaced uses of PostgresRow.sqlRow with .sql
* Link to vapor/postgres-kit instead of Skelpo fork
* Fixed parameter name for PostgreDataDecoder parameter in .sql call1 parent e348183 commit 5d9b4ec
File tree
4 files changed
+94
-14
lines changed- Sources/FluentPostgresDriver
- Tests/FluentPostgresDriverTests
4 files changed
+94
-14
lines changedLines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | + | ||
7 | + | ||
8 | + | ||
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | - | ||
20 | - | ||
22 | + | ||
23 | + | ||
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | - | ||
35 | + | ||
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | - | ||
45 | + | ||
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | - | ||
59 | + | ||
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | - | ||
69 | + | ||
70 | + | ||
71 | + | ||
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | - | ||
2 | - | ||
3 | - | ||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
4 | 17 | | |
5 | 18 | | |
6 | - | ||
19 | + | ||
7 | 20 | | |
8 | 21 | | |
9 | 22 | | |
10 | 23 | | |
11 | - | ||
24 | + | ||
12 | 25 | | |
13 | 26 | | |
Lines changed: 65 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | + | ||
234 | + | ||
235 | + | ||
236 | + | ||
237 | + | ||
238 | + | ||
239 | + | ||
240 | + | ||
241 | + | ||
242 | + | ||
243 | + | ||
244 | + | ||
245 | + | ||
246 | + | ||
247 | + | ||
248 | + | ||
249 | + | ||
250 | + | ||
251 | + | ||
252 | + | ||
253 | + | ||
254 | + | ||
255 | + | ||
256 | + | ||
257 | + | ||
258 | + | ||
259 | + | ||
260 | + | ||
261 | + | ||
262 | + | ||
263 | + | ||
264 | + | ||
265 | + | ||
266 | + | ||
267 | + | ||
268 | + | ||
269 | + | ||
270 | + | ||
271 | + | ||
272 | + | ||
273 | + | ||
274 | + | ||
275 | + | ||
276 | + | ||
277 | + | ||
278 | + | ||
233 | 279 | | |
234 | 280 | | |
235 | 281 | | |
| |||
242 | 288 | | |
243 | 289 | | |
244 | 290 | | |
245 | - | ||
246 | - | ||
291 | + | ||
292 | + | ||
293 | + | ||
294 | + | ||
295 | + | ||
296 | + | ||
247 | 297 | | |
248 | 298 | | |
249 | 299 | | |
250 | 300 | | |
251 | 301 | | |
252 | 302 | | |
303 | + | ||
304 | + | ||
305 | + | ||
306 | + | ||
307 | + | ||
308 | + | ||
309 | + | ||
310 | + | ||
311 | + | ||
312 | + | ||
313 | + | ||
314 | + | ||
253 | 315 | | |
254 | 316 | | |
255 | - | ||
317 | + | ||
256 | 318 | | |
257 | 319 | | |
258 | 320 | | |
| |||
0 commit comments