@goodie-ts/kysely 0.7.0 → 2.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 (82) hide show
  1. package/README.md +18 -2
  2. package/dist/abstract-migration.d.ts +2 -2
  3. package/dist/abstract-migration.js +2 -2
  4. package/dist/components.json +1854 -0
  5. package/dist/decorators/migration.d.ts +1 -1
  6. package/dist/decorators/migration.js +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 +4 -3
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +4 -3
  46. package/dist/index.js.map +1 -1
  47. package/dist/kysely-database.d.ts +12 -19
  48. package/dist/kysely-database.d.ts.map +1 -1
  49. package/dist/kysely-database.js +7 -87
  50. package/dist/kysely-database.js.map +1 -1
  51. package/dist/kysely-transformer-plugin.d.ts +2 -5
  52. package/dist/kysely-transformer-plugin.d.ts.map +1 -1
  53. package/dist/kysely-transformer-plugin.js +18 -192
  54. package/dist/kysely-transformer-plugin.js.map +1 -1
  55. package/dist/migration-post-processor.d.ts +18 -0
  56. package/dist/migration-post-processor.d.ts.map +1 -0
  57. package/dist/migration-post-processor.js +117 -0
  58. package/dist/migration-post-processor.js.map +1 -0
  59. package/dist/pool-config.d.ts +12 -0
  60. package/dist/pool-config.d.ts.map +1 -0
  61. package/dist/{datasource-config.js → pool-config.js} +9 -57
  62. package/dist/pool-config.js.map +1 -0
  63. package/dist/transaction-manager.d.ts +9 -9
  64. package/dist/transaction-manager.d.ts.map +1 -1
  65. package/dist/transaction-manager.js +167 -123
  66. package/dist/transaction-manager.js.map +1 -1
  67. package/dist/transactional-interceptor.d.ts.map +1 -1
  68. package/dist/transactional-interceptor.js +68 -17
  69. package/dist/transactional-interceptor.js.map +1 -1
  70. package/package.json +23 -8
  71. package/dist/beans.json +0 -184
  72. package/dist/datasource-config.d.ts +0 -31
  73. package/dist/datasource-config.d.ts.map +0 -1
  74. package/dist/datasource-config.js.map +0 -1
  75. package/dist/dialect-factory.d.ts +0 -9
  76. package/dist/dialect-factory.d.ts.map +0 -1
  77. package/dist/dialect-factory.js +0 -48
  78. package/dist/dialect-factory.js.map +0 -1
  79. package/dist/migration-runner.d.ts +0 -16
  80. package/dist/migration-runner.d.ts.map +0 -1
  81. package/dist/migration-runner.js +0 -45
  82. package/dist/migration-runner.js.map +0 -1
