@prisma/orm-target-mysql 8.0.0-rc.22-dev.10 → 8.0.0-rc.22-dev.12

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 (156) hide show
  1. package/README.md +3 -1
  2. package/dist/{adapter-_WBomuTw.d.mts → adapter-Dl4Wwz1I.d.mts} +4 -2
  3. package/dist/adapter-Dl4Wwz1I.d.mts.map +1 -0
  4. package/dist/adapter.d.mts +5 -5
  5. package/dist/adapter.mjs +2 -2
  6. package/dist/adapter__adapter.d.mts +1 -1
  7. package/dist/adapter__adapter.mjs +1 -1
  8. package/dist/adapter__codec-types.d.mts +2 -2
  9. package/dist/adapter__control.d.mts +1 -1
  10. package/dist/adapter__control.mjs +1 -1
  11. package/dist/adapter__runtime.d.mts +1 -1
  12. package/dist/adapter__runtime.mjs +89 -14
  13. package/dist/adapter__runtime.mjs.map +1 -1
  14. package/dist/{codec-descriptor-Du6DSz-3-ytBCu_mq.mjs → codec-descriptor-3xp1XvVH-yVLnNzZ8.mjs} +5 -3
  15. package/dist/codec-descriptor-3xp1XvVH-yVLnNzZ8.mjs.map +1 -0
  16. package/dist/codec-ids-CrR9Xi7r-CarpqbNM.mjs +20 -0
  17. package/dist/codec-ids-CrR9Xi7r-CarpqbNM.mjs.map +1 -0
  18. package/dist/codec-ids-Dgh5IpML-76oBMuwK.d.mts +20 -0
  19. package/dist/codec-ids-Dgh5IpML-76oBMuwK.d.mts.map +1 -0
  20. package/dist/codec-types-BH5moCD9.d.mts +1 -0
  21. package/dist/codec-types-Bai_CFkk-Blx2GxCH.d.mts +31 -0
  22. package/dist/codec-types-Bai_CFkk-Blx2GxCH.d.mts.map +1 -0
  23. package/dist/codec-types-zzVcrnbk.d.mts +1 -0
  24. package/dist/codecs-BMidk26M-DsKq6wt5.d.mts +282 -0
  25. package/dist/codecs-BMidk26M-DsKq6wt5.d.mts.map +1 -0
  26. package/dist/codecs-BfiB79-5.mjs +750 -0
  27. package/dist/codecs-BfiB79-5.mjs.map +1 -0
  28. package/dist/codecs-C_twedMx.d.mts +36 -0
  29. package/dist/codecs-C_twedMx.d.mts.map +1 -0
  30. package/dist/{contract-contributions-B9njRJbt-ClEtrK2L.mjs → contract-contributions-ChiX6W0F-CAng98bZ.mjs} +5 -4
  31. package/dist/contract-contributions-ChiX6W0F-CAng98bZ.mjs.map +1 -0
  32. package/dist/{control-6wRZXIJ7.mjs → control-5eVF1TXc.mjs} +2 -2
  33. package/dist/{control-6wRZXIJ7.mjs.map → control-5eVF1TXc.mjs.map} +1 -1
  34. package/dist/{control-WTY7Jpxk.mjs → control-BBhWaGnH.mjs} +24 -13
  35. package/dist/control-BBhWaGnH.mjs.map +1 -0
  36. package/dist/control-BvSM7mGR.d.mts +396 -0
  37. package/dist/control-BvSM7mGR.d.mts.map +1 -0
  38. package/dist/{control-Ez_PtlFI.d.mts → control-MoPFgSaQ.d.mts} +2 -2
  39. package/dist/{control-Ez_PtlFI.d.mts.map → control-MoPFgSaQ.d.mts.map} +1 -1
  40. package/dist/data-type-entries-C7VH2IHc-D1d5I8zF.mjs +59 -0
  41. package/dist/data-type-entries-C7VH2IHc-D1d5I8zF.mjs.map +1 -0
  42. package/dist/{data-types-SXrh0Lou.d.mts → data-types-C-rfxpgB.d.mts} +2 -2
  43. package/dist/data-types-C-rfxpgB.d.mts.map +1 -0
  44. package/dist/data-types-D2HAT-Qf-CRI506c0.d.mts +88 -0
  45. package/dist/data-types-D2HAT-Qf-CRI506c0.d.mts.map +1 -0
  46. package/dist/data-types-DOaaPS93-DBkMJyh1.mjs +289 -0
  47. package/dist/data-types-DOaaPS93-DBkMJyh1.mjs.map +1 -0
  48. package/dist/date-time-now-generators-DY-8Bodc-DcQ3h4Fg.mjs +72 -0
  49. package/dist/date-time-now-generators-DY-8Bodc-DcQ3h4Fg.mjs.map +1 -0
  50. package/dist/{default-normalizer-BDUgHXUn-Xk7HQJuI.mjs → default-normalizer-C8pc7SbL-CKgOEnGl.mjs} +22 -12
  51. package/dist/default-normalizer-C8pc7SbL-CKgOEnGl.mjs.map +1 -0
  52. package/dist/{default-normalizer-BBhGpw7r.d.mts → default-normalizer-CGIwQiKB.d.mts} +4 -4
  53. package/dist/{default-normalizer-BBhGpw7r.d.mts.map → default-normalizer-CGIwQiKB.d.mts.map} +1 -1
  54. package/dist/descriptor-meta-CsMPRsxp-DhK87vlc.mjs +352 -0
  55. package/dist/descriptor-meta-CsMPRsxp-DhK87vlc.mjs.map +1 -0
  56. package/dist/driver.mjs +1 -1
  57. package/dist/driver__control.mjs +1 -1
  58. package/dist/driver__runtime.mjs +275 -126
  59. package/dist/driver__runtime.mjs.map +1 -1
  60. package/dist/errors-Cng94tYg-D02Eud2d.mjs +87 -0
  61. package/dist/errors-Cng94tYg-D02Eud2d.mjs.map +1 -0
  62. package/dist/{errors-BYhjQT7y.d.mts → errors-DfrC_yfG.d.mts} +2 -2
  63. package/dist/{errors-BYhjQT7y.d.mts.map → errors-DfrC_yfG.d.mts.map} +1 -1
  64. package/dist/{marker-lock-CmGvN4hw-Com29AtQ.mjs → marker-lock-Bwew7cAs-CZ20Y_tA.mjs} +3 -3
  65. package/dist/{marker-lock-CmGvN4hw-Com29AtQ.mjs.map → marker-lock-Bwew7cAs-CZ20Y_tA.mjs.map} +1 -1
  66. package/dist/{marker-read-aEaHihYj-Cyg16yn1.mjs → marker-read-Cf80LSbG-CUp3v1e5.mjs} +5 -5
  67. package/dist/{marker-read-aEaHihYj-Cyg16yn1.mjs.map → marker-read-Cf80LSbG-CUp3v1e5.mjs.map} +1 -1
  68. package/dist/mysql-contract-serializer-BnTKRSsN-B2O3EreV.mjs +35 -0
  69. package/dist/mysql-contract-serializer-BnTKRSsN-B2O3EreV.mjs.map +1 -0
  70. package/dist/{mysql-contract-serializer-DLv0uW_f-Cg4A43Ry.mjs → mysql-database-CHl9-oSL-CWZLDXt6.mjs} +39 -40
  71. package/dist/mysql-database-CHl9-oSL-CWZLDXt6.mjs.map +1 -0
  72. package/dist/now-expression-DVD18CUc-00buJUto.mjs +38 -0
  73. package/dist/now-expression-DVD18CUc-00buJUto.mjs.map +1 -0
  74. package/dist/{pack-YVG-iBMQ.d.mts → pack-BXvLVBWP.d.mts} +395 -14
  75. package/dist/{pack-YVG-iBMQ.d.mts.map → pack-BXvLVBWP.d.mts.map} +1 -1
  76. package/dist/require-temporal-DeDQhbTn-Bxc65WbA.mjs +16 -0
  77. package/dist/require-temporal-DeDQhbTn-Bxc65WbA.mjs.map +1 -0
  78. package/dist/{runner-BaBQoXiU-C7ln-4b2.mjs → runner-C39AEe6--BVG3xPYw.mjs} +7 -7
  79. package/dist/{runner-BaBQoXiU-C7ln-4b2.mjs.map → runner-C39AEe6--BVG3xPYw.mjs.map} +1 -1
  80. package/dist/{runtime-CeuRr9nE.d.mts → runtime-ClRDfPiY.d.mts} +2 -2
  81. package/dist/{runtime-CeuRr9nE.d.mts.map → runtime-ClRDfPiY.d.mts.map} +1 -1
  82. package/dist/runtime-CrB5DXx4.d.mts +54 -0
  83. package/dist/runtime-CrB5DXx4.d.mts.map +1 -0
  84. package/dist/{sql-utils-Db0IQO_B-PaULnfrE.mjs → sql-utils-Cmv_TVa8-BetrIUcj.mjs} +3 -3
  85. package/dist/{sql-utils-Db0IQO_B-PaULnfrE.mjs.map → sql-utils-Cmv_TVa8-BetrIUcj.mjs.map} +1 -1
  86. package/dist/{sql-utils-RW0vJvDl.mjs → sql-utils-bD4SfgX0.mjs} +2 -2
  87. package/dist/{sql-utils-RW0vJvDl.mjs.map → sql-utils-bD4SfgX0.mjs.map} +1 -1
  88. package/dist/{statement-kfMRMKIt-D6cAOKys.mjs → statement-DC62oiSx-Buzptbpk.mjs} +21 -15
  89. package/dist/statement-DC62oiSx-Buzptbpk.mjs.map +1 -0
  90. package/dist/target.d.mts +14 -13
  91. package/dist/target.mjs +17 -13
  92. package/dist/target__codec-descriptor.mjs +1 -1
  93. package/dist/target__codec-ids.d.mts +2 -2
  94. package/dist/target__codec-ids.mjs +2 -2
  95. package/dist/target__codec-types.d.mts +2 -2
  96. package/dist/target__codecs.d.mts +3 -3
  97. package/dist/target__codecs.mjs +3 -2
  98. package/dist/target__control.d.mts +2 -2
  99. package/dist/target__control.mjs +38 -32
  100. package/dist/target__control.mjs.map +1 -1
  101. package/dist/target__data-types.d.mts +3 -3
  102. package/dist/target__data-types.mjs +3 -3
  103. package/dist/target__default-normalizer.d.mts +1 -1
  104. package/dist/target__default-normalizer.mjs +1 -1
  105. package/dist/target__errors.d.mts +1 -1
  106. package/dist/target__errors.mjs +1 -1
  107. package/dist/target__marker-lock.mjs +1 -1
  108. package/dist/target__migration.mjs +1 -1
  109. package/dist/target__pack.d.mts +1 -1
  110. package/dist/target__pack.mjs +1 -1
  111. package/dist/target__runtime.d.mts +2 -2
  112. package/dist/target__runtime.mjs +3 -3
  113. package/dist/target__runtime.mjs.map +1 -1
  114. package/dist/target__sql-utils.mjs +2 -2
  115. package/dist/target__types.d.mts +2 -0
  116. package/dist/target__types.mjs +2 -0
  117. package/dist/{control-_4epnrIW.d.mts → types-CgrFHUdk.d.mts} +3 -8
  118. package/dist/types-CgrFHUdk.d.mts.map +1 -0
  119. package/package.json +18 -12
  120. package/dist/adapter-_WBomuTw.d.mts.map +0 -1
  121. package/dist/codec-descriptor-Du6DSz-3-ytBCu_mq.mjs.map +0 -1
  122. package/dist/codec-ids-cjxtOcLM-vFeQhgPm.mjs +0 -10
  123. package/dist/codec-ids-cjxtOcLM-vFeQhgPm.mjs.map +0 -1
  124. package/dist/codec-ids-sMOU8F-B-BQbCq2dr.d.mts +0 -10
  125. package/dist/codec-ids-sMOU8F-B-BQbCq2dr.d.mts.map +0 -1
  126. package/dist/codec-types-Bd7DL1Mr-CZWNfnp9.d.mts +0 -21
  127. package/dist/codec-types-Bd7DL1Mr-CZWNfnp9.d.mts.map +0 -1
  128. package/dist/codec-types-Bo3Jfilx.d.mts +0 -1
  129. package/dist/codec-types-Ja2kLzLS.d.mts +0 -1
  130. package/dist/codecs-C00kjHgh.mjs +0 -282
  131. package/dist/codecs-C00kjHgh.mjs.map +0 -1
  132. package/dist/codecs-CO_VNEYU-CwAnKzRs.d.mts +0 -102
  133. package/dist/codecs-CO_VNEYU-CwAnKzRs.d.mts.map +0 -1
  134. package/dist/codecs-DM61agRr.d.mts +0 -21
  135. package/dist/codecs-DM61agRr.d.mts.map +0 -1
  136. package/dist/contract-contributions-B9njRJbt-ClEtrK2L.mjs.map +0 -1
  137. package/dist/control-WTY7Jpxk.mjs.map +0 -1
  138. package/dist/control-_4epnrIW.d.mts.map +0 -1
  139. package/dist/data-type-entries-B0AoBozh-f9AEUIUQ.mjs +0 -42
  140. package/dist/data-type-entries-B0AoBozh-f9AEUIUQ.mjs.map +0 -1
  141. package/dist/data-types-BpihGKoK-BMW-m4EN.d.mts +0 -52
  142. package/dist/data-types-BpihGKoK-BMW-m4EN.d.mts.map +0 -1
  143. package/dist/data-types-Dv9gwVRV-BZPzCWZk.mjs +0 -181
  144. package/dist/data-types-Dv9gwVRV-BZPzCWZk.mjs.map +0 -1
  145. package/dist/data-types-SXrh0Lou.d.mts.map +0 -1
  146. package/dist/default-normalizer-BDUgHXUn-Xk7HQJuI.mjs.map +0 -1
  147. package/dist/descriptor-meta-BurjcSiU-Cbk2L1jf.mjs +0 -82
  148. package/dist/descriptor-meta-BurjcSiU-Cbk2L1jf.mjs.map +0 -1
  149. package/dist/descriptor-meta-runtime-Bk_00UrX-BLN4Ahpj.mjs +0 -17
  150. package/dist/descriptor-meta-runtime-Bk_00UrX-BLN4Ahpj.mjs.map +0 -1
  151. package/dist/errors-rvH_F2Yj-BQrO_--u.mjs +0 -20
  152. package/dist/errors-rvH_F2Yj-BQrO_--u.mjs.map +0 -1
  153. package/dist/mysql-contract-serializer-DLv0uW_f-Cg4A43Ry.mjs.map +0 -1
  154. package/dist/runtime-Cl0BbTZq.d.mts +0 -22
  155. package/dist/runtime-Cl0BbTZq.d.mts.map +0 -1
  156. package/dist/statement-kfMRMKIt-D6cAOKys.mjs.map +0 -1
