@goodie-ts/kysely 0.6.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +16 -0
  2. package/dist/beans.json +963 -17
  3. package/dist/decorators/migration.d.ts +7 -1
  4. package/dist/decorators/migration.d.ts.map +1 -1
  5. package/dist/decorators/migration.js +14 -6
  6. package/dist/decorators/migration.js.map +1 -1
  7. package/dist/dialect.d.ts +4 -18
  8. package/dist/dialect.d.ts.map +1 -1
  9. package/dist/dialect.js +5 -27
  10. package/dist/dialect.js.map +1 -1
  11. package/dist/dialects/d1.d.ts +23 -0
  12. package/dist/dialects/d1.d.ts.map +1 -0
  13. package/dist/dialects/d1.js +126 -0
  14. package/dist/dialects/d1.js.map +1 -0
  15. package/dist/dialects/index.d.ts +8 -0
  16. package/dist/dialects/index.d.ts.map +1 -0
  17. package/dist/dialects/index.js +8 -0
  18. package/dist/dialects/index.js.map +1 -0
  19. package/dist/dialects/libsql.d.ts +19 -0
  20. package/dist/dialects/libsql.d.ts.map +1 -0
  21. package/dist/dialects/libsql.js +129 -0
  22. package/dist/dialects/libsql.js.map +1 -0
  23. package/dist/dialects/mysql.d.ts +24 -0
  24. package/dist/dialects/mysql.d.ts.map +1 -0
  25. package/dist/dialects/mysql.js +141 -0
  26. package/dist/dialects/mysql.js.map +1 -0
  27. package/dist/dialects/neon.d.ts +17 -0
  28. package/dist/dialects/neon.d.ts.map +1 -0
  29. package/dist/dialects/neon.js +126 -0
  30. package/dist/dialects/neon.js.map +1 -0
  31. package/dist/dialects/planetscale.d.ts +20 -0
  32. package/dist/dialects/planetscale.d.ts.map +1 -0
  33. package/dist/dialects/planetscale.js +132 -0
  34. package/dist/dialects/planetscale.js.map +1 -0
  35. package/dist/dialects/postgres.d.ts +30 -0
  36. package/dist/dialects/postgres.d.ts.map +1 -0
  37. package/dist/dialects/postgres.js +148 -0
  38. package/dist/dialects/postgres.js.map +1 -0
  39. package/dist/dialects/sqlite.d.ts +17 -0
  40. package/dist/dialects/sqlite.d.ts.map +1 -0
  41. package/dist/dialects/sqlite.js +126 -0
  42. package/dist/dialects/sqlite.js.map +1 -0
  43. package/dist/index.d.ts +3 -2
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +3 -2
  46. package/dist/index.js.map +1 -1
  47. package/dist/kysely-database.d.ts +10 -17
  48. package/dist/kysely-database.d.ts.map +1 -1
  49. package/dist/kysely-database.js +5 -85
  50. package/dist/kysely-database.js.map +1 -1
  51. package/dist/kysely-transformer-plugin.d.ts.map +1 -1
  52. package/dist/kysely-transformer-plugin.js +15 -10
  53. package/dist/kysely-transformer-plugin.js.map +1 -1
  54. package/dist/pool-config.d.ts +12 -0
  55. package/dist/pool-config.d.ts.map +1 -0
  56. package/dist/{datasource-config.js → pool-config.js} +9 -57
  57. package/dist/pool-config.js.map +1 -0
  58. package/dist/transaction-manager.d.ts +6 -8
  59. package/dist/transaction-manager.d.ts.map +1 -1
  60. package/dist/transaction-manager.js +13 -16
  61. package/dist/transaction-manager.js.map +1 -1
  62. package/package.json +22 -7
  63. package/dist/datasource-config.d.ts +0 -31
  64. package/dist/datasource-config.d.ts.map +0 -1
  65. package/dist/datasource-config.js.map +0 -1
  66. package/dist/dialect-factory.d.ts +0 -9
  67. package/dist/dialect-factory.d.ts.map +0 -1
  68. package/dist/dialect-factory.js +0 -48
  69. package/dist/dialect-factory.js.map +0 -1
package/dist/beans.json CHANGED
@@ -24,9 +24,14 @@
24
24
  {
25
25
  "name": "ConfigurationProperties",
26
26
  "importPath": "@goodie-ts/kysely"
27
+ },
28
+ {
29
+ "name": "ConditionalOnProperty",
30
+ "importPath": "@goodie-ts/kysely"
27
31
  }
28
32
  ],
29
33
  "methodDecorators": null,