@@ -0,0 +1,1854 @@
1
+ {
2
+ "version": 1,
3
+ "package": "@goodie-ts/kysely",
4
+ "components": [
5
+ {
6
+ "tokenRef": {
7
+ "kind": "class",
8
+ "className": "MigrationPostProcessor",
9
+ "importPath": "@goodie-ts/kysely"
10
+ },
11
+ "scope": "singleton",
12
+ "eager": false,
13
+ "name": null,
14
+ "primary": false,
15
+ "constructorDeps": [
16
+ {
17
+ "tokenRef": {
18
+ "kind": "class",
19
+ "className": "ApplicationContext",
20
+ "importPath": "@goodie-ts/core"
21
+ },
22
+ "optional": false,
23
+ "collection": false,
24
+ "sourceLocation": {
25
+ "filePath": "@goodie-ts/kysely",
26
+ "line": 27,
27
+ "column": 15
28
+ }
29
+ }
30
+ ],
31
+ "fieldDeps": [],
32
+ "factoryKind": "constructor",
33
+ "providesSource": null,
34
+ "baseTokenRefs": null,
35
+ "decorators": [
36
+ {
37
+ "name": "PostProcessor",
38
+ "importPath": "@goodie-ts/kysely"
39
+ },
40
+ {
41
+ "name": "Singleton",
42
+ "importPath": "@goodie-ts/kysely"
43
+ }
44
+ ],
45
+ "methodDecorators": null,
46
+ "publicMembers": null,
47
+ "metadata": {
48
+ "isComponentPostProcessor": true
49
+ },
50
+ "sourceLocation": {
51
+ "filePath": "@goodie-ts/kysely",
52
+ "line": 22,
53
+ "column": 1
54
+ }
55
+ },
56
+ {
57
+ "tokenRef": {
58
+ "kind": "class",
59
+ "className": "PoolConfig",
60
+ "importPath": "@goodie-ts/kysely"
61
+ },
62
+ "scope": "singleton",
63
+ "eager": false,
64
+ "name": null,
65
+ "primary": false,
66
+ "constructorDeps": [],
67
+ "fieldDeps": [],
68
+ "factoryKind": "constructor",
69
+ "providesSource": null,
70
+ "baseTokenRefs": null,
71
+ "decorators": [
72
+ {
73
+ "name": "Singleton",
74
+ "importPath": "@goodie-ts/kysely"
75
+ },
76
+ {
77
+ "name": "Config",
78
+ "importPath": "@goodie-ts/kysely"
79
+ },
80
+ {
81
+ "name": "ConditionalOnProperty",
82
+ "importPath": "@goodie-ts/kysely"
83
+ }
84
+ ],
85
+ "methodDecorators": null,
86
+ "publicMembers": null,
87
+ "metadata": {
88
+ "introspectedFields": [
89
+ {
90
+ "name": "min",
91
+ "type": {
92
+ "kind": "primitive",
93
+ "type": "number"
94
+ },
95
+ "decorators": []
96
+ },
97
+ {
98
+ "name": "max",
99
+ "type": {
100
+ "kind": "primitive",
101
+ "type": "number"
102
+ },
103
+ "decorators": []
104
+ }
105
+ ],
106
+ "__typeRegistration": {
107
+ "className": "PoolConfig",
108
+ "importPath": "/home/runner/work/goodie/goodie/packages/kysely/src/pool-config.ts",
109
+ "fields": [
110
+ {
111
+ "name": "min",
112
+ "type": {
113
+ "kind": "primitive",
114
+ "type": "number"
115
+ },
116
+ "decorators": []
117
+ },
118
+ {
119
+ "name": "max",
120
+ "type": {
121
+ "kind": "primitive",
122
+ "type": "number"
123
+ },
124
+ "decorators": []
125
+ }
126
+ ]
127
+ },
128
+ "valueFields": [
129
+ {
130
+ "fieldName": "min",
131
+ "key": "datasource.pool.min",
132
+ "default": "2"
133
+ },
134
+ {
135
+ "fieldName": "max",
136
+ "key": "datasource.pool.max",
137
+ "default": "10"
138
+ }
139
+ ],
140
+ "conditionalRules": [
141
+ {
142
+ "type": "onProperty",
143
+ "key": "datasource.dialect",
144
+ "expectedValues": [
145
+ "postgres",
146
+ "mysql"
147
+ ]
148
+ }
149
+ ]
150
+ },
151
+ "sourceLocation": {
152
+ "filePath": "@goodie-ts/kysely",
153
+ "line": 10,
154
+ "column": 1
155
+ }
156
+ },
157
+ {
158
+ "tokenRef": {
159
+ "kind": "class",
160
+ "className": "TransactionManager",
161
+ "importPath": "@goodie-ts/kysely"
162
+ },
163
+ "scope": "singleton",
164
+ "eager": false,
165
+ "name": null,
166
+ "primary": false,
167
+ "constructorDeps": [
168
+ {
169
+ "tokenRef": {
170
+ "kind": "class",
171
+ "className": "KyselyDatabase",
172
+ "importPath": "@goodie-ts/kysely"
173
+ },
174
+ "optional": true,
175
+ "collection": false,
176
+ "sourceLocation": {
177
+ "filePath": "@goodie-ts/kysely",
178
+ "line": 32,
179
+ "column": 15
180
+ }
181
+ }
182
+ ],
183
+ "fieldDeps": [],
184
+ "factoryKind": "constructor",
185
+ "providesSource": null,
186
+ "baseTokenRefs": null,
187
+ "decorators": [
188
+ {
189
+ "name": "Singleton",
190
+ "importPath": "@goodie-ts/kysely"
191
+ }
192
+ ],
193
+ "methodDecorators": null,
194
+ "publicMembers": null,
195
+ "metadata": {},
196
+ "sourceLocation": {
197
+ "filePath": "@goodie-ts/kysely",
198
+ "line": 25,
199
+ "column": 1
200
+ }
201
+ },
202
+ {
203
+ "tokenRef": {
204
+ "kind": "class",
205
+ "className": "TransactionalInterceptor",
206
+ "importPath": "@goodie-ts/kysely"
207
+ },
208
+ "scope": "singleton",
209
+ "eager": false,
210
+ "name": null,
211
+ "primary": false,
212
+ "constructorDeps": [
213
+ {
214
+ "tokenRef": {
215
+ "kind": "class",
216
+ "className": "TransactionManager",
217
+ "importPath": "@goodie-ts/kysely"
218
+ },
219
+ "optional": false,
220
+ "collection": false,
221
+ "sourceLocation": {
222
+ "filePath": "@goodie-ts/kysely",
223
+ "line": 18,
224
+ "column": 15
225
+ }
226
+ }
227
+ ],
228
+ "fieldDeps": [],
229
+ "factoryKind": "constructor",
230
+ "providesSource": null,
231
+ "baseTokenRefs": null,
232
+ "decorators": [
233
+ {
234
+ "name": "Singleton",
235
+ "importPath": "@goodie-ts/kysely"
236
+ }
237
+ ],
238
+ "methodDecorators": null,
239
+ "publicMembers": null,
240
+ "metadata": {},
241
+ "sourceLocation": {
242
+ "filePath": "@goodie-ts/kysely",
243
+ "line": 16,
244
+ "column": 1
245
+ }
246
+ },
247
+ {
248
+ "tokenRef": {
249
+ "kind": "class",
250
+ "className": "D1DatasourceConfig",
251
+ "importPath": "@goodie-ts/kysely"
252
+ },
253
+ "scope": "singleton",
254
+ "eager": false,
255
+ "name": null,
256
+ "primary": false,
257
+ "constructorDeps": [],
258
+ "fieldDeps": [],
259
+ "factoryKind": "constructor",
260
+ "providesSource": null,
261
+ "baseTokenRefs": null,
262
+ "decorators": [
263
+ {
264
+ "name": "Singleton",
265
+ "importPath": "@goodie-ts/kysely"
266
+ },
267
+ {
268
+ "name": "Config",
269
+ "importPath": "@goodie-ts/kysely"
270
+ },
271
+ {
272
+ "name": "ConditionalOnProperty",
273
+ "importPath": "@goodie-ts/kysely"
274
+ }
275
+ ],
276
+ "methodDecorators": null,
277
+ "publicMembers": null,
278
+ "metadata": {
279
+ "introspectedFields": [
280
+ {
281
+ "name": "dialect",
282
+ "type": {
283
+ "kind": "primitive",
284
+ "type": "string"
285
+ },
286
+ "decorators": []
287
+ },
288
+ {
289
+ "name": "binding",
290
+ "type": {
291
+ "kind": "primitive",
292
+ "type": "string"
293
+ },
294
+ "decorators": []
295
+ }
296
+ ],
297
+ "__typeRegistration": {
298
+ "className": "D1DatasourceConfig",
299
+ "importPath": "/home/runner/work/goodie/goodie/packages/kysely/src/dialects/d1.ts",
300
+ "fields": [
301
+ {
302
+ "name": "dialect",
303
+ "type": {
304
+ "kind": "primitive",
305
+ "type": "string"
306
+ },
307
+ "decorators": []
308
+ },
309
+ {
310
+ "name": "binding",
311
+ "type": {
312
+ "kind": "primitive",
313
+ "type": "string"
314
+ },
315
+ "decorators": []
316
+ }
317
+ ]
318
+ },
319
+ "valueFields": [
320
+ {
321
+ "fieldName": "dialect",
322
+ "key": "datasource.dialect",
323
+ "default": "''"
324
+ },
325
+ {
326
+ "fieldName": "binding",
327
+ "key": "datasource.binding",
328
+ "default": "'DB'"
329
+ }
330
+ ],
331
+ "conditionalRules": [
332
+ {
333
+ "type": "onProperty",
334
+ "key": "datasource.dialect",
335
+ "expectedValue": "d1"
336
+ }
337
+ ]
338
+ },
339
+ "sourceLocation": {
340
+ "filePath": "@goodie-ts/kysely",
341
+ "line": 12,
342
+ "column": 1
343
+ }
344
+ },
345
+ {
346
+ "tokenRef": {
347
+ "kind": "class",
348
+ "className": "D1KyselyDatabase",
349
+ "importPath": "@goodie-ts/kysely"
350
+ },
351
+ "scope": "request",
352
+ "eager": false,
353
+ "name": null,
354
+ "primary": false,
355
+ "constructorDeps": [
356
+ {
357
+ "tokenRef": {
358
+ "kind": "class",
359
+ "className": "D1DatasourceConfig",
360
+ "importPath": "@goodie-ts/kysely"
361
+ },
362
+ "optional": false,
363
+ "collection": false,
364
+ "sourceLocation": {
365
+ "filePath": "@goodie-ts/kysely",
366
+ "line": 32,
367
+ "column": 15
368
+ }
369
+ }
370
+ ],
371
+ "fieldDeps": [],
372
+ "factoryKind": "constructor",
373
+ "providesSource": null,
374
+ "baseTokenRefs": [
375
+ {
376
+ "kind": "class",
377
+ "className": "KyselyDatabase",
378
+ "importPath": "@goodie-ts/kysely"
379
+ }
380
+ ],
381
+ "decorators": [
382
+ {
383
+ "name": "RequestScoped",
384
+ "importPath": "@goodie-ts/kysely"
385
+ },
386
+ {
387
+ "name": "ConditionalOnProperty",
388
+ "importPath": "@goodie-ts/kysely"
389
+ }
390
+ ],
391
+ "methodDecorators": {
392
+ "init": [
393
+ {
394
+ "name": "OnInit",
395
+ "importPath": "@goodie-ts/kysely"
396
+ }
397
+ ]
398
+ },
399
+ "publicMembers": [
400
+ {
401
+ "name": "kysely",
402
+ "kind": "getter"
403
+ },
404
+ {
405
+ "name": "supportsReturning",
406
+ "kind": "getter"
407
+ }
408
+ ],
409
+ "metadata": {
410
+ "onInitMethods": [
411
+ "init"
412
+ ],
413
+ "conditionalRules": [
414
+ {
415
+ "type": "onProperty",
416
+ "key": "datasource.dialect",
417
+ "expectedValue": "d1"
418
+ }
419
+ ]
420
+ },
421
+ "sourceLocation": {
422
+ "filePath": "@goodie-ts/kysely",
423
+ "line": 27,
424
+ "column": 1
425
+ }
426
+ },
427
+ {
428
+ "tokenRef": {
429
+ "kind": "class",
430
+ "className": "LibsqlDatasourceConfig",
431
+ "importPath": "@goodie-ts/kysely"
432
+ },
433
+ "scope": "singleton",
434
+ "eager": false,
435
+ "name": null,
436
+ "primary": false,
437
+ "constructorDeps": [],
438
+ "fieldDeps": [],
439
+ "factoryKind": "constructor",
440
+ "providesSource": null,
441
+ "baseTokenRefs": null,
442
+ "decorators": [
443
+ {
444
+ "name": "Singleton",
445
+ "importPath": "@goodie-ts/kysely"
446
+ },
447
+ {
448
+ "name": "Config",
449
+ "importPath": "@goodie-ts/kysely"
450
+ },
451
+ {
452
+ "name": "ConditionalOnProperty",
453
+ "importPath": "@goodie-ts/kysely"
454
+ }
455
+ ],
456
+ "methodDecorators": null,
457
+ "publicMembers": null,
458
+ "metadata": {
459
+ "introspectedFields": [
460
+ {
461
+ "name": "dialect",
462
+ "type": {
463
+ "kind": "primitive",
464
+ "type": "string"
465
+ },
466
+ "decorators": []
467
+ },
468
+ {
469
+ "name": "url",
470
+ "type": {
471
+ "kind": "primitive",
472
+ "type": "string"
473
+ },
474
+ "decorators": []
475
+ },
476
+ {
477
+ "name": "authToken",
478
+ "type": {
479
+ "kind": "primitive",
480
+ "type": "string"
481
+ },
482
+ "decorators": []
483
+ }
484
+ ],
485
+ "__typeRegistration": {
486
+ "className": "LibsqlDatasourceConfig",
487
+ "importPath": "/home/runner/work/goodie/goodie/packages/kysely/src/dialects/libsql.ts",
488
+ "fields": [
489
+ {
490
+ "name": "dialect",
491
+ "type": {
492
+ "kind": "primitive",
493
+ "type": "string"
494
+ },
495
+ "decorators": []
496
+ },
497
+ {
498
+ "name": "url",
499
+ "type": {
500
+ "kind": "primitive",
501
+ "type": "string"
502
+ },
503
+ "decorators": []
504
+ },
505
+ {
506
+ "name": "authToken",
507
+ "type": {
508
+ "kind": "primitive",
509
+ "type": "string"
510
+ },
511
+ "decorators": []
512
+ }
513
+ ]
514
+ },
515
+ "valueFields": [
516
+ {
517
+ "fieldName": "dialect",
518
+ "key": "datasource.dialect",
519
+ "default": "''"
520
+ },
521
+ {
522
+ "fieldName": "url",
523
+ "key": "datasource.url",
524
+ "default": "''"
525
+ },
526
+ {
527
+ "fieldName": "authToken",
528
+ "key": "datasource.authToken",
529
+ "default": "''"
530
+ }
531
+ ],
532
+ "conditionalRules": [
533
+ {
534
+ "type": "onProperty",
535
+ "key": "datasource.dialect",
536
+ "expectedValue": "libsql"
537
+ }
538
+ ]
539
+ },
540
+ "sourceLocation": {
541
+ "filePath": "@goodie-ts/kysely",
542
+ "line": 12,
543
+ "column": 1
544
+ }
545
+ },
546
+ {
547
+ "tokenRef": {
548
+ "kind": "class",
549
+ "className": "LibsqlKyselyDatabase",
550
+ "importPath": "@goodie-ts/kysely"
551
+ },
552
+ "scope": "singleton",
553
+ "eager": true,
554
+ "name": null,
555
+ "primary": false,
556
+ "constructorDeps": [
557
+ {
558
+ "tokenRef": {
559
+ "kind": "class",
560
+ "className": "LibsqlDatasourceConfig",
561
+ "importPath": "@goodie-ts/kysely"
562
+ },
563
+ "optional": false,
564
+ "collection": false,
565
+ "sourceLocation": {
566
+ "filePath": "@goodie-ts/kysely",
567
+ "line": 29,
568
+ "column": 15
569
+ }
570
+ }
571
+ ],
572
+ "fieldDeps": [],
573
+ "factoryKind": "constructor",
574
+ "providesSource": null,
575
+ "baseTokenRefs": [
576
+ {
577
+ "kind": "class",
578
+ "className": "KyselyDatabase",
579
+ "importPath": "@goodie-ts/kysely"
580
+ }
581
+ ],
582
+ "decorators": [
583
+ {
584
+ "name": "Singleton",
585
+ "importPath": "@goodie-ts/kysely"
586
+ },
587
+ {
588
+ "name": "Eager",
589
+ "importPath": "@goodie-ts/kysely"
590
+ },
591
+ {
592
+ "name": "ConditionalOnProperty",
593
+ "importPath": "@goodie-ts/kysely"
594
+ }
595
+ ],
596
+ "methodDecorators": {
597
+ "init": [
598
+ {
599
+ "name": "OnInit",
600
+ "importPath": "@goodie-ts/kysely"
601
+ }
602
+ ],
603
+ "destroy": [
604
+ {
605
+ "name": "OnDestroy",
606
+ "importPath": "@goodie-ts/kysely"
607
+ }
608
+ ]
609
+ },
610
+ "publicMembers": null,
611
+ "metadata": {
612
+ "onDestroyMethods": [
613
+ "destroy"
614
+ ],
615
+ "onInitMethods": [
616
+ "init"
617
+ ],
618
+ "conditionalRules": [
619
+ {
620
+ "type": "onProperty",
621
+ "key": "datasource.dialect",
622
+ "expectedValue": "libsql"
623
+ }
624
+ ]
625
+ },
626
+ "sourceLocation": {
627
+ "filePath": "@goodie-ts/kysely",
628
+ "line": 23,
629
+ "column": 1
630
+ }
631
+ },
632
+ {
633
+ "tokenRef": {
634
+ "kind": "class",
635
+ "className": "MysqlDatasourceConfig",
636
+ "importPath": "@goodie-ts/kysely"
637
+ },
638
+ "scope": "singleton",
639
+ "eager": false,
640
+ "name": null,
641
+ "primary": false,
642
+ "constructorDeps": [],
643
+ "fieldDeps": [],
644
+ "factoryKind": "constructor",
645
+ "providesSource": null,
646
+ "baseTokenRefs": null,
647
+ "decorators": [
648
+ {
649
+ "name": "Singleton",
650
+ "importPath": "@goodie-ts/kysely"
651
+ },
652
+ {
653
+ "name": "Config",
654
+ "importPath": "@goodie-ts/kysely"
655
+ },
656
+ {
657
+ "name": "ConditionalOnProperty",
658
+ "importPath": "@goodie-ts/kysely"
659
+ }
660
+ ],
661
+ "methodDecorators": null,
662
+ "publicMembers": null,
663
+ "metadata": {
664
+ "introspectedFields": [
665
+ {
666
+ "name": "dialect",
667
+ "type": {
668
+ "kind": "primitive",
669
+ "type": "string"
670
+ },
671
+ "decorators": []
672
+ },
673
+ {
674
+ "name": "url",
675
+ "type": {
676
+ "kind": "primitive",
677
+ "type": "string"
678
+ },
679
+ "decorators": []
680
+ },
681
+ {
682
+ "name": "host",
683
+ "type": {
684
+ "kind": "primitive",
685
+ "type": "string"
686
+ },
687
+ "decorators": []
688
+ },
689
+ {
690
+ "name": "port",
691
+ "type": {
692
+ "kind": "primitive",
693
+ "type": "number"
694
+ },
695
+ "decorators": []
696
+ },
697
+ {
698
+ "name": "database",
699
+ "type": {
700
+ "kind": "primitive",
701
+ "type": "string"
702
+ },
703
+ "decorators": []
704
+ },
705
+ {
706
+ "name": "user",
707
+ "type": {
708
+ "kind": "primitive",
709
+ "type": "string"
710
+ },
711
+ "decorators": []
712
+ },
713
+ {
714
+ "name": "password",
715
+ "type": {
716
+ "kind": "primitive",
717
+ "type": "string"
718
+ },
719
+ "decorators": []
720
+ }
721
+ ],
722
+ "__typeRegistration": {
723
+ "className": "MysqlDatasourceConfig",
724
+ "importPath": "/home/runner/work/goodie/goodie/packages/kysely/src/dialects/mysql.ts",
725
+ "fields": [
726
+ {
727
+ "name": "dialect",
728
+ "type": {
729
+ "kind": "primitive",
730
+ "type": "string"
731
+ },
732
+ "decorators": []
733
+ },
734
+ {
735
+ "name": "url",
736
+ "type": {
737
+ "kind": "primitive",
738
+ "type": "string"
739
+ },
740
+ "decorators": []
741
+ },
742
+ {
743
+ "name": "host",
744
+ "type": {
745
+ "kind": "primitive",
746
+ "type": "string"
747
+ },
748
+ "decorators": []
749
+ },
750
+ {
751
+ "name": "port",
752
+ "type": {
753
+ "kind": "primitive",
754
+ "type": "number"
755
+ },
756
+ "decorators": []
757
+ },
758
+ {
759
+ "name": "database",
760
+ "type": {
761
+ "kind": "primitive",
762
+ "type": "string"
763
+ },
764
+ "decorators": []
765
+ },
766
+ {
767
+ "name": "user",
768
+ "type": {
769
+ "kind": "primitive",
770
+ "type": "string"
771
+ },
772
+ "decorators": []
773
+ },
774
+ {
775
+ "name": "password",
776
+ "type": {
777
+ "kind": "primitive",
778
+ "type": "string"
779
+ },
780
+ "decorators": []
781
+ }
782
+ ]
783
+ },
784
+ "valueFields": [
785
+ {
786
+ "fieldName": "dialect",
787
+ "key": "datasource.dialect",
788
+ "default": "''"
789
+ },
790
+ {
791
+ "fieldName": "url",
792
+ "key": "datasource.url",
793
+ "default": "''"
794
+ },
795
+ {
796
+ "fieldName": "host",
797
+ "key": "datasource.host",
798
+ "default": "''"
799
+ },
800
+ {
801
+ "fieldName": "port",
802
+ "key": "datasource.port",
803
+ "default": "3306"
804
+ },
805
+ {
806
+ "fieldName": "database",
807
+ "key": "datasource.database",
808
+ "default": "''"
809
+ },
810
+ {
811
+ "fieldName": "user",
812
+ "key": "datasource.user",
813
+ "default": "''"
814
+ },
815
+ {
816
+ "fieldName": "password",
817
+ "key": "datasource.password",
818
+ "default": "''"
819
+ }
820
+ ],
821
+ "conditionalRules": [
822
+ {
823
+ "type": "onProperty",
824
+ "key": "datasource.dialect",
825
+ "expectedValue": "mysql"
826
+ }
827
+ ]
828
+ },
829
+ "sourceLocation": {
830
+ "filePath": "@goodie-ts/kysely",
831
+ "line": 13,
832
+ "column": 1
833
+ }
834
+ },
835
+ {
836
+ "tokenRef": {
837
+ "kind": "class",
838
+ "className": "MysqlKyselyDatabase",
839
+ "importPath": "@goodie-ts/kysely"
840
+ },
841
+ "scope": "singleton",
842
+ "eager": true,
843
+ "name": null,
844
+ "primary": false,
845
+ "constructorDeps": [
846
+ {
847
+ "tokenRef": {
848
+ "kind": "class",
849
+ "className": "MysqlDatasourceConfig",
850
+ "importPath": "@goodie-ts/kysely"
851
+ },
852
+ "optional": false,
853
+ "collection": false,
854
+ "sourceLocation": {
855
+ "filePath": "@goodie-ts/kysely",
856
+ "line": 34,
857
+ "column": 5
858
+ }
859
+ },
860
+ {
861
+ "tokenRef": {
862
+ "kind": "class",
863
+ "className": "PoolConfig",
864
+ "importPath": "@goodie-ts/kysely"
865
+ },
866
+ "optional": false,
867
+ "collection": false,
868
+ "sourceLocation": {
869
+ "filePath": "@goodie-ts/kysely",
870
+ "line": 35,
871
+ "column": 5
872
+ }
873
+ }
874
+ ],
875
+ "fieldDeps": [],
876
+ "factoryKind": "constructor",
877
+ "providesSource": null,
878
+ "baseTokenRefs": [
879
+ {
880
+ "kind": "class",
881
+ "className": "KyselyDatabase",
882
+ "importPath": "@goodie-ts/kysely"
883
+ }
884
+ ],
885
+ "decorators": [
886
+ {
887
+ "name": "Singleton",
888
+ "importPath": "@goodie-ts/kysely"
889
+ },
890
+ {
891
+ "name": "Eager",
892
+ "importPath": "@goodie-ts/kysely"
893
+ },
894
+ {
895
+ "name": "ConditionalOnProperty",
896
+ "importPath": "@goodie-ts/kysely"
897
+ }
898
+ ],
899
+ "methodDecorators": {
900
+ "init": [
901
+ {
902
+ "name": "OnInit",
903
+ "importPath": "@goodie-ts/kysely"
904
+ }
905
+ ],
906
+ "destroy": [
907
+ {
908
+ "name": "OnDestroy",
909
+ "importPath": "@goodie-ts/kysely"
910
+ }
911
+ ]
912
+ },
913
+ "publicMembers": null,
914
+ "metadata": {
915
+ "onDestroyMethods": [
916
+ "destroy"
917
+ ],
918
+ "onInitMethods": [
919
+ "init"
920
+ ],
921
+ "conditionalRules": [
922
+ {
923
+ "type": "onProperty",
924
+ "key": "datasource.dialect",
925
+ "expectedValue": "mysql"
926
+ }
927
+ ]
928
+ },
929
+ "sourceLocation": {
930
+ "filePath": "@goodie-ts/kysely",
931
+ "line": 27,
932
+ "column": 1
933
+ }
934
+ },
935
+ {
936
+ "tokenRef": {
937
+ "kind": "class",
938
+ "className": "NeonDatasourceConfig",
939
+ "importPath": "@goodie-ts/kysely"
940
+ },
941
+ "scope": "singleton",
942
+ "eager": false,
943
+ "name": null,
944
+ "primary": false,
945
+ "constructorDeps": [],
946
+ "fieldDeps": [],
947
+ "factoryKind": "constructor",
948
+ "providesSource": null,
949
+ "baseTokenRefs": null,
950
+ "decorators": [
951
+ {
952
+ "name": "Singleton",
953
+ "importPath": "@goodie-ts/kysely"
954
+ },
955
+ {
956
+ "name": "Config",
957
+ "importPath": "@goodie-ts/kysely"
958
+ },
959
+ {
960
+ "name": "ConditionalOnProperty",
961
+ "importPath": "@goodie-ts/kysely"
962
+ }
963
+ ],
964
+ "methodDecorators": null,
965
+ "publicMembers": null,
966
+ "metadata": {
967
+ "introspectedFields": [
968
+ {
969
+ "name": "dialect",
970
+ "type": {
971
+ "kind": "primitive",
972
+ "type": "string"
973
+ },
974
+ "decorators": []
975
+ },
976
+ {
977
+ "name": "url",
978
+ "type": {
979
+ "kind": "primitive",
980
+ "type": "string"
981
+ },
982
+ "decorators": []
983
+ }
984
+ ],
985
+ "__typeRegistration": {
986
+ "className": "NeonDatasourceConfig",
987
+ "importPath": "/home/runner/work/goodie/goodie/packages/kysely/src/dialects/neon.ts",
988
+ "fields": [
989
+ {
990
+ "name": "dialect",
991
+ "type": {
992
+ "kind": "primitive",
993
+ "type": "string"
994
+ },
995
+ "decorators": []
996
+ },
997
+ {
998
+ "name": "url",
999
+ "type": {
1000
+ "kind": "primitive",
1001
+ "type": "string"
1002
+ },
1003
+ "decorators": []
1004
+ }
1005
+ ]
1006
+ },
1007
+ "valueFields": [
1008
+ {
1009
+ "fieldName": "dialect",
1010
+ "key": "datasource.dialect",
1011
+ "default": "''"
1012
+ },
1013
+ {
1014
+ "fieldName": "url",
1015
+ "key": "datasource.url",
1016
+ "default": "''"
1017
+ }
1018
+ ],
1019
+ "conditionalRules": [
1020
+ {
1021
+ "type": "onProperty",
1022
+ "key": "datasource.dialect",
1023
+ "expectedValue": "neon"
1024
+ }
1025
+ ]
1026
+ },
1027
+ "sourceLocation": {
1028
+ "filePath": "@goodie-ts/kysely",
1029
+ "line": 12,
1030
+ "column": 1
1031
+ }
1032
+ },
1033
+ {
1034
+ "tokenRef": {
1035
+ "kind": "class",
1036
+ "className": "NeonKyselyDatabase",
1037
+ "importPath": "@goodie-ts/kysely"
1038
+ },
1039
+ "scope": "singleton",
1040
+ "eager": true,
1041
+ "name": null,
1042
+ "primary": false,
1043
+ "constructorDeps": [
1044
+ {
1045
+ "tokenRef": {
1046
+ "kind": "class",
1047
+ "className": "NeonDatasourceConfig",
1048
+ "importPath": "@goodie-ts/kysely"
1049
+ },
1050
+ "optional": false,
1051
+ "collection": false,
1052
+ "sourceLocation": {
1053
+ "filePath": "@goodie-ts/kysely",
1054
+ "line": 27,
1055
+ "column": 15
1056
+ }
1057
+ }
1058
+ ],
1059
+ "fieldDeps": [],
1060
+ "factoryKind": "constructor",
1061
+ "providesSource": null,
1062
+ "baseTokenRefs": [
1063
+ {
1064
+ "kind": "class",
1065
+ "className": "KyselyDatabase",
1066
+ "importPath": "@goodie-ts/kysely"
1067
+ }
1068
+ ],
1069
+ "decorators": [
1070
+ {
1071
+ "name": "Singleton",
1072
+ "importPath": "@goodie-ts/kysely"
1073
+ },
1074
+ {
1075
+ "name": "Eager",
1076
+ "importPath": "@goodie-ts/kysely"
1077
+ },
1078
+ {
1079
+ "name": "ConditionalOnProperty",
1080
+ "importPath": "@goodie-ts/kysely"
1081
+ }
1082
+ ],
1083
+ "methodDecorators": {
1084
+ "init": [
1085
+ {
1086
+ "name": "OnInit",
1087
+ "importPath": "@goodie-ts/kysely"
1088
+ }
1089
+ ],
1090
+ "destroy": [
1091
+ {
1092
+ "name": "OnDestroy",
1093
+ "importPath": "@goodie-ts/kysely"
1094
+ }
1095
+ ]
1096
+ },
1097
+ "publicMembers": null,
1098
+ "metadata": {
1099
+ "onDestroyMethods": [
1100
+ "destroy"
1101
+ ],
1102
+ "onInitMethods": [
1103
+ "init"
1104
+ ],
1105
+ "conditionalRules": [
1106
+ {
1107
+ "type": "onProperty",
1108
+ "key": "datasource.dialect",
1109
+ "expectedValue": "neon"
1110
+ }
1111
+ ]
1112
+ },
1113
+ "sourceLocation": {
1114
+ "filePath": "@goodie-ts/kysely",
1115
+ "line": 21,
1116
+ "column": 1
1117
+ }
1118
+ },
1119
+ {
1120
+ "tokenRef": {
1121
+ "kind": "class",
1122
+ "className": "PlanetscaleDatasourceConfig",
1123
+ "importPath": "@goodie-ts/kysely"
1124
+ },
1125
+ "scope": "singleton",
1126
+ "eager": false,
1127
+ "name": null,
1128
+ "primary": false,
1129
+ "constructorDeps": [],
1130
+ "fieldDeps": [],
1131
+ "factoryKind": "constructor",
1132
+ "providesSource": null,
1133
+ "baseTokenRefs": null,
1134
+ "decorators": [
1135
+ {
1136
+ "name": "Singleton",
1137
+ "importPath": "@goodie-ts/kysely"
1138
+ },
1139
+ {
1140
+ "name": "Config",
1141
+ "importPath": "@goodie-ts/kysely"
1142
+ },
1143
+ {
1144
+ "name": "ConditionalOnProperty",
1145
+ "importPath": "@goodie-ts/kysely"
1146
+ }
1147
+ ],
1148
+ "methodDecorators": null,
1149
+ "publicMembers": null,
1150
+ "metadata": {
1151
+ "introspectedFields": [
1152
+ {
1153
+ "name": "dialect",
1154
+ "type": {
1155
+ "kind": "primitive",
1156
+ "type": "string"
1157
+ },
1158
+ "decorators": []
1159
+ },
1160
+ {
1161
+ "name": "url",
1162
+ "type": {
1163
+ "kind": "primitive",
1164
+ "type": "string"
1165
+ },
1166
+ "decorators": []
1167
+ },
1168
+ {
1169
+ "name": "username",
1170
+ "type": {
1171
+ "kind": "primitive",
1172
+ "type": "string"
1173
+ },
1174
+ "decorators": []
1175
+ },
1176
+ {
1177
+ "name": "password",
1178
+ "type": {
1179
+ "kind": "primitive",
1180
+ "type": "string"
1181
+ },
1182
+ "decorators": []
1183
+ },
1184
+ {
1185
+ "name": "host",
1186
+ "type": {
1187
+ "kind": "primitive",
1188
+ "type": "string"
1189
+ },
1190
+ "decorators": []
1191
+ }
1192
+ ],
1193
+ "__typeRegistration": {
1194
+ "className": "PlanetscaleDatasourceConfig",
1195
+ "importPath": "/home/runner/work/goodie/goodie/packages/kysely/src/dialects/planetscale.ts",
1196
+ "fields": [
1197
+ {
1198
+ "name": "dialect",
1199
+ "type": {
1200
+ "kind": "primitive",
1201
+ "type": "string"
1202
+ },
1203
+ "decorators": []
1204
+ },
1205
+ {
1206
+ "name": "url",
1207
+ "type": {
1208
+ "kind": "primitive",
1209
+ "type": "string"
1210
+ },
1211
+ "decorators": []
1212
+ },
1213
+ {
1214
+ "name": "username",
1215
+ "type": {
1216
+ "kind": "primitive",
1217
+ "type": "string"
1218
+ },
1219
+ "decorators": []
1220
+ },
1221
+ {
1222
+ "name": "password",
1223
+ "type": {
1224
+ "kind": "primitive",
1225
+ "type": "string"
1226
+ },
1227
+ "decorators": []
1228
+ },
1229
+ {
1230
+ "name": "host",
1231
+ "type": {
1232
+ "kind": "primitive",
1233
+ "type": "string"
1234
+ },
1235
+ "decorators": []
1236
+ }
1237
+ ]
1238
+ },
1239
+ "valueFields": [
1240
+ {
1241
+ "fieldName": "dialect",
1242
+ "key": "datasource.dialect",
1243
+ "default": "''"
1244
+ },
1245
+ {
1246
+ "fieldName": "url",
1247
+ "key": "datasource.url",
1248
+ "default": "''"
1249
+ },
1250
+ {
1251
+ "fieldName": "username",
1252
+ "key": "datasource.username",
1253
+ "default": "''"
1254
+ },
1255
+ {
1256
+ "fieldName": "password",
1257
+ "key": "datasource.password",
1258
+ "default": "''"
1259
+ },
1260
+ {
1261
+ "fieldName": "host",
1262
+ "key": "datasource.host",
1263
+ "default": "''"
1264
+ }
1265
+ ],
1266
+ "conditionalRules": [
1267
+ {
1268
+ "type": "onProperty",
1269
+ "key": "datasource.dialect",
1270
+ "expectedValue": "planetscale"
1271
+ }
1272
+ ]
1273
+ },
1274
+ "sourceLocation": {
1275
+ "filePath": "@goodie-ts/kysely",
1276
+ "line": 12,
1277
+ "column": 1
1278
+ }
1279
+ },
1280
+ {
1281
+ "tokenRef": {
1282
+ "kind": "class",
1283
+ "className": "PlanetscaleKyselyDatabase",
1284
+ "importPath": "@goodie-ts/kysely"
1285
+ },
1286
+ "scope": "singleton",
1287
+ "eager": true,
1288
+ "name": null,
1289
+ "primary": false,
1290
+ "constructorDeps": [
1291
+ {
1292
+ "tokenRef": {
1293
+ "kind": "class",
1294
+ "className": "PlanetscaleDatasourceConfig",
1295
+ "importPath": "@goodie-ts/kysely"
1296
+ },
1297
+ "optional": false,
1298
+ "collection": false,
1299
+ "sourceLocation": {
1300
+ "filePath": "@goodie-ts/kysely",
1301
+ "line": 30,
1302
+ "column": 15
1303
+ }
1304
+ }
1305
+ ],
1306
+ "fieldDeps": [],
1307
+ "factoryKind": "constructor",
1308
+ "providesSource": null,
1309
+ "baseTokenRefs": [
1310
+ {
1311
+ "kind": "class",
1312
+ "className": "KyselyDatabase",
1313
+ "importPath": "@goodie-ts/kysely"
1314
+ }
1315
+ ],
1316
+ "decorators": [
1317
+ {
1318
+ "name": "Singleton",
1319
+ "importPath": "@goodie-ts/kysely"
1320
+ },
1321
+ {
1322
+ "name": "Eager",
1323
+ "importPath": "@goodie-ts/kysely"
1324
+ },
1325
+ {
1326
+ "name": "ConditionalOnProperty",
1327
+ "importPath": "@goodie-ts/kysely"
1328
+ }
1329
+ ],
1330
+ "methodDecorators": {
1331
+ "init": [
1332
+ {
1333
+ "name": "OnInit",
1334
+ "importPath": "@goodie-ts/kysely"
1335
+ }
1336
+ ],
1337
+ "destroy": [
1338
+ {
1339
+ "name": "OnDestroy",
1340
+ "importPath": "@goodie-ts/kysely"
1341
+ }
1342
+ ]
1343
+ },
1344
+ "publicMembers": null,
1345
+ "metadata": {
1346
+ "onDestroyMethods": [
1347
+ "destroy"
1348
+ ],
1349
+ "onInitMethods": [
1350
+ "init"
1351
+ ],
1352
+ "conditionalRules": [
1353
+ {
1354
+ "type": "onProperty",
1355
+ "key": "datasource.dialect",
1356
+ "expectedValue": "planetscale"
1357
+ }
1358
+ ]
1359
+ },
1360
+ "sourceLocation": {
1361
+ "filePath": "@goodie-ts/kysely",
1362
+ "line": 24,
1363
+ "column": 1
1364
+ }
1365
+ },
1366
+ {
1367
+ "tokenRef": {
1368
+ "kind": "class",
1369
+ "className": "PostgresDatasourceConfig",
1370
+ "importPath": "@goodie-ts/kysely"
1371
+ },
1372
+ "scope": "singleton",
1373
+ "eager": false,
1374
+ "name": null,
1375
+ "primary": false,
1376
+ "constructorDeps": [],
1377
+ "fieldDeps": [],
1378
+ "factoryKind": "constructor",
1379
+ "providesSource": null,
1380
+ "baseTokenRefs": null,
1381
+ "decorators": [
1382
+ {
1383
+ "name": "Singleton",
1384
+ "importPath": "@goodie-ts/kysely"
1385
+ },
1386
+ {
1387
+ "name": "Config",
1388
+ "importPath": "@goodie-ts/kysely"
1389
+ },
1390
+ {
1391
+ "name": "ConditionalOnProperty",
1392
+ "importPath": "@goodie-ts/kysely"
1393
+ }
1394
+ ],
1395
+ "methodDecorators": null,
1396
+ "publicMembers": null,
1397
+ "metadata": {
1398
+ "introspectedFields": [
1399
+ {
1400
+ "name": "dialect",
1401
+ "type": {
1402
+ "kind": "primitive",
1403
+ "type": "string"
1404
+ },
1405
+ "decorators": []
1406
+ },
1407
+ {
1408
+ "name": "url",
1409
+ "type": {
1410
+ "kind": "primitive",
1411
+ "type": "string"
1412
+ },
1413
+ "decorators": []
1414
+ },
1415
+ {
1416
+ "name": "host",
1417
+ "type": {
1418
+ "kind": "primitive",
1419
+ "type": "string"
1420
+ },
1421
+ "decorators": []
1422
+ },
1423
+ {
1424
+ "name": "port",
1425
+ "type": {
1426
+ "kind": "primitive",
1427
+ "type": "number"
1428
+ },
1429
+ "decorators": []
1430
+ },
1431
+ {
1432
+ "name": "database",
1433
+ "type": {
1434
+ "kind": "primitive",
1435
+ "type": "string"
1436
+ },
1437
+ "decorators": []
1438
+ },
1439
+ {
1440
+ "name": "user",
1441
+ "type": {
1442
+ "kind": "primitive",
1443
+ "type": "string"
1444
+ },
1445
+ "decorators": []
1446
+ },
1447
+ {
1448
+ "name": "password",
1449
+ "type": {
1450
+ "kind": "primitive",
1451
+ "type": "string"
1452
+ },
1453
+ "decorators": []
1454
+ }
1455
+ ],
1456
+ "__typeRegistration": {
1457
+ "className": "PostgresDatasourceConfig",
1458
+ "importPath": "/home/runner/work/goodie/goodie/packages/kysely/src/dialects/postgres.ts",
1459
+ "fields": [
1460
+ {
1461
+ "name": "dialect",
1462
+ "type": {
1463
+ "kind": "primitive",
1464
+ "type": "string"
1465
+ },
1466
+ "decorators": []
1467
+ },
1468
+ {
1469
+ "name": "url",
1470
+ "type": {
1471
+ "kind": "primitive",
1472
+ "type": "string"
1473
+ },
1474
+ "decorators": []
1475
+ },
1476
+ {
1477
+ "name": "host",
1478
+ "type": {
1479
+ "kind": "primitive",
1480
+ "type": "string"
1481
+ },
1482
+ "decorators": []
1483
+ },
1484
+ {
1485
+ "name": "port",
1486
+ "type": {
1487
+ "kind": "primitive",
1488
+ "type": "number"
1489
+ },
1490
+ "decorators": []
1491
+ },
1492
+ {
1493
+ "name": "database",
1494
+ "type": {
1495
+ "kind": "primitive",
1496
+ "type": "string"
1497
+ },
1498
+ "decorators": []
1499
+ },
1500
+ {
1501
+ "name": "user",
1502
+ "type": {
1503
+ "kind": "primitive",
1504
+ "type": "string"
1505
+ },
1506
+ "decorators": []
1507
+ },
1508
+ {
1509
+ "name": "password",
1510
+ "type": {
1511
+ "kind": "primitive",
1512
+ "type": "string"
1513
+ },
1514
+ "decorators": []
1515
+ }
1516
+ ]
1517
+ },
1518
+ "valueFields": [
1519
+ {
1520
+ "fieldName": "dialect",
1521
+ "key": "datasource.dialect",
1522
+ "default": "''"
1523
+ },
1524
+ {
1525
+ "fieldName": "url",
1526
+ "key": "datasource.url",
1527
+ "default": "''"
1528
+ },
1529
+ {
1530
+ "fieldName": "host",
1531
+ "key": "datasource.host",
1532
+ "default": "''"
1533
+ },
1534
+ {
1535
+ "fieldName": "port",
1536
+ "key": "datasource.port",
1537
+ "default": "5432"
1538
+ },
1539
+ {
1540
+ "fieldName": "database",
1541
+ "key": "datasource.database",
1542
+ "default": "''"
1543
+ },
1544
+ {
1545
+ "fieldName": "user",
1546
+ "key": "datasource.user",
1547
+ "default": "''"
1548
+ },
1549
+ {
1550
+ "fieldName": "password",
1551
+ "key": "datasource.password",
1552
+ "default": "''"
1553
+ }
1554
+ ],
1555
+ "conditionalRules": [
1556
+ {
1557
+ "type": "onProperty",
1558
+ "key": "datasource.dialect",
1559
+ "expectedValue": "postgres"
1560
+ }
1561
+ ]
1562
+ },
1563
+ "sourceLocation": {
1564
+ "filePath": "@goodie-ts/kysely",
1565
+ "line": 19,
1566
+ "column": 1
1567
+ }
1568
+ },
1569
+ {
1570
+ "tokenRef": {
1571
+ "kind": "class",
1572
+ "className": "PostgresKyselyDatabase",
1573
+ "importPath": "@goodie-ts/kysely"
1574
+ },
1575
+ "scope": "singleton",
1576
+ "eager": true,
1577
+ "name": null,
1578
+ "primary": false,
1579
+ "constructorDeps": [
1580
+ {
1581
+ "tokenRef": {
1582
+ "kind": "class",
1583
+ "className": "PostgresDatasourceConfig",
1584
+ "importPath": "@goodie-ts/kysely"
1585
+ },
1586
+ "optional": false,
1587
+ "collection": false,
1588
+ "sourceLocation": {
1589
+ "filePath": "@goodie-ts/kysely",
1590
+ "line": 40,
1591
+ "column": 5
1592
+ }
1593
+ },
1594
+ {
1595
+ "tokenRef": {
1596
+ "kind": "class",
1597
+ "className": "PoolConfig",
1598
+ "importPath": "@goodie-ts/kysely"
1599
+ },
1600
+ "optional": false,
1601
+ "collection": false,
1602
+ "sourceLocation": {
1603
+ "filePath": "@goodie-ts/kysely",
1604
+ "line": 41,
1605
+ "column": 5
1606
+ }
1607
+ }
1608
+ ],
1609
+ "fieldDeps": [],
1610
+ "factoryKind": "constructor",
1611
+ "providesSource": null,
1612
+ "baseTokenRefs": [
1613
+ {
1614
+ "kind": "class",
1615
+ "className": "KyselyDatabase",
1616
+ "importPath": "@goodie-ts/kysely"
1617
+ }
1618
+ ],
1619
+ "decorators": [
1620
+ {
1621
+ "name": "Singleton",
1622
+ "importPath": "@goodie-ts/kysely"
1623
+ },
1624
+ {
1625
+ "name": "Eager",
1626
+ "importPath": "@goodie-ts/kysely"
1627
+ },
1628
+ {
1629
+ "name": "ConditionalOnProperty",
1630
+ "importPath": "@goodie-ts/kysely"
1631
+ }
1632
+ ],
1633
+ "methodDecorators": {
1634
+ "init": [
1635
+ {
1636
+ "name": "OnInit",
1637
+ "importPath": "@goodie-ts/kysely"
1638
+ }
1639
+ ],
1640
+ "destroy": [
1641
+ {
1642
+ "name": "OnDestroy",
1643
+ "importPath": "@goodie-ts/kysely"
1644
+ }
1645
+ ]
1646
+ },
1647
+ "publicMembers": null,
1648
+ "metadata": {
1649
+ "onDestroyMethods": [
1650
+ "destroy"
1651
+ ],
1652
+ "onInitMethods": [
1653
+ "init"
1654
+ ],
1655
+ "conditionalRules": [
1656
+ {
1657
+ "type": "onProperty",
1658
+ "key": "datasource.dialect",
1659
+ "expectedValue": "postgres"
1660
+ }
1661
+ ]
1662
+ },
1663
+ "sourceLocation": {
1664
+ "filePath": "@goodie-ts/kysely",
1665
+ "line": 33,
1666
+ "column": 1
1667
+ }
1668
+ },
1669
+ {
1670
+ "tokenRef": {
1671
+ "kind": "class",
1672
+ "className": "SqliteDatasourceConfig",
1673
+ "importPath": "@goodie-ts/kysely"
1674
+ },
1675
+ "scope": "singleton",
1676
+ "eager": false,
1677
+ "name": null,
1678
+ "primary": false,
1679
+ "constructorDeps": [],
1680
+ "fieldDeps": [],
1681
+ "factoryKind": "constructor",
1682
+ "providesSource": null,
1683
+ "baseTokenRefs": null,
1684
+ "decorators": [
1685
+ {
1686
+ "name": "Singleton",
1687
+ "importPath": "@goodie-ts/kysely"
1688
+ },
1689
+ {
1690
+ "name": "Config",
1691
+ "importPath": "@goodie-ts/kysely"
1692
+ },
1693
+ {
1694
+ "name": "ConditionalOnProperty",
1695
+ "importPath": "@goodie-ts/kysely"
1696
+ }
1697
+ ],
1698
+ "methodDecorators": null,
1699
+ "publicMembers": null,
1700
+ "metadata": {
1701
+ "introspectedFields": [
1702
+ {
1703
+ "name": "dialect",
1704
+ "type": {
1705
+ "kind": "primitive",
1706
+ "type": "string"
1707
+ },
1708
+ "decorators": []
1709
+ },
1710
+ {
1711
+ "name": "url",
1712
+ "type": {
1713
+ "kind": "primitive",
1714
+ "type": "string"
1715
+ },
1716
+ "decorators": []
1717
+ }
1718
+ ],
1719
+ "__typeRegistration": {
1720
+ "className": "SqliteDatasourceConfig",
1721
+ "importPath": "/home/runner/work/goodie/goodie/packages/kysely/src/dialects/sqlite.ts",
1722
+ "fields": [
1723
+ {
1724
+ "name": "dialect",
1725
+ "type": {
1726
+ "kind": "primitive",
1727
+ "type": "string"
1728
+ },
1729
+ "decorators": []
1730
+ },
1731
+ {
1732
+ "name": "url",
1733
+ "type": {
1734
+ "kind": "primitive",
1735
+ "type": "string"
1736
+ },
1737
+ "decorators": []
1738
+ }
1739
+ ]
1740
+ },
1741
+ "valueFields": [
1742
+ {
1743
+ "fieldName": "dialect",
1744
+ "key": "datasource.dialect",
1745
+ "default": "''"
1746
+ },
1747
+ {
1748
+ "fieldName": "url",
1749
+ "key": "datasource.url",
1750
+ "default": "''"
1751
+ }
1752
+ ],
1753
+ "conditionalRules": [
1754
+ {
1755
+ "type": "onProperty",
1756
+ "key": "datasource.dialect",
1757
+ "expectedValue": "sqlite"
1758
+ }
1759
+ ]
1760
+ },
1761
+ "sourceLocation": {
1762
+ "filePath": "@goodie-ts/kysely",
1763
+ "line": 12,
1764
+ "column": 1
1765
+ }
1766
+ },
1767
+ {
1768
+ "tokenRef": {
1769
+ "kind": "class",
1770
+ "className": "SqliteKyselyDatabase",
1771
+ "importPath": "@goodie-ts/kysely"
1772
+ },
1773
+ "scope": "singleton",
1774
+ "eager": true,
1775
+ "name": null,
1776
+ "primary": false,
1777
+ "constructorDeps": [
1778
+ {
1779
+ "tokenRef": {
1780
+ "kind": "class",
1781
+ "className": "SqliteDatasourceConfig",
1782
+ "importPath": "@goodie-ts/kysely"
1783
+ },
1784
+ "optional": false,
1785
+ "collection": false,
1786
+ "sourceLocation": {
1787
+ "filePath": "@goodie-ts/kysely",
1788
+ "line": 27,
1789
+ "column": 15
1790
+ }
1791
+ }
1792
+ ],
1793
+ "fieldDeps": [],
1794
+ "factoryKind": "constructor",
1795
+ "providesSource": null,
1796
+ "baseTokenRefs": [
1797
+ {
1798
+ "kind": "class",
1799
+ "className": "KyselyDatabase",
1800
+ "importPath": "@goodie-ts/kysely"
1801
+ }
1802
+ ],
1803
+ "decorators": [
1804
+ {
1805
+ "name": "Singleton",
1806
+ "importPath": "@goodie-ts/kysely"
1807
+ },
1808
+ {
1809
+ "name": "Eager",
1810
+ "importPath": "@goodie-ts/kysely"
1811
+ },
1812
+ {
1813
+ "name": "ConditionalOnProperty",
1814
+ "importPath": "@goodie-ts/kysely"
1815
+ }
1816
+ ],
1817
+ "methodDecorators": {
1818
+ "init": [
1819
+ {
1820
+ "name": "OnInit",
1821
+ "importPath": "@goodie-ts/kysely"
1822
+ }
1823
+ ],
1824
+ "destroy": [
1825
+ {
1826
+ "name": "OnDestroy",
1827
+ "importPath": "@goodie-ts/kysely"
1828
+ }
1829
+ ]
1830
+ },
1831
+ "publicMembers": null,
1832
+ "metadata": {
1833
+ "onDestroyMethods": [
1834
+ "destroy"
1835
+ ],
1836
+ "onInitMethods": [
1837
+ "init"
1838
+ ],
1839
+ "conditionalRules": [
1840
+ {
1841
+ "type": "onProperty",
1842
+ "key": "datasource.dialect",
1843
+ "expectedValue": "sqlite"
1844
+ }
1845
+ ]
1846
+ },
1847
+ "sourceLocation": {
1848
+ "filePath": "@goodie-ts/kysely",
1849
+ "line": 21,
1850
+ "column": 1
1851
+ }
1852
+ }
1853
+ ]
1854
+ }