@prisma/orm-target-postgres 8.0.0-rc.22-dev.11 → 8.0.0-rc.22-dev.13

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 (60) hide show
  1. package/dist/{adapter-pJTWVQ3E.d.mts → adapter-Cqm8mgie.d.mts} +2 -2
  2. package/dist/{adapter-pJTWVQ3E.d.mts.map → adapter-Cqm8mgie.d.mts.map} +1 -1
  3. package/dist/adapter.d.mts +3 -3
  4. package/dist/adapter.mjs +2 -2
  5. package/dist/adapter__adapter.d.mts +1 -1
  6. package/dist/adapter__column-types.d.mts +2 -2
  7. package/dist/adapter__column-types.mjs +2 -2
  8. package/dist/{aggregates-CCEULCRK.d.mts → aggregates-C2c48ORM.d.mts} +2 -2
  9. package/dist/{aggregates-CCEULCRK.d.mts.map → aggregates-C2c48ORM.d.mts.map} +1 -1
  10. package/dist/{authoring-BLKmfwFy-DRwqGgGY.mjs → authoring-BPha5ZXb-DDzFeAur.mjs} +336 -141
  11. package/dist/authoring-BPha5ZXb-DDzFeAur.mjs.map +1 -0
  12. package/dist/{column-types-0CjA9Eri.d.mts → column-types-DBCLQW1w.d.mts} +6 -6
  13. package/dist/column-types-DBCLQW1w.d.mts.map +1 -0
  14. package/dist/{column-types-B11Mxo9V.mjs → column-types-DpzI37Cl.mjs} +4 -4
  15. package/dist/column-types-DpzI37Cl.mjs.map +1 -0
  16. package/dist/{control-B9PSgbQT.d.mts → control-B3mLvrSy.d.mts} +460 -164
  17. package/dist/control-B3mLvrSy.d.mts.map +1 -0
  18. package/dist/{descriptor-meta-DDydgB82-Cvv8FtTL.mjs → descriptor-meta-isjjnUyM-B-Cvh2Xe.mjs} +5 -5
  19. package/dist/descriptor-meta-isjjnUyM-B-Cvh2Xe.mjs.map +1 -0
  20. package/dist/{infer-psl-contract-Bn0Qzy4d-D9RlEL5y.mjs → infer-psl-contract-GekjNl5K-C4ELCIth.mjs} +3 -3
  21. package/dist/{infer-psl-contract-Bn0Qzy4d-D9RlEL5y.mjs.map → infer-psl-contract-GekjNl5K-C4ELCIth.mjs.map} +1 -1
  22. package/dist/migration-Be_iuIpn.mjs.map +1 -1
  23. package/dist/{pack-ClOo5FU_.d.mts → pack-DDHu-CxO.d.mts} +373 -92
  24. package/dist/pack-DDHu-CxO.d.mts.map +1 -0
  25. package/dist/{planner-BsSEbzfm-BrBEb_M1.mjs → planner-CKWtXyFH-BzpDX4M9.mjs} +4 -4
  26. package/dist/{planner-BsSEbzfm-BrBEb_M1.mjs.map → planner-CKWtXyFH-BzpDX4M9.mjs.map} +1 -1
  27. package/dist/{planner-produced-postgres-migration-bn60skNP-CKjpb3S_.mjs → planner-produced-postgres-migration-Dv5BSpUH-0NOLwcM4.mjs} +3 -3
  28. package/dist/{planner-produced-postgres-migration-bn60skNP-CKjpb3S_.mjs.map → planner-produced-postgres-migration-Dv5BSpUH-0NOLwcM4.mjs.map} +1 -1
  29. package/dist/{postgres-contract-view-pS-iTnm--BIKbQbBd.mjs → postgres-contract-view-BAuuUjGY-1XcthN9K.mjs} +3 -3
  30. package/dist/{postgres-contract-view-pS-iTnm--BIKbQbBd.mjs.map → postgres-contract-view-BAuuUjGY-1XcthN9K.mjs.map} +1 -1
  31. package/dist/{postgres-migration-CVWCygKt-DEXT0FE_.mjs → postgres-migration-uFrgXH6E-DCGpBoJ_.mjs} +3 -3
  32. package/dist/{postgres-migration-CVWCygKt-DEXT0FE_.mjs.map → postgres-migration-uFrgXH6E-DCGpBoJ_.mjs.map} +1 -1
  33. package/dist/{prisma7-binding-BexVc6RM.mjs → prisma7-binding-D1A_OJe2.mjs} +4 -4
  34. package/dist/prisma7-binding-D1A_OJe2.mjs.map +1 -0
  35. package/dist/{prisma7-binding-Bb8yzr_1.d.mts → prisma7-binding-ZpDLZt_D.d.mts} +373 -92
  36. package/dist/prisma7-binding-ZpDLZt_D.d.mts.map +1 -0
  37. package/dist/target.d.mts +5 -5
  38. package/dist/target.mjs +7 -7
  39. package/dist/target__aggregates.d.mts +1 -1
  40. package/dist/target__control.d.mts +2 -2
  41. package/dist/target__control.mjs +17 -10
  42. package/dist/target__control.mjs.map +1 -1
  43. package/dist/target__migration.mjs +1 -1
  44. package/dist/target__pack.d.mts +1 -1
  45. package/dist/target__pack.mjs +1 -1
  46. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  47. package/dist/target__planner.mjs +1 -1
  48. package/dist/target__prisma7-binding.d.mts +1 -1
  49. package/dist/target__prisma7-binding.mjs +1 -1
  50. package/dist/target__runtime.mjs +1 -1
  51. package/dist/target__runtime.mjs.map +1 -1
  52. package/package.json +10 -10
  53. package/dist/authoring-BLKmfwFy-DRwqGgGY.mjs.map +0 -1
  54. package/dist/column-types-0CjA9Eri.d.mts.map +0 -1
  55. package/dist/column-types-B11Mxo9V.mjs.map +0 -1
  56. package/dist/control-B9PSgbQT.d.mts.map +0 -1
  57. package/dist/descriptor-meta-DDydgB82-Cvv8FtTL.mjs.map +0 -1
  58. package/dist/pack-ClOo5FU_.d.mts.map +0 -1
  59. package/dist/prisma7-binding-Bb8yzr_1.d.mts.map +0 -1
  60. package/dist/prisma7-binding-BexVc6RM.mjs.map +0 -1
