@prisma/orm-target-postgres 8.0.0-rc.21-dev.6 → 8.0.0-rc.21-dev.7

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 (148) hide show
  1. package/dist/{adapter-BIWKN0d7-B2BpKdVy.mjs → adapter-B84yJpi7-8wwdWq5R.mjs} +6 -6
  2. package/dist/{adapter-BIWKN0d7-B2BpKdVy.mjs.map → adapter-B84yJpi7-8wwdWq5R.mjs.map} +1 -1
  3. package/dist/adapter.d.mts +1 -1
  4. package/dist/adapter.mjs +5 -5
  5. package/dist/adapter__adapter.mjs +2 -2
  6. package/dist/adapter__control.d.mts +1 -1
  7. package/dist/adapter__control.mjs +4 -4
  8. package/dist/adapter__control.mjs.map +1 -1
  9. package/dist/adapter__runtime.mjs +4 -4
  10. package/dist/adapter__runtime.mjs.map +1 -1
  11. package/dist/adapter__sql-renderer.mjs +1 -1
  12. package/dist/{authoring-DOlbnTzz-BWXtiq9i.mjs → authoring-Bm8PD9ls-clXbYDiN.mjs} +209 -48
  13. package/dist/authoring-Bm8PD9ls-clXbYDiN.mjs.map +1 -0
  14. package/dist/{autoincrement-widths-D7Uub-uA-DccZpX6Q.mjs → autoincrement-widths-DkD24r-C-D4O96GJZ.mjs} +3 -3
  15. package/dist/{autoincrement-widths-D7Uub-uA-DccZpX6Q.mjs.map → autoincrement-widths-DkD24r-C-D4O96GJZ.mjs.map} +1 -1
  16. package/dist/{check-expressions-CCFJKC7N-DHEJIG2S.mjs → check-expressions-C_lM7sSK-Dtv6p3hg.mjs} +3 -3
  17. package/dist/{check-expressions-CCFJKC7N-DHEJIG2S.mjs.map → check-expressions-C_lM7sSK-Dtv6p3hg.mjs.map} +1 -1
  18. package/dist/{codec-registry-qdVGkdp_-DCI2nWSt.mjs → codec-registry-DVjibYBY-BeOUp5fk.mjs} +4 -4
  19. package/dist/{codec-registry-qdVGkdp_-DCI2nWSt.mjs.map → codec-registry-DVjibYBY-BeOUp5fk.mjs.map} +1 -1
  20. package/dist/{codecs-BcYLh1iB-Dxi2UgkJ.mjs → codecs-BqCmavY8-CC-ZbbTA.mjs} +12 -5
  21. package/dist/codecs-BqCmavY8-CC-ZbbTA.mjs.map +1 -0
  22. package/dist/{contract-contributions-DTGGTwRZ-BmYIo6M5.mjs → contract-contributions-rxCSM_1W-d9oohAzB.mjs} +16 -41
  23. package/dist/contract-contributions-rxCSM_1W-d9oohAzB.mjs.map +1 -0
  24. package/dist/{contract-free-Bjx-Ktot.mjs → contract-free-BrY8qnvY.mjs} +3 -3
  25. package/dist/{contract-free-Bjx-Ktot.mjs.map → contract-free-BrY8qnvY.mjs.map} +1 -1
  26. package/dist/{control-policy-B1Zvw6VN-DN4QDwpc.mjs → control-policy-BncmQ6LO-B8SXRfP_.mjs} +9 -9
  27. package/dist/{control-policy-B1Zvw6VN-DN4QDwpc.mjs.map → control-policy-BncmQ6LO-B8SXRfP_.mjs.map} +1 -1
  28. package/dist/{control-m9LWRUnY.d.mts → control-s1_5W_8t.d.mts} +179 -74
  29. package/dist/control-s1_5W_8t.d.mts.map +1 -0
  30. package/dist/{data-type-entries-DhUYJbVb-4NUH6vR_.mjs → data-type-entries-ZHPz2h_f-CNUmPGgf.mjs} +3 -3
  31. package/dist/{data-type-entries-DhUYJbVb-4NUH6vR_.mjs.map → data-type-entries-ZHPz2h_f-CNUmPGgf.mjs.map} +1 -1
  32. package/dist/{data-types-B7S_CHZd-C9JA40Ir.mjs → data-types-DklKHVmp-Bl-nwUa-.mjs} +21 -4
  33. package/dist/data-types-DklKHVmp-Bl-nwUa-.mjs.map +1 -0
  34. package/dist/{date-time-now-generators-C2aktlrc-uf9LqU6E.d.mts → date-time-now-generators-BZj5G1E3-BylrCrgW.d.mts} +4 -4
  35. package/dist/date-time-now-generators-BZj5G1E3-BylrCrgW.d.mts.map +1 -0
  36. package/dist/{date-time-now-generators-BrJ1cMzo-CxURsw2O.mjs → date-time-now-generators-Cc4PvFeB-XQWJz_4f.mjs} +21 -11
  37. package/dist/date-time-now-generators-Cc4PvFeB-XQWJz_4f.mjs.map +1 -0
  38. package/dist/{ddl-DiUFjVZe-DETlNlJh.mjs → ddl-LpR9foVX-YBmyKx74.mjs} +3 -3
  39. package/dist/{ddl-DiUFjVZe-DETlNlJh.mjs.map → ddl-LpR9foVX-YBmyKx74.mjs.map} +1 -1
  40. package/dist/{descriptor-meta-CGRsMMdO-tQxNSE_j.mjs → descriptor-meta-C2F_xt0P-D7gfqNS0.mjs} +17 -12
  41. package/dist/descriptor-meta-C2F_xt0P-D7gfqNS0.mjs.map +1 -0
  42. package/dist/{descriptor-meta-I7Ih-0hE-CrOjEir4.mjs → descriptor-meta-C2YuDfV8-B_u19j25.mjs} +4 -4
  43. package/dist/{descriptor-meta-I7Ih-0hE-CrOjEir4.mjs.map → descriptor-meta-C2YuDfV8-B_u19j25.mjs.map} +1 -1
  44. package/dist/{diff-database-schema-ASDRsuei-3Yro3-Tw.mjs → diff-database-schema-CcR7BN-A-BuftnIR2.mjs} +9 -9
  45. package/dist/{diff-database-schema-ASDRsuei-3Yro3-Tw.mjs.map → diff-database-schema-CcR7BN-A-BuftnIR2.mjs.map} +1 -1
  46. package/dist/{errors-Di_apgWJ-BLXRTfFj.mjs → errors-DG6xgXgr-Cb1XcPcb.mjs} +6 -5
  47. package/dist/errors-DG6xgXgr-Cb1XcPcb.mjs.map +1 -0
  48. package/dist/{full-text-CcHf5wkL.mjs → full-text-7szWl7EC.mjs} +3 -3
  49. package/dist/{full-text-CcHf5wkL.mjs.map → full-text-7szWl7EC.mjs.map} +1 -1
  50. package/dist/{full-text-index-definition-B0kQDs_M-8N6Slj3l.mjs → full-text-index-definition-BRNRSgZK-l_2TBarg.mjs} +3 -3
  51. package/dist/{full-text-index-definition-B0kQDs_M-8N6Slj3l.mjs.map → full-text-index-definition-BRNRSgZK-l_2TBarg.mjs.map} +1 -1
  52. package/dist/{full-text-parsers-hI_qtk-Q-DqTMF4n2.mjs → full-text-parsers-Dd5DOdBA-BTeOSzUj.mjs} +4 -4
  53. package/dist/{full-text-parsers-hI_qtk-Q-DqTMF4n2.mjs.map → full-text-parsers-Dd5DOdBA-BTeOSzUj.mjs.map} +1 -1
  54. package/dist/{full-text-search-document-7AKd6oOw-S-rsh3SZ.mjs → full-text-search-document-DWzECXD--BqrLGXsX.mjs} +5 -5
  55. package/dist/{full-text-search-document-7AKd6oOw-S-rsh3SZ.mjs.map → full-text-search-document-DWzECXD--BqrLGXsX.mjs.map} +1 -1
  56. package/dist/{index-types-DfnDGeQU-BWcrd_SP.mjs → index-types-5g7gXoWK-CBvkTIbr.mjs} +3 -3
  57. package/dist/{index-types-DfnDGeQU-BWcrd_SP.mjs.map → index-types-5g7gXoWK-CBvkTIbr.mjs.map} +1 -1
  58. package/dist/{infer-psl-contract-BZnLgJj6-EjqMFHxE.mjs → infer-psl-contract-CT9H9Xnw-l2pNPAyO.mjs} +70 -17
  59. package/dist/infer-psl-contract-CT9H9Xnw-l2pNPAyO.mjs.map +1 -0
  60. package/dist/migration-Be_iuIpn.mjs.map +1 -1
  61. package/dist/{native-type-normalizer-BpTZ6sm1.mjs → native-type-normalizer-DgHcQkwl.mjs} +2 -2
  62. package/dist/{native-type-normalizer-BpTZ6sm1.mjs.map → native-type-normalizer-DgHcQkwl.mjs.map} +1 -1
  63. package/dist/{op-factory-call-CUu2s6l7-CaAVzTwP.mjs → op-factory-call-BRaCqnFh-avSVdAgI.mjs} +8 -8
  64. package/dist/{op-factory-call-CUu2s6l7-CaAVzTwP.mjs.map → op-factory-call-BRaCqnFh-avSVdAgI.mjs.map} +1 -1
  65. package/dist/{pack-DKR4BRIY.d.mts → pack-BPopDUvg.d.mts} +183 -99
  66. package/dist/pack-BPopDUvg.d.mts.map +1 -0
  67. package/dist/{planner-C69ALB15-CasiGSdJ.mjs → planner-BsLpyYHC-IEpACcdS.mjs} +10 -10
  68. package/dist/{planner-C69ALB15-CasiGSdJ.mjs.map → planner-BsLpyYHC-IEpACcdS.mjs.map} +1 -1
  69. package/dist/{planner-ddl-builders-BHvruDX3-Sw7yWuWE.mjs → planner-ddl-builders-Dmr6ph8i-5FWxE6Wu.mjs} +3 -3
  70. package/dist/{planner-ddl-builders-BHvruDX3-Sw7yWuWE.mjs.map → planner-ddl-builders-Dmr6ph8i-5FWxE6Wu.mjs.map} +1 -1
  71. package/dist/{planner-identity-values-Cp0Cvrg7-BxMk9Qaf.mjs → planner-identity-values-BwYhwYeo-CaSwyXgC.mjs} +3 -3
  72. package/dist/{planner-identity-values-Cp0Cvrg7-BxMk9Qaf.mjs.map → planner-identity-values-BwYhwYeo-CaSwyXgC.mjs.map} +1 -1
  73. package/dist/{planner-produced-postgres-migration-BGo--l2b-ww24WTkY.mjs → planner-produced-postgres-migration-CU7D_5IE-Cv-o4-Hh.mjs} +4 -4
  74. package/dist/{planner-produced-postgres-migration-BGo--l2b-ww24WTkY.mjs.map → planner-produced-postgres-migration-CU7D_5IE-Cv-o4-Hh.mjs.map} +1 -1
  75. package/dist/{planner-sql-checks-Dhx-R5GJ-GyHfROia.mjs → planner-sql-checks-DOGD6v7y-BWkRMsXt.mjs} +19 -10
  76. package/dist/{planner-sql-checks-Dhx-R5GJ-GyHfROia.mjs.map → planner-sql-checks-DOGD6v7y-BWkRMsXt.mjs.map} +1 -1
  77. package/dist/{postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs → postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs} +3 -3
  78. package/dist/{postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs.map → postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs.map} +1 -1
  79. package/dist/{postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs → postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs} +8 -8
  80. package/dist/{postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs.map → postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs.map} +1 -1
  81. package/dist/{postgres-migration-69O9MUBt-BQ1_mj4S.mjs → postgres-migration-DrLpuKus-DOU9Rbkb.mjs} +11 -11
  82. package/dist/{postgres-migration-69O9MUBt-BQ1_mj4S.mjs.map → postgres-migration-DrLpuKus-DOU9Rbkb.mjs.map} +1 -1
  83. package/dist/{postgres-schema-CNNW8eA3-CwosQz5e.mjs → postgres-schema-CEGf780E-cyGo2Sii.mjs} +4 -4
  84. package/dist/{postgres-schema-CNNW8eA3-CwosQz5e.mjs.map → postgres-schema-CEGf780E-cyGo2Sii.mjs.map} +1 -1
  85. package/dist/{prisma7-binding-DFb9yHdO.d.mts → prisma7-binding-BNc7RE11.d.mts} +190 -99
  86. package/dist/prisma7-binding-BNc7RE11.d.mts.map +1 -0
  87. package/dist/{prisma7-binding-CcrXBBbM.mjs → prisma7-binding-BvvPWMwt.mjs} +27 -9
  88. package/dist/prisma7-binding-BvvPWMwt.mjs.map +1 -0
  89. package/dist/{render-ops-Dr6RDk6z-CSGJsR6N.mjs → render-ops-CbRkpwwx-C6wSWcTl.mjs} +4 -4
  90. package/dist/{render-ops-Dr6RDk6z-CSGJsR6N.mjs.map → render-ops-CbRkpwwx-C6wSWcTl.mjs.map} +1 -1
  91. package/dist/{resolve-ddl-schema-p68Q5F1u-DZAQNXpi.mjs → resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs} +3 -3
  92. package/dist/{resolve-ddl-schema-p68Q5F1u-DZAQNXpi.mjs.map → resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs.map} +1 -1
  93. package/dist/{runtime-DGgnFCG7.d.mts → runtime-BbPgK4gH.d.mts} +2 -2
  94. package/dist/{runtime-DGgnFCG7.d.mts.map → runtime-BbPgK4gH.d.mts.map} +1 -1
  95. package/dist/{sql-renderer-BdWJPa5F-DUvahuXZ.mjs → sql-renderer-BdWJPa5F-B8cdiqmK.mjs} +3 -3
  96. package/dist/{sql-renderer-BdWJPa5F-DUvahuXZ.mjs.map → sql-renderer-BdWJPa5F-B8cdiqmK.mjs.map} +1 -1
  97. package/dist/{sql-utils-CnnGiZBc.d.mts → sql-utils-Bq4nuPvy.d.mts} +6 -2
  98. package/dist/{sql-utils-CnnGiZBc.d.mts.map → sql-utils-Bq4nuPvy.d.mts.map} +1 -1
  99. package/dist/{sql-utils-0j_6QstU-DAfnt5Mu.mjs → sql-utils-ylvfJ1RJ-03xGdSLI.mjs} +34 -4
  100. package/dist/sql-utils-ylvfJ1RJ-03xGdSLI.mjs.map +1 -0
  101. package/dist/target.d.mts +7 -7
  102. package/dist/target.mjs +32 -32
  103. package/dist/target__codecs.mjs +2 -2
  104. package/dist/target__contract-free.mjs +3 -3
  105. package/dist/target__control.d.mts +2 -2
  106. package/dist/target__control.mjs +38 -25
  107. package/dist/target__control.mjs.map +1 -1
  108. package/dist/target__data-types.mjs +2 -2
  109. package/dist/target__diff-database-schema.mjs +1 -1
  110. package/dist/target__errors.mjs +1 -1
  111. package/dist/target__full-text-index-authoring.mjs +2 -2
  112. package/dist/target__full-text.mjs +2 -2
  113. package/dist/target__issue-planner.mjs +1 -1
  114. package/dist/target__migration.mjs +2 -2
  115. package/dist/target__native-type-normalizer.mjs +1 -1
  116. package/dist/target__op-factory-call.mjs +1 -1
  117. package/dist/target__pack.d.mts +1 -1
  118. package/dist/target__pack.mjs +1 -1
  119. package/dist/target__planner-ddl-builders.mjs +1 -1
  120. package/dist/target__planner-identity-values.mjs +1 -1
  121. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  122. package/dist/target__planner-sql-checks.mjs +1 -1
  123. package/dist/target__planner.mjs +2 -2
  124. package/dist/target__prisma7-binding.d.mts +1 -1
  125. package/dist/target__prisma7-binding.mjs +1 -1
  126. package/dist/target__render-ops.mjs +1 -1
  127. package/dist/target__runtime.d.mts +2 -2
  128. package/dist/target__runtime.mjs +7 -7
  129. package/dist/target__runtime.mjs.map +1 -1
  130. package/dist/target__schema-ir-annotations.mjs +1 -1
  131. package/dist/target__sql-utils.d.mts +2 -2
  132. package/dist/target__sql-utils.mjs +4 -4
  133. package/dist/target__types.mjs +2 -2
  134. package/package.json +9 -9
  135. package/dist/authoring-DOlbnTzz-BWXtiq9i.mjs.map +0 -1
  136. package/dist/codecs-BcYLh1iB-Dxi2UgkJ.mjs.map +0 -1
  137. package/dist/contract-contributions-DTGGTwRZ-BmYIo6M5.mjs.map +0 -1
  138. package/dist/control-m9LWRUnY.d.mts.map +0 -1
  139. package/dist/data-types-B7S_CHZd-C9JA40Ir.mjs.map +0 -1
  140. package/dist/date-time-now-generators-BrJ1cMzo-CxURsw2O.mjs.map +0 -1
  141. package/dist/date-time-now-generators-C2aktlrc-uf9LqU6E.d.mts.map +0 -1
  142. package/dist/descriptor-meta-CGRsMMdO-tQxNSE_j.mjs.map +0 -1
  143. package/dist/errors-Di_apgWJ-BLXRTfFj.mjs.map +0 -1
  144. package/dist/infer-psl-contract-BZnLgJj6-EjqMFHxE.mjs.map +0 -1
  145. package/dist/pack-DKR4BRIY.d.mts.map +0 -1
  146. package/dist/prisma7-binding-CcrXBBbM.mjs.map +0 -1
  147. package/dist/prisma7-binding-DFb9yHdO.d.mts.map +0 -1
  148. package/dist/sql-utils-0j_6QstU-DAfnt5Mu.mjs.map +0 -1
