@prisma/orm-target-postgres 8.0.0-rc.18-dev.10 → 8.0.0-rc.18-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.
- package/dist/{adapter-CqqF1-aT.d.mts → adapter-Bz0FvaNf.d.mts} +8 -8
- package/dist/{adapter-CqqF1-aT.d.mts.map → adapter-Bz0FvaNf.d.mts.map} +1 -1
- package/dist/adapter.d.mts +1 -1
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__control.mjs +1 -1
- package/dist/{aggregates-B-jwhT8T.d.mts → aggregates-BNxcV7HS.d.mts} +8 -8
- package/dist/{aggregates-B-jwhT8T.d.mts.map → aggregates-BNxcV7HS.d.mts.map} +1 -1
- package/dist/{control-BeGPfK6d.mjs → control-Ctj_SMkH.mjs} +5 -8
- package/dist/control-Ctj_SMkH.mjs.map +1 -0
- package/dist/{infer-psl-contract-l55XjKWM-O6kcTBJE.mjs → infer-psl-contract-NE6ky6fm-RK7NjZQu.mjs} +13 -22
- package/dist/infer-psl-contract-NE6ky6fm-RK7NjZQu.mjs.map +1 -0
- package/dist/{pack-D9gjv6Kw.d.mts → pack-4sJCj0w-.d.mts} +2 -2
- package/dist/{pack-D9gjv6Kw.d.mts.map → pack-4sJCj0w-.d.mts.map} +1 -1
- package/dist/{prisma7-binding-BvuMHLdX.mjs → prisma7-binding-C_-5o7oD.mjs} +2 -2
- package/dist/{prisma7-binding-BvuMHLdX.mjs.map → prisma7-binding-C_-5o7oD.mjs.map} +1 -1
- package/dist/{prisma7-binding-Bi4R4axY.d.mts → prisma7-binding-LcYpTBjP.d.mts} +2 -2
- package/dist/{prisma7-binding-Bi4R4axY.d.mts.map → prisma7-binding-LcYpTBjP.d.mts.map} +1 -1
- package/dist/target.d.mts +3 -3
- package/dist/target.mjs +2 -2
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__control.mjs +1 -1
- package/dist/target__pack.d.mts +1 -1
- package/dist/target__prisma7-binding.d.mts +1 -1
- package/dist/target__prisma7-binding.mjs +1 -1
- package/package.json +9 -9
- package/dist/control-BeGPfK6d.mjs.map +0 -1
- package/dist/infer-psl-contract-l55XjKWM-O6kcTBJE.mjs.map +0 -1
|
@@ -114,7 +114,7 @@ declare const postgresAdapterContractContributions: {
|
|
|
114
114
|
readonly operation: "sum";
|
|
115
115
|
readonly input: {
|
|
116
116
|
readonly kind: "codec";
|
|
117
|
-
readonly codecId: "pg/int8number@1" | "pg/int4@1" | "pg/int8@1" | "sql/int@1" | "pg/
|
|
117
|
+
readonly codecId: "pg/int8number@1" | "pg/int4@1" | "pg/int8@1" | "sql/int@1" | "pg/int@1" | "pg/int2@1";
|
|
118
118
|
};
|
|
119
119
|
readonly output: {
|
|
120
120
|
readonly kind: "codec";
|
|
@@ -126,7 +126,7 @@ declare const postgresAdapterContractContributions: {
|
|
|
126
126
|
readonly operation: "sumBigInt";
|
|
127
127
|
readonly input: {
|
|
128
128
|
readonly kind: "codec";
|
|
129
|
-
readonly codecId: "pg/int4@1" | "sql/int@1" | "pg/
|
|
129
|
+
readonly codecId: "pg/int4@1" | "sql/int@1" | "pg/int@1" | "pg/int2@1";
|
|
130
130
|
};
|
|
131
131
|
readonly output: {
|
|
132
132
|
readonly kind: "codec";
|
|
@@ -239,7 +239,7 @@ declare const postgresAdapterContractContributions: {
|
|
|
239
239
|
readonly operation: "avg";
|
|
240
240
|
readonly input: {
|
|
241
241
|
readonly kind: "codec";
|
|
242
|
-
readonly codecId: "pg/int8number@1" | "pg/unboundedint@1" | "pg/int4@1" | "pg/int8@1" | "sql/int@1" | "pg/
|
|
242
|
+
readonly codecId: "pg/int8number@1" | "pg/unboundedint@1" | "pg/int4@1" | "pg/int8@1" | "sql/int@1" | "pg/int@1" | "pg/int2@1";
|
|
243
243
|
};
|
|
244
244
|
readonly output: {
|
|
245
245
|
readonly kind: "codec";
|
|
@@ -251,7 +251,7 @@ declare const postgresAdapterContractContributions: {
|
|
|
251
251
|
readonly operation: "avgDecimal";
|
|
252
252
|
readonly input: {
|
|
253
253
|
readonly kind: "codec";
|
|
254
|
-
readonly codecId: "pg/int8number@1" | "pg/unboundedint@1" | "pg/int4@1" | "pg/int8@1" | "pg/numeric@1" | "sql/int@1" | "pg/
|
|
254
|
+
readonly codecId: "pg/int8number@1" | "pg/unboundedint@1" | "pg/int4@1" | "pg/int8@1" | "pg/numeric@1" | "sql/int@1" | "pg/int@1" | "pg/int2@1";
|
|
255
255
|
};
|
|
256
256
|
readonly output: {
|
|
257
257
|
readonly kind: "codec";
|
|
@@ -262,7 +262,7 @@ declare const postgresAdapterContractContributions: {
|
|
|
262
262
|
readonly operation: "avg";
|
|
263
263
|
readonly input: {
|
|
264
264
|
readonly kind: "codec";
|
|
265
|
-
readonly codecId: "pg/float8@1" | "sql/float@1" | "pg/
|
|
265
|
+
readonly codecId: "pg/float8@1" | "sql/float@1" | "pg/float@1" | "pg/float4@1";
|
|
266
266
|
};
|
|
267
267
|
readonly output: {
|
|
268
268
|
readonly kind: "codec";
|
|
@@ -348,7 +348,7 @@ declare const postgresAdapterContractContributions: {
|
|
|
348
348
|
readonly operation: "min";
|
|
349
349
|
readonly input: {
|
|
350
350
|
readonly kind: "codec";
|
|
351
|
-
readonly codecId: "pg/enum@1" | "pg/timestamptz-temporal@1" | "pg/timestamptz-date@1" | "pg/timestamp-temporal@1" | "pg/timestamp-string@1" | "pg/timestamptz-string@1" | "pg/
|
|
351
|
+
readonly codecId: "pg/enum@1" | "pg/timestamptz-temporal@1" | "pg/timestamptz-date@1" | "pg/timestamp-temporal@1" | "pg/timestamp-string@1" | "pg/timestamptz-string@1" | "pg/text-array@1" | "pg/date-temporal@1" | "pg/time-temporal@1" | "pg/date-string@1" | "pg/time-string@1" | "pg/timetz@1" | "pg/interval@1" | "pg/inet@1";
|
|
352
352
|
};
|
|
353
353
|
readonly output: {
|
|
354
354
|
readonly kind: "self";
|
|
@@ -389,7 +389,7 @@ declare const postgresAdapterContractContributions: {
|
|
|
389
389
|
readonly operation: "max";
|
|
390
390
|
readonly input: {
|
|
391
391
|
readonly kind: "codec";
|
|
392
|
-
readonly codecId: "pg/enum@1" | "pg/timestamptz-temporal@1" | "pg/timestamptz-date@1" | "pg/timestamp-temporal@1" | "pg/timestamp-string@1" | "pg/timestamptz-string@1" | "pg/
|
|
392
|
+
readonly codecId: "pg/enum@1" | "pg/timestamptz-temporal@1" | "pg/timestamptz-date@1" | "pg/timestamp-temporal@1" | "pg/timestamp-string@1" | "pg/timestamptz-string@1" | "pg/text-array@1" | "pg/date-temporal@1" | "pg/time-temporal@1" | "pg/date-string@1" | "pg/time-string@1" | "pg/timetz@1" | "pg/interval@1" | "pg/inet@1";
|
|
393
393
|
};
|
|
394
394
|
readonly output: {
|
|
395
395
|
readonly kind: "self";
|
|
@@ -400,4 +400,4 @@ declare const postgresAdapterContractContributions: {
|
|
|
400
400
|
};
|
|
401
401
|
//#endregion
|
|
402
402
|
export { postgresRawCodecInferer as i, postgresAdapterCapabilities as n, postgresAdapterContractContributions as r, createPostgresAdapter as t };
|
|
403
|
-
//# sourceMappingURL=adapter-
|
|
403
|
+
//# sourceMappingURL=adapter-Bz0FvaNf.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-
|
|
1
|
+
{"version":3,"file":"adapter-Bz0FvaNf.d.mts","names":[],"sources":["../../../../3-targets/6-adapters/postgres/dist/adapter.d.mts"],"mappings":";;;;;;;;;;cAOc,+BAA+B,QAAQ,aAAa,kBAAkB;WACzE;WACA;WACA,SAAS;mBACD;mBACA;EACjB,YAAY,eAAe,uBAAuB,gBAAgB,gBAAgB;EAClF,MAAM,KAAK,cAAc,iBAAiB,SAAS,eAAe,oBAAoB;;;;;;;cAO1E,yBAAyB;iBACtB,sBAAsB,UAAU,yBAAyB,SAAS;;;cAGrE,6BAA6B;WAChC;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;WAEF;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;;;;;;;cAQC;WACH,cAAc;aACZ;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;aAEF;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;;WAGJ;aACE;eACE;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;;eAEA;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;eACA,6EAA6E;;eAE7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF"}
|
package/dist/adapter.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-Buv2X8ai.mjs";
|
|
2
2
|
import { a as OrderClause, c as PostgresLoweredStatement, d as StorageTable, i as Expr, l as SelectAst, n as ColumnRef, o as ParamRef, r as Direction, s as PostgresAdapterOptions, t as BinaryExpr, u as StorageColumn } from "./types-D6lgKhE5-DYkeCAjr.mjs";
|
|
3
3
|
import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, t as PostgresCodecRegistry } from "./codecs-BChKdFcD.mjs";
|
|
4
|
-
import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-
|
|
4
|
+
import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-Bz0FvaNf.mjs";
|
|
5
5
|
import { C as timestamptzTemporalColumn, E as varcharColumn, S as timestamptzStringColumn, T as varbitColumn, _ as timeStringColumn, a as dateStringColumn, b as timestampTemporalColumn, c as float8Column, d as int8Column, f as intervalColumn, g as textColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeTemporalColumn, w as timetzColumn, x as timestamptzJsDateColumn, y as timestampStringColumn } from "./column-types-COdejX_b.mjs";
|
|
6
6
|
import { t as parsePostgresDefault } from "./default-normalizer-ZZ7Y5boE.mjs";
|
|
7
7
|
import { i as normalizeSchemaNativeType } from "./native-type-normalizer-BFo5tSyh.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-
|
|
1
|
+
import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-Bz0FvaNf.mjs";
|
|
2
2
|
export { createPostgresAdapter, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer };
|
|
@@ -2,7 +2,7 @@ import { i as quoteIdentifier, n as escapeLiteral, r as qualifyName } from "./sq
|
|
|
2
2
|
import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-DSRFjaLX-Dwg0yBK7.mjs";
|
|
3
3
|
import { a as instantNowControlDescriptor, s as plainDateTimeNowControlDescriptor } from "./authoring-DOWd8Fpc-BE703X_J.mjs";
|
|
4
4
|
import { t as parsePostgresDefault } from "./default-normalizer-BnxtqsRm-CDjZe4vK.mjs";
|
|
5
|
-
import { n as postgresPslTypeConstructors } from "./control-
|
|
5
|
+
import { n as postgresPslTypeConstructors } from "./control-Ctj_SMkH.mjs";
|
|
6
6
|
import { n as normalizeSchemaNativeType } from "./native-type-normalizer-CwyVR7xB.mjs";
|
|
7
7
|
import { t as PostgresControlAdapter } from "./contract-contributions-RR2DymD_-B0xeL8RT.mjs";
|
|
8
8
|
import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-uNeqfA6R-Rrzkj6Ci.mjs";
|
|
@@ -31,7 +31,7 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
31
31
|
readonly operation: "sum";
|
|
32
32
|
readonly input: {
|
|
33
33
|
readonly kind: "codec";
|
|
34
|
-
readonly codecId: "pg/int8number@1" | "pg/int4@1" | "pg/int8@1" | "sql/int@1" | "pg/
|
|
34
|
+
readonly codecId: "pg/int8number@1" | "pg/int4@1" | "pg/int8@1" | "sql/int@1" | "pg/int@1" | "pg/int2@1";
|
|
35
35
|
};
|
|
36
36
|
readonly output: {
|
|
37
37
|
readonly kind: "codec";
|
|
@@ -43,7 +43,7 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
43
43
|
readonly operation: "sumBigInt";
|
|
44
44
|
readonly input: {
|
|
45
45
|
readonly kind: "codec";
|
|
46
|
-
readonly codecId: "pg/int4@1" | "sql/int@1" | "pg/
|
|
46
|
+
readonly codecId: "pg/int4@1" | "sql/int@1" | "pg/int@1" | "pg/int2@1";
|
|
47
47
|
};
|
|
48
48
|
readonly output: {
|
|
49
49
|
readonly kind: "codec";
|
|
@@ -156,7 +156,7 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
156
156
|
readonly operation: "avg";
|
|
157
157
|
readonly input: {
|
|
158
158
|
readonly kind: "codec";
|
|
159
|
-
readonly codecId: "pg/int8number@1" | "pg/unboundedint@1" | "pg/int4@1" | "pg/int8@1" | "sql/int@1" | "pg/
|
|
159
|
+
readonly codecId: "pg/int8number@1" | "pg/unboundedint@1" | "pg/int4@1" | "pg/int8@1" | "sql/int@1" | "pg/int@1" | "pg/int2@1";
|
|
160
160
|
};
|
|
161
161
|
readonly output: {
|
|
162
162
|
readonly kind: "codec";
|
|
@@ -168,7 +168,7 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
168
168
|
readonly operation: "avgDecimal";
|
|
169
169
|
readonly input: {
|
|
170
170
|
readonly kind: "codec";
|
|
171
|
-
readonly codecId: "pg/int8number@1" | "pg/unboundedint@1" | "pg/int4@1" | "pg/int8@1" | "pg/numeric@1" | "sql/int@1" | "pg/
|
|
171
|
+
readonly codecId: "pg/int8number@1" | "pg/unboundedint@1" | "pg/int4@1" | "pg/int8@1" | "pg/numeric@1" | "sql/int@1" | "pg/int@1" | "pg/int2@1";
|
|
172
172
|
};
|
|
173
173
|
readonly output: {
|
|
174
174
|
readonly kind: "codec";
|
|
@@ -179,7 +179,7 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
179
179
|
readonly operation: "avg";
|
|
180
180
|
readonly input: {
|
|
181
181
|
readonly kind: "codec";
|
|
182
|
-
readonly codecId: "pg/float8@1" | "sql/float@1" | "pg/
|
|
182
|
+
readonly codecId: "pg/float8@1" | "sql/float@1" | "pg/float@1" | "pg/float4@1";
|
|
183
183
|
};
|
|
184
184
|
readonly output: {
|
|
185
185
|
readonly kind: "codec";
|
|
@@ -265,7 +265,7 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
265
265
|
readonly operation: "min";
|
|
266
266
|
readonly input: {
|
|
267
267
|
readonly kind: "codec";
|
|
268
|
-
readonly codecId: "pg/enum@1" | "pg/timestamptz-temporal@1" | "pg/timestamptz-date@1" | "pg/timestamp-temporal@1" | "pg/timestamp-string@1" | "pg/timestamptz-string@1" | "pg/
|
|
268
|
+
readonly codecId: "pg/enum@1" | "pg/timestamptz-temporal@1" | "pg/timestamptz-date@1" | "pg/timestamp-temporal@1" | "pg/timestamp-string@1" | "pg/timestamptz-string@1" | "pg/text-array@1" | "pg/date-temporal@1" | "pg/time-temporal@1" | "pg/date-string@1" | "pg/time-string@1" | "pg/timetz@1" | "pg/interval@1" | "pg/inet@1";
|
|
269
269
|
};
|
|
270
270
|
readonly output: {
|
|
271
271
|
readonly kind: "self";
|
|
@@ -306,7 +306,7 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
306
306
|
readonly operation: "max";
|
|
307
307
|
readonly input: {
|
|
308
308
|
readonly kind: "codec";
|
|
309
|
-
readonly codecId: "pg/enum@1" | "pg/timestamptz-temporal@1" | "pg/timestamptz-date@1" | "pg/timestamp-temporal@1" | "pg/timestamp-string@1" | "pg/timestamptz-string@1" | "pg/
|
|
309
|
+
readonly codecId: "pg/enum@1" | "pg/timestamptz-temporal@1" | "pg/timestamptz-date@1" | "pg/timestamp-temporal@1" | "pg/timestamp-string@1" | "pg/timestamptz-string@1" | "pg/text-array@1" | "pg/date-temporal@1" | "pg/time-temporal@1" | "pg/date-string@1" | "pg/time-string@1" | "pg/timetz@1" | "pg/interval@1" | "pg/inet@1";
|
|
310
310
|
};
|
|
311
311
|
readonly output: {
|
|
312
312
|
readonly kind: "self";
|
|
@@ -315,4 +315,4 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
315
315
|
})[]];
|
|
316
316
|
//#endregion
|
|
317
317
|
export { postgresAggregateDescriptors as t };
|
|
318
|
-
//# sourceMappingURL=aggregates-
|
|
318
|
+
//# sourceMappingURL=aggregates-BNxcV7HS.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregates-
|
|
1
|
+
{"version":3,"file":"aggregates-BNxcV7HS.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/aggregates.d.mts"],"mappings":";;;;;;cAKc;WACH;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;;WAEA;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;WACA,OAAO;;WAEP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF"}
|
|
@@ -18,7 +18,7 @@ import { t as PostgresContractSerializer } from "./postgres-contract-view-D_z_HJ
|
|
|
18
18
|
import { o as postgresContractToSchema } from "./postgres-migration-DplG05vQ-Cyy1zJjv.mjs";
|
|
19
19
|
import { t as createPostgresMigrationPlanner } from "./planner-q9c5nQlC-BvjDJEmC.mjs";
|
|
20
20
|
import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-DFc1Tfv5-QMJSzMIa.mjs";
|
|
21
|
-
import { a as buildIndexAttribute, c as buildNativeEnumBlock, d as inferPostgresPslContract, f as namedArg, h as positionalArg, i as buildFullTextIndexAttribute, m as parseDefaultAttributeString, n as buildAttribute, o as buildMapAttribute, r as buildCheckAttribute, s as buildModelConstraintAttribute, t as SYNTHETIC_SPAN } from "./infer-psl-contract-
|
|
21
|
+
import { a as buildIndexAttribute, c as buildNativeEnumBlock, d as inferPostgresPslContract, f as namedArg, h as positionalArg, i as buildFullTextIndexAttribute, m as parseDefaultAttributeString, n as buildAttribute, o as buildMapAttribute, r as buildCheckAttribute, s as buildModelConstraintAttribute, t as SYNTHETIC_SPAN } from "./infer-psl-contract-NE6ky6fm-RK7NjZQu.mjs";
|
|
22
22
|
import { requiredParamKeys, validateCodecTypeParams } from "@prisma/orm-framework/components/codec";
|
|
23
23
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
24
24
|
import { dataTypeParams, isSqlDataType, unquotedSqlBaseName } from "@prisma/orm-family-sql/contract/data-type";
|
|
@@ -895,7 +895,7 @@ function refuseUnderivedChecks(entry, derived) {
|
|
|
895
895
|
for (const [name, expected] of derived) {
|
|
896
896
|
const check = checks.get(name);
|
|
897
897
|
if (check?.prefix === expected.prefix && check.expression === expected.expression) continue;
|
|
898
|
-
throw unsupported(`table "${entry.namespaceId}"."${entry.tableName}" ${check === void 0 ? "lacks" : "changes"} the check "${name}" the PSL source derives, so it cannot be written in Prisma 8 PSL.`, "The PSL source derives a membership check for each column of a managed table typed by an enum, and an element-not-null check for each list column
|
|
898
|
+
throw unsupported(`table "${entry.namespaceId}"."${entry.tableName}" ${check === void 0 ? "lacks" : "changes"} the check "${name}" the PSL source derives, so it cannot be written in Prisma 8 PSL.`, "The PSL source derives a membership check for each column of a managed table typed by an enum, and an element-not-null check for each list column whose elements are not nullable.", KEEP_SOURCE, {
|
|
899
899
|
namespaceId: entry.namespaceId,
|
|
900
900
|
table: entry.tableName,
|
|
901
901
|
name
|
|
@@ -1499,8 +1499,8 @@ function buildNativeEnumBlocksForNamespace(input) {
|
|
|
1499
1499
|
* The checks the PSL source derives itself for a table, keyed by name, so
|
|
1500
1500
|
* they are not also written as `@@check`. A table that is not managed derives
|
|
1501
1501
|
* none. A managed one derives a membership check for each column typed by a
|
|
1502
|
-
* domain enum and an element-not-null check for each list column
|
|
1503
|
-
*
|
|
1502
|
+
* domain enum and an element-not-null check for each list column whose
|
|
1503
|
+
* elements are not nullable.
|
|
1504
1504
|
*/
|
|
1505
1505
|
function derivedChecks(input) {
|
|
1506
1506
|
const checks = /* @__PURE__ */ new Map();
|
|
@@ -1508,14 +1508,12 @@ function derivedChecks(input) {
|
|
|
1508
1508
|
for (const [columnName, column] of Object.entries(input.table.columns)) {
|
|
1509
1509
|
const enumValues = column.codecId === "pg/enum@1" || column.valueSet === void 0 ? void 0 : input.domainEnumValues.get(column.valueSet.entityName);
|
|
1510
1510
|
const memberValues = enumValues?.filter((value) => typeof value === "string" || typeof value === "number");
|
|
1511
|
-
const waived = new Set(column.noCheck ?? []);
|
|
1512
1511
|
for (const candidate of postgresRenderCheckExpressions({
|
|
1513
1512
|
tableName: input.tableName,
|
|
1514
1513
|
columnName,
|
|
1515
1514
|
many: column.many,
|
|
1516
1515
|
memberValues: memberValues?.length === enumValues?.length ? memberValues : void 0
|
|
1517
1516
|
})) {
|
|
1518
|
-
if (waived.has(candidate.kind)) continue;
|
|
1519
1517
|
const prefix = composeCheckWirePrefix(input.tableName, columnName, candidate.kind);
|
|
1520
1518
|
checks.set(formatWireName(prefix, computeCheckContentHash(candidate.expression)), {
|
|
1521
1519
|
prefix,
|
|
@@ -2151,7 +2149,6 @@ function scalarFieldAttributes(input) {
|
|
|
2151
2149
|
context: input.context
|
|
2152
2150
|
});
|
|
2153
2151
|
if (columnDefault !== void 0) attributes.push(columnDefault);
|
|
2154
|
-
for (const kind of input.column.noCheck ?? []) attributes.push(buildAttribute("field", "noCheck", [positionalArg(kind)]));
|
|
2155
2152
|
const mapName = pslFieldMapName(input.fieldName, input.columnName);
|
|
2156
2153
|
if (mapName !== void 0) attributes.push(buildMapAttribute("field", mapName));
|
|
2157
2154
|
return attributes;
|
|
@@ -2879,4 +2876,4 @@ const postgresTargetDescriptor = createPostgresTargetDescriptor();
|
|
|
2879
2876
|
//#endregion
|
|
2880
2877
|
export { postgresTargetDescriptor as i, postgresPslTypeConstructors as n, postgresScalarAuthoringTypes as r, postgresNativeAuthoringTypes as t };
|
|
2881
2878
|
|
|
2882
|
-
//# sourceMappingURL=control-
|
|
2879
|
+
//# sourceMappingURL=control-Ctj_SMkH.mjs.map
|