@prisma/orm-target-postgres 8.0.0-rc.18-dev.18 → 8.0.0-rc.18-dev.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-C2XsLnXe-DLYvtWWr.mjs → adapter-C2XsLnXe-BElMJPZi.mjs} +5 -5
- package/dist/{adapter-C2XsLnXe-DLYvtWWr.mjs.map → adapter-C2XsLnXe-BElMJPZi.mjs.map} +1 -1
- package/dist/{adapter-BBw3Q5WW.d.mts → adapter-CA0jY1EK.d.mts} +9 -9
- package/dist/{adapter-BBw3Q5WW.d.mts.map → adapter-CA0jY1EK.d.mts.map} +1 -1
- package/dist/adapter.d.mts +4 -4
- package/dist/adapter.mjs +5 -5
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__control.d.mts +2 -2
- package/dist/adapter__control.mjs +22 -12
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.mjs +8 -13
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/adapter__types.d.mts +2 -2
- package/dist/{aggregates-D2J3oSFz.d.mts → aggregates-B3lIBjGK.d.mts} +8 -8
- package/dist/{aggregates-D2J3oSFz.d.mts.map → aggregates-B3lIBjGK.d.mts.map} +1 -1
- package/dist/{authoring-DAorKc0L-DpWukVxn.mjs → authoring-mmK5aduF-BltVG_HJ.mjs} +171 -40
- package/dist/authoring-mmK5aduF-BltVG_HJ.mjs.map +1 -0
- package/dist/{autoincrement-widths-BLCRgB3t-BWl20PCZ.mjs → autoincrement-widths-djl9Gw7k-C4Vk6s7I.mjs} +3 -3
- package/dist/{autoincrement-widths-BLCRgB3t-BWl20PCZ.mjs.map → autoincrement-widths-djl9Gw7k-C4Vk6s7I.mjs.map} +1 -1
- package/dist/{check-expressions-CVLs1Cgf-DaMRk-Q4.mjs → check-expressions-DoxKokL1-RVvYRdA6.mjs} +3 -3
- package/dist/{check-expressions-CVLs1Cgf-DaMRk-Q4.mjs.map → check-expressions-DoxKokL1-RVvYRdA6.mjs.map} +1 -1
- package/dist/{codec-registry-pg69n-o5-D8K3p40k.mjs → codec-registry-CvKdYTYj-4xXqgKKs.mjs} +4 -4
- package/dist/{codec-registry-pg69n-o5-D8K3p40k.mjs.map → codec-registry-CvKdYTYj-4xXqgKKs.mjs.map} +1 -1
- package/dist/{codec-type-map-eTeOtvJB-c3tjqXBa.d.mts → codec-type-map-ulrHZjWI-DMkq8jy2.d.mts} +3 -3
- package/dist/{codec-type-map-eTeOtvJB-c3tjqXBa.d.mts.map → codec-type-map-ulrHZjWI-DMkq8jy2.d.mts.map} +1 -1
- package/dist/{codec-types-Cf0IZ0WQ-CMVP-ecb.d.mts → codec-types-DX-72F9v-CORaQjWv.d.mts} +4 -4
- package/dist/{codec-types-Cf0IZ0WQ-CMVP-ecb.d.mts.map → codec-types-DX-72F9v-CORaQjWv.d.mts.map} +1 -1
- package/dist/codec-types-DoxsMXp7.d.mts +2 -0
- package/dist/{codecs-DanVXZ_F-D1_8_x3j.d.mts → codecs-ByHL7NZ0-B_903MRF.d.mts} +4 -6
- package/dist/codecs-ByHL7NZ0-B_903MRF.d.mts.map +1 -0
- package/dist/{codecs-CaWZPjFi-hllqyGdW.mjs → codecs-D183NDmb-DKryvPH2.mjs} +17 -11
- package/dist/codecs-D183NDmb-DKryvPH2.mjs.map +1 -0
- package/dist/{codecs-B-8uGsxq.d.mts → codecs-J4SSxTf4.d.mts} +2 -2
- package/dist/{codecs-B-8uGsxq.d.mts.map → codecs-J4SSxTf4.d.mts.map} +1 -1
- package/dist/{contract-contributions-C8XjOBIq-BuK0mnF9.mjs → contract-contributions-C8XjOBIq-OyqZjJ7a.mjs} +7 -7
- package/dist/{contract-contributions-C8XjOBIq-BuK0mnF9.mjs.map → contract-contributions-C8XjOBIq-OyqZjJ7a.mjs.map} +1 -1
- package/dist/{contract-free-BhaRUqcK.mjs → contract-free-CiUW36L2.mjs} +3 -3
- package/dist/{contract-free-BhaRUqcK.mjs.map → contract-free-CiUW36L2.mjs.map} +1 -1
- package/dist/{control--DStfvkM.mjs → control-CWT2tHUL.mjs} +152 -96
- package/dist/control-CWT2tHUL.mjs.map +1 -0
- package/dist/{control-Mc7bM0Ho.d.mts → control-D6tg3XmI.d.mts} +2 -2
- package/dist/{control-Mc7bM0Ho.d.mts.map → control-D6tg3XmI.d.mts.map} +1 -1
- package/dist/{control-Co7_lX4j.d.mts → control-DmWVxA23.d.mts} +2 -2
- package/dist/{control-Co7_lX4j.d.mts.map → control-DmWVxA23.d.mts.map} +1 -1
- package/dist/{control-policy-DrK_x_Qd-BcT8Z5TM.mjs → control-policy-BdfDPcjX-BueP9PBT.mjs} +9 -9
- package/dist/{control-policy-DrK_x_Qd-BcT8Z5TM.mjs.map → control-policy-BdfDPcjX-BueP9PBT.mjs.map} +1 -1
- package/dist/{data-type-entries-DECnlc43-BYnGiJLy.mjs → data-type-entries-KJ4Mn8C5-DY3rLz33.mjs} +3 -3
- package/dist/{data-type-entries-DECnlc43-BYnGiJLy.mjs.map → data-type-entries-KJ4Mn8C5-DY3rLz33.mjs.map} +1 -1
- package/dist/{data-types-BIvSDTYw-AK5Is74Z.mjs → data-types-CQs1yW4F-CSexn8mK.mjs} +4 -4
- package/dist/{data-types-BIvSDTYw-AK5Is74Z.mjs.map → data-types-CQs1yW4F-CSexn8mK.mjs.map} +1 -1
- package/dist/date-time-now-generators-CMkXVbMG-CYwplAuf.d.mts +45 -0
- package/dist/date-time-now-generators-CMkXVbMG-CYwplAuf.d.mts.map +1 -0
- package/dist/{ddl-CU7p3mkk-mKabtlGh.mjs → ddl-V9Yxnoa6-BcStSw33.mjs} +3 -3
- package/dist/{ddl-CU7p3mkk-mKabtlGh.mjs.map → ddl-V9Yxnoa6-BcStSw33.mjs.map} +1 -1
- package/dist/{descriptor-meta-_qLKFkLd-Cb4H-vZf.mjs → descriptor-meta-_qLKFkLd-B8nEWdKp.mjs} +3 -3
- package/dist/{descriptor-meta-_qLKFkLd-Cb4H-vZf.mjs.map → descriptor-meta-_qLKFkLd-B8nEWdKp.mjs.map} +1 -1
- package/dist/{descriptor-meta-CNFvhRlG-8_vCDF2W.mjs → descriptor-meta-axWY-kHl-Bt2_NjH4.mjs} +9 -9
- package/dist/{descriptor-meta-CNFvhRlG-8_vCDF2W.mjs.map → descriptor-meta-axWY-kHl-Bt2_NjH4.mjs.map} +1 -1
- package/dist/{descriptor-meta-runtime-BKtwKsDm-BirZ12T5.mjs → descriptor-meta-runtime-CMaPJG46-CPYTMJ7t.mjs} +3 -3
- package/dist/{descriptor-meta-runtime-BKtwKsDm-BirZ12T5.mjs.map → descriptor-meta-runtime-CMaPJG46-CPYTMJ7t.mjs.map} +1 -1
- package/dist/{diff-database-schema-C6fmfclD-Dqn9QqOO.mjs → diff-database-schema-DLIpM5BX-DlEJquxk.mjs} +9 -9
- package/dist/{diff-database-schema-C6fmfclD-Dqn9QqOO.mjs.map → diff-database-schema-DLIpM5BX-DlEJquxk.mjs.map} +1 -1
- package/dist/{errors-DYyzTYzE-39CV_aMo.mjs → errors-BrhQYgdL-D_lIrddD.mjs} +14 -3
- package/dist/{errors-DYyzTYzE-39CV_aMo.mjs.map → errors-BrhQYgdL-D_lIrddD.mjs.map} +1 -1
- package/dist/{full-text-DyeP0p9V.mjs → full-text-CSMAiOYz.mjs} +3 -3
- package/dist/{full-text-DyeP0p9V.mjs.map → full-text-CSMAiOYz.mjs.map} +1 -1
- package/dist/{full-text-Ht1M3vH4.d.mts → full-text-OAJrtCtv.d.mts} +3 -3
- package/dist/{full-text-Ht1M3vH4.d.mts.map → full-text-OAJrtCtv.d.mts.map} +1 -1
- package/dist/{full-text-collection-method-Dye6N2u5-DGPEZRTD.d.mts → full-text-collection-method-BIqQH9XN-CkW2x4u2.d.mts} +4 -4
- package/dist/full-text-collection-method-BIqQH9XN-CkW2x4u2.d.mts.map +1 -0
- package/dist/{full-text-index-definition-D-QC3DO2-DXbQitDn.mjs → full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs} +3 -3
- package/dist/{full-text-index-definition-D-QC3DO2-DXbQitDn.mjs.map → full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs.map} +1 -1
- package/dist/{full-text-parsers-DHtcrdrH-DpbFRMEu.mjs → full-text-parsers-CrMjTR2n-CHDNR_vE.mjs} +4 -4
- package/dist/{full-text-parsers-DHtcrdrH-DpbFRMEu.mjs.map → full-text-parsers-CrMjTR2n-CHDNR_vE.mjs.map} +1 -1
- package/dist/{full-text-search-document-DYNz29YC-CfVTPwIL.mjs → full-text-search-document-DbegbX0J-jrbc8kfp.mjs} +5 -5
- package/dist/{full-text-search-document-DYNz29YC-CfVTPwIL.mjs.map → full-text-search-document-DbegbX0J-jrbc8kfp.mjs.map} +1 -1
- package/dist/{index-types-Bdy_UGfY-CqEPukzT.mjs → index-types-BihjrAAq-ktkeKE97.mjs} +3 -3
- package/dist/{index-types-Bdy_UGfY-CqEPukzT.mjs.map → index-types-BihjrAAq-ktkeKE97.mjs.map} +1 -1
- package/dist/{infer-psl-contract-hJUt-dtW-iwec11iw.mjs → infer-psl-contract-CKP3nwjB-x1_ji7Z9.mjs} +8 -8
- package/dist/{infer-psl-contract-hJUt-dtW-iwec11iw.mjs.map → infer-psl-contract-CKP3nwjB-x1_ji7Z9.mjs.map} +1 -1
- package/dist/migration-CbOh59ZJ.mjs.map +1 -1
- package/dist/{op-factory-call-DJz5P0h1-Cs7DC10N.mjs → op-factory-call-B-EoYQIO-BIfzqVX6.mjs} +7 -7
- package/dist/{op-factory-call-DJz5P0h1-Cs7DC10N.mjs.map → op-factory-call-B-EoYQIO-BIfzqVX6.mjs.map} +1 -1
- package/dist/{operation-types--RnlMCZS-qXBhNS1Q.d.mts → operation-types-CK6URXeD-BsCK-mcK.d.mts} +3 -3
- package/dist/{operation-types--RnlMCZS-qXBhNS1Q.d.mts.map → operation-types-CK6URXeD-BsCK-mcK.d.mts.map} +1 -1
- package/dist/operation-types-ECV4mkfb.d.mts +1 -0
- package/dist/{pack-_zBIeh-3.d.mts → pack-CcQNl-gj.d.mts} +251 -15
- package/dist/pack-CcQNl-gj.d.mts.map +1 -0
- package/dist/{planner-ewMcuoHd-DwCCA-Kc.mjs → planner-BNoWx3rb-rkajA65G.mjs} +10 -10
- package/dist/{planner-ewMcuoHd-DwCCA-Kc.mjs.map → planner-BNoWx3rb-rkajA65G.mjs.map} +1 -1
- package/dist/{planner-ddl-builders-D0r6cT4A-D9Wm1myF.mjs → planner-ddl-builders-Bo_8ozOV-AMIs8Og7.mjs} +3 -3
- package/dist/{planner-ddl-builders-D0r6cT4A-D9Wm1myF.mjs.map → planner-ddl-builders-Bo_8ozOV-AMIs8Og7.mjs.map} +1 -1
- package/dist/{planner-identity-values-CWUHmsB9-CBQ00C_3.mjs → planner-identity-values--pbIuAZR-lgKcM-Zu.mjs} +3 -3
- package/dist/{planner-identity-values-CWUHmsB9-CBQ00C_3.mjs.map → planner-identity-values--pbIuAZR-lgKcM-Zu.mjs.map} +1 -1
- package/dist/{planner-produced-postgres-migration-Dy5zHiFB-BDpfjZD5.mjs → planner-produced-postgres-migration-BIKLMKpf-B5h4hpvf.mjs} +4 -4
- package/dist/{planner-produced-postgres-migration-Dy5zHiFB-BDpfjZD5.mjs.map → planner-produced-postgres-migration-BIKLMKpf-B5h4hpvf.mjs.map} +1 -1
- package/dist/{planner-sql-checks-D0w3Kt_G-Bh1Vlz0T.mjs → planner-sql-checks-pAQfWJz_-CosbjrRp.mjs} +6 -6
- package/dist/{planner-sql-checks-D0w3Kt_G-Bh1Vlz0T.mjs.map → planner-sql-checks-pAQfWJz_-CosbjrRp.mjs.map} +1 -1
- package/dist/{postgres-codec-traits-DY-tFVjg-CjMZUKNx.mjs → postgres-codec-traits-Da2UyO_9-BsGjYJHf.mjs} +3 -3
- package/dist/{postgres-codec-traits-DY-tFVjg-CjMZUKNx.mjs.map → postgres-codec-traits-Da2UyO_9-BsGjYJHf.mjs.map} +1 -1
- package/dist/{postgres-contract-view-o6bwzfH6-D4jvq9PJ.mjs → postgres-contract-view-csjnSNLt-M2QaYBn0.mjs} +8 -8
- package/dist/{postgres-contract-view-o6bwzfH6-D4jvq9PJ.mjs.map → postgres-contract-view-csjnSNLt-M2QaYBn0.mjs.map} +1 -1
- package/dist/{postgres-migration-Dtkb6eDn-CrButm3l.mjs → postgres-migration-BGkcs09r-BmUXCs80.mjs} +11 -11
- package/dist/{postgres-migration-Dtkb6eDn-CrButm3l.mjs.map → postgres-migration-BGkcs09r-BmUXCs80.mjs.map} +1 -1
- package/dist/{postgres-schema-Ysxbqkzr-hFRwS-zT.mjs → postgres-schema-BtW3Sw0F-CH3NqoOo.mjs} +4 -4
- package/dist/{postgres-schema-Ysxbqkzr-hFRwS-zT.mjs.map → postgres-schema-BtW3Sw0F-CH3NqoOo.mjs.map} +1 -1
- package/dist/{prisma7-binding-DGp7Ea38.d.mts → prisma7-binding-XSuxkjqy.d.mts} +258 -17
- package/dist/prisma7-binding-XSuxkjqy.d.mts.map +1 -0
- package/dist/{prisma7-binding-BsucflfD.mjs → prisma7-binding-ZUOUC530.mjs} +8 -8
- package/dist/prisma7-binding-ZUOUC530.mjs.map +1 -0
- package/dist/{render-ops-Db7MhDM0-DsIQjmcY.mjs → render-ops-WhXRiDGu-LZMJf0aV.mjs} +4 -4
- package/dist/{render-ops-Db7MhDM0-DsIQjmcY.mjs.map → render-ops-WhXRiDGu-LZMJf0aV.mjs.map} +1 -1
- package/dist/{resolve-ddl-schema-JoXvD4Rv-CzPayApy.mjs → resolve-ddl-schema-B8cX92k0-DzN6Alxy.mjs} +3 -3
- package/dist/{resolve-ddl-schema-JoXvD4Rv-CzPayApy.mjs.map → resolve-ddl-schema-B8cX92k0-DzN6Alxy.mjs.map} +1 -1
- package/dist/{runtime-CmUxJgD8.d.mts → runtime-1ioqDrqf.d.mts} +3 -3
- package/dist/{runtime-CmUxJgD8.d.mts.map → runtime-1ioqDrqf.d.mts.map} +1 -1
- package/dist/{sql-renderer-CD5aYQos-nO-jTG1T.mjs → sql-renderer-CD5aYQos-DZotmt9U.mjs} +3 -3
- package/dist/{sql-renderer-CD5aYQos-nO-jTG1T.mjs.map → sql-renderer-CD5aYQos-DZotmt9U.mjs.map} +1 -1
- package/dist/{sql-utils-Df-nf6eM-Ov1KgjWm.mjs → sql-utils-DxE_vJt4-Dkjw9U45.mjs} +3 -3
- package/dist/{sql-utils-Df-nf6eM-Ov1KgjWm.mjs.map → sql-utils-DxE_vJt4-Dkjw9U45.mjs.map} +1 -1
- package/dist/target.d.mts +15 -15
- package/dist/target.mjs +31 -31
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__codec-types.d.mts +3 -3
- package/dist/target__codecs.d.mts +2 -2
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__contract-free.mjs +3 -3
- package/dist/target__control.d.mts +3 -3
- package/dist/target__control.mjs +4 -4
- package/dist/target__data-types.mjs +2 -2
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__errors.mjs +1 -1
- package/dist/target__full-text-index-authoring.mjs +2 -2
- package/dist/target__full-text.d.mts +3 -3
- package/dist/target__full-text.mjs +2 -2
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.mjs +2 -2
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__operation-types.d.mts +2 -2
- package/dist/target__pack.d.mts +2 -2
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-ddl-builders.mjs +1 -1
- package/dist/target__planner-identity-values.mjs +1 -1
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner-sql-checks.mjs +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__prisma7-binding.d.mts +1 -1
- package/dist/target__prisma7-binding.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.d.mts +4 -4
- package/dist/target__runtime.mjs +9 -9
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__schema-ir-annotations.mjs +1 -1
- package/dist/target__sql-utils.mjs +3 -3
- package/dist/target__types.mjs +2 -2
- package/dist/{types-xDgmVoc4.d.mts → types-CJNq93fb.d.mts} +1 -1
- package/package.json +9 -9
- package/dist/authoring-DAorKc0L-DpWukVxn.mjs.map +0 -1
- package/dist/codec-types-o-BM2rPP.d.mts +0 -2
- package/dist/codecs-CaWZPjFi-hllqyGdW.mjs.map +0 -1
- package/dist/codecs-DanVXZ_F-D1_8_x3j.d.mts.map +0 -1
- package/dist/control--DStfvkM.mjs.map +0 -1
- package/dist/full-text-collection-method-Dye6N2u5-DGPEZRTD.d.mts.map +0 -1
- package/dist/operation-types-Dfg-5VmM.d.mts +0 -1
- package/dist/pack-_zBIeh-3.d.mts.map +0 -1
- package/dist/plain-date-time-now-generator-BmOTu5Au-BPhXjp4T.d.mts +0 -19
- package/dist/plain-date-time-now-generator-BmOTu5Au-BPhXjp4T.d.mts.map +0 -1
- package/dist/prisma7-binding-BsucflfD.mjs.map +0 -1
- package/dist/prisma7-binding-DGp7Ea38.d.mts.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { t as PostgresRlsPolicy } from "./postgres-rls-policy-CnDxf3z9-C3LIHAIG.mjs";
|
|
2
2
|
import { a as PostgresRlsEnablementInput, d as postgresCreateNamespace, i as PostgresRlsEnablement, n as PostgresNativeEnum, o as PostgresRole } from "./postgres-schema-Xsjt3RKO-Buv2X8ai.mjs";
|
|
3
3
|
import { i as postgresRenderCheckExpressions } from "./check-expressions-CtTzM58x-CsWFEeul.mjs";
|
|
4
|
-
import { dt as postgresQualifyColumnType } from "./codecs-
|
|
4
|
+
import { dt as postgresQualifyColumnType } from "./codecs-ByHL7NZ0-B_903MRF.mjs";
|
|
5
5
|
import { c as FullTextSearchLanguage, i as FullTextFieldsInput } from "./full-text-index-definition-D5iBWLss-FifKlctQ.mjs";
|
|
6
|
-
import { r as CodecTypes, s as ParameterizedOutputTypesForTypeParams } from "./codec-types-
|
|
7
|
-
import { l as QueryOperationTypesForCodecs } from "./operation-types
|
|
6
|
+
import { r as CodecTypes, s as ParameterizedOutputTypesForTypeParams } from "./codec-types-DX-72F9v-CORaQjWv.mjs";
|
|
7
|
+
import { l as QueryOperationTypesForCodecs } from "./operation-types-CK6URXeD-BsCK-mcK.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-g81c_ETF.mjs";
|
|
9
|
+
import { ExecutionMutationDefaultValue } from "@prisma/orm-framework/contract/types";
|
|
9
10
|
//#region ../../../3-targets/3-targets/postgres/dist/prisma7-binding.d.mts
|
|
10
11
|
//#region src/core/migrations/default-constraint-names.d.ts
|
|
11
12
|
/** `{table}_pkey` cut as Postgres cuts the name of a primary key it names itself: `CREATE TABLE` writes an unnamed primary key. */
|
|
@@ -14,7 +15,11 @@ declare function defaultPrimaryKeyName(tableName: string): string;
|
|
|
14
15
|
declare function defaultForeignKeyName(tableName: string, columns: readonly string[]): string;
|
|
15
16
|
//#endregion
|
|
16
17
|
//#region src/core/now-generators.d.ts
|
|
17
|
-
|
|
18
|
+
/** The "now" generator for a column, with the column's precision as its param when it takes one; `undefined` when the codec has none. */
|
|
19
|
+
declare function postgresNowGeneratorFor(column: {
|
|
20
|
+
readonly codecId: string;
|
|
21
|
+
readonly typeParams?: Readonly<Record<string, unknown>> | undefined;
|
|
22
|
+
}): ExecutionMutationDefaultValue | undefined;
|
|
18
23
|
//#endregion
|
|
19
24
|
//#region src/core/psl-infer/junction-relation-field-names.d.ts
|
|
20
25
|
/**
|
|
@@ -274,7 +279,7 @@ declare const prisma7PostgresBinding: {
|
|
|
274
279
|
readonly cases: {
|
|
275
280
|
readonly now: {
|
|
276
281
|
readonly kind: "generator";
|
|
277
|
-
readonly id: "timestampNow";
|
|
282
|
+
readonly id: "timestampStringNow" | "timestampNow";
|
|
278
283
|
};
|
|
279
284
|
};
|
|
280
285
|
};
|
|
@@ -284,7 +289,7 @@ declare const prisma7PostgresBinding: {
|
|
|
284
289
|
readonly cases: {
|
|
285
290
|
readonly now: {
|
|
286
291
|
readonly kind: "generator";
|
|
287
|
-
readonly id: "timestampNow";
|
|
292
|
+
readonly id: "timestampStringNow" | "timestampNow";
|
|
288
293
|
};
|
|
289
294
|
};
|
|
290
295
|
};
|
|
@@ -324,7 +329,7 @@ declare const prisma7PostgresBinding: {
|
|
|
324
329
|
readonly cases: {
|
|
325
330
|
readonly now: {
|
|
326
331
|
readonly kind: "generator";
|
|
327
|
-
readonly id: "timestampNow";
|
|
332
|
+
readonly id: "timestamptzStringNow" | "timestampNow";
|
|
328
333
|
};
|
|
329
334
|
};
|
|
330
335
|
};
|
|
@@ -334,7 +339,243 @@ declare const prisma7PostgresBinding: {
|
|
|
334
339
|
readonly cases: {
|
|
335
340
|
readonly now: {
|
|
336
341
|
readonly kind: "generator";
|
|
337
|
-
readonly id: "timestampNow";
|
|
342
|
+
readonly id: "timestamptzStringNow" | "timestampNow";
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
readonly date: {
|
|
350
|
+
readonly kind: "fieldPreset";
|
|
351
|
+
readonly args: readonly [{
|
|
352
|
+
readonly name: "onCreate";
|
|
353
|
+
readonly kind: "option";
|
|
354
|
+
readonly values: readonly ["now"];
|
|
355
|
+
readonly optional: true;
|
|
356
|
+
}, {
|
|
357
|
+
readonly name: "onUpdate";
|
|
358
|
+
readonly kind: "option";
|
|
359
|
+
readonly values: readonly ["now"];
|
|
360
|
+
readonly optional: true;
|
|
361
|
+
}];
|
|
362
|
+
readonly output: Omit<{
|
|
363
|
+
readonly codecId: "pg/date-temporal@1";
|
|
364
|
+
readonly generatorId: "plainDateNow";
|
|
365
|
+
} & {
|
|
366
|
+
readonly generatorId?: "plainDateNow";
|
|
367
|
+
}, "generatorId"> & {
|
|
368
|
+
readonly executionDefaults: {
|
|
369
|
+
readonly onCreate: {
|
|
370
|
+
readonly kind: "select";
|
|
371
|
+
readonly index: 0;
|
|
372
|
+
readonly cases: {
|
|
373
|
+
readonly now: {
|
|
374
|
+
readonly kind: "generator";
|
|
375
|
+
readonly id: "plainDateNow" | "timestampNow";
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
readonly onUpdate: {
|
|
380
|
+
readonly kind: "select";
|
|
381
|
+
readonly index: 1;
|
|
382
|
+
readonly cases: {
|
|
383
|
+
readonly now: {
|
|
384
|
+
readonly kind: "generator";
|
|
385
|
+
readonly id: "plainDateNow" | "timestampNow";
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
readonly dateString: {
|
|
393
|
+
readonly kind: "fieldPreset";
|
|
394
|
+
readonly args: readonly [{
|
|
395
|
+
readonly name: "onCreate";
|
|
396
|
+
readonly kind: "option";
|
|
397
|
+
readonly values: readonly ["now"];
|
|
398
|
+
readonly optional: true;
|
|
399
|
+
}, {
|
|
400
|
+
readonly name: "onUpdate";
|
|
401
|
+
readonly kind: "option";
|
|
402
|
+
readonly values: readonly ["now"];
|
|
403
|
+
readonly optional: true;
|
|
404
|
+
}];
|
|
405
|
+
readonly output: Omit<{
|
|
406
|
+
readonly codecId: "pg/date-string@1";
|
|
407
|
+
readonly generatorId: "dateStringNow";
|
|
408
|
+
} & {
|
|
409
|
+
readonly generatorId?: "dateStringNow";
|
|
410
|
+
}, "generatorId"> & {
|
|
411
|
+
readonly executionDefaults: {
|
|
412
|
+
readonly onCreate: {
|
|
413
|
+
readonly kind: "select";
|
|
414
|
+
readonly index: 0;
|
|
415
|
+
readonly cases: {
|
|
416
|
+
readonly now: {
|
|
417
|
+
readonly kind: "generator";
|
|
418
|
+
readonly id: "dateStringNow" | "timestampNow";
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
readonly onUpdate: {
|
|
423
|
+
readonly kind: "select";
|
|
424
|
+
readonly index: 1;
|
|
425
|
+
readonly cases: {
|
|
426
|
+
readonly now: {
|
|
427
|
+
readonly kind: "generator";
|
|
428
|
+
readonly id: "dateStringNow" | "timestampNow";
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
readonly time: {
|
|
436
|
+
readonly kind: "fieldPreset";
|
|
437
|
+
readonly args: readonly [{
|
|
438
|
+
readonly name: "precision";
|
|
439
|
+
readonly kind: "number";
|
|
440
|
+
readonly optional: true;
|
|
441
|
+
readonly integer: true;
|
|
442
|
+
}, {
|
|
443
|
+
readonly name: "onCreate";
|
|
444
|
+
readonly kind: "option";
|
|
445
|
+
readonly values: readonly ["now"];
|
|
446
|
+
readonly optional: true;
|
|
447
|
+
}, {
|
|
448
|
+
readonly name: "onUpdate";
|
|
449
|
+
readonly kind: "option";
|
|
450
|
+
readonly values: readonly ["now"];
|
|
451
|
+
readonly optional: true;
|
|
452
|
+
}];
|
|
453
|
+
readonly output: {
|
|
454
|
+
readonly codecId: "pg/time-temporal@1";
|
|
455
|
+
readonly typeParams: {
|
|
456
|
+
readonly precision: {
|
|
457
|
+
readonly kind: "arg";
|
|
458
|
+
readonly index: 0;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
readonly executionDefaults: {
|
|
462
|
+
readonly onCreate: {
|
|
463
|
+
readonly kind: "select";
|
|
464
|
+
readonly index: 1;
|
|
465
|
+
readonly cases: {
|
|
466
|
+
readonly now: {
|
|
467
|
+
readonly kind: "generator";
|
|
468
|
+
readonly id: "plainTimeNow" | "timestampNow";
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
readonly onUpdate: {
|
|
473
|
+
readonly kind: "select";
|
|
474
|
+
readonly index: 2;
|
|
475
|
+
readonly cases: {
|
|
476
|
+
readonly now: {
|
|
477
|
+
readonly kind: "generator";
|
|
478
|
+
readonly id: "plainTimeNow" | "timestampNow";
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
readonly timeString: {
|
|
486
|
+
readonly kind: "fieldPreset";
|
|
487
|
+
readonly args: readonly [{
|
|
488
|
+
readonly name: "precision";
|
|
489
|
+
readonly kind: "number";
|
|
490
|
+
readonly optional: true;
|
|
491
|
+
readonly integer: true;
|
|
492
|
+
}, {
|
|
493
|
+
readonly name: "onCreate";
|
|
494
|
+
readonly kind: "option";
|
|
495
|
+
readonly values: readonly ["now"];
|
|
496
|
+
readonly optional: true;
|
|
497
|
+
}, {
|
|
498
|
+
readonly name: "onUpdate";
|
|
499
|
+
readonly kind: "option";
|
|
500
|
+
readonly values: readonly ["now"];
|
|
501
|
+
readonly optional: true;
|
|
502
|
+
}];
|
|
503
|
+
readonly output: {
|
|
504
|
+
readonly codecId: "pg/time-string@1";
|
|
505
|
+
readonly typeParams: {
|
|
506
|
+
readonly precision: {
|
|
507
|
+
readonly kind: "arg";
|
|
508
|
+
readonly index: 0;
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
readonly executionDefaults: {
|
|
512
|
+
readonly onCreate: {
|
|
513
|
+
readonly kind: "select";
|
|
514
|
+
readonly index: 1;
|
|
515
|
+
readonly cases: {
|
|
516
|
+
readonly now: {
|
|
517
|
+
readonly kind: "generator";
|
|
518
|
+
readonly id: "timeStringNow" | "timestampNow";
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
readonly onUpdate: {
|
|
523
|
+
readonly kind: "select";
|
|
524
|
+
readonly index: 2;
|
|
525
|
+
readonly cases: {
|
|
526
|
+
readonly now: {
|
|
527
|
+
readonly kind: "generator";
|
|
528
|
+
readonly id: "timeStringNow" | "timestampNow";
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
readonly timetz: {
|
|
536
|
+
readonly kind: "fieldPreset";
|
|
537
|
+
readonly args: readonly [{
|
|
538
|
+
readonly name: "precision";
|
|
539
|
+
readonly kind: "number";
|
|
540
|
+
readonly optional: true;
|
|
541
|
+
readonly integer: true;
|
|
542
|
+
}, {
|
|
543
|
+
readonly name: "onCreate";
|
|
544
|
+
readonly kind: "option";
|
|
545
|
+
readonly values: readonly ["now"];
|
|
546
|
+
readonly optional: true;
|
|
547
|
+
}, {
|
|
548
|
+
readonly name: "onUpdate";
|
|
549
|
+
readonly kind: "option";
|
|
550
|
+
readonly values: readonly ["now"];
|
|
551
|
+
readonly optional: true;
|
|
552
|
+
}];
|
|
553
|
+
readonly output: {
|
|
554
|
+
readonly codecId: "pg/timetz@1";
|
|
555
|
+
readonly typeParams: {
|
|
556
|
+
readonly precision: {
|
|
557
|
+
readonly kind: "arg";
|
|
558
|
+
readonly index: 0;
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
readonly executionDefaults: {
|
|
562
|
+
readonly onCreate: {
|
|
563
|
+
readonly kind: "select";
|
|
564
|
+
readonly index: 1;
|
|
565
|
+
readonly cases: {
|
|
566
|
+
readonly now: {
|
|
567
|
+
readonly kind: "generator";
|
|
568
|
+
readonly id: "timetzNow" | "timestampNow";
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
readonly onUpdate: {
|
|
573
|
+
readonly kind: "select";
|
|
574
|
+
readonly index: 2;
|
|
575
|
+
readonly cases: {
|
|
576
|
+
readonly now: {
|
|
577
|
+
readonly kind: "generator";
|
|
578
|
+
readonly id: "timetzNow" | "timestampNow";
|
|
338
579
|
};
|
|
339
580
|
};
|
|
340
581
|
};
|
|
@@ -345,14 +586,14 @@ declare const prisma7PostgresBinding: {
|
|
|
345
586
|
readonly kind: "fieldPreset";
|
|
346
587
|
readonly output: Omit<{
|
|
347
588
|
readonly codecId: "pg/timestamptz-string@1";
|
|
348
|
-
readonly generatorId: "
|
|
589
|
+
readonly generatorId: "timestamptzStringNow";
|
|
349
590
|
} & {
|
|
350
|
-
readonly generatorId?: "
|
|
591
|
+
readonly generatorId?: "timestamptzStringNow";
|
|
351
592
|
}, "generatorId"> & {
|
|
352
593
|
readonly executionDefaults: {
|
|
353
594
|
readonly onCreate: {
|
|
354
595
|
readonly kind: "generator";
|
|
355
|
-
readonly id: "timestampNow";
|
|
596
|
+
readonly id: "timestamptzStringNow" | "timestampNow";
|
|
356
597
|
};
|
|
357
598
|
};
|
|
358
599
|
};
|
|
@@ -361,18 +602,18 @@ declare const prisma7PostgresBinding: {
|
|
|
361
602
|
readonly kind: "fieldPreset";
|
|
362
603
|
readonly output: Omit<{
|
|
363
604
|
readonly codecId: "pg/timestamptz-string@1";
|
|
364
|
-
readonly generatorId: "
|
|
605
|
+
readonly generatorId: "timestamptzStringNow";
|
|
365
606
|
} & {
|
|
366
|
-
readonly generatorId?: "
|
|
607
|
+
readonly generatorId?: "timestamptzStringNow";
|
|
367
608
|
}, "generatorId"> & {
|
|
368
609
|
readonly executionDefaults: {
|
|
369
610
|
readonly onCreate: {
|
|
370
611
|
readonly kind: "generator";
|
|
371
|
-
readonly id: "timestampNow";
|
|
612
|
+
readonly id: "timestamptzStringNow" | "timestampNow";
|
|
372
613
|
};
|
|
373
614
|
readonly onUpdate: {
|
|
374
615
|
readonly kind: "generator";
|
|
375
|
-
readonly id: "timestampNow";
|
|
616
|
+
readonly id: "timestamptzStringNow" | "timestampNow";
|
|
376
617
|
};
|
|
377
618
|
};
|
|
378
619
|
};
|
|
@@ -932,7 +1173,7 @@ declare const prisma7PostgresBinding: {
|
|
|
932
1173
|
readonly foreignKey: typeof defaultForeignKeyName;
|
|
933
1174
|
};
|
|
934
1175
|
readonly junctionRelationFieldNames: typeof junctionRelationFieldNames;
|
|
935
|
-
readonly
|
|
1176
|
+
readonly updatedAtGenerator: typeof postgresNowGeneratorFor;
|
|
936
1177
|
readonly literalDefaultForm: ({ dataType, typeParams }: {
|
|
937
1178
|
readonly dataType: string;
|
|
938
1179
|
readonly typeParams?: Readonly<Record<string, unknown>> | undefined;
|
|
@@ -958,4 +1199,4 @@ declare const prisma7PostgresBinding: {
|
|
|
958
1199
|
};
|
|
959
1200
|
//#endregion
|
|
960
1201
|
export { prisma7PostgresBinding as t };
|
|
961
|
-
//# sourceMappingURL=prisma7-binding-
|
|
1202
|
+
//# sourceMappingURL=prisma7-binding-XSuxkjqy.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prisma7-binding-XSuxkjqy.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/prisma7-binding.d.mts"],"mappings":";;;;;;;;;;;;iBAWiB,sBAAsB;;iBAEtB,sBAAsB,mBAAmB;;;;iBAIzC,wBAAwB;WAC9B;WACA,aAAa,SAAS;IAC7B;;;;;;;;iBAQa,2BAA2B,gBAAgB;;;iBAG3C,YAAY;;;;;;;;cAQf;WACH;aACE;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;;;;;eAKR;iBACE;mBACE;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;qBACE;;;iBAGJ;mBACE;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF,QAAQ;uBACN;uBACA;;uBAEA;;uBAEA;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF,QAAQ;uBACN;uBACA;;uBAEA;;uBAEA;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA,QAAQ;uBACN;uBACA;;uBAEA;;uBAEA;yBACE;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA,QAAQ;uBACN;uBACA;;uBAEA;;uBAEA;yBACE;2BACE;2BACA;;yBAEF;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA,QAAQ;uBACN;uBACA;;uBAEA;;uBAEA;yBACE;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA,QAAQ;uBACN;uBACA;;uBAEA;;uBAEA;yBACE;2BACE;2BACA;;yBAEF;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA,QAAQ;uBACN;uBACA;;uBAEA;;uBAEA;yBACE;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA,QAAQ;uBACN;uBACA;;uBAEA;;uBAEA;yBACE;2BACE;2BACA;;yBAEF;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;;iBAQd;mBACE;mBACA;qBACE;;;iBAGJ;mBACE;qBACE;qBACA;uBACE;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;;;mBAGJ;qBACE;qBACA;uBACE;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;;;;;eAKR,WAAW,SAAS,kEAAkE;eACtF;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;iBACE;mBACE;mBACA;mBACA;;;;aAIN;aACA;aACA;aACA;aACA;aACA;aACA,mEAAmE;aACnE,eAAe;;aAEf,eAAe;aACf,wBAAwB;aACxB,6BAA6B;;WAE/B,wBAAwB;WACxB;WACA;aACE;eACE;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;;aAGJ;eACE;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;;;WAIN;aACE;aACA;;WAEF;aACE;aACA;aACA;aACA;aACA;aACA;;;WAGF;WACA;aACE,mBAAmB;aACnB,mBAAmB;;WAErB,mCAAmC;WACnC,2BAA2B;WAC3B,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,10 +1,10 @@
|
|
|
1
|
-
import { A as pgJsonb, B as pgTimestamptz, H as pgTimetz, I as pgTime, R as pgTimestamp, _ as pgDate, f as pgBytea, k as pgJson } from "./data-types-
|
|
2
|
-
import { h as postgresCreateNamespace } from "./postgres-schema-
|
|
3
|
-
import {
|
|
4
|
-
import { t as postgresDataTypeEntries } from "./data-type-entries-
|
|
5
|
-
import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-
|
|
1
|
+
import { A as pgJsonb, B as pgTimestamptz, H as pgTimetz, I as pgTime, R as pgTimestamp, _ as pgDate, f as pgBytea, k as pgJson } from "./data-types-CQs1yW4F-CSexn8mK.mjs";
|
|
2
|
+
import { h as postgresCreateNamespace } from "./postgres-schema-BtW3Sw0F-CH3NqoOo.mjs";
|
|
3
|
+
import { l as postgresNowGeneratorFor } from "./authoring-mmK5aduF-BltVG_HJ.mjs";
|
|
4
|
+
import { t as postgresDataTypeEntries } from "./data-type-entries-KJ4Mn8C5-DY3rLz33.mjs";
|
|
5
|
+
import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-axWY-kHl-Bt2_NjH4.mjs";
|
|
6
6
|
import { n as defaultPrimaryKeyName, t as defaultForeignKeyName } from "./default-constraint-names-CtcRXhV8-nz3ff6b8.mjs";
|
|
7
|
-
import { l as buildPslDocumentAst, m as noInferredDefaults, p as noColumnDefaults, u as createPostgresDefaultMapping } from "./infer-psl-contract-
|
|
7
|
+
import { l as buildPslDocumentAst, m as noInferredDefaults, p as noColumnDefaults, u as createPostgresDefaultMapping } from "./infer-psl-contract-CKP3nwjB-x1_ji7Z9.mjs";
|
|
8
8
|
import { SqlSchemaIR, SqlTableIR } from "@prisma/orm-family-sql/schema-ir/types";
|
|
9
9
|
import { toModelName } from "@prisma/orm-family-sql/family/psl-infer";
|
|
10
10
|
import { flatPslModels } from "@prisma/orm-framework/components/psl-ast";
|
|
@@ -336,7 +336,7 @@ const prisma7PostgresBinding = {
|
|
|
336
336
|
foreignKey: defaultForeignKeyName
|
|
337
337
|
},
|
|
338
338
|
junctionRelationFieldNames,
|
|
339
|
-
|
|
339
|
+
updatedAtGenerator: postgresNowGeneratorFor,
|
|
340
340
|
literalDefaultForm: ({ dataType, typeParams }) => {
|
|
341
341
|
if (dataType === pgJson.id || dataType === pgJsonb.id) return { kind: "json" };
|
|
342
342
|
const tag = tagOf(dataType);
|
|
@@ -365,4 +365,4 @@ const prisma7PostgresBinding = {
|
|
|
365
365
|
//#endregion
|
|
366
366
|
export { prisma7PostgresBinding as t };
|
|
367
367
|
|
|
368
|
-
//# sourceMappingURL=prisma7-binding-
|
|
368
|
+
//# sourceMappingURL=prisma7-binding-ZUOUC530.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prisma7-binding-ZUOUC530.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/prisma7-binding.mjs"],"sourcesContent":["import { A as pgTimestamptz, E as pgTime, M as pgTimetz, O as pgTimestamp, a as pgBytea, b as pgJsonb, c as pgDate, y as pgJson } from \"./data-types-CQs1yW4F.mjs\";\nimport { t as postgresDataTypeEntries } from \"./data-type-entries-KJ4Mn8C5.mjs\";\nimport { c as postgresNowGeneratorFor } from \"./authoring-mmK5aduF.mjs\";\nimport { i as postgresCreateNamespace } from \"./postgres-schema-BtW3Sw0F.mjs\";\nimport { t as postgresTargetDescriptorMeta } from \"./descriptor-meta-axWY-kHl.mjs\";\nimport { n as defaultPrimaryKeyName, t as defaultForeignKeyName } from \"./default-constraint-names-CtcRXhV8.mjs\";\nimport { i as noInferredDefaults, r as createPostgresDefaultMapping, t as buildPslDocumentAst, u as noColumnDefaults } from \"./infer-psl-contract-CKP3nwjB.mjs\";\nimport { SqlSchemaIR, SqlTableIR } from \"@internal/sql-schema-ir/types\";\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/psl-build/existing-column-date-time-types.ts\n/** A contract written for an existing database reads every date and time column as PostgreSQL's text. */\nconst EXISTING_COLUMN_DATE_TIME_TYPES = {\n\ttimestamp: \"TimestampString\",\n\ttimestamptz: \"TimestamptzString\",\n\tdate: \"DateString\",\n\ttime: \"TimeString\",\n\ttimetz: \"Timetz\"\n};\n//#endregion\n//#region src/core/prisma7-type-map.ts\n/**\n* What Prisma 7.10.0 creates in Postgres for each Prisma 7 scalar and `@db.*`\n* native type, expressed as the Prisma 8 authoring type constructor that\n* produces the same column. Derived from the SQL recorded in\n* `test/integration/test/fixtures/prisma7-source/reference/migration.sql`.\n* `args` are the constructor's positional arguments. A `@db.*` attribute's own\n* arguments replace them; without any, the column gets `args`, so `@db.Char`\n* is `Char(1)`, the `character(1)` Postgres stores for Prisma 7's `CHAR`.\n*/\nconst prisma7PostgresTypeMap = {\n\tscalars: {\n\t\tString: {\n\t\t\tconstructorName: \"String\",\n\t\t\targs: []\n\t\t},\n\t\tBoolean: {\n\t\t\tconstructorName: \"Boolean\",\n\t\t\targs: []\n\t\t},\n\t\tInt: {\n\t\t\tconstructorName: \"Int\",\n\t\t\targs: []\n\t\t},\n\t\tBigInt: {\n\t\t\tconstructorName: \"BigInt\",\n\t\t\targs: []\n\t\t},\n\t\tFloat: {\n\t\t\tconstructorName: \"Float\",\n\t\t\targs: []\n\t\t},\n\t\tDecimal: {\n\t\t\tconstructorName: \"Numeric\",\n\t\t\targs: [\"65\", \"30\"]\n\t\t},\n\t\tDateTime: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timestamp,\n\t\t\targs: [\"3\"]\n\t\t},\n\t\tJson: {\n\t\t\tconstructorName: \"Jsonb\",\n\t\t\targs: []\n\t\t},\n\t\tBytes: {\n\t\t\tconstructorName: \"Bytes\",\n\t\t\targs: []\n\t\t}\n\t},\n\tnativeTypes: {\n\t\tText: {\n\t\t\tconstructorName: \"String\",\n\t\t\targs: []\n\t\t},\n\t\tVarChar: {\n\t\t\tconstructorName: \"VarChar\",\n\t\t\targs: []\n\t\t},\n\t\tChar: {\n\t\t\tconstructorName: \"Char\",\n\t\t\targs: [\"1\"]\n\t\t},\n\t\tUuid: {\n\t\t\tconstructorName: \"Uuid\",\n\t\t\targs: []\n\t\t},\n\t\tInet: {\n\t\t\tconstructorName: \"Inet\",\n\t\t\targs: []\n\t\t},\n\t\tBoolean: {\n\t\t\tconstructorName: \"Boolean\",\n\t\t\targs: []\n\t\t},\n\t\tInteger: {\n\t\t\tconstructorName: \"Int\",\n\t\t\targs: []\n\t\t},\n\t\tSmallInt: {\n\t\t\tconstructorName: \"SmallInt\",\n\t\t\targs: []\n\t\t},\n\t\tBigInt: {\n\t\t\tconstructorName: \"BigInt\",\n\t\t\targs: []\n\t\t},\n\t\tReal: {\n\t\t\tconstructorName: \"Real\",\n\t\t\targs: []\n\t\t},\n\t\tDoublePrecision: {\n\t\t\tconstructorName: \"Float\",\n\t\t\targs: []\n\t\t},\n\t\tDecimal: {\n\t\t\tconstructorName: \"Numeric\",\n\t\t\targs: []\n\t\t},\n\t\tTimestamp: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timestamp,\n\t\t\targs: []\n\t\t},\n\t\tTimestamptz: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timestamptz,\n\t\t\targs: []\n\t\t},\n\t\tDate: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.date,\n\t\t\targs: []\n\t\t},\n\t\tTime: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.time,\n\t\t\targs: []\n\t\t},\n\t\tTimetz: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timetz,\n\t\t\targs: []\n\t\t},\n\t\tJson: {\n\t\t\tconstructorName: \"Json\",\n\t\t\targs: []\n\t\t},\n\t\tJsonB: {\n\t\t\tconstructorName: \"Jsonb\",\n\t\t\targs: []\n\t\t},\n\t\tByteA: {\n\t\t\tconstructorName: \"Bytes\",\n\t\t\targs: []\n\t\t}\n\t}\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\tnativeType: \"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\tnativeType: \"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}),\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/**\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\tupdatedAtGenerator: postgresNowGeneratorFor,\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":";;;;;;;;;;;AAWA,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,IA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CAAC,MAAM,MAAM;CAC/B;CACA,YAAY;EACX,OAAO;EACP,MAAM;EACN,KAAK;EACL,MAAM;EACN,QAAQ;EACR,MAAM;CACP;;CAEA,oBAAoB;CACpB,wBAAwB;EACvB,YAAY;EACZ,YAAY;CACb;CACA;CACA,oBAAoB;CACpB,qBAAqB,EAAE,UAAU,iBAAiB;EACjD,IAAI,aAAa,OAAO,MAAM,aAAa,QAAQ,IAAI,OAAO,EAAE,MAAM,OAAO;EAC7E,MAAM,MAAM,MAAM,QAAQ;EAC1B,IAAI,QAAQ,KAAK,GAAG,OAAO,KAAK;EAChC,IAAI,aAAa,QAAQ,IAAI,OAAO;GACnC,MAAM;GACN;GACA,MAAM;EACP;EACA,IAAI,CAAC,gBAAgB,IAAI,QAAQ,GAAG,OAAO,KAAK;EAChD,OAAO;GACN,MAAM;GACN;GACA,OAAO,SAAS,uBAAuB,MAAM,QAAQ;GACrD,kBAAkB,SAAS;IAC1B,MAAM,aAAa,YAAY,UAAU;IACzC,MAAM,SAAS,sBAAsB,MAAM,UAAU,UAAU;IAC/D,OAAO,WAAW,KAAK,IAAI,KAAK,IAAI;KACnC;KACA;IACD;GACD;EACD;CACD;AACD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as isPostgresOpFactoryCall } from "./op-factory-call-
|
|
1
|
+
import { c as postgresError } from "./errors-BrhQYgdL-D_lIrddD.mjs";
|
|
2
|
+
import { B as isPostgresOpFactoryCall } from "./op-factory-call-B-EoYQIO-BIfzqVX6.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/3-targets/postgres/dist/render-ops-
|
|
5
|
+
//#region ../../../3-targets/3-targets/postgres/dist/render-ops-WhXRiDGu.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-
|
|
41
|
+
//# sourceMappingURL=render-ops-WhXRiDGu-LZMJf0aV.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-ops-
|
|
1
|
+
{"version":3,"file":"render-ops-WhXRiDGu-LZMJf0aV.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/render-ops-WhXRiDGu.mjs"],"sourcesContent":["import { c as postgresError } from \"./errors-BrhQYgdL.mjs\";\nimport { R as isPostgresOpFactoryCall } from \"./op-factory-call-B-EoYQIO.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-WhXRiDGu.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"}
|
package/dist/{resolve-ddl-schema-JoXvD4Rv-CzPayApy.mjs → resolve-ddl-schema-B8cX92k0-DzN6Alxy.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as DEFAULT_NAMESPACE_ID } from "./namespace-ids-xtp_ZY86-Cpp8PTxD.mjs";
|
|
2
|
-
import { d as isPostgresSchema } from "./postgres-schema-
|
|
2
|
+
import { d as isPostgresSchema } from "./postgres-schema-BtW3Sw0F-CH3NqoOo.mjs";
|
|
3
3
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
4
|
-
//#region ../../../3-targets/3-targets/postgres/dist/resolve-ddl-schema-
|
|
4
|
+
//#region ../../../3-targets/3-targets/postgres/dist/resolve-ddl-schema-B8cX92k0.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-
|
|
34
|
+
//# sourceMappingURL=resolve-ddl-schema-B8cX92k0-DzN6Alxy.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-ddl-schema-
|
|
1
|
+
{"version":3,"file":"resolve-ddl-schema-B8cX92k0-DzN6Alxy.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/resolve-ddl-schema-B8cX92k0.mjs"],"sourcesContent":["import { t as DEFAULT_NAMESPACE_ID } from \"./namespace-ids-xtp_ZY86.mjs\";\nimport { r as isPostgresSchema } from \"./postgres-schema-BtW3Sw0F.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-B8cX92k0.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,5 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./full-text-collection-method-
|
|
1
|
+
import "./date-time-now-generators-CMkXVbMG-CYwplAuf.mjs";
|
|
2
|
+
import "./full-text-collection-method-BIqQH9XN-CkW2x4u2.mjs";
|
|
3
3
|
import "./postgres-contract-view-2OP5JnXl-D2fpy4-8.mjs";
|
|
4
4
|
import { AnyCodecDescriptor } from "@prisma/orm-framework/components/codec";
|
|
5
5
|
import { AnyEntityKindDescriptor, Namespace } from "@prisma/orm-framework/components/ir";
|
|
@@ -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-
|
|
40
|
+
//# sourceMappingURL=runtime-1ioqDrqf.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-
|
|
1
|
+
{"version":3,"file":"runtime-1ioqDrqf.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/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-
|
|
2
|
-
import { B as pgTimestamptz, D as pgInterval, E as pgInt8, H as pgTimetz, I as pgTime, K as pgVarbit, P as pgText, R as pgTimestamp, S as pgFloat8, T as pgInt4, d as pgBool, h as pgChar, j as pgNumeric, l as pgBit, q as pgVarchar, w as pgInt2, x as pgFloat4 } from "./data-types-
|
|
1
|
+
import { i as quoteIdentifier, n as escapeLiteral } from "./sql-utils-DxE_vJt4-Dkjw9U45.mjs";
|
|
2
|
+
import { B as pgTimestamptz, D as pgInterval, E as pgInt8, H as pgTimetz, I as pgTime, K as pgVarbit, P as pgText, R as pgTimestamp, S as pgFloat8, T as pgInt4, d as pgBool, h as pgChar, j as pgNumeric, l as pgBit, q as pgVarchar, w as pgInt2, x as pgFloat4 } from "./data-types-CQs1yW4F-CSexn8mK.mjs";
|
|
3
3
|
import { LiteralExpr, collectOrderedParamRefs, lockOptionCapabilities, lockStrengthCapabilities, missingCapability } from "@prisma/orm-family-sql/relational-core/ast";
|
|
4
4
|
import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
5
5
|
import { dataTypeParams } from "@prisma/orm-framework/components/codec";
|
|
@@ -555,4 +555,4 @@ function renderRawExpr(node, contract, pim) {
|
|
|
555
555
|
//#endregion
|
|
556
556
|
export { renderLoweredSql as n, adapterError as t };
|
|
557
557
|
|
|
558
|
-
//# sourceMappingURL=sql-renderer-CD5aYQos-
|
|
558
|
+
//# sourceMappingURL=sql-renderer-CD5aYQos-DZotmt9U.mjs.map
|