@@ -7,6 +7,7 @@ import { o as ParameterizedOutputTypesForTypeParams, r as CodecTypes } from "./c
7
7
  import { l as QueryOperationTypesForCodecs } from "./operation-types-DfWYI0Cn-fXs3p9mN.mjs";
8
8
  import { a as policyUsingOnlySpec, c as roleSpec, i as policyBothPredicatesSpec, n as RoleExtensionBlock, o as policyWithCheckOnlySpec, r as nativeEnumSpec, s as postgresLowerEntityHandles, t as RlsPolicyExtensionBlock } from "./authoring-DWd5pnnV-BBX7P1wT.mjs";
9
9
  import "@prisma/orm-family-sql/contract/data-type";
10
+ import { JsonValue } from "@prisma/orm-framework/contract/types";
10
11
  //#region ../../../3-targets/postgres/1-target/dist/prisma7-binding.d.mts
11
12
  //#region src/core/prisma7-type-map.d.ts
12
13
  /** A Prisma 8 constructor call: its name and the values of its arguments. */
@@ -31,6 +32,11 @@ declare function junctionRelationFieldNames(tableA: string, tableB: string): rea
31
32
  //#endregion
32
33
  //#region src/core/prisma7-binding.d.ts
33
34
  declare function base64ToHex(base64: string): string | undefined;
