@prisma/orm-target-postgres 8.0.0-rc.11-dev.16 → 8.0.0-rc.11-dev.17

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 (90) hide show
  1. package/dist/{adapter-DDfZMW0M-Cqq4b6_G.mjs → adapter-bTD1EPrl-DQ66tQwz.mjs} +3 -3
  2. package/dist/{adapter-DDfZMW0M-Cqq4b6_G.mjs.map → adapter-bTD1EPrl-DQ66tQwz.mjs.map} +1 -1
  3. package/dist/adapter.d.mts +2 -2
  4. package/dist/adapter.mjs +3 -3
  5. package/dist/adapter__adapter.mjs +1 -1
  6. package/dist/adapter__control.d.mts +2 -2
  7. package/dist/adapter__control.mjs +5 -4
  8. package/dist/adapter__control.mjs.map +1 -1
  9. package/dist/adapter__runtime.mjs +8 -3
  10. package/dist/adapter__runtime.mjs.map +1 -1
  11. package/dist/{authoring-DgeWf8RC-C-jQzf_w.mjs → authoring-Beq66XGy-D-GgvlBG.mjs} +63 -20
  12. package/dist/authoring-Beq66XGy-D-GgvlBG.mjs.map +1 -0
  13. package/dist/authoring-xyQRYoem-DWCGb5Py.d.mts +36 -0
  14. package/dist/authoring-xyQRYoem-DWCGb5Py.d.mts.map +1 -0
  15. package/dist/control-206OMpyA.mjs +470 -0
  16. package/dist/control-206OMpyA.mjs.map +1 -0
  17. package/dist/{control--T7XaMS8.d.mts → control-BvK2pHHh.d.mts} +2 -2
  18. package/dist/{control--T7XaMS8.d.mts.map → control-BvK2pHHh.d.mts.map} +1 -1
  19. package/dist/{control-xdW1bgaP.d.mts → control-DmVutloY.d.mts} +2 -2
  20. package/dist/{control-xdW1bgaP.d.mts.map → control-DmVutloY.d.mts.map} +1 -1
  21. package/dist/{control-adapter-5et6pVM9-B5CKg-5B.mjs → control-adapter-Bdz-Xa1p-rKiOVhsh.mjs} +96 -28
  22. package/dist/control-adapter-Bdz-Xa1p-rKiOVhsh.mjs.map +1 -0
  23. package/dist/{control-policy-BKgU_M65-BWedWA-f.mjs → control-policy-B8x7UxGf-BjTez7am.mjs} +24 -17
  24. package/dist/control-policy-B8x7UxGf-BjTez7am.mjs.map +1 -0
  25. package/dist/{default-normalizer-Ba5ZebHM-isV86rjy.mjs → default-normalizer-Bjtm2F4f-uV5vvkVt.mjs} +160 -33
  26. package/dist/default-normalizer-Bjtm2F4f-uV5vvkVt.mjs.map +1 -0
  27. package/dist/{default-normalizer-B36TOul4.d.mts → default-normalizer-D9WbKo20.d.mts} +2 -2
  28. package/dist/{default-normalizer-B36TOul4.d.mts.map → default-normalizer-D9WbKo20.d.mts.map} +1 -1
  29. package/dist/{descriptor-meta-C4i4pLQn-CmdN74uG.mjs → descriptor-meta-BhJOswpM-CqvnQMC0.mjs} +3 -3
  30. package/dist/{descriptor-meta-C4i4pLQn-CmdN74uG.mjs.map → descriptor-meta-BhJOswpM-CqvnQMC0.mjs.map} +1 -1
  31. package/dist/{diff-database-schema-BaSP2z4y-Ch42uw-j.mjs → diff-database-schema-BFX0ZWWK-KVfAPOLF.mjs} +4 -4
  32. package/dist/{diff-database-schema-BaSP2z4y-Ch42uw-j.mjs.map → diff-database-schema-BFX0ZWWK-KVfAPOLF.mjs.map} +1 -1
  33. package/dist/{control-BC3oXXIK.mjs → infer-psl-contract-BaZaJAD9-DTVu5Zab.mjs} +110 -488
  34. package/dist/infer-psl-contract-BaZaJAD9-DTVu5Zab.mjs.map +1 -0
  35. package/dist/migration-PTHAY9Cv.mjs.map +1 -1
  36. package/dist/{op-factory-call-6Jg-ycA--4AC_11Od.mjs → op-factory-call-B3-CevCo-CSV5SL9W.mjs} +3 -3
  37. package/dist/{op-factory-call-6Jg-ycA--4AC_11Od.mjs.map → op-factory-call-B3-CevCo-CSV5SL9W.mjs.map} +1 -1
  38. package/dist/{pack-D8V-43m8.d.mts → pack-CRA_2QjF.d.mts} +8 -38
  39. package/dist/pack-CRA_2QjF.d.mts.map +1 -0
  40. package/dist/plain-date-time-now-generator-DJ3icyVr-B-rdIVd3.d.mts +23 -0
  41. package/dist/plain-date-time-now-generator-DJ3icyVr-B-rdIVd3.d.mts.map +1 -0
  42. package/dist/{planner-C70Loeo_-qHTNBO3Q.mjs → planner-D_VBDqX0-C2jCXuIt.mjs} +6 -6
  43. package/dist/{planner-C70Loeo_-qHTNBO3Q.mjs.map → planner-D_VBDqX0-C2jCXuIt.mjs.map} +1 -1
  44. package/dist/{planner-ddl-builders-Cf6-fTvi-CKp-yZkB.mjs → planner-ddl-builders-CpXQ-J0X-CL5gNUSG.mjs} +14 -5
  45. package/dist/{planner-ddl-builders-Cf6-fTvi-CKp-yZkB.mjs.map → planner-ddl-builders-CpXQ-J0X-CL5gNUSG.mjs.map} +1 -1
  46. package/dist/{planner-ddl-builders-ijp60-JO.d.mts → planner-ddl-builders-bBCUsq_0.d.mts} +2 -2
  47. package/dist/planner-ddl-builders-bBCUsq_0.d.mts.map +1 -0
  48. package/dist/{planner-produced-postgres-migration-ButAgK7L-CZXweEva.mjs → planner-produced-postgres-migration-DwcW5RrQ-D0DPBmoS.mjs} +3 -3
  49. package/dist/{planner-produced-postgres-migration-ButAgK7L-CZXweEva.mjs.map → planner-produced-postgres-migration-DwcW5RrQ-D0DPBmoS.mjs.map} +1 -1
  50. package/dist/{postgres-contract-view-C22aDeL9-BWJIOpCz.mjs → postgres-contract-view-D7tYWHwD-DJNOh9Qo.mjs} +3 -3
  51. package/dist/{postgres-contract-view-C22aDeL9-BWJIOpCz.mjs.map → postgres-contract-view-D7tYWHwD-DJNOh9Qo.mjs.map} +1 -1
  52. package/dist/{postgres-migration-Cj-DvDY8-CIrWHp9I.mjs → postgres-migration-DXHNRgZA-HzAql-Bj.mjs} +4 -4
  53. package/dist/{postgres-migration-Cj-DvDY8-CIrWHp9I.mjs.map → postgres-migration-DXHNRgZA-HzAql-Bj.mjs.map} +1 -1
  54. package/dist/prisma7-binding-C38o_ABR.d.mts +1012 -0
  55. package/dist/prisma7-binding-C38o_ABR.d.mts.map +1 -0
  56. package/dist/prisma7-binding-DjpSw5G6.mjs +331 -0
  57. package/dist/prisma7-binding-DjpSw5G6.mjs.map +1 -0
  58. package/dist/{runtime-CpeP58Y6.d.mts → runtime-BRbiY5Vj.d.mts} +2 -2
  59. package/dist/{runtime-CpeP58Y6.d.mts.map → runtime-BRbiY5Vj.d.mts.map} +1 -1
  60. package/dist/target.d.mts +8 -7
  61. package/dist/target.mjs +13 -12
  62. package/dist/target__control.d.mts +3 -3
  63. package/dist/target__control.mjs +3 -3
  64. package/dist/target__default-normalizer.d.mts +1 -1
  65. package/dist/target__default-normalizer.mjs +1 -1
  66. package/dist/target__diff-database-schema.mjs +1 -1
  67. package/dist/target__issue-planner.mjs +1 -1
  68. package/dist/target__migration.mjs +2 -2
  69. package/dist/target__op-factory-call.mjs +1 -1
  70. package/dist/target__pack.d.mts +1 -1
  71. package/dist/target__pack.mjs +1 -1
  72. package/dist/target__planner-ddl-builders.d.mts +1 -1
  73. package/dist/target__planner-ddl-builders.mjs +1 -1
  74. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  75. package/dist/target__planner.mjs +2 -2
  76. package/dist/target__prisma7-binding.d.mts +2 -0
  77. package/dist/target__prisma7-binding.mjs +2 -0
  78. package/dist/target__runtime.d.mts +3 -3
  79. package/dist/target__runtime.mjs +3 -3
  80. package/dist/target__runtime.mjs.map +1 -1
  81. package/package.json +10 -9
  82. package/dist/authoring-DgeWf8RC-C-jQzf_w.mjs.map +0 -1
  83. package/dist/control-BC3oXXIK.mjs.map +0 -1
  84. package/dist/control-adapter-5et6pVM9-B5CKg-5B.mjs.map +0 -1
  85. package/dist/control-policy-BKgU_M65-BWedWA-f.mjs.map +0 -1
  86. package/dist/default-normalizer-Ba5ZebHM-isV86rjy.mjs.map +0 -1
  87. package/dist/list-decoder-8mZBUNe0-C9dPXUP0.d.mts +0 -13
  88. package/dist/list-decoder-8mZBUNe0-C9dPXUP0.d.mts.map +0 -1
  89. package/dist/pack-D8V-43m8.d.mts.map +0 -1
  90. package/dist/planner-ddl-builders-ijp60-JO.d.mts.map +0 -1
