@prisma/orm-family-sql 8.0.0-rc.20-dev.13 → 8.0.0-rc.20-dev.15
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.
- package/dist/{attribute-specs-DA_RwQFB.d.mts → attribute-specs-Dcd2ZUrY.d.mts} +4 -3
- package/dist/attribute-specs-Dcd2ZUrY.d.mts.map +1 -0
- package/dist/{authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts → authoring-entity-types-CgKIgWq5-CZK1F9a_.d.mts} +2 -2
- package/dist/{authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts.map → authoring-entity-types-CgKIgWq5-CZK1F9a_.d.mts.map} +1 -1
- package/dist/compare-strings-BVf3BgCV-CefXnrMB.mjs +10 -0
- package/dist/compare-strings-BVf3BgCV-CefXnrMB.mjs.map +1 -0
- package/dist/{contract-builder-C_Zi57iD.d.mts → contract-builder-B-Q9T1CO.d.mts} +10 -79
- package/dist/contract-builder-B-Q9T1CO.d.mts.map +1 -0
- package/dist/{contract-builder-50lF0kz1.mjs → contract-builder-DMNe_jX9.mjs} +109 -96
- package/dist/contract-builder-DMNe_jX9.mjs.map +1 -0
- package/dist/contract-prisma7__provider.mjs +2 -2
- package/dist/contract-psl.d.mts +2 -2
- package/dist/contract-psl.d.mts.map +1 -1
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +1 -1
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__diagnostics.d.mts +3 -4
- package/dist/contract-psl__diagnostics.d.mts.map +1 -1
- package/dist/contract-psl__diagnostics.mjs +1 -1
- package/dist/contract-psl__provider.mjs +1 -1
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +1 -1
- package/dist/contract-ts.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +1 -1
- package/dist/contract-ts__contract-builder.mjs +1 -1
- package/dist/contract.d.mts +2 -1
- package/dist/contract.mjs +2 -1
- package/dist/contract__generated-id-column-aliases.d.mts +2 -0
- package/dist/contract__generated-id-column-aliases.mjs +2 -0
- package/dist/{control-CffuMKgt.d.mts → control-B6W_VEZ9.d.mts} +50 -176
- package/dist/control-B6W_VEZ9.d.mts.map +1 -0
- package/dist/{control-D7N_L18S.mjs → control-D6wIw5Fi.mjs} +4 -5
- package/dist/control-D6wIw5Fi.mjs.map +1 -0
- package/dist/diagnostics-C7jR1Jyf.mjs +109 -0
- package/dist/diagnostics-C7jR1Jyf.mjs.map +1 -0
- package/dist/family.d.mts +4 -4
- package/dist/family.mjs +5 -6
- package/dist/family__control.d.mts +1 -1
- package/dist/family__control.mjs +1 -1
- package/dist/family__pack.d.mts +2 -2
- package/dist/family__pack.mjs +27 -3
- package/dist/family__pack.mjs.map +1 -0
- package/dist/family__psl-build.mjs +1 -1
- package/dist/family__runtime.d.mts +1 -1
- package/dist/family__runtime.mjs +1 -1
- package/dist/generated-id-column-aliases-DCuTuZrU.d.mts +71 -0
- package/dist/generated-id-column-aliases-DCuTuZrU.d.mts.map +1 -0
- package/dist/generated-id-column-aliases-DPUii1fN.mjs +51 -0
- package/dist/generated-id-column-aliases-DPUii1fN.mjs.map +1 -0
- package/dist/{generator-functions-Cg5QkM46-C1ByFzyT.mjs → generator-functions-Hy4pDDr9-AUCNpeg5.mjs} +49 -187
- package/dist/generator-functions-Hy4pDDr9-AUCNpeg5.mjs.map +1 -0
- package/dist/{interpreter-D5qk4B---CG0C7kdx.mjs → interpreter-CS21wD1i-G0u1x8t_.mjs} +13 -10
- package/dist/interpreter-CS21wD1i-G0u1x8t_.mjs.map +1 -0
- package/dist/orm-client.d.mts +2 -2
- package/dist/orm-client.mjs +2 -2
- package/dist/orm-client.mjs.map +1 -1
- package/dist/{pack-DA8HZ2mo.d.mts → pack-Cap3oVPy.d.mts} +69 -280
- package/dist/pack-Cap3oVPy.d.mts.map +1 -0
- package/dist/{psl-build-DFBG6vhz.mjs → psl-build-DqqYhOsa.mjs} +2 -2
- package/dist/psl-build-DqqYhOsa.mjs.map +1 -0
- package/dist/{psl-column-resolution-ChZqioOc-BREg4J7d.d.mts → psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts} +4 -4
- package/dist/psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts.map +1 -0
- package/dist/{psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs → psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs} +20 -107
- package/dist/psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs.map +1 -0
- package/dist/{runtime-6tH1yOxK.mjs → runtime-CCzfa1mY.mjs} +2 -3
- package/dist/{runtime-6tH1yOxK.mjs.map → runtime-CCzfa1mY.mjs.map} +1 -1
- package/dist/{runtime-CF6rAlE5.d.mts → runtime-JKWb27L5.d.mts} +2 -3
- package/dist/{runtime-CF6rAlE5.d.mts.map → runtime-JKWb27L5.d.mts.map} +1 -1
- package/package.json +19 -18
- package/dist/attribute-specs-DA_RwQFB.d.mts.map +0 -1
- package/dist/contract-builder-50lF0kz1.mjs.map +0 -1
- package/dist/contract-builder-C_Zi57iD.d.mts.map +0 -1
- package/dist/control-CffuMKgt.d.mts.map +0 -1
- package/dist/control-D7N_L18S.mjs.map +0 -1
- package/dist/diagnostics-RHJxoiIk.mjs +0 -23
- package/dist/diagnostics-RHJxoiIk.mjs.map +0 -1
- package/dist/generator-functions-Cg5QkM46-C1ByFzyT.mjs.map +0 -1
- package/dist/interpreter-D5qk4B---CG0C7kdx.mjs.map +0 -1
- package/dist/pack-DA8HZ2mo.d.mts.map +0 -1
- package/dist/pack-DOTaBfUC.mjs +0 -80
- package/dist/pack-DOTaBfUC.mjs.map +0 -1
- package/dist/psl-build-DFBG6vhz.mjs.map +0 -1
- package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts.map +0 -1
- package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as SqlExpression } from "./sql-expression-B4BrhGPi.mjs";
|
|
2
|
-
import { a as EnumMemberListDefault, i as EnumMemberDefault, n as DefaultFunctionCall, o as ParsedNullLiteral } from "./attribute-specs-
|
|
3
|
-
import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CgKIgWq5-
|
|
4
|
-
import { DataTypeSupport
|
|
2
|
+
import { a as EnumMemberListDefault, i as EnumMemberDefault, n as DefaultFunctionCall, o as ParsedNullLiteral } from "./attribute-specs-Dcd2ZUrY.mjs";
|
|
3
|
+
import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CgKIgWq5-CZK1F9a_.mjs";
|
|
4
|
+
import { DataTypeSupport } from "@prisma/orm-framework/components/authoring";
|
|
5
5
|
import { DataTypeId } from "@prisma/orm-framework/components/codec";
|
|
6
6
|
import { GeneratorFunctionContribution } from "@prisma/orm-framework/components/components";
|
|
7
7
|
import { ArgType, AttributeCtx } from "@prisma/orm-framework/psl-parser";
|
|
8
8
|
//#region ../../../2-sql-family/9-family/dist/pack.d.mts
|
|
9
|
-
//#region src/core/authoring-
|
|
9
|
+
//#region src/core/authoring-types.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* The type constructors every SQL target contributes itself, because their arguments are sizes, such as a length, and only the target names the data type a size is a value of: `sizeType`, such as `pg/int4`.
|
|
12
12
|
*/
|
|
@@ -32,6 +32,24 @@ declare function sqlTargetTypeConstructors<const SizeType extends string>(input:
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
+
readonly Char: {
|
|
36
|
+
readonly kind: "typeConstructor";
|
|
37
|
+
readonly documentation: "Fixed-length text with a required character length.";
|
|
38
|
+
readonly args: readonly [{
|
|
39
|
+
readonly kind: "value";
|
|
40
|
+
readonly dataType: SizeType;
|
|
41
|
+
readonly name: "length";
|
|
42
|
+
}];
|
|
43
|
+
readonly output: {
|
|
44
|
+
readonly codecId: "sql/char@1";
|
|
45
|
+
readonly typeParams: {
|
|
46
|
+
readonly length: {
|
|
47
|
+
readonly kind: "arg";
|
|
48
|
+
readonly index: 0;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
35
53
|
};
|
|
36
54
|
};
|
|
37
55
|
//#endregion
|
|
@@ -81,109 +99,6 @@ declare function sqlIntegerArgumentGeneratorFunctions({ integer }: {
|
|
|
81
99
|
readonly bindings: readonly [];
|
|
82
100
|
}];
|
|
83
101
|
//#endregion
|
|
84
|
-
//#region src/core/timestamp-now-generator.d.ts
|
|
85
|
-
declare function temporalStringAuthoringPresets<const Storage extends PresetStorageTemplate, const GeneratorId extends string = typeof TIMESTAMP_NOW_GENERATOR_ID>(input: Storage & {
|
|
86
|
-
readonly generatorId?: GeneratorId;
|
|
87
|
-
}): {
|
|
88
|
-
readonly createdAtString: {
|
|
89
|
-
readonly kind: "fieldPreset";
|
|
90
|
-
readonly output: Omit<Storage & {
|
|
91
|
-
readonly generatorId?: GeneratorId;
|
|
92
|
-
}, "generatorId"> & {
|
|
93
|
-
readonly executionDefaults: {
|
|
94
|
-
readonly onCreate: {
|
|
95
|
-
readonly kind: "generator";
|
|
96
|
-
readonly id: GeneratorId | "timestampNow";
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
readonly updatedAtString: {
|
|
102
|
-
readonly kind: "fieldPreset";
|
|
103
|
-
readonly output: Omit<Storage & {
|
|
104
|
-
readonly generatorId?: GeneratorId;
|
|
105
|
-
}, "generatorId"> & {
|
|
106
|
-
readonly executionDefaults: {
|
|
107
|
-
readonly onCreate: {
|
|
108
|
-
readonly kind: "generator";
|
|
109
|
-
readonly id: GeneratorId | "timestampNow";
|
|
110
|
-
};
|
|
111
|
-
readonly onUpdate: {
|
|
112
|
-
readonly kind: "generator";
|
|
113
|
-
readonly id: GeneratorId | "timestampNow";
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Builds a `temporal.<codec>` field preset for a codec that takes a precision
|
|
121
|
-
* parameter (`pg/timestamp-temporal@1`, `pg/timestamptz-temporal@1`). Arguments change field
|
|
122
|
-
* properties only — never the codec, which the caller fixes here.
|
|
123
|
-
*
|
|
124
|
-
* All three arguments are optional: omitting `precision` omits `typeParams`
|
|
125
|
-
* entirely, and omitting a phase omits that phase (both omitted omits
|
|
126
|
-
* `executionDefaults`). With `nowTakesPrecision`, the generator a `now` selects
|
|
127
|
-
* also receives the precision as its `precision` param, so it can write a value
|
|
128
|
-
* the column stores without rounding.
|
|
129
|
-
*/
|
|
130
|
-
declare function temporalCodecPresetWithPrecision<const CodecId extends string, const SizeType extends string, const GeneratorId extends string = typeof TIMESTAMP_NOW_GENERATOR_ID>(input: {
|
|
131
|
-
readonly codecId: CodecId;
|
|
132
|
-
/** The data type of the target's size arguments, which the precision argument is a value of, such as `pg/int4`. */
|
|
133
|
-
readonly sizeType: SizeType;
|
|
134
|
-
readonly generatorId?: GeneratorId;
|
|
135
|
-
readonly nowTakesPrecision?: true;
|
|
136
|
-
}): {
|
|
137
|
-
readonly kind: "fieldPreset";
|
|
138
|
-
readonly args: readonly [{
|
|
139
|
-
readonly name: "precision";
|
|
140
|
-
readonly kind: "value";
|
|
141
|
-
readonly dataType: SizeType;
|
|
142
|
-
readonly optional: true;
|
|
143
|
-
}, {
|
|
144
|
-
readonly name: "onCreate";
|
|
145
|
-
readonly kind: "option";
|
|
146
|
-
readonly values: readonly ["now"];
|
|
147
|
-
readonly optional: true;
|
|
148
|
-
}, {
|
|
149
|
-
readonly name: "onUpdate";
|
|
150
|
-
readonly kind: "option";
|
|
151
|
-
readonly values: readonly ["now"];
|
|
152
|
-
readonly optional: true;
|
|
153
|
-
}];
|
|
154
|
-
readonly output: {
|
|
155
|
-
readonly codecId: CodecId;
|
|
156
|
-
readonly typeParams: {
|
|
157
|
-
readonly precision: {
|
|
158
|
-
readonly kind: "arg";
|
|
159
|
-
readonly index: 0;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
readonly executionDefaults: {
|
|
163
|
-
readonly onCreate: {
|
|
164
|
-
readonly kind: "select";
|
|
165
|
-
readonly index: 1;
|
|
166
|
-
readonly cases: {
|
|
167
|
-
readonly now: {
|
|
168
|
-
readonly kind: "generator";
|
|
169
|
-
readonly id: "timestampNow" | GeneratorId;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
readonly onUpdate: {
|
|
174
|
-
readonly kind: "select";
|
|
175
|
-
readonly index: 2;
|
|
176
|
-
readonly cases: {
|
|
177
|
-
readonly now: {
|
|
178
|
-
readonly kind: "generator";
|
|
179
|
-
readonly id: "timestampNow" | GeneratorId;
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
//#endregion
|
|
187
102
|
//#region src/exports/pack.d.ts
|
|
188
103
|
declare const sqlFamilyPackBase: {
|
|
189
104
|
readonly kind: "family";
|
|
@@ -192,210 +107,84 @@ declare const sqlFamilyPackBase: {
|
|
|
192
107
|
readonly version: "0.0.1";
|
|
193
108
|
readonly dataTypes: readonly import("@prisma/orm-framework/components/codec").DataType[];
|
|
194
109
|
readonly authoring: {
|
|
195
|
-
readonly
|
|
196
|
-
readonly
|
|
197
|
-
readonly kind: "
|
|
198
|
-
readonly
|
|
199
|
-
readonly codecId: "sql/char@1";
|
|
200
|
-
readonly typeParams: {
|
|
201
|
-
readonly length: 36;
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
readonly ulid: {
|
|
206
|
-
readonly kind: "fieldPreset";
|
|
207
|
-
readonly output: {
|
|
208
|
-
readonly codecId: "sql/char@1";
|
|
209
|
-
readonly typeParams: {
|
|
210
|
-
readonly length: 26;
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
readonly nanoid: {
|
|
215
|
-
readonly kind: "fieldPreset";
|
|
110
|
+
readonly type: {
|
|
111
|
+
readonly Raw: {
|
|
112
|
+
readonly kind: "typeConstructor";
|
|
113
|
+
readonly documentation: "A column of a type no other column type covers, written exactly as the database catalog prints it, such as Raw(sql`tsvector`). Its values are typed unknown, and its default is a sql expression.";
|
|
216
114
|
readonly args: readonly [{
|
|
217
|
-
readonly kind: "
|
|
218
|
-
readonly
|
|
219
|
-
readonly
|
|
220
|
-
readonly size: {
|
|
221
|
-
readonly kind: "number";
|
|
222
|
-
readonly optional: true;
|
|
223
|
-
readonly integer: true;
|
|
224
|
-
readonly minimum: 2;
|
|
225
|
-
readonly maximum: 255;
|
|
226
|
-
};
|
|
227
|
-
};
|
|
115
|
+
readonly kind: "value";
|
|
116
|
+
readonly dataType: "sql/expression";
|
|
117
|
+
readonly name: "sql";
|
|
228
118
|
}];
|
|
229
119
|
readonly output: {
|
|
230
|
-
readonly codecId: "sql/
|
|
120
|
+
readonly codecId: "sql/raw@1";
|
|
231
121
|
readonly typeParams: {
|
|
232
|
-
readonly
|
|
122
|
+
readonly sql: {
|
|
233
123
|
readonly kind: "arg";
|
|
234
124
|
readonly index: 0;
|
|
235
|
-
readonly path: readonly ["size"];
|
|
236
|
-
readonly default: 21;
|
|
237
125
|
};
|
|
238
126
|
};
|
|
239
127
|
};
|
|
240
128
|
};
|
|
241
|
-
readonly
|
|
242
|
-
readonly
|
|
243
|
-
|
|
244
|
-
readonly
|
|
245
|
-
readonly typeParams: {
|
|
246
|
-
readonly length: 24;
|
|
247
|
-
};
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
readonly ksuid: {
|
|
251
|
-
readonly kind: "fieldPreset";
|
|
252
|
-
readonly output: {
|
|
253
|
-
readonly codecId: "sql/char@1";
|
|
254
|
-
readonly typeParams: {
|
|
255
|
-
readonly length: 27;
|
|
256
|
-
};
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
readonly id: {
|
|
260
|
-
readonly uuidv4String: {
|
|
261
|
-
readonly kind: "fieldPreset";
|
|
129
|
+
readonly sql: {
|
|
130
|
+
readonly UuidString: {
|
|
131
|
+
readonly kind: "typeAlias";
|
|
132
|
+
readonly documentation: "Fixed-length text of 36 characters, the column a UUID is stored in as text.";
|
|
262
133
|
readonly output: {
|
|
263
|
-
readonly
|
|
264
|
-
|
|
265
|
-
readonly
|
|
266
|
-
|
|
267
|
-
readonly executionDefaults: {
|
|
268
|
-
readonly onCreate: {
|
|
269
|
-
readonly kind: "generator";
|
|
270
|
-
readonly id: "uuidv4";
|
|
134
|
+
readonly type: {
|
|
135
|
+
readonly codecId: "sql/char@1";
|
|
136
|
+
readonly typeParams: {
|
|
137
|
+
readonly length: 36;
|
|
271
138
|
};
|
|
272
139
|
};
|
|
273
|
-
readonly id: true;
|
|
274
140
|
};
|
|
275
141
|
};
|
|
276
|
-
readonly
|
|
277
|
-
readonly kind: "
|
|
142
|
+
readonly Ulid: {
|
|
143
|
+
readonly kind: "typeAlias";
|
|
144
|
+
readonly documentation: "Fixed-length text of 26 characters, the column a ULID is stored in.";
|
|
278
145
|
readonly output: {
|
|
279
|
-
readonly
|
|
280
|
-
|
|
281
|
-
readonly
|
|
282
|
-
|
|
283
|
-
readonly executionDefaults: {
|
|
284
|
-
readonly onCreate: {
|
|
285
|
-
readonly kind: "generator";
|
|
286
|
-
readonly id: "uuidv7";
|
|
146
|
+
readonly type: {
|
|
147
|
+
readonly codecId: "sql/char@1";
|
|
148
|
+
readonly typeParams: {
|
|
149
|
+
readonly length: 26;
|
|
287
150
|
};
|
|
288
151
|
};
|
|
289
|
-
readonly id: true;
|
|
290
152
|
};
|
|
291
153
|
};
|
|
292
|
-
readonly
|
|
293
|
-
readonly kind: "
|
|
154
|
+
readonly Nanoid: {
|
|
155
|
+
readonly kind: "typeAlias";
|
|
156
|
+
readonly documentation: "Fixed-length text of 21 characters, the column a nanoid of the default size is stored in.";
|
|
294
157
|
readonly output: {
|
|
295
|
-
readonly
|
|
296
|
-
|
|
297
|
-
readonly
|
|
298
|
-
|
|
299
|
-
readonly executionDefaults: {
|
|
300
|
-
readonly onCreate: {
|
|
301
|
-
readonly kind: "generator";
|
|
302
|
-
readonly id: "ulid";
|
|
158
|
+
readonly type: {
|
|
159
|
+
readonly codecId: "sql/char@1";
|
|
160
|
+
readonly typeParams: {
|
|
161
|
+
readonly length: 21;
|
|
303
162
|
};
|
|
304
163
|
};
|
|
305
|
-
readonly id: true;
|
|
306
164
|
};
|
|
307
165
|
};
|
|
308
|
-
readonly
|
|
309
|
-
readonly kind: "
|
|
310
|
-
readonly
|
|
311
|
-
readonly kind: "object";
|
|
312
|
-
readonly optional: true;
|
|
313
|
-
readonly properties: {
|
|
314
|
-
readonly size: {
|
|
315
|
-
readonly kind: "number";
|
|
316
|
-
readonly optional: true;
|
|
317
|
-
readonly integer: true;
|
|
318
|
-
readonly minimum: 2;
|
|
319
|
-
readonly maximum: 255;
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
}];
|
|
166
|
+
readonly Cuid2: {
|
|
167
|
+
readonly kind: "typeAlias";
|
|
168
|
+
readonly documentation: "Fixed-length text of 24 characters, the column a CUID2 is stored in.";
|
|
323
169
|
readonly output: {
|
|
324
|
-
readonly
|
|
325
|
-
|
|
326
|
-
readonly
|
|
327
|
-
readonly
|
|
328
|
-
readonly index: 0;
|
|
329
|
-
readonly path: readonly ["size"];
|
|
330
|
-
readonly default: 21;
|
|
331
|
-
};
|
|
332
|
-
};
|
|
333
|
-
readonly executionDefaults: {
|
|
334
|
-
readonly onCreate: {
|
|
335
|
-
readonly kind: "generator";
|
|
336
|
-
readonly id: "nanoid";
|
|
337
|
-
readonly params: {
|
|
338
|
-
readonly size: {
|
|
339
|
-
readonly kind: "arg";
|
|
340
|
-
readonly index: 0;
|
|
341
|
-
readonly path: readonly ["size"];
|
|
342
|
-
};
|
|
343
|
-
};
|
|
170
|
+
readonly type: {
|
|
171
|
+
readonly codecId: "sql/char@1";
|
|
172
|
+
readonly typeParams: {
|
|
173
|
+
readonly length: 24;
|
|
344
174
|
};
|
|
345
175
|
};
|
|
346
|
-
readonly id: true;
|
|
347
176
|
};
|
|
348
177
|
};
|
|
349
|
-
readonly
|
|
350
|
-
readonly kind: "
|
|
178
|
+
readonly Ksuid: {
|
|
179
|
+
readonly kind: "typeAlias";
|
|
180
|
+
readonly documentation: "Fixed-length text of 27 characters, the column a KSUID is stored in.";
|
|
351
181
|
readonly output: {
|
|
352
|
-
readonly
|
|
353
|
-
|
|
354
|
-
readonly
|
|
355
|
-
|
|
356
|
-
readonly executionDefaults: {
|
|
357
|
-
readonly onCreate: {
|
|
358
|
-
readonly kind: "generator";
|
|
359
|
-
readonly id: "cuid2";
|
|
360
|
-
};
|
|
361
|
-
};
|
|
362
|
-
readonly id: true;
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
readonly ksuid: {
|
|
366
|
-
readonly kind: "fieldPreset";
|
|
367
|
-
readonly output: {
|
|
368
|
-
readonly codecId: "sql/char@1";
|
|
369
|
-
readonly typeParams: {
|
|
370
|
-
readonly length: 27;
|
|
371
|
-
};
|
|
372
|
-
readonly executionDefaults: {
|
|
373
|
-
readonly onCreate: {
|
|
374
|
-
readonly kind: "generator";
|
|
375
|
-
readonly id: "ksuid";
|
|
182
|
+
readonly type: {
|
|
183
|
+
readonly codecId: "sql/char@1";
|
|
184
|
+
readonly typeParams: {
|
|
185
|
+
readonly length: 27;
|
|
376
186
|
};
|
|
377
187
|
};
|
|
378
|
-
readonly id: true;
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
};
|
|
383
|
-
readonly type: {
|
|
384
|
-
readonly Raw: {
|
|
385
|
-
readonly kind: "typeConstructor";
|
|
386
|
-
readonly documentation: "A column of a type no other column type covers, written exactly as the database catalog prints it, such as Raw(sql`tsvector`). Its values are typed unknown, and its default is a sql expression.";
|
|
387
|
-
readonly args: readonly [{
|
|
388
|
-
readonly kind: "value";
|
|
389
|
-
readonly dataType: "sql/expression";
|
|
390
|
-
readonly name: "sql";
|
|
391
|
-
}];
|
|
392
|
-
readonly output: {
|
|
393
|
-
readonly codecId: "sql/raw@1";
|
|
394
|
-
readonly typeParams: {
|
|
395
|
-
readonly sql: {
|
|
396
|
-
readonly kind: "arg";
|
|
397
|
-
readonly index: 0;
|
|
398
|
-
};
|
|
399
188
|
};
|
|
400
189
|
};
|
|
401
190
|
};
|
|
@@ -531,5 +320,5 @@ declare const sqlFamilyPack: typeof sqlFamilyPackBase & {
|
|
|
531
320
|
};
|
|
532
321
|
};
|
|
533
322
|
//#endregion
|
|
534
|
-
export {
|
|
535
|
-
//# sourceMappingURL=pack-
|
|
323
|
+
export { sqlTargetTypeConstructors as i, sqlFamilyPack as n, sqlIntegerArgumentGeneratorFunctions as r, idGeneratorFunctionBindings as t };
|
|
324
|
+
//# sourceMappingURL=pack-Cap3oVPy.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pack-Cap3oVPy.d.mts","names":[],"sources":["../../../../2-sql-family/9-family/dist/pack.d.mts"],"mappings":";;;;;;;;;;;;iBAUiB,gCAAgC,yBAAyB;WAC/D,UAAU;;WAEV;aACE;eACE;eACA;eACA;iBACE;iBACA,UAAU;iBACV;;eAEF;iBACE;iBACA;mBACE;qBACE;qBACA;;;;;aAKR;eACE;eACA;eACA;iBACE;iBACA,UAAU;iBACV;;eAEF;iBACE;iBACA;mBACE;qBACE;qBACA;;;;;;;;;;iBAUJ,4BAA4B;WAClC;WACA;aACE;;;;iBAII,uCAAuC;WAC7C,SAAS;;WAET;WACA,YAAY,WAAW;aACrB;aACA;eACE;eACA,qCAAqC,uBAAuB,cAAc,eAAe;eACzF;;;WAGJ;;WAEA;WACA,YAAY,WAAW;aACrB;aACA;eACE;eACA,MAAM,WAAW;eACjB;;;WAGJ;;WAEA;WACA,YAAY,WAAW;aACrB;aACA;eACE;eACA,qCAAqC,wBAAwB,cAAc,gBAAgB;eAC3F;;;WAGJ;;;;cAIG;WACH;WACA;WACA;WACA;WACA,mEAAmE;WACnE;aACE;eACE;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBACE;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;;;aAOZ,WAAW,SAAS,kEAAkE;aACtF,gEAAgE;aAChE;eACE;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;UACE,2CAA2C;YACzC;4CACgC;;;;aAI/B;eACE;iBACE,MAAM,qCAAqC,wDAAwD;UAC1G;0CACgC;iBACzB,KAAK,qCAAqC,wDAAwD;UACzG;mBACS;0CACuB;iBACzB,SAAS,qCAAqC,wDAAwD;UAC7G;mBACS;0CACuB;iBACzB,QAAQ,oCAAoC,wDAAwD;UAC3G;mBACS,4CAA4C;mBAC5C,uCAAuC;mBACvC;mBACA;mBACA;mBACA;mBACA,UAAU;0CACa;iBACzB,QAAQ,oCAAoC,wDAAwD;mBAClG,2CAA2C;mBAC3C;mBACA;0CACuB;iBACzB,UAAU,qCAAqC,wDAAwD;UAC9G;0CACgC;iBACzB,gBAAgB,qCAAqC,wDAAwD;UACpH;0CACgC;iBACzB,OAAO,qCAAqC,wDAAwD;UAC3G,qCAAqC,uDAAuD;UAC5F,sCAAsC;0CACN;;eAE3B;iBACE,MAAM,qCAAqC,6DAA6D;UAC/G;0CACgC;iBACzB,KAAK,qCAAqC,6DAA6D;mBACrG;0CACuB;iBACzB,SAAS,qCAAqC,6DAA6D;mBACzG;0CACuB;iBACzB,WAAW,qCAAqC,6DAA6D;UACpH;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;0CACuB;iBACzB,UAAU,oCAAoC,6DAA6D;UAClH,sCAAsC,sBAtCnB,mDAsCiJ,iDAAiD,sBAApG,qBAA+K,sBAA0E,oBAA2E;0CACrZ;iBACzB,WAAW,oCAAoC,6DAA6D;UACnH,sCAAsC;0CACN;iBACzB,WAAW,oCAAoC,6DAA6D;UACnH,sCAAsC;0CACN;;;;WAI/B;aACE;aACA;eACE;;aAEF;;aAEA;aACA,uEAAuE;;aAEvE;aACA,uEAAuE;;aAEvE;aACA;eACE;;aAEF,uEAAuE;;aAEvE;aACA,uEAAuE;;aAEvE;aACA;eACE;;aAEF,uEAAuE;;WAEzE;aACE,yBAAyB;aACzB,gFAAgF;;;cAG/E,sBAAsB;WACzB;aACE;eACE,UAAU;eACV"}
|
|
@@ -314,7 +314,7 @@ function writtenTypeArguments(descriptor, args, dataTypes) {
|
|
|
314
314
|
const written = [];
|
|
315
315
|
for (const [index, value] of args.entries()) {
|
|
316
316
|
const argument = descriptor.args?.[index];
|
|
317
|
-
if (argument
|
|
317
|
+
if (argument === void 0) return void 0;
|
|
318
318
|
const text = writeDataTypeValue(blindCast(value), dataTypeId(argument.dataType), dataTypes);
|
|
319
319
|
if (text === void 0) return void 0;
|
|
320
320
|
written.push(text);
|
|
@@ -423,4 +423,4 @@ function generatorCallsFor(input) {
|
|
|
423
423
|
//#endregion
|
|
424
424
|
export { mapDefault as a, writtenTypeArguments as c, inferredTypeConstructors as i, generatorCallsFor as n, writeDataTypeValue as o, inferColumnTypes as r, writeDefaultLiteral as s, fewestArgumentsCall as t };
|
|
425
425
|
|
|
426
|
-
//# sourceMappingURL=psl-build-
|
|
426
|
+
//# sourceMappingURL=psl-build-DqqYhOsa.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"psl-build-DqqYhOsa.mjs","names":[],"sources":["../../../../2-sql-family/9-family/dist/psl-build.mjs"],"sourcesContent":["import { t as sqlFamilyError } from \"./errors-B5g0xWro.mjs\";\nimport { s as toEnumMemberName } from \"./psl-names-C3cwe0rg.mjs\";\nimport { isSqlDataType, resolveReportedSqlType } from \"@internal/sql-contract/data-type\";\nimport { SQL_EXPRESSION_TAG } from \"@internal/sql-contract/sql-expression\";\nimport { authoringTypeConstructorArguments, authoringTypeConstructors, castTypedValue, instantiateAuthoringTypeConstructor, printTaggedLiteral, readWrittenValue } from \"@internal/framework-components/authoring\";\nimport { dataTypeId, dataTypeParams, numeralText } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { InternalError, isInternalError } from \"@internal/utils/internal-error\";\nimport { canonicalizeJson } from \"@internal/framework-components/utils\";\nimport { escapePslString } from \"@internal/sql-contract/data-type-support\";\n//#region src/core/psl-build/default-mapping.ts\nconst DEFAULT_FUNCTION_ATTRIBUTES = {\n\t\"autoincrement()\": \"@default(autoincrement())\",\n\t\"now()\": \"@default(now())\"\n};\n/**\n* The attribute a stored default prints as: a named function, a literal the column takes, or any\n* other expression as a `sql` literal. `undefined` when a literal has no written form. An expression\n* prints even when the literal would read back as different text: default expressions are compared\n* with case and whitespace ignored (`SqlColumnDefaultIR.isEqualTo`), and canonicalization changes only\n* whitespace (ADR 129).\n*/\nfunction mapDefault(columnDefault, options) {\n\tswitch (columnDefault.kind) {\n\t\tcase \"literal\": {\n\t\t\tconst text = writeDefaultLiteral(columnDefault.value, options);\n\t\t\treturn text === void 0 ? void 0 : { attribute: `@default(${text})` };\n\t\t}\n\t\tcase \"function\": return { attribute: options?.functionAttributes?.[columnDefault.expression] ?? DEFAULT_FUNCTION_ATTRIBUTES[columnDefault.expression] ?? `@default(${printTaggedLiteral(SQL_EXPRESSION_TAG, columnDefault.expression)})` };\n\t}\n}\nfunction writingSurface(support) {\n\tconst entryOf = /* @__PURE__ */ new Map();\n\tconst tagTypes = [];\n\tfor (const [key, entry] of Object.entries(support.entries)) {\n\t\tconst written = entry.written;\n\t\tif (written.kind === \"tag\") {\n\t\t\tconst type = dataTypeId(key);\n\t\t\tif (!entryOf.has(type)) entryOf.set(type, entry);\n\t\t\ttagTypes.push(type);\n\t\t\tcontinue;\n\t\t}\n\t\tif (written.syntax === \"number\") {\n\t\t\tfor (const type of written.types) entryOf.set(type, entry);\n\t\t\tcontinue;\n\t\t}\n\t\tentryOf.set(key, entry);\n\t}\n\treturn {\n\t\tsupport,\n\t\tentryOf,\n\t\ttagTypes\n\t};\n}\nfunction readValue(surface, written) {\n\tconst read = readWrittenValue(surface.support, written);\n\treturn read.ok ? read.value : void 0;\n}\n/** The value of a tag's type that a stored document is, constructed by that type. */\nfunction tagValue(surface, type, value) {\n\ttry {\n\t\treturn surface.support.lookup.get(type)?.valueFrom(value, {});\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn;\n\t}\n}\n/**\n* Every value the stored form could be, in the order a written value would be read: a number or\n* numeral text through the number entry first, then the plain syntax that matches the shape, then\n* each tag, whose stored form is a whole document, which may itself be a number or a boolean.\n*/\nfunction classifications(value, surface) {\n\tconst found = [];\n\tif (typeof value === \"number\") found.push(readValue(surface, {\n\t\tkind: \"number\",\n\t\ttext: numeralText(value)\n\t}));\n\telse if (typeof value === \"boolean\") found.push(readValue(surface, {\n\t\tkind: \"boolean\",\n\t\tvalue\n\t}));\n\telse if (typeof value === \"string\") {\n\t\tfound.push(readValue(surface, {\n\t\t\tkind: \"number\",\n\t\t\ttext: value\n\t\t}));\n\t\tfound.push(readValue(surface, {\n\t\t\tkind: \"string\",\n\t\t\ttext: value\n\t\t}));\n\t}\n\tfor (const type of surface.tagTypes) found.push(tagValue(surface, type, value));\n\treturn found.filter((candidate) => candidate !== void 0);\n}\n/** What the column's type stores for `json` under the column's parameters, or `undefined` when it holds no such value. */\nfunction storedUnder(json, column, lookup) {\n\tconst type = lookup.get(column.id);\n\tif (type === void 0) return void 0;\n\ttry {\n\t\treturn type.toContract(type.valueFrom(json, column.params));\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn;\n\t}\n}\n/** The stored form the column takes this value as, spelled as its parameters give it, or `undefined` when its type takes no such value. */\nfunction admitted(candidate, column, surface) {\n\tconst cast = castTypedValue(surface.support, column.id, column.params, candidate);\n\treturn cast.ok ? cast.value.value : void 0;\n}\n/** The text of the literal: what the entry prints, before the syntax that fences it. */\nfunction printedText(entry, value) {\n\ttry {\n\t\treturn entry.print(value);\n\t} catch {\n\t\treturn;\n\t}\n}\n/** The printed text as the entry's syntax writes it, for reading back. */\nfunction writtenAs(entry, text) {\n\tconst written = entry.written;\n\tif (written.kind === \"tag\") return {\n\t\tkind: \"tag\",\n\t\ttag: written.tag,\n\t\ttext\n\t};\n\tif (written.syntax !== \"boolean\") return {\n\t\tkind: written.syntax,\n\t\ttext\n\t};\n\treturn text === \"true\" || text === \"false\" ? {\n\t\tkind: \"boolean\",\n\t\tvalue: text === \"true\"\n\t} : void 0;\n}\n/** What the printed text reads back as, through the same read a written value takes. */\nfunction readBack(surface, entry, text) {\n\tconst written = writtenAs(entry, text);\n\treturn written === void 0 ? void 0 : readValue(surface, written);\n}\nfunction literalText(entry, text) {\n\tconst written = entry.written;\n\tif (written.kind === \"tag\") return printTaggedLiteral(written.tag, text);\n\treturn written.syntax === \"string\" ? `\"${escapePslString(text)}\"` : text;\n}\n/**\n* The value written as the literal of one of its types, proven by reading the text straight back:\n* the same read, the same cast, and the stored form again. A number is tried first without the\n* trailing fraction zeros the column's scale spells it with.\n*/\nfunction writeScalar(value, column, surface) {\n\tconst shortest = withoutTrailingFractionZeros(value);\n\tconst candidates = [...shortest === void 0 ? [] : classifications(shortest, surface), ...classifications(value, surface)];\n\tfor (const candidate of candidates) {\n\t\tconst entry = surface.entryOf.get(candidate.type);\n\t\tif (entry === void 0) continue;\n\t\tconst stored = admitted(candidate, column, surface);\n\t\tif (stored === void 0 || !sameForm(stored, value)) continue;\n\t\tconst text = printedText(entry, candidate.value);\n\t\tif (text === void 0) continue;\n\t\tconst reread = readBack(surface, entry, text);\n\t\tif (reread === void 0) continue;\n\t\tconst restored = admitted(reread, column, surface);\n\t\tif (restored === void 0 || !sameForm(restored, value)) continue;\n\t\treturn literalText(entry, text);\n\t}\n}\n/**\n* `value`, a value of `dataType` as `contract.json` stores it, written as the literal of a type that `dataType` takes, proven to read back as `value`: `255` for `pg/int4`, ``sql`\"MyType\"[]` `` for `sql/expression`. `undefined` when no literal reads back as it.\n*/\nfunction writeDataTypeValue(value, dataType, support) {\n\treturn writeScalar(value, {\n\t\tid: dataType,\n\t\tparams: {}\n\t}, writingSurface(support));\n}\nconst DECIMAL_WITH_FRACTION = /^-?\\d+\\.\\d+$/;\nfunction withoutTrailingFractionZeros(value) {\n\tif (typeof value !== \"string\" || !DECIMAL_WITH_FRACTION.test(value)) return void 0;\n\tconst shortened = value.replace(/0+$/, \"\").replace(/\\.$/, \"\");\n\treturn shortened === value ? void 0 : shortened;\n}\n/** One written element of a list, printed as a value of any type, with no column type to admit it. */\nfunction writeElement(value, of, surface) {\n\tfor (const candidate of classifications(value, surface)) {\n\t\tif (!of.includes(candidate.type)) continue;\n\t\tconst entry = surface.entryOf.get(candidate.type);\n\t\tif (entry === void 0) continue;\n\t\tconst text = printedText(entry, candidate.value);\n\t\tif (text === void 0) continue;\n\t\tconst reread = readBack(surface, entry, text);\n\t\tif (reread === void 0 || !of.includes(reread.type)) continue;\n\t\treturn {\n\t\t\ttext: literalText(entry, text),\n\t\t\tvalue: reread.value\n\t\t};\n\t}\n}\n/**\n* A written list on a scalar column, which the column type's list cast turns into its one value,\n* constructed by the column's type. Each element is classified on its own and must be of a type the\n* cast takes.\n*/\nfunction writeListCast(value, column, surface) {\n\tconst listCast = surface.support.lookup.get(column.id)?.listCast;\n\tif (listCast === void 0) return void 0;\n\tconst parts = [];\n\tconst elements = [];\n\tfor (const element of value) {\n\t\tconst written = writeElement(element, listCast.of, surface);\n\t\tif (written === void 0) return void 0;\n\t\tparts.push(written.text);\n\t\telements.push(written.value);\n\t}\n\tlet cast;\n\ttry {\n\t\tcast = listCast.cast(elements);\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn;\n\t}\n\tconst stored = storedUnder(cast, column, surface.support.lookup);\n\treturn stored !== void 0 && sameForm(stored, value) ? `[${parts.join(\", \")}]` : void 0;\n}\n/** The PSL literal a stored value is written as for the column `options` describe, or `undefined` when it has no written form that reads back as that value. */\nfunction writeDefaultLiteral(value, options) {\n\tif (value instanceof Date) return void 0;\n\tconst { dataTypes, columnCodec } = options ?? {};\n\tif (dataTypes === void 0 || columnCodec === void 0) return void 0;\n\tconst { lookup } = dataTypes;\n\tconst columnDataType = columnCodec.dataType;\n\tconst columnType = lookup.get(columnDataType);\n\tconst column = {\n\t\tid: columnDataType,\n\t\tparams: columnType === void 0 ? {} : dataTypeParams(columnType, options?.typeParams)\n\t};\n\tconst surface = writingSurface(dataTypes);\n\tif (options?.list === true) {\n\t\tif (!Array.isArray(value)) return void 0;\n\t\tconst parts = [];\n\t\tfor (const element of value) {\n\t\t\tconst written = writeScalar(element, column, surface);\n\t\t\tif (written === void 0) return void 0;\n\t\t\tparts.push(written);\n\t\t}\n\t\treturn `[${parts.join(\", \")}]`;\n\t}\n\tconst written = writeScalar(value, column, surface);\n\tif (written !== void 0) return written;\n\treturn Array.isArray(value) ? writeListCast(value, column, surface) : void 0;\n}\n/** Whether two stored forms are the same JSON value, member by member and element by element. */\nfunction sameForm(left, right) {\n\tif (left === right) return true;\n\tif (Array.isArray(left) !== Array.isArray(right)) return false;\n\tif (typeof left !== \"object\" || typeof right !== \"object\" || left === null || right === null) return false;\n\tconst members = Object.entries(left);\n\tconst others = new Map(Object.entries(right));\n\treturn members.length === others.size && members.every(([key, member]) => {\n\t\tconst other = others.get(key);\n\t\treturn other !== void 0 && sameForm(member, other);\n\t});\n}\n//#endregion\n//#region src/core/psl-build/inferred-type-constructors.ts\n/** Every constructor of `authoringTypes` marked `inferred`, by the data type its codec represents. */\nfunction inferredTypeConstructors(input) {\n\tconst found = /* @__PURE__ */ new Map();\n\tfor (const { path, descriptor } of authoringTypeConstructors(input.authoringTypes)) {\n\t\tif (descriptor.inferred !== true) continue;\n\t\tconst dataTypeId = input.codecLookup.descriptorFor(descriptor.output.codecId)?.dataType;\n\t\tconst dataType = dataTypeId === void 0 ? void 0 : input.dataTypeLookup.get(dataTypeId);\n\t\tif (dataType === void 0 || !isSqlDataType(dataType)) continue;\n\t\tfound.set(dataType.id, {\n\t\t\tpath,\n\t\t\tdescriptor,\n\t\t\tdataType\n\t\t});\n\t}\n\treturn found;\n}\nfunction normalParams(marked, args) {\n\ttry {\n\t\tconst { typeParams } = instantiateAuthoringTypeConstructor(marked.descriptor, args);\n\t\tconst params = dataTypeParams(marked.dataType, typeParams);\n\t\treturn canonicalizeJson(marked.dataType.sql.normalize(params));\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn;\n\t}\n}\n/**\n* The call to `marked` with the fewest arguments that produces `params`, the normal form of a\n* column's data type parameters: arguments are dropped from the end while the normal form of what\n* the call produces stays `params`. Undefined when the constructor cannot produce them, such as one\n* whose argument names another entity.\n*/\nfunction fewestArgumentsCall(marked, params) {\n\tconst all = authoringTypeConstructorArguments(marked.descriptor, {\n\t\tcodecId: marked.descriptor.output.codecId,\n\t\ttypeParams: params\n\t});\n\tif (all === void 0) return void 0;\n\tconst wanted = canonicalizeJson(params);\n\tconst args = [...all];\n\twhile (args.length > 0 && normalParams(marked, args.slice(0, -1)) === wanted) args.pop();\n\treturn {\n\t\tpath: marked.path,\n\t\targs\n\t};\n}\n/**\n* Each argument of a call to `descriptor` as PSL writes it: a value argument as a literal of its data type that reads back as the same value. `undefined` when an argument is not a value argument or no literal reads back as it.\n*/\nfunction writtenTypeArguments(descriptor, args, dataTypes) {\n\tconst written = [];\n\tfor (const [index, value] of args.entries()) {\n\t\tconst argument = descriptor.args?.[index];\n\t\tif (argument === void 0) return void 0;\n\t\tconst text = writeDataTypeValue(blindCast(value), dataTypeId(argument.dataType), dataTypes);\n\t\tif (text === void 0) return void 0;\n\t\twritten.push(text);\n\t}\n\treturn written;\n}\n//#endregion\n//#region src/core/psl-build/column-types.ts\n/** The type the database reported for `column`, which introspection always records. */\nfunction reportedTypeOf(column, tableName) {\n\tif (column.reportedType === void 0) throw new InternalError(`contract infer read column \"${tableName}\".\"${column.name}\" without the type the database reported for it.`);\n\treturn column.reportedType;\n}\nfunction writtenCall(constructors, dataTypes, support, reported) {\n\tconst resolved = resolveReportedSqlType(reported, dataTypes);\n\tconst marked = resolved && constructors.get(resolved.dataType.id);\n\tconst call = resolved && marked && fewestArgumentsCall(marked, resolved.typeParams);\n\tconst args = call && marked && writtenTypeArguments(marked.descriptor, call.args, support);\n\treturn call && args && {\n\t\tpath: call.path,\n\t\targs,\n\t\tvalues: call.args\n\t};\n}\n/**\n* The type of every column of `tables` that `isEnumColumn` does not claim: the call, with the\n* fewest arguments, to the constructor marked `inferred` for the data type that claims the\n* column's reported type. When any column has no such call, throws\n* `CONTRACT.INFER_COLUMN_TYPE_UNCLAIMED` listing every one of them.\n*/\nfunction inferColumnTypes(input) {\n\tconst dataTypes = [...input.constructors.values()].map((marked) => marked.dataType);\n\tconst types = /* @__PURE__ */ new Map();\n\tconst unclaimed = [];\n\tfor (const { schemaName, tableName, columns } of input.tables) for (const column of columns) {\n\t\tif (input.isEnumColumn(column)) continue;\n\t\tconst reported = reportedTypeOf(column, tableName);\n\t\tconst call = writtenCall(input.constructors, dataTypes, input.dataTypes, reported);\n\t\tif (call === void 0) {\n\t\t\tunclaimed.push(`${schemaName}.${tableName}.${column.name}: ${reported.text}${column.many === true ? \"[]\" : \"\"}`);\n\t\t\tcontinue;\n\t\t}\n\t\ttypes.set(JSON.stringify([tableName, column.name]), call);\n\t}\n\tif (unclaimed.length > 0) {\n\t\tconst columns = unclaimed.sort();\n\t\tthrow sqlFamilyError(\"CONTRACT.INFER_COLUMN_TYPE_UNCLAIMED\", [\"contract infer: Prisma 8 cannot write these column types with the configured stack:\", ...columns.map((line) => ` ${line}`)].join(\"\\n\"), {\n\t\t\twhy: \"Prisma 8 reads a column type only through a data type that the target or an extension pack declares.\",\n\t\t\tfix: `No configured pack has a type for these columns. If a type comes from a database extension that has a Prisma 8 pack, add the pack to extensions in prisma.config.ts. Otherwise, to keep such a column, write the schema by hand and declare its field as Raw(sql\\`<type>\\`) with the type as listed, or change the column's type or remove the column from the database.`,\n\t\t\tmeta: { columns }\n\t\t});\n\t}\n\treturn (tableName, columnName) => {\n\t\tconst type = types.get(JSON.stringify([tableName, columnName]));\n\t\tif (type === void 0) throw new InternalError(`contract infer resolved no type for \"${tableName}\".\"${columnName}\".`);\n\t\treturn type;\n\t};\n}\n//#endregion\n//#region src/core/psl-build/generator-calls.ts\nconst GENERATOR_PHASES = [\"onCreate\", \"onUpdate\"];\n/**\n* The generator function call that writes each phase of a column's generators, as `@onCreate(...)` and `@onUpdate(...)` take it. A call must resolve back to the stored generator, so a list column, a generator no function writes for the codec, and a call that reads back differently are refused.\n*/\nfunction generatorCallsFor(input) {\n\tconst { executionDefault, field, list, generatorFunctions } = input;\n\tconst calls = [];\n\tfor (const phase of GENERATOR_PHASES) {\n\t\tconst generator = executionDefault[phase];\n\t\tif (generator === void 0) continue;\n\t\tif (list) return {\n\t\t\tok: false,\n\t\t\trefusal: {\n\t\t\t\tkind: \"on-list\",\n\t\t\t\tphase,\n\t\t\t\tgenerator\n\t\t\t}\n\t\t};\n\t\tconst printed = generatorFunctions.callFor(generator, field);\n\t\tif (printed === void 0) return {\n\t\t\tok: false,\n\t\t\trefusal: {\n\t\t\t\tkind: \"no-function\",\n\t\t\t\tphase,\n\t\t\t\tgenerator\n\t\t\t}\n\t\t};\n\t\tconst readBack = generatorFunctions.resolve(printed.call, field);\n\t\tif (!readBack.ok || canonicalizeJson(readBack.generator) !== canonicalizeJson(generator)) return {\n\t\t\tok: false,\n\t\t\trefusal: {\n\t\t\t\tkind: \"reads-back-differently\",\n\t\t\t\tphase,\n\t\t\t\tgenerator,\n\t\t\t\ttext: printed.text,\n\t\t\t\treadBack: readBack.ok ? readBack.generator : void 0,\n\t\t\t\trefusedBecause: !readBack.ok && readBack.reason === \"refused\" ? readBack.message : void 0\n\t\t\t}\n\t\t};\n\t\tcalls.push({\n\t\t\tphase,\n\t\t\ttext: printed.text\n\t\t});\n\t}\n\treturn {\n\t\tok: true,\n\t\tcalls\n\t};\n}\n//#endregion\nexport { fewestArgumentsCall, generatorCallsFor, inferColumnTypes, inferredTypeConstructors, mapDefault, toEnumMemberName, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };\n\n//# sourceMappingURL=psl-build.mjs.map"],"mappings":";;;;;;;;;;AAWA,MAAM,8BAA8B;CACnC,mBAAmB;CACnB,SAAS;AACV;;;;;;;;AAQA,SAAS,WAAW,eAAe,SAAS;CAC3C,QAAQ,cAAc,MAAtB;EACC,KAAK,WAAW;GACf,MAAM,OAAO,oBAAoB,cAAc,OAAO,OAAO;GAC7D,OAAO,SAAS,KAAK,IAAI,KAAK,IAAI,EAAE,WAAW,YAAY,KAAK,GAAG;EACpE;EACA,KAAK,YAAY,OAAO,EAAE,WAAW,SAAS,qBAAqB,cAAc,eAAe,4BAA4B,cAAc,eAAe,YAAY,mBAAA,OAAuC,cAAc,UAAU,EAAE,GAAG;CAC1O;AACD;AACA,SAAS,eAAe,SAAS;CAChC,MAAM,0BAA0B,IAAI,IAAI;CACxC,MAAM,WAAW,CAAC;CAClB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,QAAQ,OAAO,GAAG;EAC3D,MAAM,UAAU,MAAM;EACtB,IAAI,QAAQ,SAAS,OAAO;GAC3B,MAAM,OAAO,WAAW,GAAG;GAC3B,IAAI,CAAC,QAAQ,IAAI,IAAI,GAAG,QAAQ,IAAI,MAAM,KAAK;GAC/C,SAAS,KAAK,IAAI;GAClB;EACD;EACA,IAAI,QAAQ,WAAW,UAAU;GAChC,KAAK,MAAM,QAAQ,QAAQ,OAAO,QAAQ,IAAI,MAAM,KAAK;GACzD;EACD;EACA,QAAQ,IAAI,KAAK,KAAK;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AAW,GAAG;EAClH,OAAO;CACR;AACD;AAGA,MAAM,mBAAmB,CAAC,YAAY,UAAU;;;;AAIhD,SAAS,kBAAkB,OAAO;CACjC,MAAM,EAAE,kBAAkB,OAAO,MAAM,uBAAuB;CAC9D,MAAM,QAAQ,CAAC;CACf,KAAK,MAAM,SAAS,kBAAkB;EACrC,MAAM,YAAY,iBAAiB;EACnC,IAAI,cAAc,KAAK,GAAG;EAC1B,IAAI,MAAM,OAAO;GAChB,IAAI;GACJ,SAAS;IACR,MAAM;IACN;IACA;GACD;EACD;EACA,MAAM,UAAU,mBAAmB,QAAQ,WAAW,KAAK;EAC3D,IAAI,YAAY,KAAK,GAAG,OAAO;GAC9B,IAAI;GACJ,SAAS;IACR,MAAM;IACN;IACA;GACD;EACD;EACA,MAAM,WAAW,mBAAmB,QAAQ,QAAQ,MAAM,KAAK;EAC/D,IAAI,CAAC,SAAS,MAAM,iBAAiB,SAAS,SAAS,MAAM,iBAAiB,SAAS,GAAG,OAAO;GAChG,IAAI;GACJ,SAAS;IACR,MAAM;IACN;IACA;IACA,MAAM,QAAQ;IACd,UAAU,SAAS,KAAK,SAAS,YAAY,KAAK;IAClD,gBAAgB,CAAC,SAAS,MAAM,SAAS,WAAW,YAAY,SAAS,UAAU,KAAK;GACzF;EACD;EACA,MAAM,KAAK;GACV;GACA,MAAM,QAAQ;EACf,CAAC;CACF;CACA,OAAO;EACN,IAAI;EACJ;CACD;AACD"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./contract-builder-
|
|
1
|
+
import "./contract-builder-B-Q9T1CO.mjs";
|
|
2
2
|
import { AuthoringTypeConstructorDescriptor, DataTypeSupport } from "@prisma/orm-framework/components/authoring";
|
|
3
3
|
import { CodecLookupWithDescriptors } from "@prisma/orm-framework/components/codec";
|
|
4
|
-
import {
|
|
4
|
+
import { ValueSetRef } from "@prisma/orm-framework/contract/types";
|
|
5
5
|
import "@prisma/orm-framework/components/control";
|
|
6
6
|
import { Binder } from "@prisma/orm-framework/psl-parser";
|
|
7
|
-
//#region ../../../2-sql-family/2-authoring/contract-psl/dist/psl-column-resolution-
|
|
7
|
+
//#region ../../../2-sql-family/2-authoring/contract-psl/dist/psl-column-resolution-djGEITmJ.d.mts
|
|
8
8
|
//#region src/psl-column-resolution.d.ts
|
|
9
9
|
type ColumnDescriptor = {
|
|
10
10
|
readonly codecId: string;
|
|
@@ -21,4 +21,4 @@ type ColumnDescriptor = {
|
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ColumnDescriptor as t };
|
|
24
|
-
//# sourceMappingURL=psl-column-resolution-
|
|
24
|
+
//# sourceMappingURL=psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts","names":[],"sources":["../../../../2-sql-family/2-authoring/contract-psl/dist/psl-column-resolution-djGEITmJ.d.mts"],"mappings":";;;;;;;;KASK;WACM;WACA,aAAa;;;;;;;;;WASb,WAAW"}
|