34
+ "publicMembers": null,
30
35
  "metadata": {
31
36
  "valueFields": [
32
37
  {
@@ -39,35 +44,102 @@
39
44
  "key": "datasource.pool.max",
40
45
  "default": "10"
41
46
  }
47
+ ],
48
+ "conditionalRules": [
49
+ {
50
+ "type": "onProperty",
51
+ "key": "datasource.dialect",
52
+ "expectedValues": [
53
+ "postgres",
54
+ "mysql"
55
+ ]
56
+ }
42
57
  ]
43
58
  },
44
59
  "sourceLocation": {
45
60
  "filePath": "@goodie-ts/kysely",
46
- "line": 11,
61
+ "line": 14,
47
62
  "column": 1
48
63
  }
49
64
  },
50
65
  {
51
66
  "tokenRef": {
52
67
  "kind": "class",
53
- "className": "DatasourceConfig",
68
+ "className": "D1DatasourceConfig",
54
69
  "importPath": "@goodie-ts/kysely"
55
70
  },
56
71
  "scope": "singleton",
57
72
  "eager": false,
58
73
  "name": null,
74
+ "constructorDeps": [],
75
+ "fieldDeps": [],
76
+ "factoryKind": "constructor",
77
+ "providesSource": null,
78
+ "baseTokenRefs": null,
79
+ "decorators": [
80
+ {
81
+ "name": "Singleton",
82
+ "importPath": "@goodie-ts/kysely"
83
+ },
84
+ {
85
+ "name": "ConfigurationProperties",
86
+ "importPath": "@goodie-ts/kysely"
87
+ },
88
+ {
89
+ "name": "ConditionalOnProperty",
90
+ "importPath": "@goodie-ts/kysely"
91
+ }
92
+ ],
93
+ "methodDecorators": null,
94
+ "publicMembers": null,
95
+ "metadata": {
96
+ "valueFields": [
97
+ {
98
+ "fieldName": "dialect",
99
+ "key": "datasource.dialect",
100
+ "default": "''"
101
+ },
102
+ {
103
+ "fieldName": "binding",
104
+ "key": "datasource.binding",
105
+ "default": "'DB'"
106
+ }
107
+ ],
108
+ "conditionalRules": [
109
+ {
110
+ "type": "onProperty",
111
+ "key": "datasource.dialect",
112
+ "expectedValue": "d1"
113
+ }
114
+ ]
115
+ },
116
+ "sourceLocation": {
117
+ "filePath": "@goodie-ts/kysely",
118
+ "line": 12,
119
+ "column": 1
120
+ }
121
+ },
122
+ {
123
+ "tokenRef": {
124
+ "kind": "class",
125
+ "className": "D1KyselyDatabase",
126
+ "importPath": "@goodie-ts/kysely"
127
+ },
128
+ "scope": "request",
129
+ "eager": false,
130
+ "name": null,
59
131
  "constructorDeps": [
60
132
  {
61
133
  "tokenRef": {
62
134
  "kind": "class",
63
- "className": "PoolConfig",
135
+ "className": "D1DatasourceConfig",
64
136
  "importPath": "@goodie-ts/kysely"
65
137
  },
66
138
  "optional": false,
67
139
  "collection": false,
68
140
  "sourceLocation": {
69
141
  "filePath": "@goodie-ts/kysely",
70
- "line": 40,
142
+ "line": 32,
71
143
  "column": 15
72
144
  }
73
145
  }
@@ -75,52 +147,125 @@
75
147
  "fieldDeps": [],
76
148
  "factoryKind": "constructor",
77
149
  "providesSource": null,
78
- "baseTokenRefs": null,
150
+ "baseTokenRefs": [
151
+ {
152
+ "kind": "class",
153
+ "className": "KyselyDatabase",
154
+ "importPath": "@goodie-ts/kysely"
155
+ }
156
+ ],
79
157
  "decorators": [
80
158
  {
81
- "name": "Singleton",
159
+ "name": "RequestScoped",
82
160
  "importPath": "@goodie-ts/kysely"
83
161
  },
84
162
  {
85
- "name": "ConfigurationProperties",
163
+ "name": "ConditionalOnProperty",
86
164
  "importPath": "@goodie-ts/kysely"
87
165
  }
88
166
  ],
89
167
  "methodDecorators": {
90
- "validate": [
168
+ "init": [
91
169
  {
92
170
  "name": "PostConstruct",
93
171
  "importPath": "@goodie-ts/kysely"
94
172
  }
95
173
  ]
96
174
  },
175
+ "publicMembers": [
176
+ {
177
+ "name": "kysely",
178
+ "kind": "getter"
179
+ },
180
+ {
181
+ "name": "supportsReturning",
182
+ "kind": "getter"
183
+ }
184
+ ],
97
185
  "metadata": {
98
186
  "postConstructMethods": [
99
- "validate"
187
+ "init"
100
188
  ],
189
+ "conditionalRules": [
190
+ {
191
+ "type": "onProperty",
192
+ "key": "datasource.dialect",
193
+ "expectedValue": "d1"
194
+ }
195
+ ]
196
+ },
197
+ "sourceLocation": {
198
+ "filePath": "@goodie-ts/kysely",
199
+ "line": 27,
200
+ "column": 1
201
+ }
202
+ },
203
+ {
204
+ "tokenRef": {
205
+ "kind": "class",
206
+ "className": "LibsqlDatasourceConfig",
207
+ "importPath": "@goodie-ts/kysely"
208
+ },
209
+ "scope": "singleton",
210
+ "eager": false,
211
+ "name": null,
212
+ "constructorDeps": [],
213
+ "fieldDeps": [],
214
+ "factoryKind": "constructor",
215
+ "providesSource": null,
216
+ "baseTokenRefs": null,
217
+ "decorators": [
218
+ {
219
+ "name": "Singleton",
220
+ "importPath": "@goodie-ts/kysely"
221
+ },
222
+ {
223
+ "name": "ConfigurationProperties",
224
+ "importPath": "@goodie-ts/kysely"
225
+ },
226
+ {
227
+ "name": "ConditionalOnProperty",
228
+ "importPath": "@goodie-ts/kysely"
229
+ }
230
+ ],
231
+ "methodDecorators": null,
232
+ "publicMembers": null,
233
+ "metadata": {
101
234
  "valueFields": [
235
+ {
236
+ "fieldName": "dialect",
237
+ "key": "datasource.dialect",
238
+ "default": "''"
239
+ },
102
240
  {
103
241
  "fieldName": "url",
104
242
  "key": "datasource.url",
105
243
  "default": "''"
106
244
  },
107
245
  {
108
- "fieldName": "dialect",
109
- "key": "datasource.dialect",
246
+ "fieldName": "authToken",
247
+ "key": "datasource.authToken",
110
248
  "default": "''"
111
249
  }
250
+ ],
251
+ "conditionalRules": [
252
+ {
253
+ "type": "onProperty",
254
+ "key": "datasource.dialect",
255
+ "expectedValue": "libsql"
256
+ }
112
257
  ]
113
258
  },
114
259
  "sourceLocation": {
115
260
  "filePath": "@goodie-ts/kysely",
116
- "line": 34,
261
+ "line": 11,
117
262
  "column": 1
118
263
  }
119
264
  },
120
265
  {
121
266
  "tokenRef": {
122
267
  "kind": "class",
123
- "className": "KyselyDatabase",
268
+ "className": "LibsqlKyselyDatabase",
124
269
  "importPath": "@goodie-ts/kysely"
125
270
  },
126
271
  "scope": "singleton",
@@ -130,14 +275,14 @@
130
275
  {
131
276
  "tokenRef": {
132
277
  "kind": "class",
133
- "className": "DatasourceConfig",
278
+ "className": "LibsqlDatasourceConfig",
134
279
  "importPath": "@goodie-ts/kysely"
135
280
  },
136
281
  "optional": false,
137
282
  "collection": false,
138
283
  "sourceLocation": {
139
284
  "filePath": "@goodie-ts/kysely",
140
- "line": 35,
285
+ "line": 27,
141
286
  "column": 15
142
287
  }
143
288
  }
@@ -145,11 +290,21 @@
145
290
  "fieldDeps": [],
146
291
  "factoryKind": "constructor",
147
292
  "providesSource": null,
148
- "baseTokenRefs": null,
293
+ "baseTokenRefs": [
294
+ {
295
+ "kind": "class",
296
+ "className": "KyselyDatabase",
297
+ "importPath": "@goodie-ts/kysely"
298
+ }
299
+ ],
149
300
  "decorators": [
150
301
  {
151
302
  "name": "Singleton",
152
303
  "importPath": "@goodie-ts/kysely"
304
+ },
305
+ {
306
+ "name": "ConditionalOnProperty",
307
+ "importPath": "@goodie-ts/kysely"
153
308
  }
154
309
  ],
155
310
  "methodDecorators": {
@@ -166,17 +321,808 @@
166
321
  }
167
322
  ]
168
323
  },
324
+ "publicMembers": null,
169
325
  "metadata": {
170
326
  "preDestroyMethods": [
171
327
  "destroy"
172
328
  ],
173
329
  "postConstructMethods": [
174
330
  "init"
331
+ ],
332
+ "conditionalRules": [
333
+ {
334
+ "type": "onProperty",
335
+ "key": "datasource.dialect",
336
+ "expectedValue": "libsql"
337
+ }
338
+ ]
339
+ },
340
+ "sourceLocation": {
341
+ "filePath": "@goodie-ts/kysely",
342
+ "line": 22,
343
+ "column": 1
344
+ }
345
+ },
346
+ {
347
+ "tokenRef": {
348
+ "kind": "class",
349
+ "className": "MysqlDatasourceConfig",
350
+ "importPath": "@goodie-ts/kysely"
351
+ },
352
+ "scope": "singleton",
353
+ "eager": false,
354
+ "name": null,
355
+ "constructorDeps": [],
356
+ "fieldDeps": [],
357
+ "factoryKind": "constructor",
358
+ "providesSource": null,
359
+ "baseTokenRefs": null,
360
+ "decorators": [
361
+ {
362
+ "name": "Singleton",
363
+ "importPath": "@goodie-ts/kysely"
364
+ },
365
+ {
366
+ "name": "ConfigurationProperties",
367
+ "importPath": "@goodie-ts/kysely"
368
+ },
369
+ {
370
+ "name": "ConditionalOnProperty",
371
+ "importPath": "@goodie-ts/kysely"
372
+ }
373
+ ],
374
+ "methodDecorators": null,
375
+ "publicMembers": null,
376
+ "metadata": {
377
+ "valueFields": [
378
+ {
379
+ "fieldName": "dialect",
380
+ "key": "datasource.dialect",
381
+ "default": "''"
382
+ },
383
+ {
384
+ "fieldName": "url",
385
+ "key": "datasource.url",
386
+ "default": "''"
387
+ },
388
+ {
389
+ "fieldName": "host",
390
+ "key": "datasource.host",
391
+ "default": "''"
392
+ },
393
+ {
394
+ "fieldName": "port",
395
+ "key": "datasource.port",
396
+ "default": "3306"
397
+ },
398
+ {
399
+ "fieldName": "database",
400
+ "key": "datasource.database",
401
+ "default": "''"
402
+ },
403
+ {
404
+ "fieldName": "user",
405
+ "key": "datasource.user",
406
+ "default": "''"
407
+ },
408
+ {
409
+ "fieldName": "password",
410
+ "key": "datasource.password",
411
+ "default": "''"
412
+ }
413
+ ],
414
+ "conditionalRules": [
415
+ {
416
+ "type": "onProperty",
417
+ "key": "datasource.dialect",
418
+ "expectedValue": "mysql"
419
+ }
420
+ ]
421
+ },
422
+ "sourceLocation": {
423
+ "filePath": "@goodie-ts/kysely",
424
+ "line": 12,
425
+ "column": 1
426
+ }
427
+ },
428
+ {
429
+ "tokenRef": {
430
+ "kind": "class",
431
+ "className": "MysqlKyselyDatabase",
432
+ "importPath": "@goodie-ts/kysely"
433
+ },
434
+ "scope": "singleton",
435
+ "eager": false,
436
+ "name": null,
437
+ "constructorDeps": [
438
+ {
439
+ "tokenRef": {
440
+ "kind": "class",
441
+ "className": "MysqlDatasourceConfig",
442
+ "importPath": "@goodie-ts/kysely"
443
+ },
444
+ "optional": false,
445
+ "collection": false,
446
+ "sourceLocation": {
447
+ "filePath": "@goodie-ts/kysely",
448
+ "line": 32,
449
+ "column": 5
450
+ }
451
+ },
452
+ {
453
+ "tokenRef": {
454
+ "kind": "class",
455
+ "className": "PoolConfig",
456
+ "importPath": "@goodie-ts/kysely"
457
+ },
458
+ "optional": false,
459
+ "collection": false,
460
+ "sourceLocation": {
461
+ "filePath": "@goodie-ts/kysely",
462
+ "line": 33,
463
+ "column": 5
464
+ }
465
+ }
466
+ ],
467
+ "fieldDeps": [],
468
+ "factoryKind": "constructor",
469
+ "providesSource": null,
470
+ "baseTokenRefs": [
471
+ {
472
+ "kind": "class",
473
+ "className": "KyselyDatabase",
474
+ "importPath": "@goodie-ts/kysely"
475
+ }
476
+ ],
477
+ "decorators": [
478
+ {
479
+ "name": "Singleton",
480
+ "importPath": "@goodie-ts/kysely"
481
+ },
482
+ {
483
+ "name": "ConditionalOnProperty",
484
+ "importPath": "@goodie-ts/kysely"
485
+ }
486
+ ],
487
+ "methodDecorators": {
488
+ "init": [
489
+ {
490
+ "name": "PostConstruct",
491
+ "importPath": "@goodie-ts/kysely"
492
+ }
493
+ ],
494
+ "destroy": [
495
+ {
496
+ "name": "PreDestroy",
497
+ "importPath": "@goodie-ts/kysely"
498
+ }
499
+ ]
500
+ },
501
+ "publicMembers": null,
502
+ "metadata": {
503
+ "preDestroyMethods": [
504
+ "destroy"
505
+ ],
506
+ "postConstructMethods": [
507
+ "init"
508
+ ],
509
+ "conditionalRules": [
510
+ {
511
+ "type": "onProperty",
512
+ "key": "datasource.dialect",
513
+ "expectedValue": "mysql"
514
+ }
515
+ ]
516
+ },
517
+ "sourceLocation": {
518
+ "filePath": "@goodie-ts/kysely",
519
+ "line": 26,
520
+ "column": 1
521
+ }
522
+ },
523
+ {
524
+ "tokenRef": {
525
+ "kind": "class",
526
+ "className": "NeonDatasourceConfig",
527
+ "importPath": "@goodie-ts/kysely"
528
+ },
529
+ "scope": "singleton",
530
+ "eager": false,
531
+ "name": null,
532
+ "constructorDeps": [],
533
+ "fieldDeps": [],
534
+ "factoryKind": "constructor",
535
+ "providesSource": null,
536
+ "baseTokenRefs": null,
537
+ "decorators": [
538
+ {
539
+ "name": "Singleton",
540
+ "importPath": "@goodie-ts/kysely"
541
+ },
542
+ {
543
+ "name": "ConfigurationProperties",
544
+ "importPath": "@goodie-ts/kysely"
545
+ },
546
+ {
547
+ "name": "ConditionalOnProperty",
548
+ "importPath": "@goodie-ts/kysely"
549
+ }
550
+ ],
551
+ "methodDecorators": null,
552
+ "publicMembers": null,
553
+ "metadata": {
554
+ "valueFields": [
555
+ {
556
+ "fieldName": "dialect",
557
+ "key": "datasource.dialect",
558
+ "default": "''"
559
+ },
560
+ {
561
+ "fieldName": "url",
562
+ "key": "datasource.url",
563
+ "default": "''"
564
+ }
565
+ ],
566
+ "conditionalRules": [
567
+ {
568
+ "type": "onProperty",
569
+ "key": "datasource.dialect",
570
+ "expectedValue": "neon"
571
+ }
572
+ ]
573
+ },
574
+ "sourceLocation": {
575
+ "filePath": "@goodie-ts/kysely",
576
+ "line": 11,
577
+ "column": 1
578
+ }
579
+ },
580
+ {
581
+ "tokenRef": {
582
+ "kind": "class",
583
+ "className": "NeonKyselyDatabase",
584
+ "importPath": "@goodie-ts/kysely"
585
+ },
586
+ "scope": "singleton",
587
+ "eager": false,
588
+ "name": null,
589
+ "constructorDeps": [
590
+ {
591
+ "tokenRef": {
592
+ "kind": "class",
593
+ "className": "NeonDatasourceConfig",
594
+ "importPath": "@goodie-ts/kysely"
595
+ },
596
+ "optional": false,
597
+ "collection": false,
598
+ "sourceLocation": {
599
+ "filePath": "@goodie-ts/kysely",
600
+ "line": 25,
601
+ "column": 15
602
+ }
603
+ }
604
+ ],
605
+ "fieldDeps": [],
606
+ "factoryKind": "constructor",
607
+ "providesSource": null,
608
+ "baseTokenRefs": [
609
+ {
610
+ "kind": "class",
611
+ "className": "KyselyDatabase",
612
+ "importPath": "@goodie-ts/kysely"
613
+ }
614
+ ],
615
+ "decorators": [
616
+ {
617
+ "name": "Singleton",
618
+ "importPath": "@goodie-ts/kysely"
619
+ },
620
+ {
621
+ "name": "ConditionalOnProperty",
622
+ "importPath": "@goodie-ts/kysely"
623
+ }
624
+ ],
625
+ "methodDecorators": {
626
+ "init": [
627
+ {
628
+ "name": "PostConstruct",
629
+ "importPath": "@goodie-ts/kysely"
630
+ }
631
+ ],
632
+ "destroy": [
633
+ {
634
+ "name": "PreDestroy",
635
+ "importPath": "@goodie-ts/kysely"
636
+ }
637
+ ]
638
+ },
639
+ "publicMembers": null,
640
+ "metadata": {
641
+ "preDestroyMethods": [
642
+ "destroy"
643
+ ],
644
+ "postConstructMethods": [
645
+ "init"
646
+ ],
647
+ "conditionalRules": [
648
+ {
649
+ "type": "onProperty",
650
+ "key": "datasource.dialect",
651
+ "expectedValue": "neon"
652
+ }
653
+ ]
654
+ },
655
+ "sourceLocation": {
656
+ "filePath": "@goodie-ts/kysely",
657
+ "line": 20,
658
+ "column": 1
659
+ }
660
+ },
661
+ {
662
+ "tokenRef": {
663
+ "kind": "class",
664
+ "className": "PlanetscaleDatasourceConfig",
665
+ "importPath": "@goodie-ts/kysely"
666
+ },
667
+ "scope": "singleton",
668
+ "eager": false,
669
+ "name": null,
670
+ "constructorDeps": [],
671
+ "fieldDeps": [],
672
+ "factoryKind": "constructor",
673
+ "providesSource": null,
674
+ "baseTokenRefs": null,
675
+ "decorators": [
676
+ {
677
+ "name": "Singleton",
678
+ "importPath": "@goodie-ts/kysely"
679
+ },
680
+ {
681
+ "name": "ConfigurationProperties",
682
+ "importPath": "@goodie-ts/kysely"
683
+ },
684
+ {
685
+ "name": "ConditionalOnProperty",
686
+ "importPath": "@goodie-ts/kysely"
687
+ }
688
+ ],
689
+ "methodDecorators": null,
690
+ "publicMembers": null,
691
+ "metadata": {
692
+ "valueFields": [
693
+ {
694
+ "fieldName": "dialect",
695
+ "key": "datasource.dialect",
696
+ "default": "''"
697
+ },
698
+ {
699
+ "fieldName": "url",
700
+ "key": "datasource.url",
701
+ "default": "''"
702
+ },
703
+ {
704
+ "fieldName": "username",
705
+ "key": "datasource.username",
706
+ "default": "''"
707
+ },
708
+ {
709
+ "fieldName": "password",
710
+ "key": "datasource.password",
711
+ "default": "''"
712
+ },
713
+ {
714
+ "fieldName": "host",
715
+ "key": "datasource.host",
716
+ "default": "''"
717
+ }
718
+ ],
719
+ "conditionalRules": [
720
+ {
721
+ "type": "onProperty",
722
+ "key": "datasource.dialect",
723
+ "expectedValue": "planetscale"
724
+ }
725
+ ]
726
+ },
727
+ "sourceLocation": {
728
+ "filePath": "@goodie-ts/kysely",
729
+ "line": 11,
730
+ "column": 1
731
+ }
732
+ },
733
+ {
734
+ "tokenRef": {
735
+ "kind": "class",
736
+ "className": "PlanetscaleKyselyDatabase",
737
+ "importPath": "@goodie-ts/kysely"
738
+ },
739
+ "scope": "singleton",
740
+ "eager": false,
741
+ "name": null,
742
+ "constructorDeps": [
743
+ {
744
+ "tokenRef": {
745
+ "kind": "class",
746
+ "className": "PlanetscaleDatasourceConfig",
747
+ "importPath": "@goodie-ts/kysely"
748
+ },
749
+ "optional": false,
750
+ "collection": false,
751
+ "sourceLocation": {
752
+ "filePath": "@goodie-ts/kysely",
753
+ "line": 28,
754
+ "column": 15
755
+ }
756
+ }
757
+ ],
758
+ "fieldDeps": [],
759
+ "factoryKind": "constructor",
760
+ "providesSource": null,
761
+ "baseTokenRefs": [
762
+ {
763
+ "kind": "class",
764
+ "className": "KyselyDatabase",
765
+ "importPath": "@goodie-ts/kysely"
766
+ }
767
+ ],
768
+ "decorators": [
769
+ {
770
+ "name": "Singleton",
771
+ "importPath": "@goodie-ts/kysely"
772
+ },
773
+ {
774
+ "name": "ConditionalOnProperty",
775
+ "importPath": "@goodie-ts/kysely"
776
+ }
777
+ ],
778
+ "methodDecorators": {
779
+ "init": [
780
+ {
781
+ "name": "PostConstruct",
782
+ "importPath": "@goodie-ts/kysely"
783
+ }
784
+ ],
785
+ "destroy": [
786
+ {
787
+ "name": "PreDestroy",
788
+ "importPath": "@goodie-ts/kysely"
789
+ }
790
+ ]
791
+ },
792
+ "publicMembers": null,
793
+ "metadata": {
794
+ "preDestroyMethods": [
795
+ "destroy"
796
+ ],
797
+ "postConstructMethods": [
798
+ "init"
799
+ ],
800
+ "conditionalRules": [
801
+ {
802
+ "type": "onProperty",
803
+ "key": "datasource.dialect",
804
+ "expectedValue": "planetscale"
805
+ }
806
+ ]
807
+ },
808
+ "sourceLocation": {
809
+ "filePath": "@goodie-ts/kysely",
810
+ "line": 23,
811
+ "column": 1
812
+ }
813
+ },
814
+ {
815
+ "tokenRef": {
816
+ "kind": "class",
817
+ "className": "PostgresDatasourceConfig",
818
+ "importPath": "@goodie-ts/kysely"
819
+ },
820
+ "scope": "singleton",
821
+ "eager": false,
822
+ "name": null,
823
+ "constructorDeps": [],
824
+ "fieldDeps": [],
825
+ "factoryKind": "constructor",
826
+ "providesSource": null,
827
+ "baseTokenRefs": null,
828
+ "decorators": [
829
+ {
830
+ "name": "Singleton",
831
+ "importPath": "@goodie-ts/kysely"
832
+ },
833
+ {
834
+ "name": "ConfigurationProperties",
835
+ "importPath": "@goodie-ts/kysely"
836
+ },
837
+ {
838
+ "name": "ConditionalOnProperty",
839
+ "importPath": "@goodie-ts/kysely"
840
+ }
841
+ ],
842
+ "methodDecorators": null,
843
+ "publicMembers": null,
844
+ "metadata": {
845
+ "valueFields": [
846
+ {
847
+ "fieldName": "dialect",
848
+ "key": "datasource.dialect",
849
+ "default": "''"
850
+ },
851
+ {
852
+ "fieldName": "url",
853
+ "key": "datasource.url",
854
+ "default": "''"
855
+ },
856
+ {
857
+ "fieldName": "host",
858
+ "key": "datasource.host",
859
+ "default": "''"
860
+ },
861
+ {
862
+ "fieldName": "port",
863
+ "key": "datasource.port",
864
+ "default": "5432"
865
+ },
866
+ {
867
+ "fieldName": "database",
868
+ "key": "datasource.database",
869
+ "default": "''"
870
+ },
871
+ {
872
+ "fieldName": "user",
873
+ "key": "datasource.user",
874
+ "default": "''"
875
+ },
876
+ {
877
+ "fieldName": "password",
878
+ "key": "datasource.password",
879
+ "default": "''"
880
+ }
881
+ ],
882
+ "conditionalRules": [
883
+ {
884
+ "type": "onProperty",
885
+ "key": "datasource.dialect",
886
+ "expectedValue": "postgres"
887
+ }
888
+ ]
889
+ },
890
+ "sourceLocation": {
891
+ "filePath": "@goodie-ts/kysely",
892
+ "line": 18,
893
+ "column": 1
894
+ }
895
+ },
896
+ {
897
+ "tokenRef": {
898
+ "kind": "class",
899
+ "className": "PostgresKyselyDatabase",
900
+ "importPath": "@goodie-ts/kysely"
901
+ },
902
+ "scope": "singleton",
903
+ "eager": false,
904
+ "name": null,
905
+ "constructorDeps": [
906
+ {
907
+ "tokenRef": {
908
+ "kind": "class",
909
+ "className": "PostgresDatasourceConfig",
910
+ "importPath": "@goodie-ts/kysely"
911
+ },
912
+ "optional": false,
913
+ "collection": false,
914
+ "sourceLocation": {
915
+ "filePath": "@goodie-ts/kysely",
916
+ "line": 38,
917
+ "column": 5
918
+ }
919
+ },
920
+ {
921
+ "tokenRef": {
922
+ "kind": "class",
923
+ "className": "PoolConfig",
924
+ "importPath": "@goodie-ts/kysely"
925
+ },
926
+ "optional": false,
927
+ "collection": false,
928
+ "sourceLocation": {
929
+ "filePath": "@goodie-ts/kysely",
930
+ "line": 39,
931
+ "column": 5
932
+ }
933
+ }
934
+ ],
935
+ "fieldDeps": [],
936
+ "factoryKind": "constructor",
937
+ "providesSource": null,
938
+ "baseTokenRefs": [
939
+ {
940
+ "kind": "class",
941
+ "className": "KyselyDatabase",
942
+ "importPath": "@goodie-ts/kysely"
943
+ }
944
+ ],
945
+ "decorators": [
946
+ {
947
+ "name": "Singleton",
948
+ "importPath": "@goodie-ts/kysely"
949
+ },
950
+ {
951
+ "name": "ConditionalOnProperty",
952
+ "importPath": "@goodie-ts/kysely"
953
+ }
954
+ ],
955
+ "methodDecorators": {
956
+ "init": [
957
+ {
958
+ "name": "PostConstruct",
959
+ "importPath": "@goodie-ts/kysely"
960
+ }
961
+ ],
962
+ "destroy": [
963
+ {
964
+ "name": "PreDestroy",
965
+ "importPath": "@goodie-ts/kysely"
966
+ }
967
+ ]
968
+ },
969
+ "publicMembers": null,
970
+ "metadata": {
971
+ "preDestroyMethods": [
972
+ "destroy"
973
+ ],
974
+ "postConstructMethods": [
975
+ "init"
976
+ ],
977
+ "conditionalRules": [
978
+ {
979
+ "type": "onProperty",
980
+ "key": "datasource.dialect",
981
+ "expectedValue": "postgres"
982
+ }
983
+ ]
984
+ },
985
+ "sourceLocation": {
986
+ "filePath": "@goodie-ts/kysely",
987
+ "line": 32,
988
+ "column": 1
989
+ }
990
+ },
991
+ {
992
+ "tokenRef": {
993
+ "kind": "class",
994
+ "className": "SqliteDatasourceConfig",
995
+ "importPath": "@goodie-ts/kysely"
996
+ },
997
+ "scope": "singleton",
998
+ "eager": false,
999
+ "name": null,
1000
+ "constructorDeps": [],
1001
+ "fieldDeps": [],
1002
+ "factoryKind": "constructor",
1003
+ "providesSource": null,
1004
+ "baseTokenRefs": null,
1005
+ "decorators": [
1006
+ {
1007
+ "name": "Singleton",
1008
+ "importPath": "@goodie-ts/kysely"
1009
+ },
1010
+ {
1011
+ "name": "ConfigurationProperties",
1012
+ "importPath": "@goodie-ts/kysely"
1013
+ },
1014
+ {
1015
+ "name": "ConditionalOnProperty",
1016
+ "importPath": "@goodie-ts/kysely"
1017
+ }
1018
+ ],
1019
+ "methodDecorators": null,
1020
+ "publicMembers": null,
1021
+ "metadata": {
1022
+ "valueFields": [
1023
+ {
1024
+ "fieldName": "dialect",
1025
+ "key": "datasource.dialect",
1026
+ "default": "''"
1027
+ },
1028
+ {
1029
+ "fieldName": "url",
1030
+ "key": "datasource.url",
1031
+ "default": "''"
1032
+ }
1033
+ ],
1034
+ "conditionalRules": [
1035
+ {
1036
+ "type": "onProperty",
1037
+ "key": "datasource.dialect",
1038
+ "expectedValue": "sqlite"
1039
+ }
1040
+ ]
1041
+ },
1042
+ "sourceLocation": {
1043
+ "filePath": "@goodie-ts/kysely",
1044
+ "line": 11,
1045
+ "column": 1
1046
+ }
1047
+ },
1048
+ {
1049
+ "tokenRef": {
1050
+ "kind": "class",
1051
+ "className": "SqliteKyselyDatabase",
1052
+ "importPath": "@goodie-ts/kysely"
1053
+ },
1054
+ "scope": "singleton",
1055
+ "eager": false,
1056
+ "name": null,
1057
+ "constructorDeps": [
1058
+ {
1059
+ "tokenRef": {
1060
+ "kind": "class",
1061
+ "className": "SqliteDatasourceConfig",
1062
+ "importPath": "@goodie-ts/kysely"
1063
+ },
1064
+ "optional": false,
1065
+ "collection": false,
1066
+ "sourceLocation": {
1067
+ "filePath": "@goodie-ts/kysely",
1068
+ "line": 25,
1069
+ "column": 15
1070
+ }
1071
+ }
1072
+ ],
1073
+ "fieldDeps": [],
1074
+ "factoryKind": "constructor",
1075
+ "providesSource": null,
1076
+ "baseTokenRefs": [
1077
+ {
1078
+ "kind": "class",
1079
+ "className": "KyselyDatabase",
1080
+ "importPath": "@goodie-ts/kysely"
1081
+ }
1082
+ ],
1083
+ "decorators": [
1084
+ {
1085
+ "name": "Singleton",
1086
+ "importPath": "@goodie-ts/kysely"
1087
+ },
1088
+ {
1089
+ "name": "ConditionalOnProperty",
1090
+ "importPath": "@goodie-ts/kysely"
1091
+ }
1092
+ ],
1093
+ "methodDecorators": {
1094
+ "init": [
1095
+ {
1096
+ "name": "PostConstruct",
1097
+ "importPath": "@goodie-ts/kysely"
1098
+ }
1099
+ ],
1100
+ "destroy": [
1101
+ {
1102
+ "name": "PreDestroy",
1103
+ "importPath": "@goodie-ts/kysely"
1104
+ }
1105
+ ]
1106
+ },
1107
+ "publicMembers": null,
1108
+ "metadata": {
1109
+ "preDestroyMethods": [
1110
+ "destroy"
1111
+ ],
1112
+ "postConstructMethods": [
1113
+ "init"
1114
+ ],
1115
+ "conditionalRules": [
1116
+ {
1117
+ "type": "onProperty",
1118
+ "key": "datasource.dialect",
1119
+ "expectedValue": "sqlite"
1120
+ }
175
1121
  ]
176
1122
  },
177
1123
  "sourceLocation": {
178
1124
  "filePath": "@goodie-ts/kysely",
179
- "line": 31,
1125
+ "line": 20,
180
1126
  "column": 1
181
1127
  }
182
1128
  }