@@ -0,0 +1,396 @@
1
+ import { t as MysqlPlanTargetDetails } from "./planner-target-details-D6g2uSp--C5NKHmCc.mjs";
2
+ import { SqlStorage } from "@prisma/orm-family-sql/contract/types";
3
+ import { SqlControlTargetDescriptor } from "@prisma/orm-family-sql/family/control";
4
+ import { Contract } from "@prisma/orm-framework/contract/types";
5
+ //#region ../../../3-targets/mysql/1-target/dist/control.d.mts
6
+ //#region src/core/migrations/control-target.d.ts
7
+ declare const mysqlControlTargetDescriptor: SqlControlTargetDescriptor<"mysql", MysqlPlanTargetDetails, Contract<SqlStorage<string>>>;
8
+ //#endregion
9
+ //#region src/core/type-constructors.d.ts
10
+ /**
11
+ * The base scalars, the explicit date and time types and the convenience date and time types as type constructors. The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.
12
+ */
13
+ declare const mysqlScalarTypeConstructors: {
14
+ readonly DateTime: {
15
+ readonly kind: "typeChoice";
16
+ readonly documentation: "A moment in time, read and written in UTC. `as` is what the application reads: jsDate (a JavaScript Date), temporal (Temporal.Instant) or string, such as \"2024-01-01T00:00:00Z\". `storage` is datetime, or timestamp, which holds 1970 to 2038.";
17
+ readonly args: readonly [{
18
+ readonly kind: "option";
19
+ readonly name: "as";
20
+ readonly values: readonly ["jsDate", "temporal", "string"];
21
+ readonly default: "jsDate";
22
+ readonly optional: true;
23
+ }, {
24
+ readonly kind: "option";
25
+ readonly name: "storage";
26
+ readonly values: readonly ["datetime", "timestamp"];
27
+ readonly default: "datetime";
28
+ readonly optional: true;
29
+ }, {
30
+ readonly kind: "value";
31
+ readonly dataType: "mysql/int";
32
+ readonly name: "precision";
33
+ readonly optional: true;
34
+ }];
35
+ readonly choices: readonly [{
36
+ readonly when: {
37
+ readonly as: "jsDate";
38
+ readonly storage: "datetime";
39
+ };
40
+ readonly type: "DatetimeJsDate";
41
+ readonly defaults: {
42
+ readonly precision: 3;
43
+ };
44
+ }, {
45
+ readonly when: {
46
+ readonly as: "temporal";
47
+ readonly storage: "datetime";
48
+ };
49
+ readonly type: "DatetimeTemporal";
50
+ readonly defaults: {
51
+ readonly precision: 6;
52
+ };
53
+ }, {
54
+ readonly when: {
55
+ readonly as: "string";
56
+ readonly storage: "datetime";
57
+ };
58
+ readonly type: "DatetimeString";
59
+ readonly defaults: {
60
+ readonly precision: 6;
61
+ };
62
+ }, {
63
+ readonly when: {
64
+ readonly as: "jsDate";
65
+ readonly storage: "timestamp";
66
+ };
67
+ readonly type: "TimestampJsDate";
68
+ readonly defaults: {
69
+ readonly precision: 3;
70
+ };
71
+ }, {
72
+ readonly when: {
73
+ readonly as: "temporal";
74
+ readonly storage: "timestamp";
75
+ };
76
+ readonly type: "TimestampTemporal";
77
+ readonly defaults: {
78
+ readonly precision: 6;
79
+ };
80
+ }, {
81
+ readonly when: {
82
+ readonly as: "string";
83
+ readonly storage: "timestamp";
84
+ };
85
+ readonly type: "TimestampString";
86
+ readonly defaults: {
87
+ readonly precision: 6;
88
+ };
89
+ }];
90
+ };
91
+ readonly Date: {
92
+ readonly kind: "typeChoice";
93
+ readonly documentation: "A calendar date. `as` is what the application reads: string, such as \"2024-02-29\", or temporal (Temporal.PlainDate).";
94
+ readonly args: readonly [{
95
+ readonly kind: "option";
96
+ readonly name: "as";
97
+ readonly values: readonly ["string", "temporal"];
98
+ readonly default: "string";
99
+ readonly optional: true;
100
+ }, {
101
+ readonly kind: "option";
102
+ readonly name: "storage";
103
+ readonly values: readonly ["date"];
104
+ readonly default: "date";
105
+ readonly optional: true;
106
+ }];
107
+ readonly choices: readonly [{
108
+ readonly when: {
109
+ readonly as: "string";
110
+ readonly storage: "date";
111
+ };
112
+ readonly type: "DateString";
113
+ }, {
114
+ readonly when: {
115
+ readonly as: "temporal";
116
+ readonly storage: "date";
117
+ };
118
+ readonly type: "DateTemporal";
119
+ }];
120
+ };
121
+ readonly Time: {
122
+ readonly kind: "typeChoice";
123
+ readonly documentation: "A time of day, from 00:00:00 to 23:59:59.999999. `as` is what the application reads: string, such as \"09:30:00\", or temporal (Temporal.PlainTime).";
124
+ readonly args: readonly [{
125
+ readonly kind: "option";
126
+ readonly name: "as";
127
+ readonly values: readonly ["string", "temporal"];
128
+ readonly default: "string";
129
+ readonly optional: true;
130
+ }, {
131
+ readonly kind: "option";
132
+ readonly name: "storage";
133
+ readonly values: readonly ["time"];
134
+ readonly default: "time";
135
+ readonly optional: true;
136
+ }, {
137
+ readonly kind: "value";
138
+ readonly dataType: "mysql/int";
139
+ readonly name: "precision";
140
+ readonly optional: true;
141
+ }];
142
+ readonly choices: readonly [{
143
+ readonly when: {
144
+ readonly as: "string";
145
+ readonly storage: "time";
146
+ };
147
+ readonly type: "TimeString";
148
+ readonly defaults: {
149
+ readonly precision: 6;
150
+ };
151
+ }, {
152
+ readonly when: {
153
+ readonly as: "temporal";
154
+ readonly storage: "time";
155
+ };
156
+ readonly type: "TimeTemporal";
157
+ readonly defaults: {
158
+ readonly precision: 6;
159
+ };
160
+ }];
161
+ };
162
+ readonly Duration: {
163
+ readonly kind: "typeChoice";
164
+ readonly documentation: "A length of time, stored as MySQL varchar(191), since MySQL has no interval type. `as` is what the application reads: string, an ISO 8601 duration such as \"PT1H30M\".";
165
+ readonly args: readonly [{
166
+ readonly kind: "option";
167
+ readonly name: "as";
168
+ readonly values: readonly ["string"];
169
+ readonly default: "string";
170
+ readonly optional: true;
171
+ }, {
172
+ readonly kind: "option";
173
+ readonly name: "storage";
174
+ readonly values: readonly ["varchar"];
175
+ readonly default: "varchar";
176
+ readonly optional: true;
177
+ }];
178
+ readonly choices: readonly [{
179
+ readonly when: {
180
+ readonly as: "string";
181
+ readonly storage: "varchar";
182
+ };
183
+ readonly type: "DurationString";
184
+ }];
185
+ };
186
+ readonly DatetimeJsDate: {
187
+ readonly inferred: true;
188
+ readonly kind: "typeConstructor";
189
+ readonly documentation: string;
190
+ readonly args: readonly [{
191
+ readonly kind: "value";
192
+ readonly dataType: "mysql/int";
193
+ readonly name: "precision";
194
+ readonly optional: true;
195
+ }];
196
+ readonly output: {
197
+ readonly codecId: "mysql/datetime@1";
198
+ readonly typeParams: {
199
+ readonly precision: {
200
+ readonly kind: "arg";
201
+ readonly index: 0;
202
+ };
203
+ };
204
+ };
205
+ };
206
+ readonly DatetimeTemporal: {
207
+ readonly kind: "typeConstructor";
208
+ readonly documentation: string;
209
+ readonly args: readonly [{
210
+ readonly kind: "value";
211
+ readonly dataType: "mysql/int";
212
+ readonly name: "precision";
213
+ readonly optional: true;
214
+ }];
215
+ readonly output: {
216
+ readonly codecId: "mysql/datetime-temporal@1";
217
+ readonly typeParams: {
218
+ readonly precision: {
219
+ readonly kind: "arg";
220
+ readonly index: 0;
221
+ };
222
+ };
223
+ };
224
+ };
225
+ readonly DatetimeString: {
226
+ readonly kind: "typeConstructor";
227
+ readonly documentation: string;
228
+ readonly args: readonly [{
229
+ readonly kind: "value";
230
+ readonly dataType: "mysql/int";
231
+ readonly name: "precision";
232
+ readonly optional: true;
233
+ }];
234
+ readonly output: {
235
+ readonly codecId: "mysql/datetime-string@1";
236
+ readonly typeParams: {
237
+ readonly precision: {
238
+ readonly kind: "arg";
239
+ readonly index: 0;
240
+ };
241
+ };
242
+ };
243
+ };
244
+ readonly TimestampJsDate: {
245
+ readonly inferred: true;
246
+ readonly kind: "typeConstructor";
247
+ readonly documentation: string;
248
+ readonly args: readonly [{
249
+ readonly kind: "value";
250
+ readonly dataType: "mysql/int";
251
+ readonly name: "precision";
252
+ readonly optional: true;
253
+ }];
254
+ readonly output: {
255
+ readonly codecId: "mysql/timestamp-date@1";
256
+ readonly typeParams: {
257
+ readonly precision: {
258
+ readonly kind: "arg";
259
+ readonly index: 0;
260
+ };
261
+ };
262
+ };
263
+ };
264
+ readonly TimestampTemporal: {
265
+ readonly kind: "typeConstructor";
266
+ readonly documentation: string;
267
+ readonly args: readonly [{
268
+ readonly kind: "value";
269
+ readonly dataType: "mysql/int";
270
+ readonly name: "precision";
271
+ readonly optional: true;
272
+ }];
273
+ readonly output: {
274
+ readonly codecId: "mysql/timestamp-temporal@1";
275
+ readonly typeParams: {
276
+ readonly precision: {
277
+ readonly kind: "arg";
278
+ readonly index: 0;
279
+ };
280
+ };
281
+ };
282
+ };
283
+ readonly TimestampString: {
284
+ readonly kind: "typeConstructor";
285
+ readonly documentation: string;
286
+ readonly args: readonly [{
287
+ readonly kind: "value";
288
+ readonly dataType: "mysql/int";
289
+ readonly name: "precision";
290
+ readonly optional: true;
291
+ }];
292
+ readonly output: {
293
+ readonly codecId: "mysql/timestamp-string@1";
294
+ readonly typeParams: {
295
+ readonly precision: {
296
+ readonly kind: "arg";
297
+ readonly index: 0;
298
+ };
299
+ };
300
+ };
301
+ };
302
+ readonly DateString: {
303
+ readonly kind: "typeConstructor";
304
+ readonly inferred: true;
305
+ readonly documentation: "A calendar date stored as MySQL date and represented as ISO 8601 text, such as 2024-02-29.";
306
+ readonly output: {
307
+ readonly codecId: "mysql/date-string@1";
308
+ };
309
+ };
310
+ readonly DateTemporal: {
311
+ readonly kind: "typeConstructor";
312
+ readonly documentation: "A calendar date stored as MySQL date and represented as Temporal.PlainDate.";
313
+ readonly output: {
314
+ readonly codecId: "mysql/date-temporal@1";
315
+ };
316
+ };
317
+ readonly TimeString: {
318
+ readonly inferred: true;
319
+ readonly kind: "typeConstructor";
320
+ readonly documentation: string;
321
+ readonly args: readonly [{
322
+ readonly kind: "value";
323
+ readonly dataType: "mysql/int";
324
+ readonly name: "precision";
325
+ readonly optional: true;
326
+ }];
327
+ readonly output: {
328
+ readonly codecId: "mysql/time-string@1";
329
+ readonly typeParams: {
330
+ readonly precision: {
331
+ readonly kind: "arg";
332
+ readonly index: 0;
333
+ };
334
+ };
335
+ };
336
+ };
337
+ readonly TimeTemporal: {
338
+ readonly kind: "typeConstructor";
339
+ readonly documentation: string;
340
+ readonly args: readonly [{
341
+ readonly kind: "value";
342
+ readonly dataType: "mysql/int";
343
+ readonly name: "precision";
344
+ readonly optional: true;
345
+ }];
346
+ readonly output: {
347
+ readonly codecId: "mysql/time-temporal@1";
348
+ readonly typeParams: {
349
+ readonly precision: {
350
+ readonly kind: "arg";
351
+ readonly index: 0;
352
+ };
353
+ };
354
+ };
355
+ };
356
+ readonly DurationString: {
357
+ readonly kind: "typeConstructor";
358
+ readonly inferred: true;
359
+ readonly documentation: "A length of time stored as MySQL varchar(191), so that it can be indexed, and represented as the ISO 8601 duration it was written as, such as PT1H30M.";
360
+ readonly output: {
361
+ readonly codecId: "mysql/duration-string@1";
362
+ readonly typeParams: {
363
+ readonly length: 191;
364
+ };
365
+ };
366
+ };
367
+ readonly String: {
368
+ readonly kind: "typeConstructor";
369
+ readonly documentation: "Text of at most 191 characters, stored as MySQL varchar(191) so that it can be indexed.";
370
+ readonly output: {
371
+ readonly codecId: "sql/varchar@1";
372
+ readonly typeParams: {
373
+ readonly length: 191;
374
+ };
375
+ };
376
+ };
377
+ readonly Int: {
378
+ readonly kind: "typeConstructor";
379
+ readonly inferred: true;
380
+ readonly documentation: "A signed 32-bit integer stored as MySQL int and represented as a JavaScript number.";
381
+ readonly output: {
382
+ readonly codecId: "mysql/int@1";
383
+ };
384
+ };
385
+ readonly BigInt: {
386
+ readonly kind: "typeConstructor";
387
+ readonly inferred: true;
388
+ readonly documentation: "A signed 64-bit integer stored as MySQL bigint and represented as a JavaScript bigint.";
389
+ readonly output: {
390
+ readonly codecId: "mysql/bigint@1";
391
+ };
392
+ };
393
+ };
394
+ //#endregion
395
+ export { mysqlScalarTypeConstructors as n, mysqlControlTargetDescriptor as t };
396
+ //# sourceMappingURL=control-BvSM7mGR.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-BvSM7mGR.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/control.d.mts"],"mappings":";;;;;;cAKc,8BAA8B,oCAAoC,wBAAwB,SAAS;;;;;;cAMnG;WACH;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;eACA;iBACE;;;eAGF;iBACE;iBACA;;eAEF;eACA;iBACE;;;eAGF;iBACE;iBACA;;eAEF;eACA;iBACE;;;eAGF;iBACE;iBACA;;eAEF;eACA;iBACE;;;eAGF;iBACE;iBACA;;eAEF;eACA;iBACE;;;eAGF;iBACE;iBACA;;eAEF;eACA;iBACE;;;;WAIN;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;eACA;iBACE;;;eAGF;iBACE;iBACA;;eAEF;eACA;iBACE;;;;WAIN;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;;;WAGJ;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;iBACE;;;;WAIN;aACE;aACA;aACA;eACE;eACA;iBACE;;;;WAIN;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE"}
@@ -1,4 +1,4 @@
1
- import { t as MysqlCodecRegistry } from "./codecs-DM61agRr.mjs";
1
+ import { i as MysqlCodecRegistry } from "./codecs-C_twedMx.mjs";
2
2
  import { r as MysqlDdlNode } from "./nodes-xc0cR0_c-2YbhgEjb.mjs";
