@prisma/orm-target-postgres 8.0.0-rc.18-dev.29 → 8.0.0-rc.18-dev.31
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-CEZ6dg2a.d.mts → adapter-BAR5FNt5.d.mts} +9 -9
- package/dist/{adapter-CEZ6dg2a.d.mts.map → adapter-BAR5FNt5.d.mts.map} +1 -1
- package/dist/{adapter-BkfuSVLm-DmjWB5c9.mjs → adapter-BLduF4bR-LPL0DsEe.mjs} +6 -6
- package/dist/{adapter-BkfuSVLm-DmjWB5c9.mjs.map → adapter-BLduF4bR-LPL0DsEe.mjs.map} +1 -1
- package/dist/adapter.d.mts +6 -6
- package/dist/adapter.mjs +6 -6
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__column-types.d.mts +2 -2
- package/dist/adapter__column-types.mjs +2 -2
- package/dist/adapter__control.d.mts +2 -2
- package/dist/adapter__control.mjs +16 -136
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.mjs +5 -5
- 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-C2xqsGZ2.d.mts → aggregates-B3lIBjGK.d.mts} +8 -8
- package/dist/{aggregates-C2xqsGZ2.d.mts.map → aggregates-B3lIBjGK.d.mts.map} +1 -1
- package/dist/{aggregates-DHIDeR2f.mjs → aggregates-C7KEByGU.mjs} +2 -2
- package/dist/{aggregates-DHIDeR2f.mjs.map → aggregates-C7KEByGU.mjs.map} +1 -1
- package/dist/{authoring-DhyLHFHA-pB4NuFxh.mjs → authoring-CArQ0ZSb-BXqyKMTu.mjs} +22 -38
- package/dist/authoring-CArQ0ZSb-BXqyKMTu.mjs.map +1 -0
- package/dist/{autoincrement-widths-1v9UfTSw-NFaqRGCV.mjs → autoincrement-widths-BeDdQuMU-CFDf2ypW.mjs} +3 -3
- package/dist/{autoincrement-widths-1v9UfTSw-NFaqRGCV.mjs.map → autoincrement-widths-BeDdQuMU-CFDf2ypW.mjs.map} +1 -1
- package/dist/{codec-ids-Cb0yO-IS--e0P2rfI.mjs → codec-ids-BMhEpFwv-BLIC4g3Y.mjs} +4 -4
- package/dist/codec-ids-BMhEpFwv-BLIC4g3Y.mjs.map +1 -0
- package/dist/codec-ids-C2HurNhZ.d.mts +1 -0
- package/dist/{codec-ids-jWpRZjZo-BKIzyx-J.d.mts → codec-ids-C6II64Wy-CCU5G6CU.d.mts} +4 -4
- package/dist/{codec-ids-jWpRZjZo-BKIzyx-J.d.mts.map → codec-ids-C6II64Wy-CCU5G6CU.d.mts.map} +1 -1
- package/dist/{codec-registry-T79ktJL4-B9_zlIhI.mjs → codec-registry-C8ymMRsH-B48NRqXL.mjs} +4 -4
- package/dist/{codec-registry-T79ktJL4-B9_zlIhI.mjs.map → codec-registry-C8ymMRsH-B48NRqXL.mjs.map} +1 -1
- package/dist/{codec-type-map-ulrHZjWI-DMkq8jy2.d.mts → codec-type-map-DiWClTtc-CUWQbVA0.d.mts} +4 -3
- package/dist/{codec-type-map-ulrHZjWI-DMkq8jy2.d.mts.map → codec-type-map-DiWClTtc-CUWQbVA0.d.mts.map} +1 -1
- package/dist/codec-types-CXL3_pbl.d.mts +2 -0
- package/dist/{codec-types-DX-72F9v-CORaQjWv.d.mts → codec-types-yRnVORmz-C5oISm2L.d.mts} +4 -4
- package/dist/{codec-types-DX-72F9v-CORaQjWv.d.mts.map → codec-types-yRnVORmz-C5oISm2L.d.mts.map} +1 -1
- package/dist/{codecs-UZ1NEbvk-CMnI6Ti0.mjs → codecs-DNjF5kIh-BkybYk_D.mjs} +23 -6
- package/dist/codecs-DNjF5kIh-BkybYk_D.mjs.map +1 -0
- package/dist/{codecs-ByHL7NZ0-B_903MRF.d.mts → codecs-DgslvOOU-eZpfm_fU.d.mts} +3 -3
- package/dist/{codecs-ByHL7NZ0-B_903MRF.d.mts.map → codecs-DgslvOOU-eZpfm_fU.d.mts.map} +1 -1
- package/dist/{codecs-J4SSxTf4.d.mts → codecs-DydRFxCt.d.mts} +2 -2
- package/dist/{codecs-J4SSxTf4.d.mts.map → codecs-DydRFxCt.d.mts.map} +1 -1
- package/dist/{column-types-Bbc3IVA7.mjs → column-types-5nUQfQFq.mjs} +10 -3
- package/dist/column-types-5nUQfQFq.mjs.map +1 -0
- package/dist/{column-types-COdejX_b.d.mts → column-types-D4U5xGjS.d.mts} +10 -4
- package/dist/column-types-D4U5xGjS.d.mts.map +1 -0
- package/dist/{contract-contributions-CQqafzSC-DrMFSSO4.mjs → contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs} +9 -9
- package/dist/{contract-contributions-CQqafzSC-DrMFSSO4.mjs.map → contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs.map} +1 -1
- package/dist/{contract-free-Kwm74Hg9.mjs → contract-free-CN4hGOBI.mjs} +4 -4
- package/dist/{contract-free-Kwm74Hg9.mjs.map → contract-free-CN4hGOBI.mjs.map} +1 -1
- package/dist/{control-DmWVxA23.d.mts → control-BRE_BcLl.d.mts} +2 -2
- package/dist/{control-DmWVxA23.d.mts.map → control-BRE_BcLl.d.mts.map} +1 -1
- package/dist/{control-vBNwKZ7Q.d.mts → control-R69irs57.d.mts} +2 -2
- package/dist/{control-vBNwKZ7Q.d.mts.map → control-R69irs57.d.mts.map} +1 -1
- package/dist/{control-policy-BHjZnca1-DUWuKmdJ.mjs → control-policy-B10lrdMt-CHUsNZat.mjs} +11 -9
- package/dist/control-policy-B10lrdMt-CHUsNZat.mjs.map +1 -0
- package/dist/{data-type-entries-CqnLlCkK-uN0WjREd.mjs → data-type-entries-EroSxeag-Ba-K5snn.mjs} +3 -3
- package/dist/{data-type-entries-CqnLlCkK-uN0WjREd.mjs.map → data-type-entries-EroSxeag-Ba-K5snn.mjs.map} +1 -1
- package/dist/{data-types-Cs-LkJBw-CJN57Y5M.mjs → data-types-DhBM9bIL-CVDQGAGw.mjs} +5 -4
- package/dist/data-types-DhBM9bIL-CVDQGAGw.mjs.map +1 -0
- package/dist/{ddl-2L13tYjC-enYPQJnG.mjs → ddl-BrIDeRCe-ojLIc02T.mjs} +4 -4
- package/dist/{ddl-2L13tYjC-enYPQJnG.mjs.map → ddl-BrIDeRCe-ojLIc02T.mjs.map} +1 -1
- package/dist/descriptor-meta-9qCQPbrI-DFEFmwBv.mjs +54 -0
- package/dist/descriptor-meta-9qCQPbrI-DFEFmwBv.mjs.map +1 -0
- package/dist/{descriptor-meta-DDh7-s6c-D6qC3SDx.mjs → descriptor-meta-Cb7RcgEQ-CwwQ6QE8.mjs} +4 -4
- package/dist/{descriptor-meta-DDh7-s6c-D6qC3SDx.mjs.map → descriptor-meta-Cb7RcgEQ-CwwQ6QE8.mjs.map} +1 -1
- package/dist/{descriptor-meta-runtime-C1AjrKaP-CYer0qt7.mjs → descriptor-meta-runtime-C56qYaOz-hfOBfhVz.mjs} +3 -3
- package/dist/{descriptor-meta-runtime-C1AjrKaP-CYer0qt7.mjs.map → descriptor-meta-runtime-C56qYaOz-hfOBfhVz.mjs.map} +1 -1
- package/dist/{diff-database-schema-DyCIRT80-C1zMCmRx.mjs → diff-database-schema-CmWmomi3-PoUser3Y.mjs} +5 -5
- package/dist/{diff-database-schema-DyCIRT80-C1zMCmRx.mjs.map → diff-database-schema-CmWmomi3-PoUser3Y.mjs.map} +1 -1
- package/dist/{diff-database-schema-BGcRo8FM.d.mts → diff-database-schema-Diw5m51r.d.mts} +2 -2
- package/dist/{diff-database-schema-BGcRo8FM.d.mts.map → diff-database-schema-Diw5m51r.d.mts.map} +1 -1
- package/dist/{full-text-CSMAiOYz.mjs → full-text-8PmilGkW.mjs} +2 -2
- package/dist/{full-text-CSMAiOYz.mjs.map → full-text-8PmilGkW.mjs.map} +1 -1
- package/dist/{full-text-OAJrtCtv.d.mts → full-text-OgRqBeQu.d.mts} +3 -3
- package/dist/{full-text-OAJrtCtv.d.mts.map → full-text-OgRqBeQu.d.mts.map} +1 -1
- package/dist/{full-text-collection-method-BIqQH9XN-CkW2x4u2.d.mts → full-text-collection-method-DWbpg-Ep-DDs6t_BB.d.mts} +4 -4
- package/dist/full-text-collection-method-DWbpg-Ep-DDs6t_BB.d.mts.map +1 -0
- package/dist/{full-text-parsers-CrMjTR2n-CHDNR_vE.mjs → full-text-parsers-CFFxiOrp-BmiwdZ21.mjs} +3 -3
- package/dist/{full-text-parsers-CrMjTR2n-CHDNR_vE.mjs.map → full-text-parsers-CFFxiOrp-BmiwdZ21.mjs.map} +1 -1
- package/dist/{indexes-DtIXFHAb-DBubdl32.d.mts → indexes-CvNRG0Xu-C8OjTa0S.d.mts} +3 -3
- package/dist/{indexes-DtIXFHAb-DBubdl32.d.mts.map → indexes-CvNRG0Xu-C8OjTa0S.d.mts.map} +1 -1
- package/dist/{issue-planner-DrWlNiAf.d.mts → issue-planner-CAxHx3OH.d.mts} +3 -3
- package/dist/{issue-planner-DrWlNiAf.d.mts.map → issue-planner-CAxHx3OH.d.mts.map} +1 -1
- package/dist/migration-CbOh59ZJ.mjs.map +1 -1
- package/dist/{migration-DST6YA2w.d.mts → migration-DbAx8skF.d.mts} +3 -3
- package/dist/{migration-DST6YA2w.d.mts.map → migration-DbAx8skF.d.mts.map} +1 -1
- package/dist/{native-type-normalizer-a1XJSlk6.mjs → native-type-normalizer-eX3KyHPA.mjs} +2 -2
- package/dist/{native-type-normalizer-a1XJSlk6.mjs.map → native-type-normalizer-eX3KyHPA.mjs.map} +1 -1
- package/dist/{op-factory-call-No9Z2tdw-Lap8xvVy.mjs → op-factory-call-35RJQ1ME-BFxUakDe.mjs} +10 -6
- package/dist/op-factory-call-35RJQ1ME-BFxUakDe.mjs.map +1 -0
- package/dist/op-factory-call-BRHT7R1s.d.mts +1 -0
- package/dist/{op-factory-call-kdPO0kgG-DV8hS6qA.d.mts → op-factory-call-DghB0ndC-9CDIMLTM.d.mts} +7 -4
- package/dist/op-factory-call-DghB0ndC-9CDIMLTM.d.mts.map +1 -0
- package/dist/operation-types-DeGKVV0-.d.mts +1 -0
- package/dist/{operation-types-CK6URXeD-BsCK-mcK.d.mts → operation-types-RXpAlUCj-9eC1wX5R.d.mts} +4 -4
- package/dist/{operation-types-CK6URXeD-BsCK-mcK.d.mts.map → operation-types-RXpAlUCj-9eC1wX5R.d.mts.map} +1 -1
- package/dist/{pack-CcQNl-gj.d.mts → pack-XQaG7LAo.d.mts} +9 -4
- package/dist/{pack-CcQNl-gj.d.mts.map → pack-XQaG7LAo.d.mts.map} +1 -1
- package/dist/{planner-D3wWu7Kj.d.mts → planner-DVwj2GUS.d.mts} +3 -3
- package/dist/{planner-D3wWu7Kj.d.mts.map → planner-DVwj2GUS.d.mts.map} +1 -1
- package/dist/{planner-ddl-builders-B8PhQZ2T-D1KBJxcS.mjs → planner-ddl-builders-DujKuwcn-C0VYScBe.mjs} +3 -3
- package/dist/{planner-ddl-builders-B8PhQZ2T-D1KBJxcS.mjs.map → planner-ddl-builders-DujKuwcn-C0VYScBe.mjs.map} +1 -1
- package/dist/{planner-identity-values-BnxSwhlS-CzyBeK0a.mjs → planner-identity-values-Vbk2SkMl-8xDzcTpo.mjs} +3 -3
- package/dist/{planner-identity-values-BnxSwhlS-CzyBeK0a.mjs.map → planner-identity-values-Vbk2SkMl-8xDzcTpo.mjs.map} +1 -1
- package/dist/{planner-CE4YoVdA-BfwuVRuT.mjs → planner-olDFDn2v-Bh0e16rN.mjs} +9 -9
- package/dist/{planner-CE4YoVdA-BfwuVRuT.mjs.map → planner-olDFDn2v-Bh0e16rN.mjs.map} +1 -1
- package/dist/{planner-produced-postgres-migration-F9joIngl-C04yYu-i.mjs → planner-produced-postgres-migration-BVsfYarL-C9BdUXeX.mjs} +4 -4
- package/dist/{planner-produced-postgres-migration-F9joIngl-C04yYu-i.mjs.map → planner-produced-postgres-migration-BVsfYarL-C9BdUXeX.mjs.map} +1 -1
- package/dist/planner-produced-postgres-migration-BtS3h1R7.d.mts +1 -0
- package/dist/{planner-produced-postgres-migration-BRjNXwjn-DhjS0Pbw.d.mts → planner-produced-postgres-migration-DNnxAU-R-CSPyb9D_.d.mts} +3 -3
- package/dist/planner-produced-postgres-migration-DNnxAU-R-CSPyb9D_.d.mts.map +1 -0
- package/dist/{planner-sql-checks-pkURMYMz-2QAIKyW-.mjs → planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs} +19 -7
- package/dist/planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs.map +1 -0
- package/dist/{planner-sql-checks-CxlrM4J2-VqQpmMwn.d.mts → planner-sql-checks-Ed-WGtge-Clnvg-zp.d.mts} +5 -5
- package/dist/planner-sql-checks-Ed-WGtge-Clnvg-zp.d.mts.map +1 -0
- package/dist/planner-sql-checks-K_EFdkCw.d.mts +1 -0
- package/dist/{postgres-codec-traits-D3muwxMS-OwnBG0Mz.mjs → postgres-codec-traits-DM3rkou1-AyAbELmA.mjs} +3 -3
- package/dist/{postgres-codec-traits-D3muwxMS-OwnBG0Mz.mjs.map → postgres-codec-traits-DM3rkou1-AyAbELmA.mjs.map} +1 -1
- package/dist/{postgres-contract-view-B-bLZB7o-zpuamDXT.mjs → postgres-contract-view-xyfQHZ29-HOrk9af1.mjs} +8 -8
- package/dist/{postgres-contract-view-B-bLZB7o-zpuamDXT.mjs.map → postgres-contract-view-xyfQHZ29-HOrk9af1.mjs.map} +1 -1
- package/dist/{postgres-migration-Crcs_mmg-D1ZyiWtc.d.mts → postgres-migration-8BDn8Wja-D9tHQGWg.d.mts} +5 -3
- package/dist/{postgres-migration-Crcs_mmg-D1ZyiWtc.d.mts.map → postgres-migration-8BDn8Wja-D9tHQGWg.d.mts.map} +1 -1
- package/dist/{postgres-migration-BbXm1l5I-DDy8IgYB.mjs → postgres-migration-fZk6Dmud-BjRqdGdm.mjs} +11 -10
- package/dist/{postgres-migration-BbXm1l5I-DDy8IgYB.mjs.map → postgres-migration-fZk6Dmud-BjRqdGdm.mjs.map} +1 -1
- package/dist/{postgres-schema-DyUXtYIT-vb-RxpRN.mjs → postgres-schema-C6w1rzOF-bzaF5PIS.mjs} +3 -3
- package/dist/{postgres-schema-DyUXtYIT-vb-RxpRN.mjs.map → postgres-schema-C6w1rzOF-bzaF5PIS.mjs.map} +1 -1
- package/dist/{prisma7-binding-C5RLV6kJ.d.mts → prisma7-binding-ChOxdhPc.d.mts} +9 -13
- package/dist/prisma7-binding-ChOxdhPc.d.mts.map +1 -0
- package/dist/{prisma7-binding-CS42flik.mjs → prisma7-binding-Dfb3osBy.mjs} +7 -9
- package/dist/prisma7-binding-Dfb3osBy.mjs.map +1 -0
- package/dist/{render-ops-MeXLgeOa-nL4PdJzz.mjs → render-ops-DkBRaS0Z-BtGb58iC.mjs} +3 -3
- package/dist/{render-ops-MeXLgeOa-nL4PdJzz.mjs.map → render-ops-DkBRaS0Z-BtGb58iC.mjs.map} +1 -1
- package/dist/{resolve-ddl-schema-IdPEiyLX-BZGpy8Wz.mjs → resolve-ddl-schema-D3VNPMSm-DVuswLch.mjs} +3 -3
- package/dist/{resolve-ddl-schema-IdPEiyLX-BZGpy8Wz.mjs.map → resolve-ddl-schema-D3VNPMSm-DVuswLch.mjs.map} +1 -1
- package/dist/{runtime-BeTyqpCH.d.mts → runtime-ONyptFAN.d.mts} +2 -2
- package/dist/{runtime-BeTyqpCH.d.mts.map → runtime-ONyptFAN.d.mts.map} +1 -1
- package/dist/{sql-renderer-CD5aYQos-1hGCWT0S.mjs → sql-renderer-BdWJPa5F-DqJ5nUgt.mjs} +9 -6
- package/dist/sql-renderer-BdWJPa5F-DqJ5nUgt.mjs.map +1 -0
- package/dist/target.d.mts +27 -27
- package/dist/target.mjs +29 -29
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__aggregates.mjs +1 -1
- package/dist/target__codec-ids.d.mts +3 -3
- package/dist/target__codec-ids.mjs +2 -2
- 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 +1 -1
- package/dist/target__control.mjs +81 -148
- package/dist/target__control.mjs.map +1 -1
- package/dist/target__data-types.mjs +2 -2
- package/dist/target__diff-database-schema.d.mts +1 -1
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__full-text-index-authoring.mjs +1 -1
- package/dist/target__full-text.d.mts +3 -3
- package/dist/target__full-text.mjs +2 -2
- package/dist/target__issue-planner.d.mts +1 -1
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.d.mts +2 -2
- package/dist/target__migration.mjs +2 -2
- package/dist/target__native-type-normalizer.mjs +1 -1
- package/dist/target__op-factory-call.d.mts +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.d.mts +2 -2
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner-sql-checks.d.mts +2 -2
- package/dist/target__planner-sql-checks.mjs +1 -1
- package/dist/target__planner.d.mts +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 +2 -2
- package/dist/target__runtime.mjs +6 -6
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__schema-ir-annotations.mjs +1 -1
- package/dist/target__types.mjs +1 -1
- package/dist/{type-constructors-C4QD_3HB-Czhx8fAX.mjs → type-constructors-DQ7O80xT-DdTGyTSt.mjs} +8 -8
- package/dist/{type-constructors-C4QD_3HB-Czhx8fAX.mjs.map → type-constructors-DQ7O80xT-DdTGyTSt.mjs.map} +1 -1
- package/dist/{types-CJNq93fb.d.mts → types-BA-ghQ5q.d.mts} +1 -1
- package/package.json +9 -9
- package/dist/authoring-DhyLHFHA-pB4NuFxh.mjs.map +0 -1
- package/dist/codec-ids-BQRXOwQR.d.mts +0 -1
- package/dist/codec-ids-Cb0yO-IS--e0P2rfI.mjs.map +0 -1
- package/dist/codec-types-DoxsMXp7.d.mts +0 -2
- package/dist/codecs-UZ1NEbvk-CMnI6Ti0.mjs.map +0 -1
- package/dist/column-types-Bbc3IVA7.mjs.map +0 -1
- package/dist/column-types-COdejX_b.d.mts.map +0 -1
- package/dist/control-policy-BHjZnca1-DUWuKmdJ.mjs.map +0 -1
- package/dist/data-types-Cs-LkJBw-CJN57Y5M.mjs.map +0 -1
- package/dist/descriptor-meta-Bzs7kSyA-BjbnpZLW.mjs +0 -36
- package/dist/descriptor-meta-Bzs7kSyA-BjbnpZLW.mjs.map +0 -1
- package/dist/full-text-collection-method-BIqQH9XN-CkW2x4u2.d.mts.map +0 -1
- package/dist/op-factory-call-CijzNDaJ.d.mts +0 -1
- package/dist/op-factory-call-No9Z2tdw-Lap8xvVy.mjs.map +0 -1
- package/dist/op-factory-call-kdPO0kgG-DV8hS6qA.d.mts.map +0 -1
- package/dist/operation-types-ECV4mkfb.d.mts +0 -1
- package/dist/planner-produced-postgres-migration-BRjNXwjn-DhjS0Pbw.d.mts.map +0 -1
- package/dist/planner-produced-postgres-migration-CiHKwaE_.d.mts +0 -1
- package/dist/planner-sql-checks-CB4oLSuZ.d.mts +0 -1
- package/dist/planner-sql-checks-CxlrM4J2-VqQpmMwn.d.mts.map +0 -1
- package/dist/planner-sql-checks-pkURMYMz-2QAIKyW-.mjs.map +0 -1
- package/dist/prisma7-binding-C5RLV6kJ.d.mts.map +0 -1
- package/dist/prisma7-binding-CS42flik.mjs.map +0 -1
- package/dist/sql-renderer-CD5aYQos-1hGCWT0S.mjs.map +0 -1
package/dist/target.mjs
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { A as PG_TIME_TEMPORAL_CODEC_ID, B as
|
|
2
|
-
import { t as postgresAggregateDescriptors } from "./aggregates-
|
|
1
|
+
import { A as PG_TIME_TEMPORAL_CODEC_ID, B as SQL_TEXT_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, I as SQL_CHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, N as PG_UUID_CODEC_ID, O as PG_TIMETZ_CODEC_ID, P as PG_VARBIT_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, V as SQL_VARCHAR_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, i as PG_CHAR_CODEC_ID, j as PG_TSQUERY_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_JSONB_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID, y as PG_JSON_CODEC_ID, z as SQL_RAW_CODEC_ID } from "./codec-ids-BMhEpFwv-BLIC4g3Y.mjs";
|
|
2
|
+
import { t as postgresAggregateDescriptors } from "./aggregates-C7KEByGU.mjs";
|
|
3
3
|
import { a as postgresCodec, i as isPostgresCodecDescriptor, n as buildPostgresCodecDescriptorRegistry, r as definePostgresCodecs, t as PostgresCodecDescriptor } from "./codec-descriptor-DSMjoW72-ZoCcTHLX.mjs";
|
|
4
4
|
import { c as postgresError, t as errorPostgresMigrationStackMissing } from "./errors-BrhQYgdL-D_lIrddD.mjs";
|
|
5
5
|
import { a as quoteQualifiedName, i as quoteIdentifier, n as escapeLiteral, o as validateEnumValueLength, r as qualifyName } from "./sql-utils-Bnw3JbWf-zvWDkyrr.mjs";
|
|
6
|
-
import { A as pgJsonb, B as pgTimestamptz, C as pgInet, D as pgInterval, E as pgInt8, F as pgTextArray, G as pgUuid, H as pgTimetz, I as pgTime, J as postgresDataTypes, K as pgVarbit, L as pgTimeStoredText, M as pgNumericParams, N as pgPrecisionParams, P as pgText, R as pgTimestamp, S as pgFloat8, T as pgInt4, U as pgTimetzStoredText, V as pgTimestamptzStoredText, W as pgTsquery, Z as qualifiedEnumName, _ as pgDate, b as pgEnumParams, d as pgBool, f as pgBytea, g as pgCharacterLengthParams, h as pgChar, i as createPostgresBuiltinDataTypeLookup, j as pgNumeric, k as pgJson, l as pgBit, q as pgVarchar, u as pgBitLengthParams, v as pgDateStoredText, w as pgInt2, x as pgFloat4, y as pgEnum, z as pgTimestampStoredText } from "./data-types-
|
|
6
|
+
import { A as pgJsonb, B as pgTimestamptz, C as pgInet, D as pgInterval, E as pgInt8, F as pgTextArray, G as pgUuid, H as pgTimetz, I as pgTime, J as postgresDataTypes, K as pgVarbit, L as pgTimeStoredText, M as pgNumericParams, N as pgPrecisionParams, P as pgText, R as pgTimestamp, S as pgFloat8, T as pgInt4, U as pgTimetzStoredText, V as pgTimestamptzStoredText, W as pgTsquery, Z as qualifiedEnumName, _ as pgDate, b as pgEnumParams, d as pgBool, f as pgBytea, g as pgCharacterLengthParams, h as pgChar, i as createPostgresBuiltinDataTypeLookup, j as pgNumeric, k as pgJson, l as pgBit, q as pgVarchar, u as pgBitLengthParams, v as pgDateStoredText, w as pgInt2, x as pgFloat4, y as pgEnum, z as pgTimestampStoredText } from "./data-types-DhBM9bIL-CVDQGAGw.mjs";
|
|
7
7
|
import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs";
|
|
8
|
-
import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, a as isPgEnumParams, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, i as decodePostgresListText, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as PgTimestamptzDateDescriptor, o as parsePostgresListText, p as pgFloatColumn, s as pgBitColumn, t as PgTimestamptzDateCodec, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-
|
|
9
|
-
import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-
|
|
8
|
+
import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, a as isPgEnumParams, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, i as decodePostgresListText, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as PgTimestamptzDateDescriptor, o as parsePostgresListText, p as pgFloatColumn, s as pgBitColumn, t as PgTimestamptzDateCodec, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-DNjF5kIh-BkybYk_D.mjs";
|
|
9
|
+
import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-C8ymMRsH-B48NRqXL.mjs";
|
|
10
10
|
import { f as weightGroupsOf, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem, t as DEFAULT_FULL_TEXT_SEARCH_LANGUAGE } from "./full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs";
|
|
11
|
-
import { c as PostgresSchema, d as isPostgresSchema, h as postgresCreateNamespace, i as PostgresRlsPolicy, l as PostgresTableSource, m as policyInputFromSerialized, n as PostgresRlsEnablement, o as PostgresRole, u as PostgresUnboundSchema } from "./postgres-schema-
|
|
11
|
+
import { c as PostgresSchema, d as isPostgresSchema, h as postgresCreateNamespace, i as PostgresRlsPolicy, l as PostgresTableSource, m as policyInputFromSerialized, n as PostgresRlsEnablement, o as PostgresRole, u as PostgresUnboundSchema } from "./postgres-schema-C6w1rzOF-bzaF5PIS.mjs";
|
|
12
12
|
import { _ as PostgresDropType, a as PostgresAlterIndexRename, c as PostgresCreateIndex, d as PostgresCreateTable, f as PostgresCreateType, g as PostgresDropPolicy, h as PostgresDropIndex, i as DropDefaultAction, l as PostgresCreatePolicy, m as PostgresDisableRowLevelSecurity, n as AddConstraintAction, o as PostgresAlterPolicyRename, p as PostgresDdlNode, r as AlterColumnTypeAction, s as PostgresAlterTable, t as AddColumnAction, u as PostgresCreateSchema } from "./nodes-BYKl6zt_-BoUacQ_3.mjs";
|
|
13
|
-
import { B as tablePrimaryKeyAst, E as extensionExistsAst, F as rlsPolicyExistsAst, I as sequenceNameAvailableAst, N as rlsEnabledAst, O as indexExistsAst, R as tableExistsAst, S as dropDefaultAction, V as toRegclass, c as columnDefaultSequenceAst, f as columnTypeAst, h as constraintExistsAst, j as noNullValuesAst, l as columnExistsAst, n as addConstraintAction, o as alterTable, r as alterColumnTypeAction, s as columnDefaultAst, t as addColumnAction, u as columnNullabilityAst, v as createSchema, y as createTable, z as tableIsEmptyAst } from "./ddl-
|
|
14
|
-
import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-
|
|
15
|
-
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-
|
|
13
|
+
import { B as tablePrimaryKeyAst, E as extensionExistsAst, F as rlsPolicyExistsAst, I as sequenceNameAvailableAst, N as rlsEnabledAst, O as indexExistsAst, R as tableExistsAst, S as dropDefaultAction, V as toRegclass, c as columnDefaultSequenceAst, f as columnTypeAst, h as constraintExistsAst, j as noNullValuesAst, l as columnExistsAst, n as addConstraintAction, o as alterTable, r as alterColumnTypeAction, s as columnDefaultAst, t as addColumnAction, u as columnNullabilityAst, v as createSchema, y as createTable, z as tableIsEmptyAst } from "./ddl-BrIDeRCe-ojLIc02T.mjs";
|
|
14
|
+
import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-CN4hGOBI.mjs";
|
|
15
|
+
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-DM3rkou1-AyAbELmA.mjs";
|
|
16
16
|
import { i as policyRoleList, n as POLICY_OPERATION_PREDICATES, r as computeContentHash, t as POLICY_COMMAND_SQL } from "./canonicalize-RdxoUHao-DK_M6HU-.mjs";
|
|
17
|
-
import { c as postgresNowGeneratorControlDescriptors, u as postgresNowGenerators } from "./authoring-
|
|
17
|
+
import { c as postgresNowGeneratorControlDescriptors, u as postgresNowGenerators } from "./authoring-CArQ0ZSb-BXqyKMTu.mjs";
|
|
18
18
|
import { t as postgresRenderCheckExpressions } from "./check-expressions-7uCCP01t-WtUqfqkP.mjs";
|
|
19
|
-
import { t as postgresDataTypeEntries } from "./data-type-entries-
|
|
19
|
+
import { t as postgresDataTypeEntries } from "./data-type-entries-EroSxeag-Ba-K5snn.mjs";
|
|
20
20
|
import { n as PostgresSchemaNodeKind, r as PostgresTableSchemaNode, t as PostgresNativeEnumSchemaNode } from "./postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs";
|
|
21
21
|
import { i as PostgresRoleSchemaNode, n as PostgresNamespaceSchemaNode, r as PostgresPolicySchemaNode, t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs";
|
|
22
22
|
import { n as readPostgresDefault, t as postgresResolveDefault } from "./default-normalizer-BqK6XxdC-BAgxt9FF.mjs";
|
|
23
23
|
import { n as renderFullTextIndexDocument } from "./full-text-search-document-Doy5TF7c-DezgYsP-.mjs";
|
|
24
|
-
import { r as resolveDdlSchemaForNamespaceStorage } from "./resolve-ddl-schema-
|
|
25
|
-
import { a as stackDataTypes, i as qualifyTableName, t as alterTypeCheck } from "./planner-sql-checks-
|
|
26
|
-
import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, O as RawSqlCall, P as SetDefaultCall, R as createExtension, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameIndexCall, k as RenameColumnCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-
|
|
27
|
-
import { t as buildColumnTypeSql } from "./planner-ddl-builders-
|
|
28
|
-
import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-
|
|
29
|
-
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-
|
|
30
|
-
import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-
|
|
31
|
-
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-
|
|
24
|
+
import { r as resolveDdlSchemaForNamespaceStorage } from "./resolve-ddl-schema-D3VNPMSm-DVuswLch.mjs";
|
|
25
|
+
import { a as stackDataTypes, i as qualifyTableName, t as alterTypeCheck } from "./planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs";
|
|
26
|
+
import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, O as RawSqlCall, P as SetDefaultCall, R as createExtension, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameIndexCall, k as RenameColumnCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-35RJQ1ME-BFxUakDe.mjs";
|
|
27
|
+
import { t as buildColumnTypeSql } from "./planner-ddl-builders-DujKuwcn-C0VYScBe.mjs";
|
|
28
|
+
import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-Vbk2SkMl-8xDzcTpo.mjs";
|
|
29
|
+
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-B10lrdMt-CHUsNZat.mjs";
|
|
30
|
+
import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-CmWmomi3-PoUser3Y.mjs";
|
|
31
|
+
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-xyfQHZ29-HOrk9af1.mjs";
|
|
32
32
|
import { t as dataTransform } from "./data-transform-CtHnNYhF-r19375h3.mjs";
|
|
33
|
-
import { t as PostgresMigration } from "./postgres-migration-
|
|
34
|
-
import { t as renderOps } from "./render-ops-
|
|
33
|
+
import { t as PostgresMigration } from "./postgres-migration-fZk6Dmud-BjRqdGdm.mjs";
|
|
34
|
+
import { t as renderOps } from "./render-ops-DkBRaS0Z-BtGb58iC.mjs";
|
|
35
35
|
import { t as renderCallsToTypeScript } from "./render-typescript-Dqp1Spgn-B128r1qw.mjs";
|
|
36
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
37
|
-
import { t as createPostgresMigrationPlanner } from "./planner-
|
|
36
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-BVsfYarL-C9BdUXeX.mjs";
|
|
37
|
+
import { t as createPostgresMigrationPlanner } from "./planner-olDFDn2v-Bh0e16rN.mjs";
|
|
38
38
|
import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-DFc1Tfv5-QMJSzMIa.mjs";
|
|
39
|
-
import { _ as postgresNativeAuthoringTypes, v as postgresPslTypeConstructors, y as postgresScalarAuthoringTypes } from "./type-constructors-
|
|
40
|
-
import { c as toTsquery, l as websearchToTsquery, n as fullTextDocument, o as phrasetoTsquery, s as plaintoTsquery, t as FullTextDocument } from "./full-text-parsers-
|
|
41
|
-
import { t as tsquery } from "./full-text-
|
|
39
|
+
import { _ as postgresNativeAuthoringTypes, v as postgresPslTypeConstructors, y as postgresScalarAuthoringTypes } from "./type-constructors-DQ7O80xT-DdTGyTSt.mjs";
|
|
40
|
+
import { c as toTsquery, l as websearchToTsquery, n as fullTextDocument, o as phrasetoTsquery, s as plaintoTsquery, t as FullTextDocument } from "./full-text-parsers-CFFxiOrp-BmiwdZ21.mjs";
|
|
41
|
+
import { t as tsquery } from "./full-text-8PmilGkW.mjs";
|
|
42
42
|
import { a as foreignKey, c as primaryKey, d as unique, i as fn, l as rawSql, n as checkExpression, o as lit, r as col, s as placeholder, t as MigrationCLI, u as sql } from "./migration-CbOh59ZJ.mjs";
|
|
43
|
-
import { t as introspectedTypeText } from "./native-type-normalizer-
|
|
43
|
+
import { t as introspectedTypeText } from "./native-type-normalizer-eX3KyHPA.mjs";
|
|
44
44
|
import { i as hasUniqueConstraint, n as hasForeignKey, r as hasIndex, t as buildSchemaLookupMap } from "./planner-schema-lookup-CdgWer9s.mjs";
|
|
45
|
-
import { t as prisma7PostgresBinding } from "./prisma7-binding-
|
|
46
|
-
export { AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddConstraintAction, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeAction, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, FULL_TEXT_INDEX_TYPE, FullTextDocument, MARKER_LOCK_KEY, MARKER_LOCK_SQL, PostgresMigration as Migration, MigrationCLI, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, POLICY_COMMAND_SQL, POLICY_OPERATION_PREDICATES, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, PostgresCodecDescriptor, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, PostgresDdlNode, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameTableCall, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SetDefaultCall, SetNotNullCall, TypeScriptRenderablePostgresMigration, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, alterTypeCheck, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresBuiltinCodecLookup, createPostgresBuiltinDataTypeLookup, createPostgresCodecRegistryWithBuiltins, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, describeFullTextIndexProblem, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, fullTextDocument, fullTextIndexProblems, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, int4, int8, introspectedTypeText, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimestamptzStoredText, pgTimetz, pgTimetzColumn, pgTimetzStoredText, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plaintoTsquery, planIssues, policyInputFromSerialized, policyRoleList, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresError, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresNowGenerators, postgresPslTypeConstructors, postgresRenderCheckExpressions, postgresResolveDefault, postgresScalarAuthoringTypes, primaryKey, prisma7PostgresBinding, qualifiedEnumName, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, readPostgresDefault, renderCallsToTypeScript, renderFullTextIndexDocument, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, sql, stackDataTypes, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery, weightGroupsOf };
|
|
45
|
+
import { t as prisma7PostgresBinding } from "./prisma7-binding-Dfb3osBy.mjs";
|
|
46
|
+
export { AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddConstraintAction, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeAction, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, FULL_TEXT_INDEX_TYPE, FullTextDocument, MARKER_LOCK_KEY, MARKER_LOCK_SQL, PostgresMigration as Migration, MigrationCLI, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, POLICY_COMMAND_SQL, POLICY_OPERATION_PREDICATES, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, PostgresCodecDescriptor, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, PostgresDdlNode, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameTableCall, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SetDefaultCall, SetNotNullCall, TypeScriptRenderablePostgresMigration, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, alterTypeCheck, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresBuiltinCodecLookup, createPostgresBuiltinDataTypeLookup, createPostgresCodecRegistryWithBuiltins, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, describeFullTextIndexProblem, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, fullTextDocument, fullTextIndexProblems, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, int4, int8, introspectedTypeText, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimestamptzStoredText, pgTimetz, pgTimetzColumn, pgTimetzStoredText, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plaintoTsquery, planIssues, policyInputFromSerialized, policyRoleList, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresError, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresNowGenerators, postgresPslTypeConstructors, postgresRenderCheckExpressions, postgresResolveDefault, postgresScalarAuthoringTypes, primaryKey, prisma7PostgresBinding, qualifiedEnumName, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, readPostgresDefault, renderCallsToTypeScript, renderFullTextIndexDocument, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, sql, stackDataTypes, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery, weightGroupsOf };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as postgresAggregateDescriptors } from "./aggregates-
|
|
1
|
+
import { t as postgresAggregateDescriptors } from "./aggregates-B3lIBjGK.mjs";
|
|
2
2
|
export { postgresAggregateDescriptors };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as postgresAggregateDescriptors } from "./aggregates-
|
|
1
|
+
import { t as postgresAggregateDescriptors } from "./aggregates-C7KEByGU.mjs";
|
|
2
2
|
export { postgresAggregateDescriptors };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as PG_TIME_TEMPORAL_CODEC_ID, B as
|
|
2
|
-
import "./codec-ids-
|
|
3
|
-
export { PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID };
|
|
1
|
+
import { A as PG_TIME_TEMPORAL_CODEC_ID, B as SQL_TEXT_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, I as SQL_CHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, N as PG_UUID_CODEC_ID, O as PG_TIMETZ_CODEC_ID, P as PG_VARBIT_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, V as SQL_VARCHAR_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, i as PG_CHAR_CODEC_ID, j as PG_TSQUERY_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_JSONB_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID, y as PG_JSON_CODEC_ID, z as SQL_RAW_CODEC_ID } from "./codec-ids-C6II64Wy-CCU5G6CU.mjs";
|
|
2
|
+
import "./codec-ids-C2HurNhZ.mjs";
|
|
3
|
+
export { PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as PG_TIME_TEMPORAL_CODEC_ID, B as
|
|
2
|
-
export { PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID };
|
|
1
|
+
import { A as PG_TIME_TEMPORAL_CODEC_ID, B as SQL_TEXT_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, I as SQL_CHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, N as PG_UUID_CODEC_ID, O as PG_TIMETZ_CODEC_ID, P as PG_VARBIT_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, V as SQL_VARCHAR_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, i as PG_CHAR_CODEC_ID, j as PG_TSQUERY_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_JSONB_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID, y as PG_JSON_CODEC_ID, z as SQL_RAW_CODEC_ID } from "./codec-ids-BMhEpFwv-BLIC4g3Y.mjs";
|
|
2
|
+
export { PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as PgInterval } from "./codecs-
|
|
2
|
-
import { a as JsonValue$1, c as Time, d as TimestampString, f as Timestamptz, g as Varchar, h as VarBit, i as Interval, l as TimeString, m as Timetz, n as Char, o as Numeric, p as TimestamptzString, r as CodecTypes, s as ParameterizedOutputTypesForTypeParams, t as Bit, u as Timestamp } from "./codec-types-
|
|
3
|
-
import "./codec-types-
|
|
1
|
+
import { y as PgInterval } from "./codecs-DgslvOOU-eZpfm_fU.mjs";
|
|
2
|
+
import { a as JsonValue$1, c as Time, d as TimestampString, f as Timestamptz, g as Varchar, h as VarBit, i as Interval, l as TimeString, m as Timetz, n as Char, o as Numeric, p as TimestamptzString, r as CodecTypes, s as ParameterizedOutputTypesForTypeParams, t as Bit, u as Timestamp } from "./codec-types-yRnVORmz-C5oISm2L.mjs";
|
|
3
|
+
import "./codec-types-CXL3_pbl.mjs";
|
|
4
4
|
export { Bit, Char, CodecTypes, Interval, type JsonValue$1 as JsonValue, Numeric, ParameterizedOutputTypesForTypeParams, type PgInterval, Time, TimeString, Timestamp, TimestampString, Timestamptz, TimestamptzString, Timetz, VarBit, Varchar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as pgIntervalColumn, A as PgTimestamptzDateDescriptor, B as pgBitColumn, C as PgNumericDescriptor, F as PgUnboundedIntDescriptor, G as pgFloat8Column, H as pgCharColumn, I as PgUuidDescriptor, J as pgInt2Column, K as pgFloatColumn, L as PgVarbitDescriptor, N as PgTimetzDescriptor, Q as pgIntColumn, R as PgVarcharDescriptor, S as PgJsonbDescriptor, U as pgEnumDescriptor, V as pgBoolColumn, W as pgFloat4Column, X as pgInt8Column, Y as pgInt4Column, Z as pgInt8NumberColumn, _ as PgInt8NumberDescriptor, at as pgTimestamptzDateDescriptor, b as PgIntervalDescriptor, c as PgEnumDescriptor, ct as pgUuidColumn, d as PgFloat8Descriptor, et as pgJsonColumn, f as PgFloatDescriptor, g as PgInt8Descriptor, h as PgInt4Descriptor, i as PgCharDescriptor, it as pgTimestamptzDateColumn, k as PgTimestamptzDateCodec, l as PgEnumParams, lt as pgVarbitColumn, m as PgInt2Descriptor, n as PgBoolDescriptor, nt as pgNumericColumn, ot as pgTimetzColumn, p as PgInetDescriptor, q as pgInetColumn, rt as pgTextColumn, s as PgEnumCodec, st as pgUnboundedIntColumn, t as PgBitDescriptor, tt as pgJsonbColumn, u as PgFloat4Descriptor, ut as pgVarcharColumn, v as PgIntDescriptor, w as PgTextDescriptor, x as PgJsonDescriptor, y as PgInterval, z as isPgEnumParams } from "./codecs-
|
|
1
|
+
import { $ as pgIntervalColumn, A as PgTimestamptzDateDescriptor, B as pgBitColumn, C as PgNumericDescriptor, F as PgUnboundedIntDescriptor, G as pgFloat8Column, H as pgCharColumn, I as PgUuidDescriptor, J as pgInt2Column, K as pgFloatColumn, L as PgVarbitDescriptor, N as PgTimetzDescriptor, Q as pgIntColumn, R as PgVarcharDescriptor, S as PgJsonbDescriptor, U as pgEnumDescriptor, V as pgBoolColumn, W as pgFloat4Column, X as pgInt8Column, Y as pgInt4Column, Z as pgInt8NumberColumn, _ as PgInt8NumberDescriptor, at as pgTimestamptzDateDescriptor, b as PgIntervalDescriptor, c as PgEnumDescriptor, ct as pgUuidColumn, d as PgFloat8Descriptor, et as pgJsonColumn, f as PgFloatDescriptor, g as PgInt8Descriptor, h as PgInt4Descriptor, i as PgCharDescriptor, it as pgTimestamptzDateColumn, k as PgTimestamptzDateCodec, l as PgEnumParams, lt as pgVarbitColumn, m as PgInt2Descriptor, n as PgBoolDescriptor, nt as pgNumericColumn, ot as pgTimetzColumn, p as PgInetDescriptor, q as pgInetColumn, rt as pgTextColumn, s as PgEnumCodec, st as pgUnboundedIntColumn, t as PgBitDescriptor, tt as pgJsonbColumn, u as PgFloat4Descriptor, ut as pgVarcharColumn, v as PgIntDescriptor, w as PgTextDescriptor, x as PgJsonDescriptor, y as PgInterval, z as isPgEnumParams } from "./codecs-DgslvOOU-eZpfm_fU.mjs";
|
|
2
2
|
import { n as parsePostgresListText } from "./list-decoder-BcrLExnx-hTa7qY7a.mjs";
|
|
3
|
-
import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, n as assemblePostgresCodecRegistry, o as postgresCodecDescriptorRegistry, r as assemblePostgresCodecRegistryWithBuiltins, s as postgresCodecRegistry, t as PostgresCodecRegistry } from "./codecs-
|
|
3
|
+
import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, n as assemblePostgresCodecRegistry, o as postgresCodecDescriptorRegistry, r as assemblePostgresCodecRegistryWithBuiltins, s as postgresCodecRegistry, t as PostgresCodecRegistry } from "./codecs-DydRFxCt.mjs";
|
|
4
4
|
export { type PgBitDescriptor, type PgBoolDescriptor, type PgCharDescriptor, type PgEnumCodec, type PgEnumDescriptor, type PgEnumParams, type PgFloat4Descriptor, type PgFloat8Descriptor, type PgFloatDescriptor, type PgInetDescriptor, type PgInt2Descriptor, type PgInt4Descriptor, type PgInt8Descriptor, type PgInt8NumberDescriptor, type PgIntDescriptor, type PgInterval, type PgIntervalDescriptor, type PgJsonDescriptor, type PgJsonbDescriptor, type PgNumericDescriptor, type PgTextDescriptor, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, type PgTimetzDescriptor, type PgUnboundedIntDescriptor, type PgUuidDescriptor, type PgVarbitDescriptor, type PgVarcharDescriptor, type PostgresCodecRegistry, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, isPgEnumParams, parsePostgresListText, pgBitColumn, pgBoolColumn, pgCharColumn, pgEnumDescriptor, pgFloat4Column, pgFloat8Column, pgFloatColumn, pgInetColumn, pgInt2Column, pgInt4Column, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgIntervalColumn, pgJsonColumn, pgJsonbColumn, pgNumericColumn, pgTextColumn, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetzColumn, pgUnboundedIntColumn, pgUuidColumn, pgVarbitColumn, pgVarcharColumn, postgresCodecDescriptorRegistry, postgresCodecRegistry };
|
package/dist/target__codecs.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, a as isPgEnumParams, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as PgTimestamptzDateDescriptor, o as parsePostgresListText, p as pgFloatColumn, s as pgBitColumn, t as PgTimestamptzDateCodec, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-
|
|
2
|
-
import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-
|
|
1
|
+
import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, a as isPgEnumParams, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as PgTimestamptzDateDescriptor, o as parsePostgresListText, p as pgFloatColumn, s as pgBitColumn, t as PgTimestamptzDateCodec, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-DNjF5kIh-BkybYk_D.mjs";
|
|
2
|
+
import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-C8ymMRsH-B48NRqXL.mjs";
|
|
3
3
|
export { PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, isPgEnumParams, parsePostgresListText, pgBitColumn, pgBoolColumn, pgCharColumn, pgEnumDescriptor, pgFloat4Column, pgFloat8Column, pgFloatColumn, pgInetColumn, pgInt2Column, pgInt4Column, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgIntervalColumn, pgJsonColumn, pgJsonbColumn, pgNumericColumn, pgTextColumn, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetzColumn, pgUnboundedIntColumn, pgUuidColumn, pgVarbitColumn, pgVarcharColumn, postgresCodecDescriptorRegistry, postgresCodecRegistry };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as PostgresTableSource } from "./postgres-schema-
|
|
2
|
-
import { B as tablePrimaryKeyAst, E as extensionExistsAst, F as rlsPolicyExistsAst, I as sequenceNameAvailableAst, N as rlsEnabledAst, O as indexExistsAst, R as tableExistsAst, S as dropDefaultAction, V as toRegclass, c as columnDefaultSequenceAst, f as columnTypeAst, h as constraintExistsAst, j as noNullValuesAst, l as columnExistsAst, n as addConstraintAction, o as alterTable, r as alterColumnTypeAction, s as columnDefaultAst, t as addColumnAction, u as columnNullabilityAst, v as createSchema, y as createTable, z as tableIsEmptyAst } from "./ddl-
|
|
3
|
-
import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-
|
|
1
|
+
import { l as PostgresTableSource } from "./postgres-schema-C6w1rzOF-bzaF5PIS.mjs";
|
|
2
|
+
import { B as tablePrimaryKeyAst, E as extensionExistsAst, F as rlsPolicyExistsAst, I as sequenceNameAvailableAst, N as rlsEnabledAst, O as indexExistsAst, R as tableExistsAst, S as dropDefaultAction, V as toRegclass, c as columnDefaultSequenceAst, f as columnTypeAst, h as constraintExistsAst, j as noNullValuesAst, l as columnExistsAst, n as addConstraintAction, o as alterTable, r as alterColumnTypeAction, s as columnDefaultAst, t as addColumnAction, u as columnNullabilityAst, v as createSchema, y as createTable, z as tableIsEmptyAst } from "./ddl-BrIDeRCe-ojLIc02T.mjs";
|
|
3
|
+
import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-CN4hGOBI.mjs";
|
|
4
4
|
export { PostgresTableSource, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, constraintExistsAst, createSchema, createTable, dropDefaultAction, extensionExistsAst, indexExistsAst, int4, int8, jsonb, noNullValuesAst, pgTable, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as parsePostgresListText, t as decodePostgresListText } from "./list-decoder-BcrLExnx-hTa7qY7a.mjs";
|
|
2
2
|
import { t as postgresNowGeneratorControlDescriptors } from "./date-time-now-generators-CMkXVbMG-CYwplAuf.mjs";
|
|
3
|
-
import { i as postgresTargetDescriptor, n as postgresPslTypeConstructors, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-
|
|
3
|
+
import { i as postgresTargetDescriptor, n as postgresPslTypeConstructors, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-BRE_BcLl.mjs";
|
|
4
4
|
export { decodePostgresListText, postgresTargetDescriptor as default, parsePostgresListText, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresPslTypeConstructors, postgresScalarAuthoringTypes };
|
package/dist/target__control.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { S as PG_TEXT_CODEC_ID, s as PG_ENUM_CODEC_ID } from "./codec-ids-
|
|
1
|
+
import { S as PG_TEXT_CODEC_ID, s as PG_ENUM_CODEC_ID } from "./codec-ids-BMhEpFwv-BLIC4g3Y.mjs";
|
|
2
2
|
import { c as postgresError } from "./errors-BrhQYgdL-D_lIrddD.mjs";
|
|
3
3
|
import { i as quoteIdentifier } from "./sql-utils-Bnw3JbWf-zvWDkyrr.mjs";
|
|
4
4
|
import { t as DEFAULT_NAMESPACE_ID } from "./namespace-ids-xtp_ZY86-Cpp8PTxD.mjs";
|
|
5
5
|
import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs";
|
|
6
|
-
import { P as setFallbackTemporal, i as decodePostgresListText, o as parsePostgresListText } from "./codecs-
|
|
6
|
+
import { P as setFallbackTemporal, i as decodePostgresListText, o as parsePostgresListText } from "./codecs-DNjF5kIh-BkybYk_D.mjs";
|
|
7
7
|
import { s as fullTextIndexDefinitionOf } from "./full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs";
|
|
8
|
-
import { i as PostgresRlsPolicy, n as PostgresRlsEnablement, o as PostgresRole } from "./postgres-schema-
|
|
8
|
+
import { i as PostgresRlsPolicy, n as PostgresRlsEnablement, o as PostgresRole } from "./postgres-schema-C6w1rzOF-bzaF5PIS.mjs";
|
|
9
9
|
import { r as computeContentHash } from "./canonicalize-RdxoUHao-DK_M6HU-.mjs";
|
|
10
|
-
import { c as postgresNowGeneratorControlDescriptors, t as POLICY_BLOCK_KEYWORDS } from "./authoring-
|
|
10
|
+
import { c as postgresNowGeneratorControlDescriptors, t as POLICY_BLOCK_KEYWORDS } from "./authoring-CArQ0ZSb-BXqyKMTu.mjs";
|
|
11
11
|
import { t as postgresRenderCheckExpressions } from "./check-expressions-7uCCP01t-WtUqfqkP.mjs";
|
|
12
|
-
import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-
|
|
12
|
+
import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-9qCQPbrI-DFEFmwBv.mjs";
|
|
13
13
|
import { a as postgresDiffSubjectGranularity, i as postgresDiffSubjectEntityKind } from "./postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs";
|
|
14
14
|
import { t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs";
|
|
15
|
-
import { i as qualifyTableName } from "./planner-sql-checks-
|
|
16
|
-
import { r as diffPostgresSchema } from "./diff-database-schema-
|
|
17
|
-
import { t as PostgresContractSerializer } from "./postgres-contract-view-
|
|
18
|
-
import { o as postgresContractToSchema } from "./postgres-migration-
|
|
19
|
-
import { t as createPostgresMigrationPlanner } from "./planner-
|
|
15
|
+
import { i as qualifyTableName } from "./planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs";
|
|
16
|
+
import { r as diffPostgresSchema } from "./diff-database-schema-CmWmomi3-PoUser3Y.mjs";
|
|
17
|
+
import { t as PostgresContractSerializer } from "./postgres-contract-view-xyfQHZ29-HOrk9af1.mjs";
|
|
18
|
+
import { o as postgresContractToSchema } from "./postgres-migration-fZk6Dmud-BjRqdGdm.mjs";
|
|
19
|
+
import { t as createPostgresMigrationPlanner } from "./planner-olDFDn2v-Bh0e16rN.mjs";
|
|
20
20
|
import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-DFc1Tfv5-QMJSzMIa.mjs";
|
|
21
|
-
import { _ as postgresNativeAuthoringTypes, a as buildIndexAttribute, c as buildNativeEnumBlock, d as inferPostgresPslContract, f as namedArg, g as positionalArg, h as parseDefaultAttributeString, i as buildFullTextIndexAttribute, n as buildAttribute, o as buildMapAttribute, r as buildCheckAttribute, s as buildModelConstraintAttribute, t as SYNTHETIC_SPAN, v as postgresPslTypeConstructors, y as postgresScalarAuthoringTypes } from "./type-constructors-
|
|
21
|
+
import { _ as postgresNativeAuthoringTypes, a as buildIndexAttribute, c as buildNativeEnumBlock, d as inferPostgresPslContract, f as namedArg, g as positionalArg, h as parseDefaultAttributeString, i as buildFullTextIndexAttribute, n as buildAttribute, o as buildMapAttribute, r as buildCheckAttribute, s as buildModelConstraintAttribute, t as SYNTHETIC_SPAN, v as postgresPslTypeConstructors, y as postgresScalarAuthoringTypes } from "./type-constructors-DQ7O80xT-DdTGyTSt.mjs";
|
|
22
22
|
import { dataTypeParams, requiredParamKeys, validateCodecTypeParams } from "@prisma/orm-framework/components/codec";
|
|
23
23
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
24
24
|
import { isSqlDataType, unquotedSqlBaseName } from "@prisma/orm-family-sql/contract/data-type";
|
|
@@ -37,7 +37,7 @@ import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
|
37
37
|
import { notOk, ok, okVoid } from "@prisma/orm-framework/utils/result";
|
|
38
38
|
import { SqlSchemaVerifierBase } from "@prisma/orm-family-sql/family/ir";
|
|
39
39
|
import { effectiveControlPolicy } from "@prisma/orm-framework/contract/types";
|
|
40
|
-
import {
|
|
40
|
+
import { generatorCallsFor, inferredTypeConstructors, mapDefault, pslTypeArgumentText } from "@prisma/orm-family-sql/family/psl-build";
|
|
41
41
|
import { UNBOUND_PSL_NAMESPACE_NAME, UNSPECIFIED_PSL_NAMESPACE_ID, makePslNamespace, makePslNamespaceEntries } from "@prisma/orm-framework/components/psl-ast";
|
|
42
42
|
import { Temporal } from "temporal-polyfill/full/implementation";
|
|
43
43
|
import { SqlQueryError } from "@prisma/orm-family-sql/errors";
|
|
@@ -624,81 +624,45 @@ function refuseUnwritableLiteralDefault(input) {
|
|
|
624
624
|
pslTypeName: input.pslTypeName
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
throw unsupported(`column ${phases.coordinate} generates ${describePhases(phases)}, which cannot be written in Prisma 8 PSL.`, "The field preset in the configured stack that writes one of these generators for the column codec does not also write the other phase, so that phase would be dropped from the written file, and no default function in the configured stack writes the column's generators instead.", KEEP_SOURCE, {
|
|
632
|
-
coordinate: phases.coordinate,
|
|
633
|
-
onCreate: phases.onCreate,
|
|
634
|
-
onUpdate: phases.onUpdate
|
|
635
|
-
});
|
|
636
|
-
}
|
|
627
|
+
const PHASE_TEXT = {
|
|
628
|
+
onCreate: "on create",
|
|
629
|
+
onUpdate: "on update"
|
|
630
|
+
};
|
|
637
631
|
function describeGenerator(generator) {
|
|
638
632
|
if (generator === void 0) return "no generator";
|
|
639
633
|
const params = generator.params ?? {};
|
|
640
634
|
return Object.keys(params).length === 0 ? `"${generator.id}"` : `"${generator.id}" with params ${canonicalizeJson(params)}`;
|
|
641
635
|
}
|
|
642
|
-
function
|
|
643
|
-
|
|
644
|
-
case "codecId": return `codec "${difference.printed}" instead of "${difference.column}"`;
|
|
645
|
-
case "typeParams": return `type params ${canonicalizeJson(difference.printed ?? {})} instead of ${canonicalizeJson(difference.column ?? {})}`;
|
|
646
|
-
case "onCreate":
|
|
647
|
-
case "onUpdate": return `${difference.part === "onCreate" ? "on create" : "on update"} ${describeGenerator(difference.printed)} instead of ${describeGenerator(difference.column)}`;
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
const COLUMN_TYPE_KINDS = {
|
|
651
|
-
namedType: "a named type",
|
|
652
|
-
valueObject: "a value object",
|
|
653
|
-
enum: "an enum"
|
|
654
|
-
};
|
|
655
|
-
function describeUnwritableReason(reason) {
|
|
656
|
-
switch (reason.kind) {
|
|
657
|
-
case "columnType": return `its type ${reason.typeName} is ${COLUMN_TYPE_KINDS[reason.columnType]}, which the preset call would replace`;
|
|
658
|
-
case "list": return "the column is a list, and a preset call cannot be a list element";
|
|
659
|
-
case "unwritableArgument": return `its type param "${reason.argument}" is ${JSON.stringify(reason.value)}, which a PSL argument cannot carry`;
|
|
660
|
-
case "argumentsRejected": return `the preset does not accept the call, since ${reason.message}`;
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
function refuseUnwritablePresetCall(input) {
|
|
664
|
-
throw unsupported(`column ${input.coordinate} cannot be written with field preset ${input.preset}: ${describeUnwritableReason(input.reason)}.`, "The printer writes a column's generators as the call of the field preset that writes the column's codec with them, or a create-only generator as the call of its default function. The preset call cannot be written for this column, and no default function in the configured stack writes its generators.", KEEP_SOURCE, {
|
|
665
|
-
coordinate: input.coordinate,
|
|
666
|
-
preset: input.preset,
|
|
667
|
-
reason: input.reason
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
function refusePresetCallReadingBackDifferently(input) {
|
|
671
|
-
throw unsupported(`column ${input.coordinate} is written with field preset ${input.preset}, and that call reads back as a different column: ${input.differences.map(describeDifference).join("; ")}.`, "The printer writes a column's generators as the call of the field preset that writes the column's codec with them, and that call must read back with the column's codec, type params and generators. No default function in the configured stack writes its generators instead.", KEEP_SOURCE, {
|
|
636
|
+
function refuseGeneratorOnList(input) {
|
|
637
|
+
throw unsupported(`column ${input.coordinate} is a list and generates "${input.generatorId}" ${PHASE_TEXT[input.phase]}, which cannot be written in Prisma 8 PSL.`, "Prisma 8 PSL refuses `@onCreate(…)` and `@onUpdate(…)` on a list field, since a list has no generated value per element.", KEEP_SOURCE, {
|
|
672
638
|
coordinate: input.coordinate,
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
function refuseGeneratorOnUpdate(phases) {
|
|
678
|
-
throw unsupported(`column ${phases.coordinate} generates a value on update ("${phases.onUpdate}"), which cannot be written in Prisma 8 PSL.`, "`@default(…)` writes a generator for create only; a generator on update is written only through a field preset, and the configured stack has no field preset for the column codec that contract print can write with this generator.", KEEP_SOURCE, {
|
|
679
|
-
coordinate: phases.coordinate,
|
|
680
|
-
onCreate: phases.onCreate,
|
|
681
|
-
onUpdate: phases.onUpdate
|
|
639
|
+
phase: input.phase,
|
|
640
|
+
generatorId: input.generatorId
|
|
682
641
|
});
|
|
683
642
|
}
|
|
684
643
|
function refuseGeneratorWithoutPslFunction(input) {
|
|
685
|
-
const { coordinate,
|
|
644
|
+
const { coordinate, phase, generatorId, codecId, registeredBy } = input;
|
|
686
645
|
const meta = {
|
|
687
646
|
coordinate,
|
|
688
|
-
|
|
689
|
-
|
|
647
|
+
phase,
|
|
648
|
+
generatorId,
|
|
649
|
+
codecId
|
|
690
650
|
};
|
|
691
|
-
if (registeredBy === void 0) throw unsupported(`column ${coordinate} is generated by "${
|
|
651
|
+
if (registeredBy === void 0) throw unsupported(`column ${coordinate} is generated by "${generatorId}" ${PHASE_TEXT[phase]}, which no component in the configured stack registers.`, `The printer writes each generator as \`@${phase}(fn(…))\` with the generator function the configured stack binds to the column's codec, and no component in the stack registers this generator.`, "Add the extension that registers the generator and its generator function to the config, or keep authoring this contract in its current source.", meta);
|
|
692
652
|
const { componentId } = registeredBy;
|
|
693
|
-
|
|
653
|
+
const registrant = componentId === void 0 ? "a configured component" : `"${componentId}"`;
|
|
654
|
+
throw unsupported(`column ${coordinate} is generated by "${generatorId}" ${PHASE_TEXT[phase]}, which ${registrant} registers, but no generator function in the configured stack writes it for codec "${codecId}".`, `The printer writes each generator as \`@${phase}(fn(…))\` with the generator function the configured stack binds to the column's codec, and no function bound to "${codecId}" produces this generator.`, `If ${componentId === void 0 ? `the component that registers "${generatorId}"` : `"${componentId}"`} declares a generator function that produces it, its author must bind that function to codec "${codecId}", as the upgrade instructions "default-generators-to-on-create" for extension authors describe. Until then, keep authoring this contract in its current source.`, {
|
|
694
655
|
...meta,
|
|
695
656
|
...ifDefined("componentId", componentId)
|
|
696
657
|
});
|
|
697
658
|
}
|
|
698
|
-
function
|
|
699
|
-
throw unsupported(`column ${input.coordinate}
|
|
659
|
+
function refuseGeneratorReadingBackDifferently(input) {
|
|
660
|
+
throw unsupported(`column ${input.coordinate} generates ${describeGenerator(input.stored)} ${PHASE_TEXT[input.phase]}, but @${input.phase}(${input.call}) reads back as ${describeGenerator(input.readBack)}.`, "The printer writes each generator as the call of the generator function the configured stack binds to the column's codec, and that call must resolve back to the stored generator and params on the column.", KEEP_SOURCE, {
|
|
700
661
|
coordinate: input.coordinate,
|
|
701
|
-
|
|
662
|
+
phase: input.phase,
|
|
663
|
+
call: input.call,
|
|
664
|
+
stored: input.stored,
|
|
665
|
+
readBack: input.readBack
|
|
702
666
|
});
|
|
703
667
|
}
|
|
704
668
|
/**
|
|
@@ -2110,62 +2074,47 @@ function buildColumnDefault(input) {
|
|
|
2110
2074
|
});
|
|
2111
2075
|
return parseDefaultAttributeString(result.attribute);
|
|
2112
2076
|
}
|
|
2113
|
-
function
|
|
2114
|
-
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
onUpdate: onUpdateId
|
|
2127
|
-
};
|
|
2128
|
-
const choice = fieldPresetCallFor({
|
|
2129
|
-
fieldPresetsByCodecAndGenerator: context.fieldPresetsByCodecAndGenerator,
|
|
2130
|
-
column: {
|
|
2077
|
+
function refuse(refusal, input) {
|
|
2078
|
+
const { coordinate, codecId, context } = input;
|
|
2079
|
+
const { phase, generator } = refusal;
|
|
2080
|
+
switch (refusal.kind) {
|
|
2081
|
+
case "on-list": return refuseGeneratorOnList({
|
|
2082
|
+
coordinate,
|
|
2083
|
+
phase,
|
|
2084
|
+
generatorId: generator.id
|
|
2085
|
+
});
|
|
2086
|
+
case "no-function": return refuseGeneratorWithoutPslFunction({
|
|
2087
|
+
coordinate,
|
|
2088
|
+
phase,
|
|
2089
|
+
generatorId: generator.id,
|
|
2131
2090
|
codecId,
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
generators: executionDefault
|
|
2136
|
-
}
|
|
2137
|
-
});
|
|
2138
|
-
if (choice.kind === "call") return {
|
|
2139
|
-
kind: "preset",
|
|
2140
|
-
path: choice.preset.path,
|
|
2141
|
-
args: choice.arguments.map(toPslArgument)
|
|
2142
|
-
};
|
|
2143
|
-
const call = onCreateId === void 0 || onUpdateId !== void 0 ? void 0 : defaultFunctionCallFor(context.defaultFunctionPrintersByGenerator, onCreateId, executionDefault.onCreate?.params);
|
|
2144
|
-
if (call !== void 0) return {
|
|
2145
|
-
kind: "attribute",
|
|
2146
|
-
attribute: buildAttribute("field", "default", [positionalArg(call)])
|
|
2147
|
-
};
|
|
2148
|
-
switch (choice.kind) {
|
|
2149
|
-
case "cannotWrite":
|
|
2150
|
-
if (choice.reason.kind === "phasesNotWrittenTogether") return refuseGeneratorsNoPresetWritesTogether(phases);
|
|
2151
|
-
return refuseUnwritablePresetCall({
|
|
2152
|
-
coordinate,
|
|
2153
|
-
preset: choice.preset.path.join("."),
|
|
2154
|
-
reason: choice.reason
|
|
2155
|
-
});
|
|
2156
|
-
case "readsBackDifferently": return refusePresetCallReadingBackDifferently({
|
|
2091
|
+
registeredBy: context.componentIdsByGenerator.has(generator.id) ? { componentId: context.componentIdsByGenerator.get(generator.id) } : void 0
|
|
2092
|
+
});
|
|
2093
|
+
case "reads-back-differently": return refuseGeneratorReadingBackDifferently({
|
|
2157
2094
|
coordinate,
|
|
2158
|
-
|
|
2159
|
-
|
|
2095
|
+
phase,
|
|
2096
|
+
call: refusal.text,
|
|
2097
|
+
stored: generator,
|
|
2098
|
+
readBack: refusal.readBack
|
|
2160
2099
|
});
|
|
2161
|
-
case "noPreset":
|
|
2162
|
-
if (onUpdateId !== void 0) return refuseGeneratorOnUpdate(phases);
|
|
2163
|
-
return refuseGeneratorWithoutPslFunction({
|
|
2164
|
-
...phases,
|
|
2165
|
-
registeredBy: onCreateId !== void 0 && context.componentIdsByGenerator.has(onCreateId) ? { componentId: context.componentIdsByGenerator.get(onCreateId) } : void 0
|
|
2166
|
-
});
|
|
2167
2100
|
}
|
|
2168
2101
|
}
|
|
2102
|
+
/**
|
|
2103
|
+
* The `@onCreate(fn(...))` and `@onUpdate(fn(...))` attributes that write one column's generators. A column whose generators cannot be written as calls that read back the same is refused.
|
|
2104
|
+
*/
|
|
2105
|
+
function buildGeneratorAttributes(input) {
|
|
2106
|
+
const result = generatorCallsFor({
|
|
2107
|
+
executionDefault: input.executionDefault,
|
|
2108
|
+
field: {
|
|
2109
|
+
codecId: input.codecId,
|
|
2110
|
+
typeParams: input.typeParams
|
|
2111
|
+
},
|
|
2112
|
+
list: input.list,
|
|
2113
|
+
generatorFunctions: input.context.generatorFunctions
|
|
2114
|
+
});
|
|
2115
|
+
if (!result.ok) refuse(result.refusal, input);
|
|
2116
|
+
return result.calls.map(({ phase, text }) => buildAttribute("field", phase, [positionalArg(text)]));
|
|
2117
|
+
}
|
|
2169
2118
|
/** The generated values of the contract, keyed by the column they fill. */
|
|
2170
2119
|
function executionDefaultsByColumn(contract) {
|
|
2171
2120
|
const byColumn = /* @__PURE__ */ new Map();
|
|
@@ -2179,7 +2128,7 @@ function executionDefaultsByColumn(contract) {
|
|
|
2179
2128
|
function scalarFieldAttributes(input) {
|
|
2180
2129
|
const attributes = [];
|
|
2181
2130
|
if (input.isSingleColumnId) attributes.push(buildAttribute("field", "id", input.primaryKeyName === void 0 ? [] : [namedArg("map", `"${escapePslString(input.primaryKeyName)}"`)]));
|
|
2182
|
-
const columnDefault =
|
|
2131
|
+
const columnDefault = buildColumnDefault({
|
|
2183
2132
|
column: input.column,
|
|
2184
2133
|
pslTypeName: input.pslTypeName,
|
|
2185
2134
|
isEnum: input.isEnum,
|
|
@@ -2191,6 +2140,7 @@ function scalarFieldAttributes(input) {
|
|
|
2191
2140
|
namedTypes: input.namedTypes
|
|
2192
2141
|
});
|
|
2193
2142
|
if (columnDefault !== void 0) attributes.push(columnDefault);
|
|
2143
|
+
attributes.push(...input.generatorAttributes);
|
|
2194
2144
|
const mapName = pslFieldMapName(input.fieldName, input.columnName);
|
|
2195
2145
|
if (mapName !== void 0) attributes.push(buildMapAttribute("field", mapName));
|
|
2196
2146
|
return attributes;
|
|
@@ -2247,37 +2197,20 @@ function buildScalarFields(input) {
|
|
|
2247
2197
|
coordinate,
|
|
2248
2198
|
namespaceId: entry.namespaceId
|
|
2249
2199
|
});
|
|
2250
|
-
|
|
2200
|
+
const { typeName, typeConstructor } = columnType;
|
|
2251
2201
|
const execution = executionDefaults.get(JSON.stringify([
|
|
2252
2202
|
entry.namespaceId,
|
|
2253
2203
|
entry.tableName,
|
|
2254
2204
|
columnName
|
|
2255
2205
|
]));
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
coordinate,
|
|
2265
|
-
context
|
|
2266
|
-
});
|
|
2267
|
-
if (built.kind === "preset") {
|
|
2268
|
-
typeName = built.path.join(".");
|
|
2269
|
-
typeConstructor = {
|
|
2270
|
-
kind: "typeConstructor",
|
|
2271
|
-
path: built.path,
|
|
2272
|
-
args: built.args,
|
|
2273
|
-
span: SYNTHETIC_SPAN
|
|
2274
|
-
};
|
|
2275
|
-
} else if (column.default !== void 0) refuseGeneratorWithDatabaseDefault({
|
|
2276
|
-
coordinate,
|
|
2277
|
-
onCreate: execution.onCreate?.id
|
|
2278
|
-
});
|
|
2279
|
-
else generatedDefault = built.attribute;
|
|
2280
|
-
}
|
|
2206
|
+
const generatorAttributes = execution === void 0 ? [] : buildGeneratorAttributes({
|
|
2207
|
+
executionDefault: execution,
|
|
2208
|
+
codecId: column.codecId,
|
|
2209
|
+
list: !!field.many,
|
|
2210
|
+
typeParams: resolvedTypeParams(column, input.namedTypes),
|
|
2211
|
+
coordinate,
|
|
2212
|
+
context
|
|
2213
|
+
});
|
|
2281
2214
|
fields.push({
|
|
2282
2215
|
kind: "field",
|
|
2283
2216
|
name: fieldName,
|
|
@@ -2297,7 +2230,7 @@ function buildScalarFields(input) {
|
|
|
2297
2230
|
pslTypeName: columnType.typeName,
|
|
2298
2231
|
isEnum: column.codecId === PG_ENUM_CODEC_ID,
|
|
2299
2232
|
domainEnum: column.codecId === "pg/enum@1" || column.valueSet === void 0 ? void 0 : domainEnums[column.valueSet.entityName],
|
|
2300
|
-
|
|
2233
|
+
generatorAttributes,
|
|
2301
2234
|
context,
|
|
2302
2235
|
namedTypes: input.namedTypes
|
|
2303
2236
|
}),
|