@@ -0,0 +1,1012 @@
1
+ import { t as PostgresRlsPolicy } from "./postgres-rls-policy-CnDxf3z9-C3LIHAIG.mjs";
2
+ import { a as PostgresRlsEnablementInput, d as postgresCreateNamespace, i as PostgresRlsEnablement, n as PostgresNativeEnum, o as PostgresRole } from "./postgres-schema-Xsjt3RKO-Buv2X8ai.mjs";
3
+ import { i as postgresRenderCheckExpressions } from "./check-expressions-D4R7JhiZ-q-dFPGT2.mjs";
4
+ import { ut as postgresQualifyColumnType } from "./codecs-BDp1mDKT-eDXyAZV_.mjs";
5
+ import { r as CodecTypes } from "./codec-types-CuQJJtqu-CFc1zyPR.mjs";
6
+ import { n as RoleExtensionBlock, r as postgresLowerEntityHandles, t as RlsPolicyExtensionBlock } from "./authoring-xyQRYoem-DWCGb5Py.mjs";
7
+ //#region ../../../3-targets/3-targets/postgres/dist/prisma7-binding.d.mts
8
+ //#region src/core/now-generators.d.ts
9
+ declare function postgresNowGeneratorIdFor(codecId: string): string | undefined;
10
+ //#endregion
11
+ //#region src/core/psl-infer/junction-relation-field-names.d.ts
12
+ /**
13
+ * The relation field names `contract infer` prints for an implicit
14
+ * many-to-many junction table whose columns `A` and `B` reference `tableA`
15
+ * and `tableB`, found by running infer's PSL construction on that table.
16
+ */
17
+ declare function junctionRelationFieldNames(tableA: string, tableB: string): readonly [string, string];
18
+ //#endregion
19
+ //#region src/core/prisma7-binding.d.ts
20
+ /**
21
+ * What the Postgres target supplies to the Prisma 7 interpreter. A `Bytes` or
22
+ * `DateTime` default is carried as the SQL literal of the default Postgres
23
+ * stores (`'\x68656c6c6f'`, `'2024-01-02 03:04:05'`), and a list default as an
24
+ * `ARRAY[...]` of those literals cast to the column type, rather than through
25
+ * the column codec, whose JSON form (base64, a Temporal value) is not what
26
+ * introspection reads back; verify parses both sides with the same parser.
27
+ */
28
+ declare const prisma7PostgresBinding: {
29
+ readonly target: {
30
+ readonly defaultNamespaceId: "public";
31
+ readonly supportsNamespaces: true;
32
+ readonly indexTypes: import("@prisma/orm-family-sql/contract/index-types").IndexTypeBuilder<Record<never, never> & Record<"btree", {
33
+ readonly options: object;
34
+ }> & Record<"hash", {
35
+ readonly options: object;
36
+ }> & Record<"gin", {
37
+ readonly options: object;
38
+ }> & Record<"gist", {
39
+ readonly options: object;
40
+ }> & Record<"spgist", {
41
+ readonly options: object;
42
+ }> & Record<"brin", {
43
+ readonly options: object;
44
+ }>>;
45
+ readonly authoring: {
46
+ readonly type: {
47
+ readonly BigIntNumber: {
48
+ readonly kind: "typeConstructor";
49
+ readonly output: {
50
+ readonly codecId: "pg/int8number@1";
51
+ readonly nativeType: "int8";
52
+ };
53
+ };
54
+ readonly UnboundedInt: {
55
+ readonly kind: "typeConstructor";
56
+ readonly output: {
57
+ readonly codecId: "pg/unboundedint@1";
58
+ readonly nativeType: "numeric";
59
+ };
60
+ };
61
+ readonly pg: {
62
+ readonly enum: {
63
+ readonly kind: "typeConstructor";
64
+ readonly entityRefArg: {
65
+ readonly index: 0;
66
+ readonly entityKind: "native_enum";
67
+ };
68
+ readonly output: {
69
+ readonly codecId: "pg/enum@1";
70
+ };
71
+ };
72
+ };
73
+ };
74
+ readonly field: {
75
+ readonly text: {
76
+ readonly kind: "fieldPreset";
77
+ readonly output: {
78
+ readonly codecId: "pg/text@1";
79
+ readonly nativeType: "text";
80
+ };
81
+ };
82
+ readonly int: {
83
+ readonly kind: "fieldPreset";
84
+ readonly output: {
85
+ readonly codecId: "pg/int4@1";
86
+ readonly nativeType: "int4";
87
+ };
88
+ };
89
+ readonly bigint: {
90
+ readonly kind: "fieldPreset";
91
+ readonly output: {
92
+ readonly codecId: "pg/int8@1";
93
+ readonly nativeType: "int8";
94
+ };
95
+ };
96
+ readonly float: {
97
+ readonly kind: "fieldPreset";
98
+ readonly output: {
99
+ readonly codecId: "pg/float8@1";
100
+ readonly nativeType: "float8";
101
+ };
102
+ };
103
+ readonly decimal: {
104
+ readonly kind: "fieldPreset";
105
+ readonly output: {
106
+ readonly codecId: "pg/numeric@1";
107
+ readonly nativeType: "numeric";
108
+ };
109
+ };
110
+ readonly boolean: {
111
+ readonly kind: "fieldPreset";
112
+ readonly output: {
113
+ readonly codecId: "pg/bool@1";
114
+ readonly nativeType: "bool";
115
+ };
116
+ };
117
+ readonly json: {
118
+ readonly kind: "fieldPreset";
119
+ readonly output: {
120
+ readonly codecId: "pg/jsonb@1";
121
+ readonly nativeType: "jsonb";
122
+ };
123
+ };
124
+ readonly bytes: {
125
+ readonly kind: "fieldPreset";
126
+ readonly output: {
127
+ readonly codecId: "pg/bytea@1";
128
+ readonly nativeType: "bytea";
129
+ };
130
+ };
131
+ readonly dateTime: {
132
+ readonly kind: "fieldPreset";
133
+ readonly output: {
134
+ readonly codecId: "pg/timestamptz-temporal@1";
135
+ readonly nativeType: "timestamptz";
136
+ };
137
+ };
138
+ readonly temporal: {
139
+ readonly timestamp: {
140
+ readonly kind: "fieldPreset";
141
+ readonly args: readonly [{
142
+ readonly name: "precision";
143
+ readonly kind: "number";
144
+ readonly optional: true;
145
+ readonly integer: true;
146
+ readonly minimum: 0;
147
+ }, {
148
+ readonly name: "onCreate";
149
+ readonly kind: "option";
150
+ readonly values: readonly ["now"];
151
+ readonly optional: true;
152
+ }, {
153
+ readonly name: "onUpdate";
154
+ readonly kind: "option";
155
+ readonly values: readonly ["now"];
156
+ readonly optional: true;
157
+ }];
158
+ readonly output: {
159
+ readonly codecId: "pg/timestamp-temporal@1";
160
+ readonly nativeType: "timestamp";
161
+ readonly typeParams: {
162
+ readonly precision: {
163
+ readonly kind: "arg";
164
+ readonly index: 0;
165
+ };
166
+ };
167
+ readonly executionDefaults: {
168
+ readonly onCreate: {
169
+ readonly kind: "select";
170
+ readonly index: 1;
171
+ readonly cases: {
172
+ readonly now: {
173
+ readonly kind: "generator";
174
+ readonly id: "plainDateTimeNow" | "timestampNow";
175
+ };
176
+ };
177
+ };
178
+ readonly onUpdate: {
179
+ readonly kind: "select";
180
+ readonly index: 2;
181
+ readonly cases: {
182
+ readonly now: {
183
+ readonly kind: "generator";
184
+ readonly id: "plainDateTimeNow" | "timestampNow";
185
+ };
186
+ };
187
+ };
188
+ };
189
+ };
190
+ };
191
+ readonly timestamptz: {
192
+ readonly kind: "fieldPreset";
193
+ readonly args: readonly [{
194
+ readonly name: "precision";
195
+ readonly kind: "number";
196
+ readonly optional: true;
197
+ readonly integer: true;
198
+ readonly minimum: 0;
199
+ }, {
200
+ readonly name: "onCreate";
201
+ readonly kind: "option";
202
+ readonly values: readonly ["now"];
203
+ readonly optional: true;
204
+ }, {
205
+ readonly name: "onUpdate";
206
+ readonly kind: "option";
207
+ readonly values: readonly ["now"];
208
+ readonly optional: true;
209
+ }];
210
+ readonly output: {
211
+ readonly codecId: "pg/timestamptz-temporal@1";
212
+ readonly nativeType: "timestamptz";
213
+ readonly typeParams: {
214
+ readonly precision: {
215
+ readonly kind: "arg";
216
+ readonly index: 0;
217
+ };
218
+ };
219
+ readonly executionDefaults: {
220
+ readonly onCreate: {
221
+ readonly kind: "select";
222
+ readonly index: 1;
223
+ readonly cases: {
224
+ readonly now: {
225
+ readonly kind: "generator";
226
+ readonly id: "instantNow" | "timestampNow";
227
+ };
228
+ };
229
+ };
230
+ readonly onUpdate: {
231
+ readonly kind: "select";
232
+ readonly index: 2;
233
+ readonly cases: {
234
+ readonly now: {
235
+ readonly kind: "generator";
236
+ readonly id: "instantNow" | "timestampNow";
237
+ };
238
+ };
239
+ };
240
+ };
241
+ };
242
+ };
243
+ readonly timestampString: {
244
+ readonly kind: "fieldPreset";
245
+ readonly args: readonly [{
246
+ readonly name: "precision";
247
+ readonly kind: "number";
248
+ readonly optional: true;
249
+ readonly integer: true;
250
+ readonly minimum: 0;
251
+ }, {
252
+ readonly name: "onCreate";
253
+ readonly kind: "option";
254
+ readonly values: readonly ["now"];
255
+ readonly optional: true;
256
+ }, {
257
+ readonly name: "onUpdate";
258
+ readonly kind: "option";
259
+ readonly values: readonly ["now"];
260
+ readonly optional: true;
261
+ }];
262
+ readonly output: {
263
+ readonly codecId: "pg/timestamp-string@1";
264
+ readonly nativeType: "timestamp";
265
+ readonly typeParams: {
266
+ readonly precision: {
267
+ readonly kind: "arg";
268
+ readonly index: 0;
269
+ };
270
+ };
271
+ readonly executionDefaults: {
272
+ readonly onCreate: {
273
+ readonly kind: "select";
274
+ readonly index: 1;
275
+ readonly cases: {
276
+ readonly now: {
277
+ readonly kind: "generator";
278
+ readonly id: "timestampNow";
279
+ };
280
+ };
281
+ };
282
+ readonly onUpdate: {
283
+ readonly kind: "select";
284
+ readonly index: 2;
285
+ readonly cases: {
286
+ readonly now: {
287
+ readonly kind: "generator";
288
+ readonly id: "timestampNow";
289
+ };
290
+ };
291
+ };
292
+ };
293
+ };
294
+ };
295
+ readonly timestamptzString: {
296
+ readonly kind: "fieldPreset";
297
+ readonly args: readonly [{
298
+ readonly name: "precision";
299
+ readonly kind: "number";
300
+ readonly optional: true;
301
+ readonly integer: true;
302
+ readonly minimum: 0;
303
+ }, {
304
+ readonly name: "onCreate";
305
+ readonly kind: "option";
306
+ readonly values: readonly ["now"];
307
+ readonly optional: true;
308
+ }, {
309
+ readonly name: "onUpdate";
310
+ readonly kind: "option";
311
+ readonly values: readonly ["now"];
312
+ readonly optional: true;
313
+ }];
314
+ readonly output: {
315
+ readonly codecId: "pg/timestamptz-string@1";
316
+ readonly nativeType: "timestamptz";
317
+ readonly typeParams: {
318
+ readonly precision: {
319
+ readonly kind: "arg";
320
+ readonly index: 0;
321
+ };
322
+ };
323
+ readonly executionDefaults: {
324
+ readonly onCreate: {
325
+ readonly kind: "select";
326
+ readonly index: 1;
327
+ readonly cases: {
328
+ readonly now: {
329
+ readonly kind: "generator";
330
+ readonly id: "timestampNow";
331
+ };
332
+ };
333
+ };
334
+ readonly onUpdate: {
335
+ readonly kind: "select";
336
+ readonly index: 2;
337
+ readonly cases: {
338
+ readonly now: {
339
+ readonly kind: "generator";
340
+ readonly id: "timestampNow";
341
+ };
342
+ };
343
+ };
344
+ };
345
+ };
346
+ };
347
+ readonly createdAtString: {
348
+ readonly kind: "fieldPreset";
349
+ readonly output: {
350
+ readonly codecId: "pg/timestamptz-string@1";
351
+ readonly nativeType: "timestamptz";
352
+ readonly default: {
353
+ readonly kind: "function";
354
+ readonly expression: "now()";
355
+ };
356
+ };
357
+ };
358
+ readonly updatedAtString: {
359
+ readonly kind: "fieldPreset";
360
+ readonly output: {
361
+ readonly codecId: "pg/timestamptz-string@1";
362
+ readonly nativeType: "timestamptz";
363
+ readonly executionDefaults: {
364
+ readonly onCreate: {
365
+ readonly kind: "generator";
366
+ readonly id: "timestampNow";
367
+ };
368
+ readonly onUpdate: {
369
+ readonly kind: "generator";
370
+ readonly id: "timestampNow";
371
+ };
372
+ };
373
+ };
374
+ };
375
+ readonly createdAt: {
376
+ readonly kind: "fieldPreset";
377
+ readonly output: {
378
+ readonly codecId: "pg/timestamptz-temporal@1";
379
+ readonly nativeType: "timestamptz";
380
+ readonly default: {
381
+ readonly kind: "function";
382
+ readonly expression: "now()";
383
+ };
384
+ };
385
+ };
386
+ readonly updatedAt: {
387
+ readonly kind: "fieldPreset";
388
+ readonly output: {
389
+ readonly codecId: "pg/timestamptz-temporal@1";
390
+ readonly nativeType: "timestamptz";
391
+ readonly executionDefaults: {
392
+ readonly onCreate: {
393
+ readonly kind: "generator";
394
+ readonly id: "instantNow" | "timestampNow";
395
+ };
396
+ readonly onUpdate: {
397
+ readonly kind: "generator";
398
+ readonly id: "instantNow" | "timestampNow";
399
+ };
400
+ };
401
+ };
402
+ };
403
+ readonly createdAtJsDate: {
404
+ readonly kind: "fieldPreset";
405
+ readonly output: {
406
+ readonly codecId: "pg/timestamptz-date@1";
407
+ readonly nativeType: "timestamptz";
408
+ readonly default: {
409
+ readonly kind: "function";
410
+ readonly expression: "now()";
411
+ };
412
+ };
413
+ };
414
+ readonly updatedAtJsDate: {
415
+ readonly kind: "fieldPreset";
416
+ readonly output: {
417
+ readonly codecId: "pg/timestamptz-date@1";
418
+ readonly nativeType: "timestamptz";
419
+ readonly executionDefaults: {
420
+ readonly onCreate: {
421
+ readonly kind: "generator";
422
+ readonly id: "timestampNow";
423
+ };
424
+ readonly onUpdate: {
425
+ readonly kind: "generator";
426
+ readonly id: "timestampNow";
427
+ };
428
+ };
429
+ };
430
+ };
431
+ readonly timestamptzJsDate: {
432
+ readonly kind: "fieldPreset";
433
+ readonly args: readonly [{
434
+ readonly name: "precision";
435
+ readonly kind: "number";
436
+ readonly optional: true;
437
+ readonly integer: true;
438
+ readonly minimum: 0;
439
+ }, {
440
+ readonly name: "onCreate";
441
+ readonly kind: "option";
442
+ readonly values: readonly ["now"];
443
+ readonly optional: true;
444
+ }, {
445
+ readonly name: "onUpdate";
446
+ readonly kind: "option";
447
+ readonly values: readonly ["now"];
448
+ readonly optional: true;
449
+ }];
450
+ readonly output: {
451
+ readonly codecId: "pg/timestamptz-date@1";
452
+ readonly nativeType: "timestamptz";
453
+ readonly typeParams: {
454
+ readonly precision: {
455
+ readonly kind: "arg";
456
+ readonly index: 0;
457
+ };
458
+ };
459
+ readonly executionDefaults: {
460
+ readonly onCreate: {
461
+ readonly kind: "select";
462
+ readonly index: 1;
463
+ readonly cases: {
464
+ readonly now: {
465
+ readonly kind: "generator";
466
+ readonly id: "timestampNow";
467
+ };
468
+ };
469
+ };
470
+ readonly onUpdate: {
471
+ readonly kind: "select";
472
+ readonly index: 2;
473
+ readonly cases: {
474
+ readonly now: {
475
+ readonly kind: "generator";
476
+ readonly id: "timestampNow";
477
+ };
478
+ };
479
+ };
480
+ };
481
+ };
482
+ };
483
+ };
484
+ readonly uuidNative: {
485
+ readonly kind: "fieldPreset";
486
+ readonly output: {
487
+ readonly codecId: "pg/uuid@1";
488
+ readonly nativeType: "uuid";
489
+ };
490
+ };
491
+ readonly id: {
492
+ readonly uuidv4Native: {
493
+ readonly kind: "fieldPreset";
494
+ readonly output: {
495
+ readonly codecId: "pg/uuid@1";
496
+ readonly nativeType: "uuid";
497
+ readonly executionDefaults: {
498
+ readonly onCreate: {
499
+ readonly kind: "generator";
500
+ readonly id: "uuidv4";
501
+ };
502
+ };
503
+ readonly id: true;
504
+ };
505
+ };
506
+ readonly uuidv7Native: {
507
+ readonly kind: "fieldPreset";
508
+ readonly output: {
509
+ readonly codecId: "pg/uuid@1";
510
+ readonly nativeType: "uuid";
511
+ readonly executionDefaults: {
512
+ readonly onCreate: {
513
+ readonly kind: "generator";
514
+ readonly id: "uuidv7";
515
+ };
516
+ };
517
+ readonly id: true;
518
+ };
519
+ };
520
+ };
521
+ };
522
+ readonly entityTypes: {
523
+ readonly role: {
524
+ readonly kind: "entity";
525
+ readonly discriminator: "role";
526
+ readonly validatorSchema: import("arktype/internal/variants/object.ts").ObjectType<{
527
+ kind: "role";
528
+ name: string;
529
+ namespaceId: string;
530
+ control?: "external";
531
+ }, {}>;
532
+ readonly output: {
533
+ readonly factory: (block: RoleExtensionBlock, ctx: import("@prisma/orm-framework/components/authoring").AuthoringEntityContext) => PostgresRole | undefined;
534
+ };
535
+ };
536
+ readonly rls: {
537
+ readonly kind: "entity";
538
+ readonly discriminator: "rls";
539
+ readonly validatorSchema: import("arktype/internal/variants/object.ts").ObjectType<{
540
+ kind: "rls";
541
+ tableName: string;
542
+ namespaceId: string;
543
+ }, {}>;
544
+ readonly output: {
545
+ readonly factory: (input: PostgresRlsEnablementInput) => PostgresRlsEnablement;
546
+ };
547
+ };
548
+ readonly policy: {
549
+ readonly kind: "entity";
550
+ readonly discriminator: "policy";
551
+ readonly validatorSchema: import("arktype/internal/variants/object.ts").ObjectType<{
552
+ kind: "policy";
553
+ name: string;
554
+ tableName: string;
555
+ namespaceId: string;
556
+ operation: "select" | "delete" | "insert" | "update" | "all";
557
+ roles: readonly string[];
558
+ permissive: boolean;
559
+ prefix?: string;
560
+ using?: string;
561
+ withCheck?: string;
562
+ }, {}>;
563
+ readonly output: {
564
+ readonly factory: (block: RlsPolicyExtensionBlock, ctx: import("@prisma/orm-framework/components/authoring").AuthoringEntityContext) => PostgresRlsPolicy | undefined;
565
+ };
566
+ };
567
+ readonly native_enum: {
568
+ readonly kind: "entity";
569
+ readonly discriminator: "native_enum";
570
+ readonly validatorSchema: import("arktype/internal/variants/object.ts").ObjectType<{
571
+ kind: "postgres-enum";
572
+ typeName: string;
573
+ members: readonly string[];
574
+ control?: "external" | "managed" | "tolerated" | "observed";
575
+ }, {}>;
576
+ readonly output: {
577
+ factory: (block: import("@prisma/orm-framework/psl-parser").PslExtensionBlock, ctx: import("@prisma/orm-framework/components/authoring").AuthoringEntityContext) => PostgresNativeEnum | undefined;
578
+ deriveValueSet: (entity: PostgresNativeEnum) => {
579
+ kind: "valueSet";
580
+ values: string[];
581
+ };
582
+ };
583
+ };
584
+ };
585
+ readonly pslBlockDescriptors: {
586
+ readonly policy_select: {
587
+ readonly kind: "pslBlock";
588
+ readonly keyword: "policy_select";
589
+ readonly discriminator: "policy";
590
+ readonly name: {
591
+ readonly required: true;
592
+ };
593
+ readonly parameters: {
594
+ readonly target: {
595
+ readonly kind: "ref";
596
+ readonly refKind: "model";
597
+ readonly scope: "same-namespace";
598
+ readonly required: true;
599
+ };
600
+ readonly roles: {
601
+ readonly kind: "list";
602
+ readonly of: {
603
+ readonly kind: "ref";
604
+ readonly refKind: "role";
605
+ readonly scope: "cross-space";
606
+ };
607
+ };
608
+ readonly using: {
609
+ readonly kind: "value";
610
+ readonly codecId: "pg/text@1";
611
+ readonly required: true;
612
+ };
613
+ readonly permissive: {
614
+ readonly kind: "value";
615
+ readonly codecId: "pg/bool@1";
616
+ };
617
+ };
618
+ readonly requiresModelAttribute: {
619
+ readonly parameter: "target";
620
+ readonly attribute: "rls";
621
+ };
622
+ readonly attributes: {
623
+ map: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
624
+ name: string;
625
+ }, import("@prisma/orm-framework/psl-parser").AttributeCtx>;
626
+ };
627
+ };
628
+ readonly policy_delete: {
629
+ readonly kind: "pslBlock";
630
+ readonly keyword: "policy_delete";
631
+ readonly discriminator: "policy";
632
+ readonly name: {
633
+ readonly required: true;
634
+ };
635
+ readonly parameters: {
636
+ readonly target: {
637
+ readonly kind: "ref";
638
+ readonly refKind: "model";
639
+ readonly scope: "same-namespace";
640
+ readonly required: true;
641
+ };
642
+ readonly roles: {
643
+ readonly kind: "list";
644
+ readonly of: {
645
+ readonly kind: "ref";
646
+ readonly refKind: "role";
647
+ readonly scope: "cross-space";
648
+ };
649
+ };
650
+ readonly using: {
651
+ readonly kind: "value";
652
+ readonly codecId: "pg/text@1";
653
+ readonly required: true;
654
+ };
655
+ readonly permissive: {
656
+ readonly kind: "value";
657
+ readonly codecId: "pg/bool@1";
658
+ };
659
+ };
660
+ readonly requiresModelAttribute: {
661
+ readonly parameter: "target";
662
+ readonly attribute: "rls";
663
+ };
664
+ readonly attributes: {
665
+ map: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
666
+ name: string;
667
+ }, import("@prisma/orm-framework/psl-parser").AttributeCtx>;
668
+ };
669
+ };
670
+ readonly policy_insert: {
671
+ readonly kind: "pslBlock";
672
+ readonly keyword: "policy_insert";
673
+ readonly discriminator: "policy";
674
+ readonly name: {
675
+ readonly required: true;
676
+ };
677
+ readonly parameters: {
678
+ readonly target: {
679
+ readonly kind: "ref";
680
+ readonly refKind: "model";
681
+ readonly scope: "same-namespace";
682
+ readonly required: true;
683
+ };
684
+ readonly roles: {
685
+ readonly kind: "list";
686
+ readonly of: {
687
+ readonly kind: "ref";
688
+ readonly refKind: "role";
689
+ readonly scope: "cross-space";
690
+ };
691
+ };
692
+ readonly withCheck: {
693
+ readonly kind: "value";
694
+ readonly codecId: "pg/text@1";
695
+ readonly required: true;
696
+ };
697
+ readonly permissive: {
698
+ readonly kind: "value";
699
+ readonly codecId: "pg/bool@1";
700
+ };
701
+ };
702
+ readonly requiresModelAttribute: {
703
+ readonly parameter: "target";
704
+ readonly attribute: "rls";
705
+ };
706
+ readonly attributes: {
707
+ map: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
708
+ name: string;
709
+ }, import("@prisma/orm-framework/psl-parser").AttributeCtx>;
710
+ };
711
+ };
712
+ readonly policy_update: {
713
+ readonly kind: "pslBlock";
714
+ readonly keyword: "policy_update";
715
+ readonly discriminator: "policy";
716
+ readonly name: {
717
+ readonly required: true;
718
+ };
719
+ readonly parameters: {
720
+ readonly target: {
721
+ readonly kind: "ref";
722
+ readonly refKind: "model";
723
+ readonly scope: "same-namespace";
724
+ readonly required: true;
725
+ };
726
+ readonly roles: {
727
+ readonly kind: "list";
728
+ readonly of: {
729
+ readonly kind: "ref";
730
+ readonly refKind: "role";
731
+ readonly scope: "cross-space";
732
+ };
733
+ };
734
+ readonly using: {
735
+ readonly kind: "value";
736
+ readonly codecId: "pg/text@1";
737
+ readonly required: true;
738
+ };
739
+ readonly withCheck: {
740
+ readonly kind: "value";
741
+ readonly codecId: "pg/text@1";
742
+ readonly required: true;
743
+ };
744
+ readonly permissive: {
745
+ readonly kind: "value";
746
+ readonly codecId: "pg/bool@1";
747
+ };
748
+ };
749
+ readonly requiresModelAttribute: {
750
+ readonly parameter: "target";
751
+ readonly attribute: "rls";
752
+ };
753
+ readonly attributes: {
754
+ map: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
755
+ name: string;
756
+ }, import("@prisma/orm-framework/psl-parser").AttributeCtx>;
757
+ };
758
+ };
759
+ readonly policy_all: {
760
+ readonly kind: "pslBlock";
761
+ readonly keyword: "policy_all";
762
+ readonly discriminator: "policy";
763
+ readonly name: {
764
+ readonly required: true;
765
+ };
766
+ readonly parameters: {
767
+ readonly target: {
768
+ readonly kind: "ref";
769
+ readonly refKind: "model";
770
+ readonly scope: "same-namespace";
771
+ readonly required: true;
772
+ };
773
+ readonly roles: {
774
+ readonly kind: "list";
775
+ readonly of: {
776
+ readonly kind: "ref";
777
+ readonly refKind: "role";
778
+ readonly scope: "cross-space";
779
+ };
780
+ };
781
+ readonly using: {
782
+ readonly kind: "value";
783
+ readonly codecId: "pg/text@1";
784
+ readonly required: true;
785
+ };
786
+ readonly withCheck: {
787
+ readonly kind: "value";
788
+ readonly codecId: "pg/text@1";
789
+ readonly required: true;
790
+ };
791
+ readonly permissive: {
792
+ readonly kind: "value";
793
+ readonly codecId: "pg/bool@1";
794
+ };
795
+ };
796
+ readonly requiresModelAttribute: {
797
+ readonly parameter: "target";
798
+ readonly attribute: "rls";
799
+ };
800
+ readonly attributes: {
801
+ map: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
802
+ name: string;
803
+ }, import("@prisma/orm-framework/psl-parser").AttributeCtx>;
804
+ };
805
+ };
806
+ readonly native_enum: {
807
+ readonly kind: "pslBlock";
808
+ readonly keyword: "native_enum";
809
+ readonly discriminator: "native_enum";
810
+ readonly name: {
811
+ readonly required: true;
812
+ };
813
+ readonly parameters: {};
814
+ readonly variadicParameters: true;
815
+ readonly attributes: {
816
+ readonly map: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
817
+ name: string;
818
+ }, import("@prisma/orm-framework/psl-parser").AttributeCtx>;
819
+ };
820
+ };
821
+ readonly role: {
822
+ readonly kind: "pslBlock";
823
+ readonly keyword: "role";
824
+ readonly discriminator: "role";
825
+ readonly name: {
826
+ readonly required: true;
827
+ };
828
+ readonly parameters: {};
829
+ };
830
+ };
831
+ readonly modelAttributes: {
832
+ readonly rls: {
833
+ readonly kind: "modelAttribute";
834
+ readonly attribute: "rls";
835
+ readonly spec: import("@prisma/orm-framework/psl-parser").ModelAttributeSpecFactory;
836
+ readonly lower: (_parsed: Record<never, never>, ctx: import("@prisma/orm-framework/components/authoring").AuthoringModelAttributeContext) => {
837
+ key: string;
838
+ entity: PostgresRlsEnablement;
839
+ };
840
+ };
841
+ };
842
+ readonly createNamespace: typeof postgresCreateNamespace;
843
+ readonly qualifyColumnType: typeof postgresQualifyColumnType;
844
+ readonly renderCheckExpressions: typeof postgresRenderCheckExpressions;
845
+ readonly lowerEntityHandles: typeof postgresLowerEntityHandles;
846
+ };
847
+ readonly kind: "target";
848
+ readonly familyId: "sql";
849
+ readonly targetId: "postgres";
850
+ readonly id: "postgres";
851
+ readonly version: "0.0.1";
852
+ readonly capabilities: {};
853
+ readonly __codecTypes?: CodecTypes;
854
+ } & {
855
+ readonly __codecTypes?: CodecTypes;
856
+ };
857
+ readonly createNamespace: typeof postgresCreateNamespace;
858
+ readonly providers: readonly ["postgresql", "postgres"];
859
+ readonly typeMap: {
860
+ readonly scalars: {
861
+ readonly String: {
862
+ readonly constructorName: "String";
863
+ readonly args: readonly [];
864
+ };
865
+ readonly Boolean: {
866
+ readonly constructorName: "Boolean";
867
+ readonly args: readonly [];
868
+ };
869
+ readonly Int: {
870
+ readonly constructorName: "Int";
871
+ readonly args: readonly [];
872
+ };
873
+ readonly BigInt: {
874
+ readonly constructorName: "BigInt";
875
+ readonly args: readonly [];
876
+ };
877
+ readonly Float: {
878
+ readonly constructorName: "Float";
879
+ readonly args: readonly [];
880
+ };
881
+ readonly Decimal: {
882
+ readonly constructorName: "Numeric";
883
+ readonly args: readonly ["65", "30"];
884
+ };
885
+ readonly DateTime: {
886
+ readonly constructorName: "Timestamp";
887
+ readonly args: readonly ["3"];
888
+ };
889
+ readonly Json: {
890
+ readonly constructorName: "Jsonb";
891
+ readonly args: readonly [];
892
+ };
893
+ readonly Bytes: {
894
+ readonly constructorName: "Bytes";
895
+ readonly args: readonly [];
896
+ };
897
+ };
898
+ readonly nativeTypes: {
899
+ readonly Text: {
900
+ readonly constructorName: "String";
901
+ readonly args: readonly [];
902
+ };
903
+ readonly VarChar: {
904
+ readonly constructorName: "VarChar";
905
+ readonly args: readonly [];
906
+ };
907
+ readonly Char: {
908
+ readonly constructorName: "Char";
909
+ readonly args: readonly ["1"];
910
+ };
911
+ readonly Uuid: {
912
+ readonly constructorName: "Uuid";
913
+ readonly args: readonly [];
914
+ };
915
+ readonly Inet: {
916
+ readonly constructorName: "Inet";
917
+ readonly args: readonly [];
918
+ };
919
+ readonly Boolean: {
920
+ readonly constructorName: "Boolean";
921
+ readonly args: readonly [];
922
+ };
923
+ readonly Integer: {
924
+ readonly constructorName: "Int";
925
+ readonly args: readonly [];
926
+ };
927
+ readonly SmallInt: {
928
+ readonly constructorName: "SmallInt";
929
+ readonly args: readonly [];
930
+ };
931
+ readonly BigInt: {
932
+ readonly constructorName: "BigInt";
933
+ readonly args: readonly [];
934
+ };
935
+ readonly Real: {
936
+ readonly constructorName: "Real";
937
+ readonly args: readonly [];
938
+ };
939
+ readonly DoublePrecision: {
940
+ readonly constructorName: "Float";
941
+ readonly args: readonly [];
942
+ };
943
+ readonly Decimal: {
944
+ readonly constructorName: "Numeric";
945
+ readonly args: readonly [];
946
+ };
947
+ readonly Timestamp: {
948
+ readonly constructorName: "Timestamp";
949
+ readonly args: readonly [];
950
+ };
951
+ readonly Timestamptz: {
952
+ readonly constructorName: "Timestamptz";
953
+ readonly args: readonly [];
954
+ };
955
+ readonly Date: {
956
+ readonly constructorName: "Date";
957
+ readonly args: readonly [];
958
+ };
959
+ readonly Time: {
960
+ readonly constructorName: "Time";
961
+ readonly args: readonly [];
962
+ };
963
+ readonly Timetz: {
964
+ readonly constructorName: "Timetz";
965
+ readonly args: readonly [];
966
+ };
967
+ readonly Json: {
968
+ readonly constructorName: "Json";
969
+ readonly args: readonly [];
970
+ };
971
+ readonly JsonB: {
972
+ readonly constructorName: "Jsonb";
973
+ readonly args: readonly [];
974
+ };
975
+ readonly ByteA: {
976
+ readonly constructorName: "Bytes";
977
+ readonly args: readonly [];
978
+ };
979
+ };
980
+ };
981
+ readonly nativeEnum: {
982
+ readonly entityKind: "native_enum";
983
+ readonly typeConstructor: readonly ["pg", "enum"];
984
+ };
985
+ readonly indexTypes: {
986
+ readonly BTree: "btree";
987
+ readonly Hash: "hash";
988
+ readonly Gin: "gin";
989
+ readonly Gist: "gist";
990
+ readonly SpGist: "spgist";
991
+ readonly Brin: "brin";
992
+ };
993
+ /** `NAMEDATALEN - 1`. */
994
+ readonly identifierMaxBytes: 63;
995
+ readonly junctionRelationFieldNames: typeof junctionRelationFieldNames;
996
+ readonly updatedAtGeneratorId: typeof postgresNowGeneratorIdFor;
997
+ readonly literalDefaultForm: ({ nativeType, typeParams }: {
998
+ readonly nativeType: string;
999
+ readonly typeParams?: Readonly<Record<string, unknown>> | undefined;
1000
+ }) => {
1001
+ readonly kind: "json";
1002
+ readonly literal?: never;
1003
+ readonly list?: never;
1004
+ } | {
1005
+ readonly kind: "sqlExpression";
1006
+ readonly literal: (text: string) => string | undefined;
1007
+ readonly list: (literals: readonly string[]) => string;
1008
+ } | undefined;
1009
+ };
1010
+ //#endregion
1011
+ export { prisma7PostgresBinding as t };
1012
+ //# sourceMappingURL=prisma7-binding-C38o_ABR.d.mts.map