3
3
  import "./ddl-CT6DPEqg.mjs";
4
4
  import { DataType } from "@prisma/orm-framework/components/codec";
@@ -118,4 +118,4 @@ declare function buildMysqlSchemaIR(rows: MysqlCatalogRows, dataTypes: readonly
118
118
  declare const mysqlAdapterDescriptor: SqlControlAdapterDescriptor<'mysql'>;
119
119
  //#endregion
120
120
  export { mysqlAdapterDescriptor as i, MysqlControlAdapter as n, buildMysqlSchemaIR as r, MysqlCatalogRows as t };
121
- //# sourceMappingURL=control-Ez_PtlFI.d.mts.map
121
+ //# sourceMappingURL=control-MoPFgSaQ.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control-Ez_PtlFI.d.mts","names":[],"sources":["../../../../3-targets/mysql/2-adapter/dist/control.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC;WACA;WACA;;;;KAIN,SAAS;;;;cAIA,+BAA+B;;mBAE1B;mBACA;WACR;WACA;WACA;;EAET,YAAY,eAAe,oBAAoB,4BAA4B;EAC3E,yCAAyC;EACzC,uCAAuC;EACvC,MAAM,KAAK,cAAc,UAAU;EACnC,sBAAsB,KAAK,cAAc,eAAe,QAAQ;EAChE,oBAAoB,QAAQ,WAAW,gBAAgB;EACvD,WAAW,QAAQ,QAAQ,gBAAgB,QAAQ;EACnD,eAAe,QAAQ,SAAS,QAAQ,oBAAoB;EAC5D,WAAW,QAAQ,QAAQ,iBAAiB,iBAAiB;EAC7D,aAAa,QAAQ,QAAQ,eAAe,aAAa,oBAAoB;EAC7E,WAAW,QAAQ,QAAQ,eAAe,aAAa,oBAAoB;EAC3E,aAAa,QAAQ,QAAQ,eAAe,sBAAsB,aAAa,oBAAoB;EACnG,iBAAiB,QAAQ,QAAQ,eAAe;aACrC;aACA;aACA;aACA;aACA;aACA;MACP;;EAEJ,WAAW,SAAS,SAAS;;EAE7B,eAAe,GAAG,QAAQ,QAAQ,YAAY,QAAQ,KAAK,QAAQ;EACnE,gBAAgB,GAAG,QAAQ,QAAQ,UAAU,QAAQ,KAAK,QAAQ;EAClE,WAAW,QAAQ,QAAQ,qBAAqB,QAAQ;;;;UAIhD;WACC;WACA;WACA;WACA;WACA;WACA;WACA;;UAED;WACC;WACA;WACA;WACA;WACA;WACA;;UAED;WACC;WACA;WACA;;UAED;WACC;WACA;WACA;WACA;;WAEA;WACA;WACA;WACA;WACA;;;UAGD;WACC;WACA,kBAAkB;WAClB,kBAAkB;WAClB,sBAAsB;WACtB,sBAAsB;;;UAGvB;;WAEC,gBAAgB,mBAAmB;;WAEnC,sBAAsB,mBAAmB;;;KAG/C,sBAAsB,mBAAmB,oBAAoB,uBAAuB,QAAQ,KAAK;;;;iBAIrF,mBAAmB,MAAM,kBAAkB,oBAAoB,YAAY,oBAAoB,oBAAoB,WAAW,kBAAkB,QAAQ;;;cAG3J,wBAAwB"}
1
+ {"version":3,"file":"control-MoPFgSaQ.d.mts","names":[],"sources":["../../../../3-targets/mysql/2-adapter/dist/control.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC;WACA;WACA;;;;KAIN,SAAS;;;;cAIA,+BAA+B;;mBAE1B;mBACA;WACR;WACA;WACA;;EAET,YAAY,eAAe,oBAAoB,4BAA4B;EAC3E,yCAAyC;EACzC,uCAAuC;EACvC,MAAM,KAAK,cAAc,UAAU;EACnC,sBAAsB,KAAK,cAAc,eAAe,QAAQ;EAChE,oBAAoB,QAAQ,WAAW,gBAAgB;EACvD,WAAW,QAAQ,QAAQ,gBAAgB,QAAQ;EACnD,eAAe,QAAQ,SAAS,QAAQ,oBAAoB;EAC5D,WAAW,QAAQ,QAAQ,iBAAiB,iBAAiB;EAC7D,aAAa,QAAQ,QAAQ,eAAe,aAAa,oBAAoB;EAC7E,WAAW,QAAQ,QAAQ,eAAe,aAAa,oBAAoB;EAC3E,aAAa,QAAQ,QAAQ,eAAe,sBAAsB,aAAa,oBAAoB;EACnG,iBAAiB,QAAQ,QAAQ,eAAe;aACrC;aACA;aACA;aACA;aACA;aACA;MACP;;EAEJ,WAAW,SAAS,SAAS;;EAE7B,eAAe,GAAG,QAAQ,QAAQ,YAAY,QAAQ,KAAK,QAAQ;EACnE,gBAAgB,GAAG,QAAQ,QAAQ,UAAU,QAAQ,KAAK,QAAQ;EAClE,WAAW,QAAQ,QAAQ,qBAAqB,QAAQ;;;;UAIhD;WACC;WACA;WACA;WACA;WACA;WACA;WACA;;UAED;WACC;WACA;WACA;WACA;WACA;WACA;;UAED;WACC;WACA;WACA;;UAED;WACC;WACA;WACA;WACA;;WAEA;WACA;WACA;WACA;WACA;;;UAGD;WACC;WACA,kBAAkB;WAClB,kBAAkB;WAClB,sBAAsB;WACtB,sBAAsB;;;UAGvB;;WAEC,gBAAgB,mBAAmB;;WAEnC,sBAAsB,mBAAmB;;;KAG/C,sBAAsB,mBAAmB,oBAAoB,uBAAuB,QAAQ,KAAK;;;;iBAIrF,mBAAmB,MAAM,kBAAkB,oBAAoB,YAAY,oBAAoB,oBAAoB,WAAW,kBAAkB,QAAQ;;;cAG3J,wBAAwB"}
@@ -0,0 +1,59 @@
1
+ import { C as mysqlTimestampText, S as mysqlTimestamp, _ as mysqlInt, b as mysqlTime, c as mysqlDateText, d as mysqlDatetimeText, f as mysqlDuration, l as mysqlDatetime, m as mysqlDurationText, r as mysqlBigint, s as mysqlDate, v as mysqlText, x as mysqlTimeText } from "./data-types-DOaaPS93-DBkMJyh1.mjs";
2
+ import { createNumberClassifier, numeralText, signedRange } from "@prisma/orm-framework/components/codec";
3
+ //#region ../../../3-targets/mysql/1-target/dist/data-type-entries-C7VH2IHc.mjs
4
+ const classifyMysqlNumber = createNumberClassifier({ integers: [{
5
+ type: mysqlInt.id,
6
+ form: "number",
7
+ ...signedRange(32)
8
+ }, {
9
+ type: mysqlBigint.id,
10
+ form: "text",
11
+ ...signedRange(64)
12
+ }] });
13
+ /** A tag whose body is a date, time or duration in ISO 8601, read into the value its type stores. */
14
+ function storedTextTag(tag, parse, documentation) {
15
+ return {
16
+ written: {
17
+ kind: "tag",
18
+ tag,
19
+ parse
20
+ },
21
+ print: (value) => String(value),
22
+ documentation
23
+ };
24
+ }
25
+ function printNumber(value) {
26
+ return typeof value === "number" ? numeralText(value) : String(value);
27
+ }
28
+ function mysqlDataTypeEntries() {
29
+ return {
30
+ [mysqlText.id]: {
31
+ written: {
32
+ kind: "plain",
33
+ syntax: "string",
34
+ parse: (text) => text
35
+ },
36
+ print: (value) => String(value),
37
+ documentation: "Text."
38
+ },
39
+ [mysqlBigint.id]: {
40
+ written: {
41
+ kind: "plain",
42
+ syntax: "number",
43
+ types: [mysqlInt.id, mysqlBigint.id],
44
+ classify: classifyMysqlNumber
45
+ },
46
+ print: printNumber,
47
+ documentation: "A whole number, whose type is the narrowest MySQL integer type that holds it."
48
+ },
49
+ [mysqlDatetime.id]: storedTextTag("datetime", mysqlDatetimeText, "A date and time in UTC without an offset, as in datetime`2024-01-01T00:00:00`, in the years 1000 to 9999."),
50
+ [mysqlTimestamp.id]: storedTextTag("timestamp", mysqlTimestampText, "A date and time in UTC without an offset, as in timestamp`2024-01-01T00:00:00`, from 1970-01-01T00:00:01 to 2038-01-19T03:14:07.999999."),
51
+ [mysqlDate.id]: storedTextTag("date", mysqlDateText, "A calendar date, as in date`2024-02-29`, in the years 1000 to 9999."),
52
+ [mysqlTime.id]: storedTextTag("time", mysqlTimeText, "A time of day without a UTC offset, as in time`09:30:00`, from 00:00:00 to 23:59:59.999999."),
53
+ [mysqlDuration.id]: storedTextTag("duration", mysqlDurationText, "A length of time, as in duration`PT1H30M`. Reads an ISO 8601 duration and stores it as written.")
54
+ };
55
+ }
56
+ //#endregion
57
+ export { mysqlDataTypeEntries as t };
58
+
59
+ //# sourceMappingURL=data-type-entries-C7VH2IHc-D1d5I8zF.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-type-entries-C7VH2IHc-D1d5I8zF.mjs","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/data-type-entries-C7VH2IHc.mjs"],"sourcesContent":["import { C as mysqlTimestampText, S as mysqlTimestamp, _ as mysqlInt, b as mysqlTime, c as mysqlDateText, d as mysqlDatetimeText, f as mysqlDuration, l as mysqlDatetime, m as mysqlDurationText, r as mysqlBigint, s as mysqlDate, v as mysqlText, x as mysqlTimeText } from \"./data-types-DOaaPS93.mjs\";\nimport { createNumberClassifier, numeralText, signedRange } from \"@internal/framework-components/codec\";\n//#region src/core/data-type-entries.ts\nconst classifyMysqlNumber = createNumberClassifier({ integers: [{\n\ttype: mysqlInt.id,\n\tform: \"number\",\n\t...signedRange(32)\n}, {\n\ttype: mysqlBigint.id,\n\tform: \"text\",\n\t...signedRange(64)\n}] });\n/** A tag whose body is a date, time or duration in ISO 8601, read into the value its type stores. */\nfunction storedTextTag(tag, parse, documentation) {\n\treturn {\n\t\twritten: {\n\t\t\tkind: \"tag\",\n\t\t\ttag,\n\t\t\tparse\n\t\t},\n\t\tprint: (value) => String(value),\n\t\tdocumentation\n\t};\n}\nfunction printNumber(value) {\n\treturn typeof value === \"number\" ? numeralText(value) : String(value);\n}\nfunction mysqlDataTypeEntries() {\n\treturn {\n\t\t[mysqlText.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"plain\",\n\t\t\t\tsyntax: \"string\",\n\t\t\t\tparse: (text) => text\n\t\t\t},\n\t\t\tprint: (value) => String(value),\n\t\t\tdocumentation: \"Text.\"\n\t\t},\n\t\t[mysqlBigint.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"plain\",\n\t\t\t\tsyntax: \"number\",\n\t\t\t\ttypes: [mysqlInt.id, mysqlBigint.id],\n\t\t\t\tclassify: classifyMysqlNumber\n\t\t\t},\n\t\t\tprint: printNumber,\n\t\t\tdocumentation: \"A whole number, whose type is the narrowest MySQL integer type that holds it.\"\n\t\t},\n\t\t[mysqlDatetime.id]: storedTextTag(\"datetime\", mysqlDatetimeText, \"A date and time in UTC without an offset, as in datetime`2024-01-01T00:00:00`, in the years 1000 to 9999.\"),\n\t\t[mysqlTimestamp.id]: storedTextTag(\"timestamp\", mysqlTimestampText, \"A date and time in UTC without an offset, as in timestamp`2024-01-01T00:00:00`, from 1970-01-01T00:00:01 to 2038-01-19T03:14:07.999999.\"),\n\t\t[mysqlDate.id]: storedTextTag(\"date\", mysqlDateText, \"A calendar date, as in date`2024-02-29`, in the years 1000 to 9999.\"),\n\t\t[mysqlTime.id]: storedTextTag(\"time\", mysqlTimeText, \"A time of day without a UTC offset, as in time`09:30:00`, from 00:00:00 to 23:59:59.999999.\"),\n\t\t[mysqlDuration.id]: storedTextTag(\"duration\", mysqlDurationText, \"A length of time, as in duration`PT1H30M`. Reads an ISO 8601 duration and stores it as written.\")\n\t};\n}\n//#endregion\nexport { mysqlDataTypeEntries as t };\n\n//# sourceMappingURL=data-type-entries-C7VH2IHc.mjs.map"],"mappings":";;;AAGA,MAAM,sBAAsB,uBAAuB,EAAE,UAAU,CAAC;CAC/D,MAAM,SAAS;CACf,MAAM;CACN,GAAG,YAAY,EAAE;AAClB,GAAG;CACF,MAAM,YAAY;CAClB,MAAM;CACN,GAAG,YAAY,EAAE;AAClB,CAAC,EAAE,CAAC;;AAEJ,SAAS,cAAc,KAAK,OAAO,eAAe;CACjD,OAAO;EACN,SAAS;GACR,MAAM;GACN;GACA;EACD;EACA,QAAQ,UAAU,OAAO,KAAK;EAC9B;CACD;AACD;AACA,SAAS,YAAY,OAAO;CAC3B,OAAO,OAAO,UAAU,WAAW,YAAY,KAAK,IAAI,OAAO,KAAK;AACrE;AACA,SAAS,uBAAuB;CAC/B,OAAO;GACL,UAAU,KAAK;GACf,SAAS;IACR,MAAM;IACN,QAAQ;IACR,QAAQ,SAAS;GAClB;GACA,QAAQ,UAAU,OAAO,KAAK;GAC9B,eAAe;EAChB;GACC,YAAY,KAAK;GACjB,SAAS;IACR,MAAM;IACN,QAAQ;IACR,OAAO,CAAC,SAAS,IAAI,YAAY,EAAE;IACnC,UAAU;GACX;GACA,OAAO;GACP,eAAe;EAChB;GACC,cAAc,KAAK,cAAc,YAAY,mBAAmB,2GAA2G;GAC3K,eAAe,KAAK,cAAc,aAAa,oBAAoB,yIAAyI;GAC5M,UAAU,KAAK,cAAc,QAAQ,eAAe,qEAAqE;GACzH,UAAU,KAAK,cAAc,QAAQ,eAAe,6FAA6F;GACjJ,cAAc,KAAK,cAAc,YAAY,mBAAmB,iGAAiG;CACnK;AACD"}
@@ -1,8 +1,8 @@
1
- import "./data-types-BpihGKoK-BMW-m4EN.mjs";
1
+ import "./data-types-D2HAT-Qf-CRI506c0.mjs";
2
2
  import { DataTypeAuthoringEntry } from "@prisma/orm-framework/components/authoring";
3
3
  //#region ../../../3-targets/mysql/1-target/dist/data-types.d.mts
4
4
  //#region src/core/data-type-entries.d.ts
5
5
  declare function mysqlDataTypeEntries(): Readonly<Record<string, DataTypeAuthoringEntry>>;
6
6
  //#endregion
7
7
  export { mysqlDataTypeEntries as t };
8
- //# sourceMappingURL=data-types-SXrh0Lou.d.mts.map
8
+ //# sourceMappingURL=data-types-C-rfxpgB.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-types-C-rfxpgB.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/data-types.d.mts"],"mappings":";;;;iBAGiB,wBAAwB,SAAS,eAAe"}
@@ -0,0 +1,88 @@
1
+ import { DataType, DataTypeId } from "@prisma/orm-framework/components/codec";
2
+ //#region ../../../3-targets/mysql/1-target/dist/data-types-D2HAT-Qf.d.mts
3
+ //#region src/core/data-types.d.ts
4
+ declare const mysqlText: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<Readonly<Record<string, unknown>>>;
5
+ /** A signed 32-bit integer, stored as a JSON number. */
6
+ declare const mysqlInt: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<Readonly<Record<string, unknown>>>;
7
+ /** A signed 64-bit integer, stored as digit text so that no digit is lost. */
8
+ declare const mysqlBigint: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<Readonly<Record<string, unknown>>>;
9
+ /** The length of `varchar`, which MySQL requires, up to the largest it accepts. */
10
+ declare const mysqlVarcharParams: import("arktype/internal/variants/object.ts").ObjectType<{
11
+ length: number;
12
+ }, {}>;
13
+ declare const mysqlVarchar: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<{
14
+ length: number;
15
+ }>;
16
+ /** The length of `char`, at most 255; a bare `char` is `char(1)`. */
17
+ declare const mysqlCharParams: import("arktype/internal/variants/object.ts").ObjectType<{
18
+ length?: number;
19
+ }, {}>;
20
+ declare const mysqlChar: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<{
21
+ length?: number;
22
+ }>;
23
+ /** The fractional-second precision of `datetime`, `timestamp` and `time`, 0 to 6; MySQL prints a precision of 0 as the bare type. */
24
+ declare const mysqlDatetimeParams: import("arktype/internal/variants/object.ts").ObjectType<{
25
+ precision?: number;
26
+ }, {}>;
27
+ /** The years MySQL holds in a `datetime` and a `date`. */
28
+ declare const MYSQL_DATETIME_RANGE: {
29
+ readonly earliest: "1000-01-01T00:00:00";
30
+ readonly latest: "9999-12-31T23:59:59.999999";
31
+ };
32
+ /** The instants MySQL holds in a `timestamp`, in UTC. */
33
+ declare const MYSQL_TIMESTAMP_RANGE: {
34
+ readonly earliest: "1970-01-01T00:00:01";
35
+ readonly latest: "2038-01-19T03:14:07.999999";
36
+ };
37
+ /**
38
+ * The value of `mysql/datetime`: a date and time without a time zone, ISO 8601 text with a `T` and no trailing zeros in the fraction, within MySQL's range. Throws `CONTRACT.CAST_REFUSED` for text that names no such date and time.
39
+ */
40
+ declare function mysqlDatetimeText(text: string): string;
41
+ /**
42
+ * The value of `mysql/timestamp`: the UTC date and time of an instant from 1970-01-01T00:00:01 to 2038-01-19T03:14:07.999999, in the form `mysql/datetime` stores. Throws `CONTRACT.CAST_REFUSED` for text that names no such date and time.
43
+ */
44
+ declare function mysqlTimestampText(text: string): string;
45
+ /** The value of `mysql/date`: a calendar date as ISO 8601 text, `2024-02-29`, in the years 1000 to 9999. Throws `CONTRACT.CAST_REFUSED` for other text. */
46
+ declare function mysqlDateText(text: string): string;
47
+ /**
48
+ * The value of `mysql/time`: a time of day from 00:00:00 to 23:59:59.999999, ISO 8601 text with no trailing zeros in the fraction. MySQL's `time` also holds a negative time and hours past 23, which name no time of day, so they are refused. Throws `CONTRACT.CAST_REFUSED` for other text.
49
+ */
50
+ declare function mysqlTimeText(text: string): string;
51
+ /** The value of `mysql/duration`: an ISO 8601 duration, stored as written. Throws `CONTRACT.CAST_REFUSED` for other text. */
52
+ declare function mysqlDurationText(text: string): string;
53
+ declare const mysqlDatetime: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<{
54
+ precision?: number;
55
+ }>;
56
+ /** An instant from 1970 to 2038, which MySQL converts between the session's time zone and UTC; every session runs in UTC. */
57
+ declare const mysqlTimestamp: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<{
58
+ precision?: number;
59
+ }>;
60
+ declare const mysqlDate: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<Readonly<Record<string, unknown>>>;
61
+ declare const mysqlTime: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<{
62
+ precision?: number;
63
+ }>;
64
+ /** The length of the `varchar` a duration column is stored in. A codec reference with none, as a raw parameter writes, reads and writes the same values. */
65
+ declare const mysqlDurationParams: import("arktype/internal/variants/object.ts").ObjectType<{
66
+ length?: number;
67
+ }, {}>;
68
+ /** A length of time, stored in a `varchar` column as the ISO 8601 duration it was written as, `PT1H30M`, so that MySQL can index it. MySQL has no interval type, and equal durations can be written differently, `P1D` and `PT24H`, so a duration keeps its spelling. ADR 315. */
69
+ declare const mysqlDuration: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<Readonly<Record<string, unknown>>>;
70
+ /** The members of a native enum column, in the order they are declared. */
71
+ declare const mysqlEnumParams: import("arktype/internal/variants/object.ts").ObjectType<{
72
+ values?: string[];
73
+ }, {}>;
74
+ /** `enum('A','B')`, the text MySQL's catalog prints for the column type, with each member a quoted literal. */
75
+ declare function renderMysqlEnumType(values: readonly string[] | undefined): string;
76
+ /**
77
+ * A native MySQL enum. Its name is the catalog text `enum('A','B')`, so `db verify` compares the members and their order with what MySQL reports (ADR 273). A column's members are its value set's, written into its parameters by the target's namespace (see `mysql-database.ts`).
78
+ */
79
+ declare const mysqlEnum: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<{
80
+ values?: string[];
81
+ }>;
82
+ /** Every data type this target registers. */
83
+ declare const mysqlDataTypes: readonly DataType[];
84
+ /** MySQL's text data types, which a SQL discriminator column may have. */
85
+ declare const mysqlTextDataTypes: readonly DataTypeId[];
86
+ //#endregion
87
+ export { mysqlTimestampText as C, renderMysqlEnumType as E, mysqlTimestamp as S, mysqlVarcharParams as T, mysqlInt as _, mysqlCharParams as a, mysqlTime as b, mysqlDateText as c, mysqlDatetimeText as d, mysqlDuration as f, mysqlEnumParams as g, mysqlEnum as h, mysqlChar as i, mysqlDatetime as l, mysqlDurationText as m, MYSQL_TIMESTAMP_RANGE as n, mysqlDataTypes as o, mysqlDurationParams as p, mysqlBigint as r, mysqlDate as s, MYSQL_DATETIME_RANGE as t, mysqlDatetimeParams as u, mysqlText as v, mysqlVarchar as w, mysqlTimeText as x, mysqlTextDataTypes as y };
88
+ //# sourceMappingURL=data-types-D2HAT-Qf-CRI506c0.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-types-D2HAT-Qf-CRI506c0.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/data-types-D2HAT-Qf.d.mts"],"mappings":";;;cAEc,sDAAsD,YAAY,SAAS;;cAE3E,qDAAqD,YAAY,SAAS;;cAE1E,wDAAwD,YAAY,SAAS;;cAE7E,kEAAkE;EAC9E;;cAEY,yDAAyD;EACrE;;;cAGY,+DAA+D;EAC3E;;cAEY,sDAAsD;EAClE;;;cAGY,mEAAmE;EAC/E;;;cAGY;WACH;WACA;;;cAGG;WACH;WACA;;;;;iBAKM,kBAAkB;;;;iBAIlB,mBAAmB;;iBAEnB,cAAc;;;;iBAId,cAAc;;iBAEd,kBAAkB;cACrB,0DAA0D;EACtE;;;cAGY,2DAA2D;EACvE;;cAEY,sDAAsD,YAAY,SAAS;cAC3E,sDAAsD;EAClE;;;cAGY,mEAAmE;EAC/E;;;cAGY,0DAA0D,YAAY,SAAS;;cAE/E,+DAA+D;EAC3E;;;iBAGe,oBAAoB;;;;cAIvB,sDAAsD;EAClE;;;cAGY,yBAAyB;;cAEzB,6BAA6B"}