35
+ /** The SQL expression of a literal default, written as DDL writes the value: one literal, or for a list an array of them cast to an array of the column type. A date or time is written with the year text PostgreSQL reads. */
36
+ declare function literalDefaultExpression(stored: JsonValue, column: {
37
+ readonly dataType: string;
38
+ readonly typeParams?: Readonly<Record<string, unknown>> | undefined;
39
+ }): string;
34
40
  /**
35
41
  * What the Postgres target supplies to the Prisma 7 interpreter. A `Bytes` or
36
42
  * `DateTime` default is read through the tag its column type's authoring entry
@@ -91,72 +97,15 @@ declare const prisma7PostgresBinding: {
91
97
  };
92
98
  };
93
99
  readonly temporal: {
94
- readonly CreatedAtString: {
95
- readonly kind: "typeAlias";
96
- readonly documentation: `A timestamp the client sets to now when a row is created. Its value is ${string}.`;
97
- readonly output: {
98
- readonly type: {
99
- readonly codecId: "pg/timestamptz-string@1";
100
- };
101
- readonly onCreate: {
102
- readonly name: "now";
103
- readonly args: {};
104
- };
105
- };
106
- };
107
- readonly UpdatedAtString: {
108
- readonly kind: "typeAlias";
109
- readonly documentation: `A timestamp the client sets to now when a row is created and every time it is updated. Its value is ${string}.`;
110
- readonly output: {
111
- readonly type: {
112
- readonly codecId: "pg/timestamptz-string@1";
113
- };
114
- readonly onCreate: {
115
- readonly name: "now";
116
- readonly args: {};
117
- };
118
- readonly onUpdate: {
119
- readonly name: "now";
120
- readonly args: {};
121
- };
122
- };
123
- };
124
- readonly CreatedAtJsDate: {
125
- readonly kind: "typeAlias";
126
- readonly documentation: `A timestamp the client sets to now when a row is created. Its value is ${string}.`;
127
- readonly output: {
128
- readonly type: {
129
- readonly codecId: "pg/timestamptz-date@1";
130
- };
131
- readonly onCreate: {
132
- readonly name: "now";
133
- readonly args: {};
134
- };
135
- };
136
- };
137
- readonly UpdatedAtJsDate: {
138
- readonly kind: "typeAlias";
139
- readonly documentation: `A timestamp the client sets to now when a row is created and every time it is updated. Its value is ${string}.`;
140
- readonly output: {
141
- readonly type: {
142
- readonly codecId: "pg/timestamptz-date@1";
143
- };
144
- readonly onCreate: {
145
- readonly name: "now";
146
- readonly args: {};
147
- };
148
- readonly onUpdate: {
149
- readonly name: "now";
150
- readonly args: {};
151
- };
152
- };
153
- };
154
100
  readonly CreatedAt: {
155
101
  readonly kind: "typeAlias";
156
102
  readonly documentation: `A timestamp the client sets to now when a row is created. Its value is ${string}.`;
157
103
  readonly output: {
158
104
  readonly type: {
159
- readonly codecId: "pg/timestamptz-temporal@1";
105
+ readonly codecId: "pg/timestamptz-date@1";
106
+ readonly typeParams: {
107
+ readonly precision: 3;
108
+ };
160
109
  };
161
110
  readonly onCreate: {
162
111
  readonly name: "now";
@@ -169,7 +118,10 @@ declare const prisma7PostgresBinding: {
169
118
  readonly documentation: `A timestamp the client sets to now when a row is created and every time it is updated. Its value is ${string}.`;
170
119
  readonly output: {
171
120
  readonly type: {
172
- readonly codecId: "pg/timestamptz-temporal@1";
121
+ readonly codecId: "pg/timestamptz-date@1";
122
+ readonly typeParams: {
123
+ readonly precision: 3;
124
+ };
173
125
  };
174
126
  readonly onCreate: {
175
127
  readonly name: "now";
@@ -280,6 +232,177 @@ declare const prisma7PostgresBinding: {
280
232
  };
281
233
  };
282
234
  };
235
+ readonly DateTime: {
236
+ readonly kind: "typeChoice";
237
+ 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.";
238
+ readonly args: readonly [{
239
+ readonly kind: "option";
240
+ readonly name: "as";
241
+ readonly values: readonly ["jsDate", "temporal", "string"];
242
+ readonly default: "jsDate";
243
+ readonly optional: true;
244
+ }, {
245
+ readonly kind: "option";
246
+ readonly name: "storage";
247
+ readonly values: readonly ["timestamptz", "timestamp"];
248
+ readonly default: "timestamptz";
249
+ readonly optional: true;
250
+ }, {
251
+ readonly kind: "value";
252
+ readonly dataType: "pg/int4";
253
+ readonly name: "precision";
254
+ readonly optional: true;
255
+ }];
256
+ readonly choices: readonly [{
257
+ readonly when: {
258
+ readonly as: "jsDate";
259
+ readonly storage: "timestamptz";
260
+ };
261
+ readonly type: "TimestamptzJsDate";
262
+ readonly defaults: {
263
+ readonly precision: 3;
264
+ };
265
+ }, {
266
+ readonly when: {
267
+ readonly as: "temporal";
268
+ readonly storage: "timestamptz";
269
+ };
270
+ readonly type: "TimestamptzTemporal";
271
+ }, {
272
+ readonly when: {
273
+ readonly as: "string";
274
+ readonly storage: "timestamptz";
275
+ };
276
+ readonly type: "TimestamptzString";
277
+ }, {
278
+ readonly when: {
279
+ readonly as: "jsDate";
280
+ readonly storage: "timestamp";
281
+ };
282
+ readonly type: "TimestampJsDate";
283
+ readonly defaults: {
284
+ readonly precision: 3;
285
+ };
286
+ }, {
287
+ readonly when: {
288
+ readonly as: "temporal";
289
+ readonly storage: "timestamp";
290
+ };
291
+ readonly type: "TimestampInstant";
292
+ }, {
293
+ readonly when: {
294
+ readonly as: "string";
295
+ readonly storage: "timestamp";
296
+ };
297
+ readonly type: "TimestampString";
298
+ }];
299
+ };
300
+ readonly Date: {
301
+ readonly kind: "typeChoice";
302
+ readonly documentation: "A calendar date. `as` is what the application reads: string, such as \"2024-02-29\", or temporal (Temporal.PlainDate).";
303
+ readonly args: readonly [{
304
+ readonly kind: "option";
305
+ readonly name: "as";
306
+ readonly values: readonly ["string", "temporal"];
307
+ readonly default: "string";
308
+ readonly optional: true;
309
+ }, {
310
+ readonly kind: "option";
311
+ readonly name: "storage";
312
+ readonly values: readonly ["date"];
313
+ readonly default: "date";
314
+ readonly optional: true;
315
+ }];
316
+ readonly choices: readonly [{
317
+ readonly when: {
318
+ readonly as: "string";
319
+ readonly storage: "date";
320
+ };
321
+ readonly type: "DateString";
322
+ }, {
323
+ readonly when: {
324
+ readonly as: "temporal";
325
+ readonly storage: "date";
326
+ };
327
+ readonly type: "DateTemporal";
328
+ }];
329
+ };
330
+ readonly Time: {
331
+ readonly kind: "typeChoice";
332
+ readonly documentation: "A time of day. `as` is what the application reads: string, such as \"09:30:00\", or temporal (Temporal.PlainTime). `storage` is time, or timetz with as: string.";
333
+ readonly args: readonly [{
334
+ readonly kind: "option";
335
+ readonly name: "as";
336
+ readonly values: readonly ["string", "temporal"];
337
+ readonly default: "string";
338
+ readonly optional: true;
339
+ }, {
340
+ readonly kind: "option";
341
+ readonly name: "storage";
342
+ readonly values: readonly ["time", "timetz"];
343
+ readonly default: "time";
344
+ readonly optional: true;
345
+ }, {
346
+ readonly kind: "value";
347
+ readonly dataType: "pg/int4";
348
+ readonly name: "precision";
349
+ readonly optional: true;
350
+ }];
351
+ readonly choices: readonly [{
352
+ readonly when: {
353
+ readonly as: "string";
354
+ readonly storage: "time";
355
+ };
356
+ readonly type: "TimeString";
357
+ }, {
358
+ readonly when: {
359
+ readonly as: "temporal";
360
+ readonly storage: "time";
361
+ };
362
+ readonly type: "TimeTemporal";
363
+ }, {
364
+ readonly when: {
365
+ readonly as: "string";
366
+ readonly storage: "timetz";
367
+ };
368
+ readonly type: "Timetz";
369
+ }];
370
+ };
371
+ readonly Duration: {
372
+ readonly kind: "typeChoice";
373
+ readonly documentation: "A length of time. `as` is what the application reads: string, an ISO 8601 duration such as \"P1M\", or parts, the object { months, days, micros }.";
374
+ readonly args: readonly [{
375
+ readonly kind: "option";
376
+ readonly name: "as";
377
+ readonly values: readonly ["string", "parts"];
378
+ readonly default: "string";
379
+ readonly optional: true;
380
+ }, {
381
+ readonly kind: "option";
382
+ readonly name: "storage";
383
+ readonly values: readonly ["interval"];
384
+ readonly default: "interval";
385
+ readonly optional: true;
386
+ }, {
387
+ readonly kind: "value";
388
+ readonly dataType: "pg/int4";
389
+ readonly name: "precision";
390
+ readonly optional: true;
391
+ }];
392
+ readonly choices: readonly [{
393
+ readonly when: {
394
+ readonly as: "string";
395
+ readonly storage: "interval";
396
+ };
397
+ readonly type: "IntervalString";
398
+ }, {
399
+ readonly when: {
400
+ readonly as: "parts";
401
+ readonly storage: "interval";
402
+ };
403
+ readonly type: "IntervalParts";
404
+ }];
405
+ };
283
406
  readonly String: {
284
407
  readonly kind: "typeConstructor";
285
408
  readonly inferred: true;
@@ -327,13 +450,6 @@ declare const prisma7PostgresBinding: {
327
450
  readonly codecId: "pg/numeric@1";
328
451
  };
329
452
  };
330
- readonly DateTime: {
331
- readonly kind: "typeConstructor";
332
- readonly documentation: "An instant stored as PostgreSQL timestamptz and represented as Temporal.Instant.";
333
- readonly output: {
334
- readonly codecId: "pg/timestamptz-temporal@1";
335
- };
336
- };
337
453
  readonly Json: {
338
454
  readonly kind: "typeConstructor";
339
455
  readonly inferred: true;
@@ -484,25 +600,6 @@ declare const prisma7PostgresBinding: {
484
600
  };
485
601
  };
486
602
  };
487
- readonly Time: {
488
- readonly kind: "typeConstructor";
489
- readonly documentation: "A time of day without a time zone, represented as Temporal.PlainTime.";
490
- readonly args: readonly [{
491
- readonly kind: "value";
492
- readonly dataType: "pg/int4";
493
- readonly name: "precision";
494
- readonly optional: true;
495
- }];
496
- readonly output: {
497
- readonly codecId: "pg/time-temporal@1";
498
- readonly typeParams: {
499
- readonly precision: {
500
- readonly kind: "arg";
501
- readonly index: 0;
502
- };
503
- };
504
- };
505
- };
506
603
  readonly Timetz: {
507
604
  readonly kind: "typeConstructor";
508
605
  readonly inferred: true;
@@ -562,13 +659,6 @@ declare const prisma7PostgresBinding: {
562
659
  readonly codecId: "pg/date-temporal@1";
563
660
  };
564
661
  };
565
- readonly Date: {
566
- readonly kind: "typeConstructor";
567
- readonly documentation: "A calendar date represented as Temporal.PlainDate.";
568
- readonly output: {
569
- readonly codecId: "pg/date-temporal@1";
570
- };
571
- };
572
662
  readonly DateString: {
573
663
  readonly kind: "typeConstructor";
574
664
  readonly inferred: true;
@@ -579,7 +669,6 @@ declare const prisma7PostgresBinding: {
579
669
  };
580
670
  readonly TimestampString: {
581
671
  readonly kind: "typeConstructor";
582
- readonly inferred: true;
583
672
  readonly documentation: "A timestamp without a time zone represented as ISO 8601 text.";
584
673
  readonly args: readonly [{
585
674
  readonly kind: "value";
@@ -599,6 +688,7 @@ declare const prisma7PostgresBinding: {
599
688
  };
600
689
  readonly TimestamptzJsDate: {
601
690
  readonly kind: "typeConstructor";
691
+ readonly inferred: true;
602
692
  readonly documentation: "An instant stored as PostgreSQL timestamptz and represented as a JavaScript Date.";
603
693
  readonly args: readonly [{
604
694
  readonly kind: "value";
@@ -618,6 +708,7 @@ declare const prisma7PostgresBinding: {
618
708
  };
619
709
  readonly TimestampJsDate: {
620
710
  readonly kind: "typeConstructor";
711
+ readonly inferred: true;
621
712
  readonly documentation: "A date and time stored as PostgreSQL timestamp and represented as a JavaScript Date, read and written as UTC.";
622
713
  readonly args: readonly [{
623
714
  readonly kind: "value";
@@ -656,7 +747,6 @@ declare const prisma7PostgresBinding: {
656
747
  };
657
748
  readonly TimestamptzString: {
658
749
  readonly kind: "typeConstructor";
659
- readonly inferred: true;
660
750
  readonly documentation: "A timestamp with time zone represented as ISO 8601 text, the instant in UTC.";
661
751
  readonly args: readonly [{
662
752
  readonly kind: "value";
@@ -736,7 +826,6 @@ declare const prisma7PostgresBinding: {
736
826
  };
737
827
  readonly IntervalParts: {
738
828
  readonly kind: "typeConstructor";
739
- readonly inferred: true;
740
829
  readonly documentation: "A span of time stored as PostgreSQL interval and represented as { months, days, micros }, with optional fractional-second precision.";
741
830
  readonly args: readonly [{
742
831
  readonly kind: "value";
@@ -756,6 +845,7 @@ declare const prisma7PostgresBinding: {
756
845
  };
757
846
  readonly IntervalString: {
758
847
  readonly kind: "typeConstructor";
848
+ readonly inferred: true;
759
849
  readonly documentation: "A span of time stored as PostgreSQL interval and represented as an ISO 8601 duration such as P1Y2M, with optional fractional-second precision.";
760
850
  readonly args: readonly [{
761
851
  readonly kind: "value";
@@ -1101,6 +1191,7 @@ declare const prisma7PostgresBinding: {
1101
1191
  readonly foreignKey: typeof defaultForeignKeyName;
1102
1192
  };
1103
1193
  readonly junctionRelationFieldNames: typeof junctionRelationFieldNames;
1194
+ readonly literalDefaultExpression: typeof literalDefaultExpression;
1104
1195
  readonly literalDefaultForm: ({ dataType, typeParams }: {
1105
1196
  readonly dataType: string;
1106
1197
  readonly typeParams?: Readonly<Record<string, unknown>> | undefined;
@@ -1126,4 +1217,4 @@ declare const prisma7PostgresBinding: {
1126
1217
  };
1127
1218
  //#endregion
1128
1219
  export { prisma7PostgresBinding as t };
1129
- //# sourceMappingURL=prisma7-binding-DFb9yHdO.d.mts.map
1220
+ //# sourceMappingURL=prisma7-binding-BNc7RE11.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prisma7-binding-BNc7RE11.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/prisma7-binding.d.mts"],"mappings":";;;;;;;;;;;;;UAaU;WACC;WACA;;;;;iBAKM,sBAAsB;;iBAEtB,sBAAsB,mBAAmB;;;;;;;;iBAQzC,2BAA2B,gBAAgB;;;iBAG3C,YAAY;;iBAEZ,yBAAyB,QAAQ,WAAW;WAClD;WACA,aAAa,SAAS;;;;;;;;;cASnB;WACH;aACE;aACA;aACA;aACA,yDAAyD,iBAAiB,uBAAuB;eAC/F;SACN;eACM;SACN;eACM;SACN;eACM;SACN;eACM;SACN;eACM;SACN;eACM;QACP;QACA;;;aAGK;eACE;iBACE;mBACE;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;qBACE;qBACA;qBACA;uBACE;uBACA;;qBAEF;uBACE;;;;iBAIN;mBACE;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;2BACE;;;uBAGJ;yBACE;yBACA;;;;mBAIN;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;2BACE;;;uBAGJ;yBACE;yBACA;;uBAEF;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;qBACE;qBACA;qBACA;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA;qBACA;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;;;;iBAMV;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;qBACA;uBACE;;;qBAGF;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;qBACA;uBACE;;;qBAGF;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;uBAEF;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;;eAMV,WAAW,SAAS,kEAAkE;eACtF,uEAAuE;eACvE;iBACE;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;YACA;;mBAEO;qBACE,UAAU,OAAO,oBAAoB,wDAAwD,2BAA2B;;;iBAG5H;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;;mBAEO;qBACE,UAAU,OAAO,+BAA+B;;;iBAGpD;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;;mBAEO;YACP,UAAU,OAAO,yBAAyB,wDAAwD,2BAA2B;YAC7H,eAAe,QAAQ;cACrB;;;;iBAIG;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;YACA;;mBAEO;YACP,UAAU,sCAAsC,wBAAwB,yBAAyB,wDAAwD,2BAA2B;YACpL,iBAAiB,QAAQ;cACvB;cACA;;;;;eAKC;iBACE;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;UACA;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;;;eAGR;iBACE;mBACE;mBACA;mBACA,qCAAqC;mBACrC,QAAQ,SAAS,sBAAsB,wDAAwD;YACtG;YACA,QAAQ;;;iBAGH;mBACE;mBACA;mBACA,qCAAqC;mBACrC;mBACA,QAAQ;qBACN,QAAQ;qBACR,WAAW;qBACX;qBACA;qBACA,uCAAuC;aAC/C,wDAAwD;YACzD;cACE;cACA;cACA;gBACE;gBACA;;cAEF;cACA;cACA;cACA;;;;;eAKC,wBAAwB;eACxB,0BAA0B;eAC1B,+BAA+B;eAC/B,2BAA2B;;aAE7B;eACE;eACA,YAAY,8DAA8D;iBACxE;iBACA;mBACE;mBACA,qCAAqC,sDAAsD,6CAA6C,8CAA8C;mBACtL;;;eAGJ;;eAEA;eACA,YAAY,8DAA8D;iBACxE;iBACA;mBACE;mBACA,qCAAqC,0CAA0C;mBAC/E;;;eAGJ;;eAEA;eACA,YAAY,8DAA8D;iBACxE;iBACA;mBACE;mBACA,qCAAqC,uDAAuD,6CAA6C,+CAA+C;mBACxL;;;eAGJ;2DAC4C,sFAAsF;aACpI;eACE,yBAAyB;eACzB,gFAAgF;;aAElF;eACE;iBACE;mBACE;mBACA;mBACA;;;;aAIN;aACA;aACA;aACA;aACA;aACA;aACA,mEAAmE;aACnE;eACE;;aAEF,eAAe;;aAEf,eAAe;aACf,wBAAwB;aACxB,6BAA6B;aAC7B;eACE;iBACE;iBACA;;;;WAIN,wBAAwB;WACxB;WACA;IACP,SAAS,SAAS,eAAe;IACjC,aAAa,SAAS,eAAe;;WAE9B;aACE;aACA;;WAEF;aACE;aACA;aACA;aACA;aACA;aACA;;;WAGF;WACA;aACE,mBAAmB;aACnB,mBAAmB;;WAErB,mCAAmC;WACnC,iCAAiC;WACjC,uBAAuB,UAAU;aAC/B;aACA,aAAa,SAAS;;aAEtB;aACA;aACA;aACA;;aAEA;aACA;aACA,aAAa;aACb;;aAEA;aACA;aACA,OAAO;aACP,kBAAkB;MACzB;MACA"}
@@ -1,13 +1,15 @@
1
- import { A as pgJsonb, C as pgInet, E as pgInt8, F as pgText, J as pgVarchar, K as pgUuid, L as pgTime, M as pgNumeric, S as pgFloat8, T as pgInt4, U as pgTimetz, V as pgTimestamptz, Y as postgresDataTypes, _ as pgDate, d as pgBool, f as pgBytea, h as pgChar, k as pgJson, w as pgInt2, x as pgFloat4, z as pgTimestamp } from "./data-types-B7S_CHZd-C9JA40Ir.mjs";
2
- import { a as postgresCodecDescriptorRegistry } from "./codec-registry-qdVGkdp_-DCI2nWSt.mjs";
3
- import { h as postgresCreateNamespace } from "./postgres-schema-CNNW8eA3-CwosQz5e.mjs";
4
- import { c as postgresScalarAndNativeTypeConstructors } from "./authoring-DOlbnTzz-BWXtiq9i.mjs";
5
- import { t as postgresDataTypeEntries } from "./data-type-entries-DhUYJbVb-4NUH6vR_.mjs";
6
- import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-CGRsMMdO-tQxNSE_j.mjs";
1
+ import { r as inlineLiteral } from "./sql-utils-ylvfJ1RJ-03xGdSLI.mjs";
2
+ import { A as pgJsonb, C as pgInet, E as pgInt8, F as pgText, J as pgVarchar, K as pgUuid, L as pgTime, M as pgNumeric, Q as postgresYearText, S as pgFloat8, T as pgInt4, U as pgTimetz, V as pgTimestamptz, Y as postgresDataTypes, _ as pgDate, d as pgBool, f as pgBytea, h as pgChar, k as pgJson, w as pgInt2, x as pgFloat4, z as pgTimestamp } from "./data-types-DklKHVmp-Bl-nwUa-.mjs";
3
+ import { a as postgresCodecDescriptorRegistry } from "./codec-registry-DVjibYBY-BeOUp5fk.mjs";
4
+ import { h as postgresCreateNamespace } from "./postgres-schema-CEGf780E-cyGo2Sii.mjs";
5
+ import { c as postgresScalarAndNativeTypeConstructors } from "./authoring-Bm8PD9ls-clXbYDiN.mjs";
6
+ import { t as postgresDataTypeEntries } from "./data-type-entries-ZHPz2h_f-CNUmPGgf.mjs";
7
+ import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-C2F_xt0P-D7gfqNS0.mjs";
7
8
  import { n as defaultPrimaryKeyName, t as defaultForeignKeyName } from "./default-constraint-names-Cz9Yoeim-sUzOGvIm.mjs";
8
- import { l as buildPslDocumentAst, m as noInferredDefaults, p as noColumnDefaults, u as createPostgresDefaultMapping } from "./infer-psl-contract-BZnLgJj6-EjqMFHxE.mjs";
9
+ import { l as buildPslDocumentAst, m as noInferredDefaults, p as noColumnDefaults, u as createPostgresDefaultMapping } from "./infer-psl-contract-CT9H9Xnw-l2pNPAyO.mjs";
9
10
  import { createDataTypeLookup } from "@prisma/orm-framework/components/codec";
10
11
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
12
+ import { isSqlDataType, renderSqlTypeName } from "@prisma/orm-family-sql/contract/data-type";
11
13
  import { authoringTypeConstructorArguments } from "@prisma/orm-framework/components/authoring";
12
14
  import { SqlSchemaIR, SqlTableIR } from "@prisma/orm-family-sql/schema-ir/types";
13
15
  import { inferredTypeConstructors } from "@prisma/orm-family-sql/family/psl-build";
@@ -210,7 +212,10 @@ function junctionRelationFieldNames(tableA, tableB) {
210
212
  columnTypes: () => ({
211
213
  path: ["Int"],
212
214
  args: [],
213
- values: []
215
+ explicit: {
216
+ path: ["Int"],
217
+ values: []
218
+ }
214
219
  }),
215
220
  defaultMapping: createPostgresDefaultMapping(),
216
221
  defaultOf: noInferredDefaults,
@@ -245,6 +250,18 @@ function base64ToHex(base64) {
245
250
  if (!/^[A-Za-z0-9+/]*={0,2}$/.test(base64) || base64.length % 4 !== 0) return void 0;
246
251
  return `\\x${Buffer.from(base64, "base64").toString("hex")}`;
247
252
  }
253
+ /** The column's type as a migration writes it, such as `timestamp(6)`. */
254
+ function writtenTypeName(dataType, typeParams) {
255
+ const type = postgresDataTypes.find((candidate) => candidate.id === dataType);
256
+ if (type === void 0 || !isSqlDataType(type)) throw new InternalError(`The Postgres target registers no SQL data type "${dataType}".`);
257
+ return renderSqlTypeName(type, typeParams ?? {});
258
+ }
259
+ /** The SQL expression of a literal default, written as DDL writes the value: one literal, or for a list an array of them cast to an array of the column type. A date or time is written with the year text PostgreSQL reads. */
260
+ function literalDefaultExpression(stored, column) {
261
+ const typeName = writtenTypeName(column.dataType, column.typeParams);
262
+ const text = (value) => typeof value === "string" && DATE_TIME_TYPES.has(column.dataType) ? postgresYearText(value) : value;
263
+ return Array.isArray(stored) ? inlineLiteral(stored.map(text), `${typeName}[]`) : inlineLiteral(text(stored), typeName);
264
+ }
248
265
  /**
249
266
  * What the Postgres target supplies to the Prisma 7 interpreter. A `Bytes` or
250
267
  * `DateTime` default is read through the tag its column type's authoring entry
@@ -276,6 +293,7 @@ const prisma7PostgresBinding = {
276
293
  foreignKey: defaultForeignKeyName
277
294
  },
278
295
  junctionRelationFieldNames,
296
+ literalDefaultExpression,
279
297
  literalDefaultForm: ({ dataType, typeParams }) => {
280
298
  if (dataType === pgJson.id || dataType === pgJsonb.id) return { kind: "json" };
281
299
  const tag = tagOf(dataType);
@@ -304,4 +322,4 @@ const prisma7PostgresBinding = {
304
322
  //#endregion
305
323
  export { prisma7PostgresBinding as t };
306
324
 
307
- //# sourceMappingURL=prisma7-binding-CcrXBBbM.mjs.map
325
+ //# sourceMappingURL=prisma7-binding-BvvPWMwt.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prisma7-binding-BvvPWMwt.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/prisma7-binding.mjs"],"sourcesContent":["import { D as pgTime, I as pgUuid, N as pgTimetz, R as pgVarchar, S as pgNumeric, T as pgText, U as postgresYearText, _ as pgInt8, a as pgBytea, b as pgJsonb, c as pgDate, f as pgFloat4, g as pgInt4, h as pgInt2, i as pgBool, j as pgTimestamptz, k as pgTimestamp, m as pgInet, o as pgChar, p as pgFloat8, y as pgJson, z as postgresDataTypes } from \"./data-types-DklKHVmp.mjs\";\nimport { r as inlineLiteral } from \"./sql-utils-ylvfJ1RJ.mjs\";\nimport { t as postgresDataTypeEntries } from \"./data-type-entries-ZHPz2h_f.mjs\";\nimport { a as postgresCodecDescriptorRegistry } from \"./codec-registry-DVjibYBY.mjs\";\nimport { i as postgresCreateNamespace } from \"./postgres-schema-CEGf780E.mjs\";\nimport { c as postgresScalarAndNativeTypeConstructors } from \"./authoring-Bm8PD9ls.mjs\";\nimport { t as postgresTargetDescriptorMeta } from \"./descriptor-meta-C2F_xt0P.mjs\";\nimport { n as defaultPrimaryKeyName, t as defaultForeignKeyName } from \"./default-constraint-names-Cz9Yoeim.mjs\";\nimport { i as noInferredDefaults, r as createPostgresDefaultMapping, t as buildPslDocumentAst, u as noColumnDefaults } from \"./infer-psl-contract-CT9H9Xnw.mjs\";\nimport { createDataTypeLookup } from \"@internal/framework-components/codec\";\nimport { isSqlDataType, renderSqlTypeName } from \"@internal/sql-contract/data-type\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { authoringTypeConstructorArguments } from \"@internal/framework-components/authoring\";\nimport { SqlSchemaIR, SqlTableIR } from \"@internal/sql-schema-ir/types\";\nimport { inferredTypeConstructors } from \"@internal/family-sql/psl-build\";\nimport { toModelName } from \"@internal/family-sql/psl-infer\";\nimport { flatPslModels } from \"@internal/framework-components/psl-ast\";\n//#region src/core/prisma7-temporal-defaults.ts\nconst RFC_3339 = /^(\\d{4}-\\d{2}-\\d{2})[Tt ](\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?)([Zz]|[+-]\\d{2}:\\d{2})$/;\n/**\n* What a Prisma 7 `DateTime` default, such as `2024-01-02T03:04:05.123+02:00`, means on a column of `dataType`, as the body of the type's tag: `date` keeps the written date, `time` and `timestamp` the written wall-clock time without the offset, `timetz` the time with the written offset, and `timestamptz` the written instant, offset included. The tag reads the body as Postgres reads the default Prisma 7 writes. `undefined` for text that is not an RFC 3339 date and time, or a type that is not a date or time type.\n*/\nfunction prisma7TemporalTagBody(text, dataType) {\n\tconst match = RFC_3339.exec(text);\n\tif (match === null) return void 0;\n\tconst [, date = \"\", clock = \"\", zone = \"\"] = match;\n\tconst offset = zone.toUpperCase();\n\tswitch (dataType) {\n\t\tcase pgDate.id: return date;\n\t\tcase pgTime.id: return clock;\n\t\tcase pgTimetz.id: return `${clock}${offset}`;\n\t\tcase pgTimestamp.id: return `${date}T${clock}`;\n\t\tcase pgTimestamptz.id: return `${date}T${clock}${offset}`;\n\t\tdefault: return;\n\t}\n}\nconst MICROSECONDS_PER_SECOND = 1000000n;\nconst POSTGRES_EPOCH_MS = Date.UTC(2e3, 0, 1);\n/**\n* The value PostgreSQL stores for a Prisma 7 `DateTime` default with more fraction digits than a column of `dataType` with `precision` holds, written in the same RFC 3339 form: the fraction is first rounded to microseconds as PostgreSQL reads text, then to `precision` digits as it rounds a value for its column, a tie going away from midnight on 2000-01-01, PostgreSQL's epoch. `undefined` when the column holds the text as written, or for a date column, which keeps only the date.\n*/\nfunction prisma7TemporalStored(text, dataType, precision) {\n\tconst match = RFC_3339.exec(text);\n\tif (match === null || dataType === pgDate.id) return void 0;\n\tconst [, date = \"\", clock = \"\", zone = \"\"] = match;\n\tconst [hms = \"\", fraction = \"\"] = clock.split(\".\");\n\tif (fraction.length <= precision) return void 0;\n\tconst [year, month, day] = date.split(\"-\").map(Number);\n\tconst [hour, minute, second] = hms.split(\":\").map(Number);\n\tconst wallMs = (/* @__PURE__ */ new Date(0)).setUTCFullYear(year ?? 0, (month ?? 1) - 1, day ?? 1);\n\tconst wall = (BigInt(wallMs - POSTGRES_EPOCH_MS) / 1000n + BigInt((hour ?? 0) * 3600 + (minute ?? 0) * 60 + (second ?? 0))) * MICROSECONDS_PER_SECOND + microsecondsOf(fraction);\n\tconst instant = dataType === pgTimestamptz.id ? wall - offsetMicroseconds(zone) : wall;\n\tconst tieGoesEarlier = (dataType === pgTimestamp.id || dataType === pgTimestamptz.id) && instant < 0n;\n\treturn `${printedWall(roundedTo(wall, 10n ** BigInt(6 - precision), tieGoesEarlier), precision)}${zone}`;\n}\n/** PostgreSQL reads the fraction of a second as a double and rounds it to whole microseconds. */\nfunction microsecondsOf(fraction) {\n\tif (fraction.length <= 6) return BigInt(fraction.padEnd(6, \"0\"));\n\tconst scaled = Number(`0.${fraction}`) * 1e6;\n\tconst floor = Math.floor(scaled);\n\tconst rest = scaled - floor;\n\tconst rounded = rest > .5 || rest === .5 && floor % 2 === 1 ? floor + 1 : floor;\n\treturn BigInt(rounded);\n}\nfunction offsetMicroseconds(zone) {\n\tconst offset = /^([+-])(\\d{2}):(\\d{2})$/.exec(zone);\n\tif (offset === null) return 0n;\n\tconst [, sign, hours = \"0\", minutes = \"0\"] = offset;\n\tconst seconds = BigInt(Number(hours) * 3600 + Number(minutes) * 60);\n\treturn (sign === \"-\" ? -seconds : seconds) * MICROSECONDS_PER_SECOND;\n}\nfunction roundedTo(value, step, tieGoesEarlier) {\n\tconst rest = (value % step + step) % step;\n\tconst below = value - rest;\n\tconst twice = rest * 2n;\n\tif (twice > step || twice === step && !tieGoesEarlier) return below + step;\n\treturn below;\n}\nfunction printedWall(microseconds, precision) {\n\tconst rest = (microseconds % MICROSECONDS_PER_SECOND + MICROSECONDS_PER_SECOND) % MICROSECONDS_PER_SECOND;\n\tconst seconds = (microseconds - rest) / MICROSECONDS_PER_SECOND;\n\tconst at = new Date(POSTGRES_EPOCH_MS + Number(seconds) * 1e3);\n\tconst two = (n) => String(n).padStart(2, \"0\");\n\treturn `${`${String(at.getUTCFullYear()).padStart(4, \"0\")}-${two(at.getUTCMonth() + 1)}-${two(at.getUTCDate())}`}T${`${two(at.getUTCHours())}:${two(at.getUTCMinutes())}:${two(at.getUTCSeconds())}`}${precision === 0 ? \"\" : `.${String(rest).padStart(6, \"0\").slice(0, precision)}`}`;\n}\n//#endregion\n//#region src/core/prisma7-type-map.ts\nconst of = (type, params = {}) => ({\n\tdataType: type.id,\n\tparams\n});\n/**\n* What Prisma 7.10.0 creates in Postgres for each Prisma 7 scalar and `@db.*` native type, as a data type and its parameters. Derived from the SQL recorded in `test/integration/test/fixtures/prisma7-source/reference/migration.sql`. A `@db.*` attribute's own arguments replace the parameters; without any, the column gets these, so `@db.Char` is the `character(1)` Postgres stores for Prisma 7's `CHAR`.\n*/\nconst prisma7PostgresTypes = {\n\tscalars: {\n\t\tString: of(pgText),\n\t\tBoolean: of(pgBool),\n\t\tInt: of(pgInt4),\n\t\tBigInt: of(pgInt8),\n\t\tFloat: of(pgFloat8),\n\t\tDecimal: of(pgNumeric, {\n\t\t\tprecision: 65,\n\t\t\tscale: 30\n\t\t}),\n\t\tDateTime: of(pgTimestamp, { precision: 3 }),\n\t\tJson: of(pgJsonb),\n\t\tBytes: of(pgBytea)\n\t},\n\tnativeTypes: {\n\t\tText: of(pgText),\n\t\tVarChar: of(pgVarchar),\n\t\tChar: of(pgChar, { length: 1 }),\n\t\tUuid: of(pgUuid),\n\t\tInet: of(pgInet),\n\t\tBoolean: of(pgBool),\n\t\tInteger: of(pgInt4),\n\t\tSmallInt: of(pgInt2),\n\t\tBigInt: of(pgInt8),\n\t\tReal: of(pgFloat4),\n\t\tDoublePrecision: of(pgFloat8),\n\t\tDecimal: of(pgNumeric),\n\t\tTimestamp: of(pgTimestamp),\n\t\tTimestamptz: of(pgTimestamptz),\n\t\tDate: of(pgDate),\n\t\tTime: of(pgTime),\n\t\tTimetz: of(pgTimetz),\n\t\tJson: of(pgJson),\n\t\tJsonB: of(pgJsonb),\n\t\tByteA: of(pgBytea)\n\t}\n};\nconst marked = inferredTypeConstructors({\n\tauthoringTypes: postgresScalarAndNativeTypeConstructors,\n\tcodecLookup: postgresCodecDescriptorRegistry,\n\tdataTypeLookup: createDataTypeLookup(postgresDataTypes)\n});\n/**\n* The constructor marked `inferred` for the column's data type, with every parameter Prisma 7 gives the column as an argument. The reader builds a contract, so it keeps each parameter rather than the fewest arguments printed PSL writes.\n*/\nfunction mappingOf({ dataType, params }) {\n\tconst markedConstructor = marked.get(dataType);\n\tconst args = markedConstructor === void 0 ? void 0 : authoringTypeConstructorArguments(markedConstructor.descriptor, {\n\t\tcodecId: markedConstructor.descriptor.output.codecId,\n\t\ttypeParams: params\n\t});\n\tif (markedConstructor === void 0 || args === void 0) throw new InternalError(`No constructor marked inferred writes ${dataType} with these parameters.`);\n\treturn {\n\t\tconstructorName: markedConstructor.path.join(\".\"),\n\t\targs\n\t};\n}\nfunction mappingsOf(types) {\n\treturn Object.fromEntries(Object.entries(types).map(([name, type]) => [name, mappingOf(type)]));\n}\n/** {@link prisma7PostgresTypes} as the Prisma 7 reader takes it: each type's constructor call. */\nconst prisma7PostgresTypeMap = {\n\tscalars: mappingsOf(prisma7PostgresTypes.scalars),\n\tnativeTypes: mappingsOf(prisma7PostgresTypes.nativeTypes)\n};\n//#endregion\n//#region src/core/psl-infer/junction-relation-field-names.ts\nconst EMPTY_FOREIGN_KEY_EXTRAS = {\n\textraRelationsByTable: /* @__PURE__ */ new Map(),\n\tcrossSpaceFieldNamesByTable: /* @__PURE__ */ new Map(),\n\tdanglingForeignKeysByTable: /* @__PURE__ */ new Map()\n};\nfunction idTable(name) {\n\treturn new SqlTableIR({\n\t\tname,\n\t\tcolumns: { id: {\n\t\t\tname: \"id\",\n\t\t\ttypeText: \"int4\",\n\t\t\tnullable: false\n\t\t} },\n\t\tforeignKeys: [],\n\t\tuniques: [],\n\t\tindexes: [],\n\t\tprimaryKey: { columns: [\"id\"] }\n\t});\n}\n/**\n* The relation field names `contract infer` prints for an implicit\n* many-to-many junction table whose columns `A` and `B` reference `tableA`\n* and `tableB`, found by running infer's PSL construction on that table.\n*/\nfunction junctionRelationFieldNames(tableA, tableB) {\n\tlet junctionName = \"_junction\";\n\twhile ([tableA, tableB].some((table) => toModelName(table).name === toModelName(junctionName).name)) junctionName = `${junctionName}x`;\n\tconst column = (name) => ({\n\t\tname,\n\t\ttypeText: \"int4\",\n\t\tnullable: false\n\t});\n\tconst foreignKey = (columnName, referencedTable) => ({\n\t\tcolumns: [columnName],\n\t\treferencedTable,\n\t\treferencedColumns: [\"id\"]\n\t});\n\tconst junction = new SqlTableIR({\n\t\tname: junctionName,\n\t\tcolumns: {\n\t\t\tA: column(\"A\"),\n\t\t\tB: column(\"B\")\n\t\t},\n\t\tforeignKeys: [foreignKey(\"A\", tableA), foreignKey(\"B\", tableB)],\n\t\tuniques: [],\n\t\tindexes: [],\n\t\tprimaryKey: { columns: [\"A\", \"B\"] }\n\t});\n\tconst document = buildPslDocumentAst(new SqlSchemaIR({ tables: {\n\t\t[tableA]: idTable(tableA),\n\t\t[tableB]: idTable(tableB),\n\t\t[junctionName]: junction\n\t} }), {\n\t\tcolumnTypes: () => ({\n\t\t\tpath: [\"Int\"],\n\t\t\targs: [],\n\t\t\texplicit: {\n\t\t\t\tpath: [\"Int\"],\n\t\t\t\tvalues: []\n\t\t\t}\n\t\t}),\n\t\tdefaultMapping: createPostgresDefaultMapping(),\n\t\tdefaultOf: noInferredDefaults,\n\t\tcolumnDefaults: noColumnDefaults\n\t}, EMPTY_FOREIGN_KEY_EXTRAS);\n\tconst junctionModelName = toModelName(junctionName).name;\n\tconst fields = flatPslModels(document).find((model) => model.name === junctionModelName)?.fields;\n\tconst scalarFieldCount = Object.keys(junction.columns).length;\n\tconst [a = \"\", b = \"\"] = (fields ?? []).slice(scalarFieldCount).map((field) => field.name);\n\treturn [a, b];\n}\n//#endregion\n//#region src/core/prisma7-binding.ts\n/** The date and time types a Prisma 7 `DateTime` default can be written on. */\nconst DATE_TIME_TYPES = /* @__PURE__ */ new Set([\n\tpgTimestamp.id,\n\tpgTimestamptz.id,\n\tpgDate.id,\n\tpgTime.id,\n\tpgTimetz.id\n]);\nconst ENTRIES = postgresDataTypeEntries();\n/** The tag the authoring entry of `dataType` writes its values with. */\nfunction tagOf(dataType) {\n\tconst written = ENTRIES[dataType]?.written;\n\treturn written?.kind === \"tag\" ? written.tag : void 0;\n}\n/** A date or time column without a precision holds microseconds. */\nfunction precisionOf(typeParams) {\n\tconst precision = typeParams?.[\"precision\"];\n\treturn typeof precision === \"number\" ? precision : 6;\n}\nfunction base64ToHex(base64) {\n\tif (!/^[A-Za-z0-9+/]*={0,2}$/.test(base64) || base64.length % 4 !== 0) return void 0;\n\treturn `\\\\x${Buffer.from(base64, \"base64\").toString(\"hex\")}`;\n}\n/** The column's type as a migration writes it, such as `timestamp(6)`. */\nfunction writtenTypeName(dataType, typeParams) {\n\tconst type = postgresDataTypes.find((candidate) => candidate.id === dataType);\n\tif (type === void 0 || !isSqlDataType(type)) throw new InternalError(`The Postgres target registers no SQL data type \"${dataType}\".`);\n\treturn renderSqlTypeName(type, typeParams ?? {});\n}\n/** The SQL expression of a literal default, written as DDL writes the value: one literal, or for a list an array of them cast to an array of the column type. A date or time is written with the year text PostgreSQL reads. */\nfunction literalDefaultExpression(stored, column) {\n\tconst typeName = writtenTypeName(column.dataType, column.typeParams);\n\tconst text = (value) => typeof value === \"string\" && DATE_TIME_TYPES.has(column.dataType) ? postgresYearText(value) : value;\n\treturn Array.isArray(stored) ? inlineLiteral(stored.map(text), `${typeName}[]`) : inlineLiteral(text(stored), typeName);\n}\n/**\n* What the Postgres target supplies to the Prisma 7 interpreter. A `Bytes` or\n* `DateTime` default is read through the tag its column type's authoring entry\n* writes, as the current schema language reads it: a `Bytes` default's base64\n* as the hex body of `bytea`, and a `DateTime` default as the body of the date\n* or time tag that keeps what the written value means on the column.\n*/\nconst prisma7PostgresBinding = {\n\ttarget: postgresTargetDescriptorMeta,\n\tcreateNamespace: postgresCreateNamespace,\n\tproviders: [\"postgresql\", \"postgres\"],\n\ttypeMap: prisma7PostgresTypeMap,\n\tnativeEnum: {\n\t\tentityKind: \"native_enum\",\n\t\ttypeConstructor: [\"pg\", \"enum\"]\n\t},\n\tindexTypes: {\n\t\tBTree: \"btree\",\n\t\tHash: \"hash\",\n\t\tGin: \"gin\",\n\t\tGist: \"gist\",\n\t\tSpGist: \"spgist\",\n\t\tBrin: \"brin\"\n\t},\n\t/** `NAMEDATALEN - 1`. */\n\tidentifierMaxBytes: 63,\n\tdefaultConstraintNames: {\n\t\tprimaryKey: defaultPrimaryKeyName,\n\t\tforeignKey: defaultForeignKeyName\n\t},\n\tjunctionRelationFieldNames,\n\tliteralDefaultExpression,\n\tliteralDefaultForm: ({ dataType, typeParams }) => {\n\t\tif (dataType === pgJson.id || dataType === pgJsonb.id) return { kind: \"json\" };\n\t\tconst tag = tagOf(dataType);\n\t\tif (tag === void 0) return void 0;\n\t\tif (dataType === pgBytea.id) return {\n\t\t\tkind: \"tag\",\n\t\t\ttag,\n\t\t\tbody: base64ToHex\n\t\t};\n\t\tif (!DATE_TIME_TYPES.has(dataType)) return void 0;\n\t\treturn {\n\t\t\tkind: \"tag\",\n\t\t\ttag,\n\t\t\tbody: (text) => prisma7TemporalTagBody(text, dataType),\n\t\t\tfinerThanColumn: (text) => {\n\t\t\t\tconst heldDigits = precisionOf(typeParams);\n\t\t\t\tconst stored = prisma7TemporalStored(text, dataType, heldDigits);\n\t\t\t\treturn stored === void 0 ? void 0 : {\n\t\t\t\t\theldDigits,\n\t\t\t\t\tstored\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t}\n};\n//#endregion\nexport { prisma7PostgresBinding };\n\n//# sourceMappingURL=prisma7-binding.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,MAAM,WAAW;;;;AAIjB,SAAS,uBAAuB,MAAM,UAAU;CAC/C,MAAM,QAAQ,SAAS,KAAK,IAAI;CAChC,IAAI,UAAU,MAAM,OAAO,KAAK;CAChC,MAAM,GAAG,OAAO,IAAI,QAAQ,IAAI,OAAO,MAAM;CAC7C,MAAM,SAAS,KAAK,YAAY;CAChC,QAAQ,UAAR;EACC,KAAK,OAAO,IAAI,OAAO;EACvB,KAAK,OAAO,IAAI,OAAO;EACvB,KAAK,SAAS,IAAI,OAAO,GAAG,QAAQ;EACpC,KAAK,YAAY,IAAI,OAAO,GAAG,KAAK,GAAG;EACvC,KAAK,cAAc,IAAI,OAAO,GAAG,KAAK,GAAG,QAAQ;EACjD,SAAS;CACV;AACD;AACA,MAAM,0BAA0B;AAChC,MAAM,oBAAoB,KAAK,IAAI,KAAK,GAAG,CAAC;;;;AAI5C,SAAS,sBAAsB,MAAM,UAAU,WAAW;CACzD,MAAM,QAAQ,SAAS,KAAK,IAAI;CAChC,IAAI,UAAU,QAAQ,aAAa,OAAO,IAAI,OAAO,KAAK;CAC1D,MAAM,GAAG,OAAO,IAAI,QAAQ,IAAI,OAAO,MAAM;CAC7C,MAAM,CAAC,MAAM,IAAI,WAAW,MAAM,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P.mjs";
1
+ import { l as postgresError } from "./errors-DG6xgXgr-Cb1XcPcb.mjs";
2
+ import { q as isPostgresOpFactoryCall } from "./op-factory-call-BRaCqnFh-avSVdAgI.mjs";
3
3
  import { blindCast } from "@prisma/orm-framework/utils/casts";
4
4
  import { isThenable } from "@prisma/orm-framework/utils/promise";
5
- //#region ../../../3-targets/postgres/1-target/dist/render-ops-Dr6RDk6z.mjs
5
+ //#region ../../../3-targets/postgres/1-target/dist/render-ops-CbRkpwwx.mjs
6
6
  /**
7
7
  * Asserts an op materialised by an `OpFactoryCall` targets postgres. The
8
8
  * extension surface lets any contributor emit calls, so this is the
@@ -38,4 +38,4 @@ function renderOps(calls, lowerer) {
38
38
  //#endregion
39
39
  export { renderOps as t };
40
40
 
41
- //# sourceMappingURL=render-ops-Dr6RDk6z-CSGJsR6N.mjs.map
41
+ //# sourceMappingURL=render-ops-CbRkpwwx-C6wSWcTl.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-ops-Dr6RDk6z-CSGJsR6N.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/render-ops-Dr6RDk6z.mjs"],"sourcesContent":["import { l as postgresError } from \"./errors-Di_apgWJ.mjs\";\nimport { U as isPostgresOpFactoryCall } from \"./op-factory-call-CUu2s6l7.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { isThenable } from \"@internal/utils/promise\";\n//#region src/core/migrations/render-ops.ts\n/**\n* Asserts an op materialised by an `OpFactoryCall` targets postgres. The\n* extension surface lets any contributor emit calls, so this is the\n* integration boundary where a stray non-postgres op would otherwise\n* silently flow through to postgres-shaped renderers — exactly the\n* place to fail loudly with op metadata (`id` + `target.id`).\n*/\nfunction assertPostgresOp(op, callFactoryName) {\n\tconst targetId = blindCast(op).target?.id;\n\tif (targetId !== \"postgres\") throw postgresError(\"MIGRATION.TARGET_MISMATCH\", `renderOps: expected postgres op but got target.id=\"${String(targetId)}\" for op.id=\"${op.id}\" (factoryName=\"${callFactoryName}\"). An OpFactoryCall produced an op for a different target on the postgres planner path; check the call's target binding.`, { meta: {\n\t\topId: op.id,\n\t\ttargetId: String(targetId),\n\t\tfactoryName: callFactoryName\n\t} });\n}\nfunction checkedOp(opOrPromise, callFactoryName) {\n\tif (isThenable(opOrPromise)) {\n\t\tconst checked = opOrPromise.then((op) => {\n\t\t\tassertPostgresOp(op, callFactoryName);\n\t\t\treturn op;\n\t\t});\n\t\tchecked.catch(() => void 0);\n\t\treturn checked;\n\t}\n\tassertPostgresOp(opOrPromise, callFactoryName);\n\treturn opOrPromise;\n}\nfunction renderOps(calls, lowerer) {\n\treturn calls.flatMap((c) => {\n\t\treturn (isPostgresOpFactoryCall(c) ? c.toOps(lowerer) : [blindCast(c).toOp(lowerer)]).map((opOrPromise) => checkedOp(opOrPromise, c.factoryName));\n\t});\n}\n//#endregion\nexport { renderOps as t };\n\n//# sourceMappingURL=render-ops-Dr6RDk6z.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,iBAAiB,IAAI,iBAAiB;CAC9C,MAAM,WAAW,UAAU,EAAE,CAAC,CAAC,QAAQ;CACvC,IAAI,aAAa,YAAY,MAAM,cAAc,6BAA6B,sDAAsD,OAAO,QAAQ,EAAE,eAAe,GAAG,GAAG,kBAAkB,gBAAgB,4HAA4H,EAAE,MAAM;EAC/U,MAAM,GAAG;EACT,UAAU,OAAO,QAAQ;EACzB,aAAa;CACd,EAAE,CAAC;AACJ;AACA,SAAS,UAAU,aAAa,iBAAiB;CAChD,IAAI,WAAW,WAAW,GAAG;EAC5B,MAAM,UAAU,YAAY,MAAM,OAAO;GACxC,iBAAiB,IAAI,eAAe;GACpC,OAAO;EACR,CAAC;EACD,QAAQ,YAAY,KAAK,CAAC;EAC1B,OAAO;CACR;CACA,iBAAiB,aAAa,eAAe;CAC7C,OAAO;AACR;AACA,SAAS,UAAU,OAAO,SAAS;CAClC,OAAO,MAAM,SAAS,MAAM;EAC3B,QAAQ,wBAAwB,CAAC,IAAI,EAAE,MAAM,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,EAAA,CAAG,KAAK,gBAAgB,UAAU,aAAa,EAAE,WAAW,CAAC;CACjJ,CAAC;AACF"}
1
+ {"version":3,"file":"render-ops-CbRkpwwx-C6wSWcTl.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/render-ops-CbRkpwwx.mjs"],"sourcesContent":["import { l as postgresError } from \"./errors-DG6xgXgr.mjs\";\nimport { U as isPostgresOpFactoryCall } from \"./op-factory-call-BRaCqnFh.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { isThenable } from \"@internal/utils/promise\";\n//#region src/core/migrations/render-ops.ts\n/**\n* Asserts an op materialised by an `OpFactoryCall` targets postgres. The\n* extension surface lets any contributor emit calls, so this is the\n* integration boundary where a stray non-postgres op would otherwise\n* silently flow through to postgres-shaped renderers — exactly the\n* place to fail loudly with op metadata (`id` + `target.id`).\n*/\nfunction assertPostgresOp(op, callFactoryName) {\n\tconst targetId = blindCast(op).target?.id;\n\tif (targetId !== \"postgres\") throw postgresError(\"MIGRATION.TARGET_MISMATCH\", `renderOps: expected postgres op but got target.id=\"${String(targetId)}\" for op.id=\"${op.id}\" (factoryName=\"${callFactoryName}\"). An OpFactoryCall produced an op for a different target on the postgres planner path; check the call's target binding.`, { meta: {\n\t\topId: op.id,\n\t\ttargetId: String(targetId),\n\t\tfactoryName: callFactoryName\n\t} });\n}\nfunction checkedOp(opOrPromise, callFactoryName) {\n\tif (isThenable(opOrPromise)) {\n\t\tconst checked = opOrPromise.then((op) => {\n\t\t\tassertPostgresOp(op, callFactoryName);\n\t\t\treturn op;\n\t\t});\n\t\tchecked.catch(() => void 0);\n\t\treturn checked;\n\t}\n\tassertPostgresOp(opOrPromise, callFactoryName);\n\treturn opOrPromise;\n}\nfunction renderOps(calls, lowerer) {\n\treturn calls.flatMap((c) => {\n\t\treturn (isPostgresOpFactoryCall(c) ? c.toOps(lowerer) : [blindCast(c).toOp(lowerer)]).map((opOrPromise) => checkedOp(opOrPromise, c.factoryName));\n\t});\n}\n//#endregion\nexport { renderOps as t };\n\n//# sourceMappingURL=render-ops-CbRkpwwx.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,iBAAiB,IAAI,iBAAiB;CAC9C,MAAM,WAAW,UAAU,EAAE,CAAC,CAAC,QAAQ;CACvC,IAAI,aAAa,YAAY,MAAM,cAAc,6BAA6B,sDAAsD,OAAO,QAAQ,EAAE,eAAe,GAAG,GAAG,kBAAkB,gBAAgB,4HAA4H,EAAE,MAAM;EAC/U,MAAM,GAAG;EACT,UAAU,OAAO,QAAQ;EACzB,aAAa;CACd,EAAE,CAAC;AACJ;AACA,SAAS,UAAU,aAAa,iBAAiB;CAChD,IAAI,WAAW,WAAW,GAAG;EAC5B,MAAM,UAAU,YAAY,MAAM,OAAO;GACxC,iBAAiB,IAAI,eAAe;GACpC,OAAO;EACR,CAAC;EACD,QAAQ,YAAY,KAAK,CAAC;EAC1B,OAAO;CACR;CACA,iBAAiB,aAAa,eAAe;CAC7C,OAAO;AACR;AACA,SAAS,UAAU,OAAO,SAAS;CAClC,OAAO,MAAM,SAAS,MAAM;EAC3B,QAAQ,wBAAwB,CAAC,IAAI,EAAE,MAAM,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,EAAA,CAAG,KAAK,gBAAgB,UAAU,aAAa,EAAE,WAAW,CAAC;CACjJ,CAAC;AACF"}
@@ -1,7 +1,7 @@
1
1
  import { t as DEFAULT_NAMESPACE_ID } from "./namespace-ids-xtp_ZY86-Cxc0dBbO.mjs";
2
- import { d as isPostgresSchema } from "./postgres-schema-CNNW8eA3-CwosQz5e.mjs";
2
+ import { d as isPostgresSchema } from "./postgres-schema-CEGf780E-cyGo2Sii.mjs";
3
3
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
4
- //#region ../../../3-targets/postgres/1-target/dist/resolve-ddl-schema-p68Q5F1u.mjs
4
+ //#region ../../../3-targets/postgres/1-target/dist/resolve-ddl-schema-BhOYD95_.mjs
5
5
  /**
6
6
  * Given the contract's storage and a namespace id, returns the live Postgres
7
7
  * DDL schema name that namespace maps to. A named Postgres namespace dispatches
@@ -31,4 +31,4 @@ function ddlSchemaOfCallSchema(callSchemaName) {
31
31
  //#endregion
32
32
  export { emissionSchemaForNamespace as n, resolveDdlSchemaForNamespaceStorage as r, ddlSchemaOfCallSchema as t };
33
33
 
34
- //# sourceMappingURL=resolve-ddl-schema-p68Q5F1u-DZAQNXpi.mjs.map
34
+ //# sourceMappingURL=resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-ddl-schema-p68Q5F1u-DZAQNXpi.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/resolve-ddl-schema-p68Q5F1u.mjs"],"sourcesContent":["import { t as DEFAULT_NAMESPACE_ID } from \"./namespace-ids-xtp_ZY86.mjs\";\nimport { r as isPostgresSchema } from \"./postgres-schema-CNNW8eA3.mjs\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\n//#region src/core/migrations/resolve-ddl-schema.ts\n/**\n* Given the contract's storage and a namespace id, returns the live Postgres\n* DDL schema name that namespace maps to. A named Postgres namespace dispatches\n* to its `ddlSchemaName(storage)`; the unbound sentinel resolves to\n* `DEFAULT_NAMESPACE_ID` (the search-path default for offline planning); a\n* bare object payload (used by some tests) falls back to the namespace id\n* itself.\n*/\nfunction resolveDdlSchemaForNamespaceStorage(storage, namespaceId) {\n\tif (namespaceId === UNBOUND_NAMESPACE_ID) return DEFAULT_NAMESPACE_ID;\n\tconst namespace = storage.namespaces[namespaceId];\n\tif (namespace && isPostgresSchema(namespace)) return namespace.ddlSchemaName(storage);\n\treturn namespaceId;\n}\n/**\n* The schema name a planned call carries for a namespace: the unbound sentinel stays as it is, so the call renders without a schema, and a named namespace resolves to its DDL schema.\n*/\nfunction emissionSchemaForNamespace(contract, namespaceId) {\n\treturn namespaceId === UNBOUND_NAMESPACE_ID ? UNBOUND_NAMESPACE_ID : resolveDdlSchemaForNamespaceStorage(contract.storage, namespaceId);\n}\n/**\n* The live DDL schema a call's schema name stands for: the unbound sentinel is `DEFAULT_NAMESPACE_ID`, and any other name is already a DDL schema.\n*/\nfunction ddlSchemaOfCallSchema(callSchemaName) {\n\treturn callSchemaName === UNBOUND_NAMESPACE_ID ? DEFAULT_NAMESPACE_ID : callSchemaName;\n}\n//#endregion\nexport { emissionSchemaForNamespace as n, resolveDdlSchemaForNamespaceStorage as r, ddlSchemaOfCallSchema as t };\n\n//# sourceMappingURL=resolve-ddl-schema-p68Q5F1u.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,oCAAoC,SAAS,aAAa;CAClE,IAAI,gBAAgB,sBAAsB,OAAO;CACjD,MAAM,YAAY,QAAQ,WAAW;CACrC,IAAI,aAAa,iBAAiB,SAAS,GAAG,OAAO,UAAU,cAAc,OAAO;CACpF,OAAO;AACR;;;;AAIA,SAAS,2BAA2B,UAAU,aAAa;CAC1D,OAAO,gBAAgB,uBAAuB,uBAAuB,oCAAoC,SAAS,SAAS,WAAW;AACvI;;;;AAIA,SAAS,sBAAsB,gBAAgB;CAC9C,OAAO,mBAAmB,uBAAuB,uBAAuB;AACzE"}
1
+ {"version":3,"file":"resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/resolve-ddl-schema-BhOYD95_.mjs"],"sourcesContent":["import { t as DEFAULT_NAMESPACE_ID } from \"./namespace-ids-xtp_ZY86.mjs\";\nimport { r as isPostgresSchema } from \"./postgres-schema-CEGf780E.mjs\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\n//#region src/core/migrations/resolve-ddl-schema.ts\n/**\n* Given the contract's storage and a namespace id, returns the live Postgres\n* DDL schema name that namespace maps to. A named Postgres namespace dispatches\n* to its `ddlSchemaName(storage)`; the unbound sentinel resolves to\n* `DEFAULT_NAMESPACE_ID` (the search-path default for offline planning); a\n* bare object payload (used by some tests) falls back to the namespace id\n* itself.\n*/\nfunction resolveDdlSchemaForNamespaceStorage(storage, namespaceId) {\n\tif (namespaceId === UNBOUND_NAMESPACE_ID) return DEFAULT_NAMESPACE_ID;\n\tconst namespace = storage.namespaces[namespaceId];\n\tif (namespace && isPostgresSchema(namespace)) return namespace.ddlSchemaName(storage);\n\treturn namespaceId;\n}\n/**\n* The schema name a planned call carries for a namespace: the unbound sentinel stays as it is, so the call renders without a schema, and a named namespace resolves to its DDL schema.\n*/\nfunction emissionSchemaForNamespace(contract, namespaceId) {\n\treturn namespaceId === UNBOUND_NAMESPACE_ID ? UNBOUND_NAMESPACE_ID : resolveDdlSchemaForNamespaceStorage(contract.storage, namespaceId);\n}\n/**\n* The live DDL schema a call's schema name stands for: the unbound sentinel is `DEFAULT_NAMESPACE_ID`, and any other name is already a DDL schema.\n*/\nfunction ddlSchemaOfCallSchema(callSchemaName) {\n\treturn callSchemaName === UNBOUND_NAMESPACE_ID ? DEFAULT_NAMESPACE_ID : callSchemaName;\n}\n//#endregion\nexport { emissionSchemaForNamespace as n, resolveDdlSchemaForNamespaceStorage as r, ddlSchemaOfCallSchema as t };\n\n//# sourceMappingURL=resolve-ddl-schema-BhOYD95_.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,oCAAoC,SAAS,aAAa;CAClE,IAAI,gBAAgB,sBAAsB,OAAO;CACjD,MAAM,YAAY,QAAQ,WAAW;CACrC,IAAI,aAAa,iBAAiB,SAAS,GAAG,OAAO,UAAU,cAAc,OAAO;CACpF,OAAO;AACR;;;;AAIA,SAAS,2BAA2B,UAAU,aAAa;CAC1D,OAAO,gBAAgB,uBAAuB,uBAAuB,oCAAoC,SAAS,SAAS,WAAW;AACvI;;;;AAIA,SAAS,sBAAsB,gBAAgB;CAC9C,OAAO,mBAAmB,uBAAuB,uBAAuB;AACzE"}
@@ -1,4 +1,4 @@
1
- import "./date-time-now-generators-C2aktlrc-uf9LqU6E.mjs";
1
+ import "./date-time-now-generators-BZj5G1E3-BylrCrgW.mjs";
2
2
  import "./full-text-collection-method-DvmPrdZL-B1FlBM0E.mjs";
3
3
  import "./postgres-contract-view-BFzIDwwN-hL3QLe_b.mjs";
4
4
  import { AnyCodecDescriptor } from "@prisma/orm-framework/components/codec";
@@ -37,4 +37,4 @@ declare const postgresRuntimeTargetDescriptor: RuntimeTargetDescriptor<'sql', 'p
37
37
  };
38
38
  //#endregion
39
39
  export { postgresRuntimeTargetDescriptor as i, PostgresListDecoder as n, PostgresRuntimeTargetInstance as r, PostgresContractSerializer as t };
40
- //# sourceMappingURL=runtime-DGgnFCG7.d.mts.map
40
+ //# sourceMappingURL=runtime-BbPgK4gH.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-DGgnFCG7.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;;;;cAec,mCAAmC,0BAA0B,SAAS;EAClF,qBAAqB;EACrB,YAAY,gCAAgC;YAClC,yBAAyB,cAAc,KAAK,0BAA0B,YAAY;EAC5F,kBAAkB,UAAU,SAAS,cAAc;;;;UAI3C,sCAAsC;KAC3C,uBAAuB,oBAAoB,gBAAgB,mBAAmB,qBAAqB;;;;;;;cAO1F,iCAAiC,2CAA2C;WAC/E,uBAAuB;WACvB,mBAAmB;WACnB,uBAAuB;WACvB,kCAAkC"}
1
+ {"version":3,"file":"runtime-BbPgK4gH.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;;;;cAec,mCAAmC,0BAA0B,SAAS;EAClF,qBAAqB;EACrB,YAAY,gCAAgC;YAClC,yBAAyB,cAAc,KAAK,0BAA0B,YAAY;EAC5F,kBAAkB,UAAU,SAAS,cAAc;;;;UAI3C,sCAAsC;KAC3C,uBAAuB,oBAAoB,gBAAgB,mBAAmB,qBAAqB;;;;;;;cAO1F,iCAAiC,2CAA2C;WAC/E,uBAAuB;WACvB,mBAAmB;WACnB,uBAAuB;WACvB,kCAAkC"}
@@ -1,5 +1,5 @@
1
- import { i as quoteIdentifier, n as escapeLiteral } from "./sql-utils-0j_6QstU-DAfnt5Mu.mjs";
2
- import { D as pgInterval, E as pgInt8, F as pgText, J as pgVarchar, L as pgTime, M as pgNumeric, S as pgFloat8, T as pgInt4, U as pgTimetz, V as pgTimestamptz, d as pgBool, h as pgChar, l as pgBit, q as pgVarbit, w as pgInt2, x as pgFloat4, z as pgTimestamp } from "./data-types-B7S_CHZd-C9JA40Ir.mjs";
1
+ import { a as quoteIdentifier, n as escapeLiteral } from "./sql-utils-ylvfJ1RJ-03xGdSLI.mjs";
2
+ import { D as pgInterval, E as pgInt8, F as pgText, J as pgVarchar, L as pgTime, M as pgNumeric, S as pgFloat8, T as pgInt4, U as pgTimetz, V as pgTimestamptz, d as pgBool, h as pgChar, l as pgBit, q as pgVarbit, w as pgInt2, x as pgFloat4, z as pgTimestamp } from "./data-types-DklKHVmp-Bl-nwUa-.mjs";
3
3
  import { LiteralExpr, collectOrderedParamRefs, lockOptionCapabilities, lockStrengthCapabilities, missingCapability } from "@prisma/orm-family-sql/relational-core/ast";
4
4
  import { dataTypeParams } from "@prisma/orm-framework/components/codec";
5
5
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
@@ -558,4 +558,4 @@ function renderRawExpr(node, contract, pim) {
558
558
  //#endregion
559
559
  export { renderLoweredSql as n, adapterError as t };
560
560
 
561
- //# sourceMappingURL=sql-renderer-BdWJPa5F-DUvahuXZ.mjs.map
561
+ //# sourceMappingURL=sql-renderer-BdWJPa5F-B8cdiqmK.mjs.map