@@ -4,90 +4,104 @@ import { SqlControlTargetDescriptor } from "@prisma/orm-family-sql/family/contro
4
4
  //#region ../../../3-targets/postgres/1-target/dist/control.d.mts
5
5
  //#region src/core/type-constructors.d.ts
6
6
  /**
7
- * The base PSL scalars as zero-arg type constructors in the unified authoring
8
- * channel. Each names a codec; the column's database type is its data type's.
9
- *
10
- * The type position is the only storage decider: a mutation-default generator
11
- * (`@onCreate(uuid())`) never re-picks a column's storage.
7
+ * PostgreSQL's explicit types: each names one codec, and is what the contract stores. Each is named after the database type, plus the application value where the database type has more than one codec (ADR 257, ADR 316). `Json` keeps its name until the `Json` convenience type is decided.
12
8
  */
13
- declare const postgresScalarAuthoringTypes: {
14
- readonly String: {
15
- readonly kind: "typeConstructor";
9
+ declare const postgresExplicitTypes: {
10
+ readonly Int2: {
16
11
  readonly inferred: true;
17
- readonly documentation: "Variable-length text stored as PostgreSQL text.";
18
- readonly output: {
19
- readonly codecId: "pg/text@1";
20
- };
21
- };
22
- readonly Boolean: {
23
12
  readonly kind: "typeConstructor";
24
- readonly inferred: true;
25
- readonly documentation: "A true or false value stored as PostgreSQL boolean.";
13
+ readonly documentation: "A signed 16-bit integer stored as PostgreSQL int2 and represented as a JavaScript number.";
26
14
  readonly output: {
27
- readonly codecId: "pg/bool@1";
15
+ readonly codecId: "pg/int2@1";
28
16
  };
29
17
  };
30
- readonly Int: {
18
+ readonly Int4: {
31
19
  readonly kind: "typeConstructor";
32
20
  readonly inferred: true;
33
- readonly documentation: "A signed 32-bit integer represented as a JavaScript number.";
21
+ readonly documentation: "A signed 32-bit integer stored as PostgreSQL int4 and represented as a JavaScript number.";
34
22
  readonly output: {
35
23
  readonly codecId: "pg/int4@1";
36
24
  };
37
25
  };
38
- readonly BigInt: {
26
+ readonly Int8BigInt: {
39
27
  readonly kind: "typeConstructor";
40
28
  readonly inferred: true;
41
- readonly documentation: "A signed 64-bit integer represented as a JavaScript bigint.";
29
+ readonly documentation: "A signed 64-bit integer stored as PostgreSQL int8 and represented as a JavaScript bigint.";
42
30
  readonly output: {
43
31
  readonly codecId: "pg/int8@1";
44
32
  };
45
33
  };
46
- readonly Float: {
34
+ readonly Int8Number: {
47
35
  readonly kind: "typeConstructor";
48
- readonly inferred: true;
49
- readonly documentation: "A double-precision floating-point number.";
36
+ readonly documentation: "A signed 64-bit integer stored as PostgreSQL int8 and represented as a JavaScript number within its safe integer range.";
50
37
  readonly output: {
51
- readonly codecId: "pg/float8@1";
38
+ readonly codecId: "pg/int8number@1";
52
39
  };
53
40
  };
54
- readonly Decimal: {
41
+ readonly NumericString: {
42
+ readonly inferred: true;
55
43
  readonly kind: "typeConstructor";
56
- readonly documentation: "An exact decimal value stored as PostgreSQL numeric.";
44
+ readonly documentation: "An exact decimal value stored as PostgreSQL numeric, with optional precision and scale, and represented as decimal text.";
45
+ readonly args: readonly [{
46
+ readonly kind: "value";
47
+ readonly dataType: "pg/int4";
48
+ readonly name: "precision";
49
+ readonly optional: true;
50
+ }, {
51
+ readonly kind: "value";
52
+ readonly dataType: "pg/int4";
53
+ readonly name: "scale";
54
+ readonly optional: true;
55
+ }];
57
56
  readonly output: {
58
57
  readonly codecId: "pg/numeric@1";
58
+ readonly typeParams: {
59
+ readonly precision: {
60
+ readonly kind: "arg";
61
+ readonly index: 0;
62
+ };
63
+ readonly scale: {
64
+ readonly kind: "arg";
65
+ readonly index: 1;
66
+ };
67
+ };
59
68
  };
60
69
  };
61
- readonly Json: {
70
+ readonly NumericBigInt: {
62
71
  readonly kind: "typeConstructor";
72
+ readonly documentation: "An arbitrary-precision integer stored as PostgreSQL numeric and represented as a JavaScript bigint.";
73
+ readonly output: {
74
+ readonly codecId: "pg/unboundedint@1";
75
+ };
76
+ };
77
+ readonly Float4: {
63
78
  readonly inferred: true;
64
- readonly documentation: "A JSON value stored as PostgreSQL json.";
79
+ readonly kind: "typeConstructor";
80
+ readonly documentation: "A single-precision floating-point number stored as PostgreSQL float4.";
65
81
  readonly output: {
66
- readonly codecId: "pg/json@1";
82
+ readonly codecId: "pg/float4@1";
67
83
  };
68
84
  };
69
- readonly Jsonb: {
85
+ readonly Float8: {
70
86
  readonly kind: "typeConstructor";
71
87
  readonly inferred: true;
72
- readonly documentation: "A JSON value stored in PostgreSQL binary jsonb format.";
88
+ readonly documentation: "A double-precision floating-point number stored as PostgreSQL float8.";
73
89
  readonly output: {
74
- readonly codecId: "pg/jsonb@1";
90
+ readonly codecId: "pg/float8@1";
75
91
  };
76
92
  };
77
- readonly Bytes: {
93
+ readonly Text: {
78
94
  readonly kind: "typeConstructor";
79
95
  readonly inferred: true;
80
- readonly documentation: "Binary data stored as PostgreSQL bytea.";
96
+ readonly documentation: "Variable-length text stored as PostgreSQL text.";
81
97
  readonly output: {
82
- readonly codecId: "pg/bytea@1";
98
+ readonly codecId: "pg/text@1";
83
99
  };
84
100
  };
85
- };
86
- declare const postgresNativeAuthoringTypes: {
87
- readonly VarChar: {
88
- readonly kind: "typeConstructor";
101
+ readonly Varchar: {
89
102
  readonly inferred: true;
90
- readonly documentation: "Variable-length text with an optional maximum character length.";
103
+ readonly kind: "typeConstructor";
104
+ readonly documentation: "Variable-length text stored as PostgreSQL character varying, with an optional maximum character length.";
91
105
  readonly args: readonly [{
92
106
  readonly kind: "value";
93
107
  readonly dataType: "pg/int4";
@@ -107,7 +121,7 @@ declare const postgresNativeAuthoringTypes: {
107
121
  readonly Char: {
108
122
  readonly kind: "typeConstructor";
109
123
  readonly inferred: true;
110
- readonly documentation: "Fixed-length, blank-padded text with an optional character length.";
124
+ readonly documentation: "Fixed-length, blank-padded text stored as PostgreSQL character, with an optional character length.";
111
125
  readonly args: readonly [{
112
126
  readonly kind: "value";
113
127
  readonly dataType: "pg/int4";
@@ -124,33 +138,36 @@ declare const postgresNativeAuthoringTypes: {
124
138
  };
125
139
  };
126
140
  };
127
- readonly Numeric: {
141
+ readonly Bool: {
128
142
  readonly kind: "typeConstructor";
129
143
  readonly inferred: true;
130
- readonly documentation: "An exact decimal value with optional precision and scale.";
131
- readonly args: readonly [{
132
- readonly kind: "value";
133
- readonly dataType: "pg/int4";
134
- readonly name: "precision";
135
- readonly optional: true;
136
- }, {
137
- readonly kind: "value";
138
- readonly dataType: "pg/int4";
139
- readonly name: "scale";
140
- readonly optional: true;
141
- }];
144
+ readonly documentation: "A true or false value stored as PostgreSQL bool.";
142
145
  readonly output: {
143
- readonly codecId: "pg/numeric@1";
144
- readonly typeParams: {
145
- readonly precision: {
146
- readonly kind: "arg";
147
- readonly index: 0;
148
- };
149
- readonly scale: {
150
- readonly kind: "arg";
151
- readonly index: 1;
152
- };
153
- };
146
+ readonly codecId: "pg/bool@1";
147
+ };
148
+ };
149
+ readonly Bytea: {
150
+ readonly kind: "typeConstructor";
151
+ readonly inferred: true;
152
+ readonly documentation: "Binary data stored as PostgreSQL bytea and represented as a Uint8Array.";
153
+ readonly output: {
154
+ readonly codecId: "pg/bytea@1";
155
+ };
156
+ };
157
+ readonly Json: {
158
+ readonly kind: "typeConstructor";
159
+ readonly inferred: true;
160
+ readonly documentation: "A JSON value stored as PostgreSQL json.";
161
+ readonly output: {
162
+ readonly codecId: "pg/json@1";
163
+ };
164
+ };
165
+ readonly Jsonb: {
166
+ readonly kind: "typeConstructor";
167
+ readonly inferred: true;
168
+ readonly documentation: "A JSON value stored in PostgreSQL binary jsonb format.";
169
+ readonly output: {
170
+ readonly codecId: "pg/jsonb@1";
154
171
  };
155
172
  };
156
173
  readonly TimestampTemporal: {
@@ -246,22 +263,6 @@ declare const postgresNativeAuthoringTypes: {
246
263
  readonly codecId: "pg/inet@1";
247
264
  };
248
265
  };
249
- readonly SmallInt: {
250
- readonly kind: "typeConstructor";
251
- readonly inferred: true;
252
- readonly documentation: "A signed 16-bit integer represented as a JavaScript number.";
253
- readonly output: {
254
- readonly codecId: "pg/int2@1";
255
- };
256
- };
257
- readonly Real: {
258
- readonly kind: "typeConstructor";
259
- readonly inferred: true;
260
- readonly documentation: "A single-precision floating-point number.";
261
- readonly output: {
262
- readonly codecId: "pg/float4@1";
263
- };
264
- };
265
266
  readonly DateTemporal: {
266
267
  readonly kind: "typeConstructor";
267
268
  readonly documentation: "A calendar date represented as Temporal.PlainDate.";
@@ -414,9 +415,9 @@ declare const postgresNativeAuthoringTypes: {
414
415
  };
415
416
  };
416
417
  };
417
- readonly VarBit: {
418
- readonly kind: "typeConstructor";
418
+ readonly Varbit: {
419
419
  readonly inferred: true;
420
+ readonly kind: "typeConstructor";
420
421
  readonly documentation: "A variable-length bit string with an optional maximum length in bits.";
421
422
  readonly args: readonly [{
422
423
  readonly kind: "value";
@@ -499,9 +500,297 @@ declare const postgresNativeAuthoringTypes: {
499
500
  };
500
501
  };
501
502
  /**
502
- * The base scalars and native types as type constructors. The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.
503
+ * PostgreSQL's scalar types: the explicit types, the convenience types and the deprecated aliases. It is not the whole `type` namespace: the target contributes it together with `postgresAuthoringTypes`, which adds the namespaced `sql.*`, `temporal.*` and `pg.enum` and the generated-ID aliases such as `UuidString`.
503
504
  */
504
- declare const postgresScalarAndNativeTypeConstructors: {
505
+ declare const postgresScalarTypes: {
506
+ readonly SmallInt: {
507
+ readonly deprecated: {
508
+ readonly replacement: "Int2";
509
+ };
510
+ readonly kind: "typeConstructor";
511
+ readonly documentation: "A signed 16-bit integer stored as PostgreSQL int2 and represented as a JavaScript number.";
512
+ readonly output: {
513
+ readonly codecId: "pg/int2@1";
514
+ };
515
+ };
516
+ readonly BigIntNumber: {
517
+ readonly deprecated: {
518
+ readonly replacement: "Int8Number";
519
+ };
520
+ readonly kind: "typeConstructor";
521
+ readonly documentation: "A signed 64-bit integer stored as PostgreSQL int8 and represented as a JavaScript number within its safe integer range.";
522
+ readonly output: {
523
+ readonly codecId: "pg/int8number@1";
524
+ };
525
+ };
526
+ readonly Numeric: {
527
+ readonly deprecated: {
528
+ readonly replacement: "NumericString";
529
+ };
530
+ readonly kind: "typeConstructor";
531
+ readonly documentation: "An exact decimal value stored as PostgreSQL numeric, with optional precision and scale, and represented as decimal text.";
532
+ readonly args: readonly [{
533
+ readonly kind: "value";
534
+ readonly dataType: "pg/int4";
535
+ readonly name: "precision";
536
+ readonly optional: true;
537
+ }, {
538
+ readonly kind: "value";
539
+ readonly dataType: "pg/int4";
540
+ readonly name: "scale";
541
+ readonly optional: true;
542
+ }];
543
+ readonly output: {
544
+ readonly codecId: "pg/numeric@1";
545
+ readonly typeParams: {
546
+ readonly precision: {
547
+ readonly kind: "arg";
548
+ readonly index: 0;
549
+ };
550
+ readonly scale: {
551
+ readonly kind: "arg";
552
+ readonly index: 1;
553
+ };
554
+ };
555
+ };
556
+ };
557
+ readonly UnboundedInt: {
558
+ readonly deprecated: {
559
+ readonly replacement: "NumericBigInt";
560
+ };
561
+ readonly kind: "typeConstructor";
562
+ readonly documentation: "An arbitrary-precision integer stored as PostgreSQL numeric and represented as a JavaScript bigint.";
563
+ readonly output: {
564
+ readonly codecId: "pg/unboundedint@1";
565
+ };
566
+ };
567
+ readonly Real: {
568
+ readonly deprecated: {
569
+ readonly replacement: "Float4";
570
+ };
571
+ readonly kind: "typeConstructor";
572
+ readonly documentation: "A single-precision floating-point number stored as PostgreSQL float4.";
573
+ readonly output: {
574
+ readonly codecId: "pg/float4@1";
575
+ };
576
+ };
577
+ readonly VarChar: {
578
+ readonly deprecated: {
579
+ readonly replacement: "Varchar";
580
+ };
581
+ readonly kind: "typeConstructor";
582
+ readonly documentation: "Variable-length text stored as PostgreSQL character varying, with an optional maximum character length.";
583
+ readonly args: readonly [{
584
+ readonly kind: "value";
585
+ readonly dataType: "pg/int4";
586
+ readonly name: "length";
587
+ readonly optional: true;
588
+ }];
589
+ readonly output: {
590
+ readonly codecId: "sql/varchar@1";
591
+ readonly typeParams: {
592
+ readonly length: {
593
+ readonly kind: "arg";
594
+ readonly index: 0;
595
+ };
596
+ };
597
+ };
598
+ };
599
+ readonly VarBit: {
600
+ readonly deprecated: {
601
+ readonly replacement: "Varbit";
602
+ };
603
+ readonly kind: "typeConstructor";
604
+ readonly documentation: "A variable-length bit string with an optional maximum length in bits.";
605
+ readonly args: readonly [{
606
+ readonly kind: "value";
607
+ readonly dataType: "pg/int4";
608
+ readonly name: "length";
609
+ readonly optional: true;
610
+ }];
611
+ readonly output: {
612
+ readonly codecId: "pg/varbit@1";
613
+ readonly typeParams: {
614
+ readonly length: {
615
+ readonly kind: "arg";
616
+ readonly index: 0;
617
+ };
618
+ };
619
+ };
620
+ };
621
+ readonly Int: {
622
+ readonly kind: "typeChoice";
623
+ readonly documentation: "An integer read as a JavaScript number. `storage` is int4, a 32-bit integer, or int2, a 16-bit integer.";
624
+ readonly args: readonly [{
625
+ readonly kind: "option";
626
+ readonly name: "storage";
627
+ readonly values: readonly ["int4", "int2"];
628
+ readonly default: "int4";
629
+ readonly optional: true;
630
+ }];
631
+ readonly choices: readonly [{
632
+ readonly when: {
633
+ readonly storage: "int4";
634
+ };
635
+ readonly type: "Int4";
636
+ }, {
637
+ readonly when: {
638
+ readonly storage: "int2";
639
+ };
640
+ readonly type: "Int2";
641
+ }];
642
+ };
643
+ readonly BigInt: {
644
+ readonly kind: "typeChoice";
645
+ readonly documentation: "An integer that may exceed 32 bits. `as` is what the application reads: bigint, or number within the safe integer range. `storage` is int8, a 64-bit integer, or numeric, an integer of any size, with as: bigint.";
646
+ readonly args: readonly [{
647
+ readonly kind: "option";
648
+ readonly name: "as";
649
+ readonly values: readonly ["bigint", "number"];
650
+ readonly default: "bigint";
651
+ readonly optional: true;
652
+ }, {
653
+ readonly kind: "option";
654
+ readonly name: "storage";
655
+ readonly values: readonly ["int8", "numeric"];
656
+ readonly default: "int8";
657
+ readonly optional: true;
658
+ }];
659
+ readonly choices: readonly [{
660
+ readonly when: {
661
+ readonly as: "bigint";
662
+ readonly storage: "int8";
663
+ };
664
+ readonly type: "Int8BigInt";
665
+ }, {
666
+ readonly when: {
667
+ readonly as: "number";
668
+ readonly storage: "int8";
669
+ };
670
+ readonly type: "Int8Number";
671
+ }, {
672
+ readonly when: {
673
+ readonly as: "bigint";
674
+ readonly storage: "numeric";
675
+ };
676
+ readonly type: "NumericBigInt";
677
+ }];
678
+ };
679
+ readonly Float: {
680
+ readonly kind: "typeChoice";
681
+ readonly documentation: "A floating-point number. `storage` is float8, double precision, or float4, single precision.";
682
+ readonly args: readonly [{
683
+ readonly kind: "option";
684
+ readonly name: "storage";
685
+ readonly values: readonly ["float8", "float4"];
686
+ readonly default: "float8";
687
+ readonly optional: true;
688
+ }];
689
+ readonly choices: readonly [{
690
+ readonly when: {
691
+ readonly storage: "float8";
692
+ };
693
+ readonly type: "Float8";
694
+ }, {
695
+ readonly when: {
696
+ readonly storage: "float4";
697
+ };
698
+ readonly type: "Float4";
699
+ }];
700
+ };
701
+ readonly Decimal: {
702
+ readonly kind: "typeChoice";
703
+ readonly documentation: "An exact decimal number, read as decimal text such as \"12.50\". `storage` is numeric, with optional precision and scale.";
704
+ readonly args: readonly [{
705
+ readonly kind: "option";
706
+ readonly name: "storage";
707
+ readonly values: readonly ["numeric"];
708
+ readonly default: "numeric";
709
+ readonly optional: true;
710
+ }, {
711
+ readonly kind: "value";
712
+ readonly dataType: "pg/int4";
713
+ readonly name: "precision";
714
+ readonly optional: true;
715
+ }, {
716
+ readonly kind: "value";
717
+ readonly dataType: "pg/int4";
718
+ readonly name: "scale";
719
+ readonly optional: true;
720
+ }];
721
+ readonly choices: readonly [{
722
+ readonly when: {
723
+ readonly storage: "numeric";
724
+ };
725
+ readonly type: "NumericString";
726
+ }];
727
+ };
728
+ readonly String: {
729
+ readonly kind: "typeChoice";
730
+ readonly documentation: "Text. `storage` is text, of any length, or varchar or char, which take an optional length.";
731
+ readonly args: readonly [{
732
+ readonly kind: "option";
733
+ readonly name: "storage";
734
+ readonly values: readonly ["text", "varchar", "char"];
735
+ readonly default: "text";
736
+ readonly optional: true;
737
+ }, {
738
+ readonly kind: "value";
739
+ readonly dataType: "pg/int4";
740
+ readonly name: "length";
741
+ readonly optional: true;
742
+ }];
743
+ readonly choices: readonly [{
744
+ readonly when: {
745
+ readonly storage: "text";
746
+ };
747
+ readonly type: "Text";
748
+ }, {
749
+ readonly when: {
750
+ readonly storage: "varchar";
751
+ };
752
+ readonly type: "Varchar";
753
+ }, {
754
+ readonly when: {
755
+ readonly storage: "char";
756
+ };
757
+ readonly type: "Char";
758
+ }];
759
+ };
760
+ readonly Boolean: {
761
+ readonly kind: "typeChoice";
762
+ readonly documentation: "A true or false value. `storage` is bool.";
763
+ readonly args: readonly [{
764
+ readonly kind: "option";
765
+ readonly name: "storage";
766
+ readonly values: readonly ["bool"];
767
+ readonly default: "bool";
768
+ readonly optional: true;
769
+ }];
770
+ readonly choices: readonly [{
771
+ readonly when: {
772
+ readonly storage: "bool";
773
+ };
774
+ readonly type: "Bool";
775
+ }];
776
+ };
777
+ readonly Bytes: {
778
+ readonly kind: "typeChoice";
779
+ readonly documentation: "Binary data, read as a Uint8Array. `storage` is bytea.";
780
+ readonly args: readonly [{
781
+ readonly kind: "option";
782
+ readonly name: "storage";
783
+ readonly values: readonly ["bytea"];
784
+ readonly default: "bytea";
785
+ readonly optional: true;
786
+ }];
787
+ readonly choices: readonly [{
788
+ readonly when: {
789
+ readonly storage: "bytea";
790
+ };
791
+ readonly type: "Bytea";
792
+ }];
793
+ };
505
794
  readonly DateTime: {
506
795
  readonly kind: "typeChoice";
507
796
  readonly documentation: "A moment in time. `as` is what the application reads: jsDate (a JavaScript Date), temporal (Temporal.Instant) or string. `storage` is timestamptz or timestamp, a timestamp read and written as UTC.";
@@ -673,81 +962,101 @@ declare const postgresScalarAndNativeTypeConstructors: {
673
962
  readonly type: "IntervalParts";
674
963
  }];
675
964
  };
676
- readonly String: {
677
- readonly kind: "typeConstructor";
965
+ readonly Int2: {
678
966
  readonly inferred: true;
679
- readonly documentation: "Variable-length text stored as PostgreSQL text.";
680
- readonly output: {
681
- readonly codecId: "pg/text@1";
682
- };
683
- };
684
- readonly Boolean: {
685
967
  readonly kind: "typeConstructor";
686
- readonly inferred: true;
687
- readonly documentation: "A true or false value stored as PostgreSQL boolean.";
968
+ readonly documentation: "A signed 16-bit integer stored as PostgreSQL int2 and represented as a JavaScript number.";
688
969
  readonly output: {
689
- readonly codecId: "pg/bool@1";
970
+ readonly codecId: "pg/int2@1";
690
971
  };
691
972
  };
692
- readonly Int: {
973
+ readonly Int4: {
693
974
  readonly kind: "typeConstructor";
694
975
  readonly inferred: true;
695
- readonly documentation: "A signed 32-bit integer represented as a JavaScript number.";
976
+ readonly documentation: "A signed 32-bit integer stored as PostgreSQL int4 and represented as a JavaScript number.";
696
977
  readonly output: {
697
978
  readonly codecId: "pg/int4@1";
698
979
  };
699
980
  };
700
- readonly BigInt: {
981
+ readonly Int8BigInt: {
701
982
  readonly kind: "typeConstructor";
702
983
  readonly inferred: true;
703
- readonly documentation: "A signed 64-bit integer represented as a JavaScript bigint.";
984
+ readonly documentation: "A signed 64-bit integer stored as PostgreSQL int8 and represented as a JavaScript bigint.";
704
985
  readonly output: {
705
986
  readonly codecId: "pg/int8@1";
706
987
  };
707
988
  };
708
- readonly Float: {
989
+ readonly Int8Number: {
709
990
  readonly kind: "typeConstructor";
710
- readonly inferred: true;
711
- readonly documentation: "A double-precision floating-point number.";
991
+ readonly documentation: "A signed 64-bit integer stored as PostgreSQL int8 and represented as a JavaScript number within its safe integer range.";
712
992
  readonly output: {
713
- readonly codecId: "pg/float8@1";
993
+ readonly codecId: "pg/int8number@1";
714
994
  };
715
995
  };
716
- readonly Decimal: {
996
+ readonly NumericString: {
997
+ readonly inferred: true;
717
998
  readonly kind: "typeConstructor";
718
- readonly documentation: "An exact decimal value stored as PostgreSQL numeric.";
999
+ readonly documentation: "An exact decimal value stored as PostgreSQL numeric, with optional precision and scale, and represented as decimal text.";
1000
+ readonly args: readonly [{
1001
+ readonly kind: "value";
1002
+ readonly dataType: "pg/int4";
1003
+ readonly name: "precision";
1004
+ readonly optional: true;
1005
+ }, {
1006
+ readonly kind: "value";
1007
+ readonly dataType: "pg/int4";
1008
+ readonly name: "scale";
1009
+ readonly optional: true;
1010
+ }];
719
1011
  readonly output: {
720
1012
  readonly codecId: "pg/numeric@1";
1013
+ readonly typeParams: {
1014
+ readonly precision: {
1015
+ readonly kind: "arg";
1016
+ readonly index: 0;
1017
+ };
1018
+ readonly scale: {
1019
+ readonly kind: "arg";
1020
+ readonly index: 1;
1021
+ };
1022
+ };
721
1023
  };
722
1024
  };
723
- readonly Json: {
1025
+ readonly NumericBigInt: {
724
1026
  readonly kind: "typeConstructor";
1027
+ readonly documentation: "An arbitrary-precision integer stored as PostgreSQL numeric and represented as a JavaScript bigint.";
1028
+ readonly output: {
1029
+ readonly codecId: "pg/unboundedint@1";
1030
+ };
1031
+ };
1032
+ readonly Float4: {
725
1033
  readonly inferred: true;
726
- readonly documentation: "A JSON value stored as PostgreSQL json.";
1034
+ readonly kind: "typeConstructor";
1035
+ readonly documentation: "A single-precision floating-point number stored as PostgreSQL float4.";
727
1036
  readonly output: {
728
- readonly codecId: "pg/json@1";
1037
+ readonly codecId: "pg/float4@1";
729
1038
  };
730
1039
  };
731
- readonly Jsonb: {
1040
+ readonly Float8: {
732
1041
  readonly kind: "typeConstructor";
733
1042
  readonly inferred: true;
734
- readonly documentation: "A JSON value stored in PostgreSQL binary jsonb format.";
1043
+ readonly documentation: "A double-precision floating-point number stored as PostgreSQL float8.";
735
1044
  readonly output: {
736
- readonly codecId: "pg/jsonb@1";
1045
+ readonly codecId: "pg/float8@1";
737
1046
  };
738
1047
  };
739
- readonly Bytes: {
1048
+ readonly Text: {
740
1049
  readonly kind: "typeConstructor";
741
1050
  readonly inferred: true;
742
- readonly documentation: "Binary data stored as PostgreSQL bytea.";
1051
+ readonly documentation: "Variable-length text stored as PostgreSQL text.";
743
1052
  readonly output: {
744
- readonly codecId: "pg/bytea@1";
1053
+ readonly codecId: "pg/text@1";
745
1054
  };
746
1055
  };
747
- readonly VarChar: {
748
- readonly kind: "typeConstructor";
1056
+ readonly Varchar: {
749
1057
  readonly inferred: true;
750
- readonly documentation: "Variable-length text with an optional maximum character length.";
1058
+ readonly kind: "typeConstructor";
1059
+ readonly documentation: "Variable-length text stored as PostgreSQL character varying, with an optional maximum character length.";
751
1060
  readonly args: readonly [{
752
1061
  readonly kind: "value";
753
1062
  readonly dataType: "pg/int4";
@@ -767,7 +1076,7 @@ declare const postgresScalarAndNativeTypeConstructors: {
767
1076
  readonly Char: {
768
1077
  readonly kind: "typeConstructor";
769
1078
  readonly inferred: true;
770
- readonly documentation: "Fixed-length, blank-padded text with an optional character length.";
1079
+ readonly documentation: "Fixed-length, blank-padded text stored as PostgreSQL character, with an optional character length.";
771
1080
  readonly args: readonly [{
772
1081
  readonly kind: "value";
773
1082
  readonly dataType: "pg/int4";
@@ -784,33 +1093,36 @@ declare const postgresScalarAndNativeTypeConstructors: {
784
1093
  };
785
1094
  };
786
1095
  };
787
- readonly Numeric: {
1096
+ readonly Bool: {
788
1097
  readonly kind: "typeConstructor";
789
1098
  readonly inferred: true;
790
- readonly documentation: "An exact decimal value with optional precision and scale.";
791
- readonly args: readonly [{
792
- readonly kind: "value";
793
- readonly dataType: "pg/int4";
794
- readonly name: "precision";
795
- readonly optional: true;
796
- }, {
797
- readonly kind: "value";
798
- readonly dataType: "pg/int4";
799
- readonly name: "scale";
800
- readonly optional: true;
801
- }];
1099
+ readonly documentation: "A true or false value stored as PostgreSQL bool.";
802
1100
  readonly output: {
803
- readonly codecId: "pg/numeric@1";
804
- readonly typeParams: {
805
- readonly precision: {
806
- readonly kind: "arg";
807
- readonly index: 0;
808
- };
809
- readonly scale: {
810
- readonly kind: "arg";
811
- readonly index: 1;
812
- };
813
- };
1101
+ readonly codecId: "pg/bool@1";
1102
+ };
1103
+ };
1104
+ readonly Bytea: {
1105
+ readonly kind: "typeConstructor";
1106
+ readonly inferred: true;
1107
+ readonly documentation: "Binary data stored as PostgreSQL bytea and represented as a Uint8Array.";
1108
+ readonly output: {
1109
+ readonly codecId: "pg/bytea@1";
1110
+ };
1111
+ };
1112
+ readonly Json: {
1113
+ readonly kind: "typeConstructor";
1114
+ readonly inferred: true;
1115
+ readonly documentation: "A JSON value stored as PostgreSQL json.";
1116
+ readonly output: {
1117
+ readonly codecId: "pg/json@1";
1118
+ };
1119
+ };
1120
+ readonly Jsonb: {
1121
+ readonly kind: "typeConstructor";
1122
+ readonly inferred: true;
1123
+ readonly documentation: "A JSON value stored in PostgreSQL binary jsonb format.";
1124
+ readonly output: {
1125
+ readonly codecId: "pg/jsonb@1";
814
1126
  };
815
1127
  };
816
1128
  readonly TimestampTemporal: {
@@ -906,22 +1218,6 @@ declare const postgresScalarAndNativeTypeConstructors: {
906
1218
  readonly codecId: "pg/inet@1";
907
1219
  };
908
1220
  };
909
- readonly SmallInt: {
910
- readonly kind: "typeConstructor";
911
- readonly inferred: true;
912
- readonly documentation: "A signed 16-bit integer represented as a JavaScript number.";
913
- readonly output: {
914
- readonly codecId: "pg/int2@1";
915
- };
916
- };
917
- readonly Real: {
918
- readonly kind: "typeConstructor";
919
- readonly inferred: true;
920
- readonly documentation: "A single-precision floating-point number.";
921
- readonly output: {
922
- readonly codecId: "pg/float4@1";
923
- };
924
- };
925
1221
  readonly DateTemporal: {
926
1222
  readonly kind: "typeConstructor";
927
1223
  readonly documentation: "A calendar date represented as Temporal.PlainDate.";
@@ -1074,9 +1370,9 @@ declare const postgresScalarAndNativeTypeConstructors: {
1074
1370
  };
1075
1371
  };
1076
1372
  };
1077
- readonly VarBit: {
1078
- readonly kind: "typeConstructor";
1373
+ readonly Varbit: {
1079
1374
  readonly inferred: true;
1375
+ readonly kind: "typeConstructor";
1080
1376
  readonly documentation: "A variable-length bit string with an optional maximum length in bits.";
1081
1377
  readonly args: readonly [{
1082
1378
  readonly kind: "value";
@@ -1162,5 +1458,5 @@ declare const postgresScalarAndNativeTypeConstructors: {
1162
1458
  //#region src/exports/control.d.ts
1163
1459
  declare const postgresTargetDescriptor: SqlControlTargetDescriptor<"postgres", PostgresPlanTargetDetails, import("@prisma/orm-framework/contract/types").Contract<import("@prisma/orm-family-sql/contract/types").SqlStorage<string>>>;
1164
1460
  //#endregion
1165
- export { postgresTargetDescriptor as i, postgresScalarAndNativeTypeConstructors as n, postgresScalarAuthoringTypes as r, postgresNativeAuthoringTypes as t };
1166
- //# sourceMappingURL=control-B9PSgbQT.d.mts.map
1461
+ export { postgresScalarTypes as n, postgresTargetDescriptor as r, postgresExplicitTypes as t };
1462
+ //# sourceMappingURL=control-B3mLvrSy.d.mts.map