@prisma/orm-family-sql 8.0.0-rc.14-dev.29 → 8.0.0-rc.14-dev.30
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/{aggregate-descriptor-registry-CJF2KxUb.mjs → aggregate-descriptor-registry-B3RG0Zom.mjs} +2 -2
- package/dist/{aggregate-descriptor-registry-CJF2KxUb.mjs.map → aggregate-descriptor-registry-B3RG0Zom.mjs.map} +1 -1
- package/dist/{ast-dPjHeaNs.d.mts → ast-BUbHXpzG.d.mts} +7 -105
- package/dist/ast-BUbHXpzG.d.mts.map +1 -0
- package/dist/ast-CQZn-6Wd.mjs +310 -0
- package/dist/ast-CQZn-6Wd.mjs.map +1 -0
- package/dist/{authoring-entity-types-CZ-vdwYS-BfyaoH53.d.mts → authoring-entity-types-CZ-vdwYS-C25VGQVB.d.mts} +2 -2
- package/dist/{authoring-entity-types-CZ-vdwYS-BfyaoH53.d.mts.map → authoring-entity-types-CZ-vdwYS-C25VGQVB.d.mts.map} +1 -1
- package/dist/{authoring-type-constructors-DIyheCzv-BSrAEZsD.mjs → authoring-type-constructors-dihiQslc-hldmqa1r.mjs} +22 -28
- package/dist/authoring-type-constructors-dihiQslc-hldmqa1r.mjs.map +1 -0
- package/dist/builder.d.mts +2 -2
- package/dist/builder__runtime.d.mts +6 -6
- package/dist/builder__runtime.mjs +3 -3
- package/dist/builder__types.d.mts +2 -2
- package/dist/{codec-descriptor-registry-u6_e6WfA.mjs → codec-descriptor-registry-BW0REwkz.mjs} +2 -11
- package/dist/{codec-descriptor-registry-u6_e6WfA.mjs.map → codec-descriptor-registry-BW0REwkz.mjs.map} +1 -1
- package/dist/{config-types-DNRmpGNL.mjs → config-types-ump1oN82.mjs} +8 -4
- package/dist/config-types-ump1oN82.mjs.map +1 -0
- package/dist/{contract-builder-Br5TlHMh.d.mts → contract-builder-BXxFihYc.d.mts} +16 -11
- package/dist/contract-builder-BXxFihYc.d.mts.map +1 -0
- package/dist/{contract-builder-C3MYW38z.mjs → contract-builder-CQvwPGAW.mjs} +29 -24
- package/dist/contract-builder-CQvwPGAW.mjs.map +1 -0
- package/dist/contract-emitter.d.mts +1 -1
- package/dist/contract-emitter.mjs +1 -1
- package/dist/contract-prisma7__provider.d.mts +2 -1
- package/dist/contract-prisma7__provider.d.mts.map +1 -1
- package/dist/contract-prisma7__provider.mjs +16 -9
- package/dist/contract-prisma7__provider.mjs.map +1 -1
- package/dist/contract-psl.d.mts +4 -4
- package/dist/contract-psl.d.mts.map +1 -1
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +2 -2
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +1 -1
- package/dist/contract-ts.mjs +3 -3
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +1 -1
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/contract.d.mts +5 -3
- package/dist/contract.mjs +11 -8
- package/dist/contract__data-type-support.d.mts +2 -0
- package/dist/contract__data-type-support.mjs +2 -0
- package/dist/contract__data-type.d.mts +2 -0
- package/dist/contract__data-type.mjs +3 -0
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/contract__factories.mjs +1 -1
- package/dist/contract__sql-expression.d.mts +1 -1
- package/dist/contract__sql-expression.mjs +1 -1
- package/dist/contract__types.mjs +3 -3
- package/dist/contract__validators.d.mts +1 -1
- package/dist/contract__validators.mjs +2 -2
- package/dist/{control-BYOcSVih.mjs → control-BYT1Lgtm.mjs} +76 -117
- package/dist/control-BYT1Lgtm.mjs.map +1 -0
- package/dist/{control-DL9y6GfG.d.mts → control-Bpk8PtSL.d.mts} +40 -128
- package/dist/control-Bpk8PtSL.d.mts.map +1 -0
- package/dist/{control-adapter-WoXvPNj4-D64oWh9I.d.mts → control-adapter-BVN98SzR-C-H_T7s-.d.mts} +8 -20
- package/dist/control-adapter-BVN98SzR-C-H_T7s-.d.mts.map +1 -0
- package/dist/control-adapter-DSGwSagr.d.mts +1 -0
- package/dist/data-type-CAPmGXg9.mjs +297 -0
- package/dist/data-type-CAPmGXg9.mjs.map +1 -0
- package/dist/data-type-CpqSDmR_.d.mts +113 -0
- package/dist/data-type-CpqSDmR_.d.mts.map +1 -0
- package/dist/data-type-support-B_Dr1cxB.d.mts +92 -0
- package/dist/data-type-support-B_Dr1cxB.d.mts.map +1 -0
- package/dist/{ast-5hifzBHC.mjs → data-type-support-rpD1jyZd.mjs} +6 -329
- package/dist/data-type-support-rpD1jyZd.mjs.map +1 -0
- package/dist/{db-DLjWu9-f-BjAFEKe9.d.mts → db-DLjWu9-f-T8QbxDGY.d.mts} +6 -6
- package/dist/{db-DLjWu9-f-BjAFEKe9.d.mts.map → db-DLjWu9-f-T8QbxDGY.d.mts.map} +1 -1
- package/dist/{ddl-types-B48YmQSt-DLCUHORB.d.mts → ddl-types-BUqZdoZK-vyWnW2PW.d.mts} +3 -3
- package/dist/{ddl-types-B48YmQSt-DLCUHORB.d.mts.map → ddl-types-BUqZdoZK-vyWnW2PW.d.mts.map} +1 -1
- package/dist/{derived-checks-C_y1rk6O-DwCaGICl.mjs → derived-checks-CILnJKoa-D42YRW01.mjs} +48 -25
- package/dist/derived-checks-CILnJKoa-D42YRW01.mjs.map +1 -0
- package/dist/diff-B16bL_IR.mjs.map +1 -1
- package/dist/{diff-CJI5hKWL.d.mts → diff-BsHizC0z.d.mts} +6 -6
- package/dist/{diff-CJI5hKWL.d.mts.map → diff-BsHizC0z.d.mts.map} +1 -1
- package/dist/{dist-BdePIXOu.mjs → dist-C_HYPisk.mjs} +3 -3
- package/dist/{dist-BdePIXOu.mjs.map → dist-C_HYPisk.mjs.map} +1 -1
- package/dist/{entity-kinds-ChX-owgJ-DqGkW6Dq.mjs → entity-kinds-BNQFeECV-BOJmOArY.mjs} +4 -4
- package/dist/{entity-kinds-ChX-owgJ-DqGkW6Dq.mjs.map → entity-kinds-BNQFeECV-BOJmOArY.mjs.map} +1 -1
- package/dist/{expression-n9sdM2RA.d.mts → expression-Bf_MkeQS.d.mts} +3 -3
- package/dist/{expression-n9sdM2RA.d.mts.map → expression-Bf_MkeQS.d.mts.map} +1 -1
- package/dist/{expression-vAEOvq7J.mjs → expression-Bv8X6-Qg.mjs} +2 -2
- package/dist/{expression-vAEOvq7J.mjs.map → expression-Bv8X6-Qg.mjs.map} +1 -1
- package/dist/{factories-BnzIZxE1.mjs → factories-D6haP7by.mjs} +2 -2
- package/dist/{factories-BnzIZxE1.mjs.map → factories-D6haP7by.mjs.map} +1 -1
- package/dist/family.d.mts +13 -13
- package/dist/family.mjs +7 -7
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +5 -5
- package/dist/family__control.mjs +4 -4
- package/dist/family__diff.d.mts +3 -3
- package/dist/family__diff.mjs +1 -1
- package/dist/family__ir.mjs +1 -1
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__pack.d.mts +1 -1
- package/dist/family__pack.mjs +2 -2
- package/dist/family__pack.mjs.map +1 -1
- package/dist/family__psl-build.d.mts +2 -2
- package/dist/family__psl-build.mjs +1 -1
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/family__verify.mjs +1 -1
- package/dist/{index-BoQtw7lz.d.mts → index-D2ho4por.d.mts} +9 -9
- package/dist/{index-BoQtw7lz.d.mts.map → index-D2ho4por.d.mts.map} +1 -1
- package/dist/index-type-validation-COH4d78M.mjs.map +1 -1
- package/dist/{interpreter-C8cP92FD-BfjuQvb1.mjs → interpreter-CDflex9x-Bx84tcl5.mjs} +33 -29
- package/dist/interpreter-CDflex9x-Bx84tcl5.mjs.map +1 -0
- package/dist/{middleware-CuGBptK0-xrXqWhc7.d.mts → middleware-BtMX6nSF-DUnzMyGl.d.mts} +3 -3
- package/dist/{middleware-CuGBptK0-xrXqWhc7.d.mts.map → middleware-BtMX6nSF-DUnzMyGl.d.mts.map} +1 -1
- package/dist/middleware-pBMsszaq.d.mts +1 -0
- package/dist/{migration-CSEh4QPu.d.mts → migration-oet2BBxc.d.mts} +2 -2
- package/dist/{migration-CSEh4QPu.d.mts.map → migration-oet2BBxc.d.mts.map} +1 -1
- package/dist/numeral-text-Cqu87pVe-DJCqBaSC.mjs +20 -0
- package/dist/numeral-text-Cqu87pVe-DJCqBaSC.mjs.map +1 -0
- package/dist/orm-client.d.mts +11 -11
- package/dist/orm-client.mjs +6 -6
- package/dist/{pack-C3mqZevM.d.mts → pack-C-JTs3HQ.d.mts} +2 -16
- package/dist/pack-C-JTs3HQ.d.mts.map +1 -0
- package/dist/plan-BbkBYyGR.d.mts +2 -0
- package/dist/{plan-B7g2kDfQ-Dth0BeTe.d.mts → plan-BlQITcbP-DvbDlHXA.d.mts} +3 -3
- package/dist/plan-BlQITcbP-DvbDlHXA.d.mts.map +1 -0
- package/dist/{prepared-statement-Cv54gpY_-DbHPSN5Q.d.mts → prepared-statement-Cv54gpY_-dg9Qr8sK.d.mts} +14 -14
- package/dist/{prepared-statement-Cv54gpY_-DbHPSN5Q.d.mts.map → prepared-statement-Cv54gpY_-dg9Qr8sK.d.mts.map} +1 -1
- package/dist/{psl-build-zkIJwkdq.mjs → psl-build-B6nw6MAM.mjs} +18 -17
- package/dist/psl-build-B6nw6MAM.mjs.map +1 -0
- package/dist/{psl-build-BnM1ZTyK.d.mts → psl-build-BrW7lQMO.d.mts} +2 -2
- package/dist/psl-build-BrW7lQMO.d.mts.map +1 -0
- package/dist/{psl-column-resolution-sNpXQygQ-BBo4tqwO.d.mts → psl-column-resolution-BegCa1-t-BJJ9WB1c.d.mts} +4 -5
- package/dist/psl-column-resolution-BegCa1-t-BJJ9WB1c.d.mts.map +1 -0
- package/dist/{psl-field-resolution-_o74AUE4-C-vTNklI.mjs → psl-field-resolution-CKMm6Gx0-CdzpWIV5.mjs} +69 -17
- package/dist/psl-field-resolution-CKMm6Gx0-CdzpWIV5.mjs.map +1 -0
- package/dist/{psl-infer-BwbmOInx.d.mts → psl-infer-DzH2Khty.d.mts} +4 -4
- package/dist/{psl-infer-BwbmOInx.d.mts.map → psl-infer-DzH2Khty.d.mts.map} +1 -1
- package/dist/query-lane-context-CLtywrTY.d.mts +1 -0
- package/dist/{query-lane-context-BSmWfohZ-Jn0AbOQt.d.mts → query-lane-context-OSV9X636-CcPv1TZj.d.mts} +6 -10
- package/dist/query-lane-context-OSV9X636-CcPv1TZj.d.mts.map +1 -0
- package/dist/relational-core.d.mts +12 -12
- package/dist/relational-core.mjs +4 -4
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
- package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
- package/dist/relational-core__ast.d.mts +4 -4
- package/dist/relational-core__ast.mjs +3 -3
- package/dist/relational-core__codec-descriptor-registry.d.mts +2 -2
- package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
- package/dist/relational-core__contract-free.d.mts +4 -2
- package/dist/relational-core__contract-free.d.mts.map +1 -1
- package/dist/relational-core__contract-free.mjs +10 -4
- package/dist/relational-core__contract-free.mjs.map +1 -1
- package/dist/relational-core__expression.d.mts +1 -1
- package/dist/relational-core__expression.mjs +1 -1
- package/dist/relational-core__middleware.d.mts +2 -2
- package/dist/relational-core__plan.d.mts +3 -3
- package/dist/relational-core__query-lane-context.d.mts +2 -2
- package/dist/relational-core__types.d.mts +2 -2
- package/dist/runtime.d.mts +4 -4
- package/dist/runtime.mjs +6 -6
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/dist/{schema-differ-DpG_gnur-CUh9eZM-.d.mts → schema-differ-DpG_gnur-if2KDxZC.d.mts} +3 -3
- package/dist/{schema-differ-DpG_gnur-CUh9eZM-.d.mts.map → schema-differ-DpG_gnur-if2KDxZC.d.mts.map} +1 -1
- package/dist/schema-ir.d.mts +2 -2
- package/dist/schema-ir.mjs +1 -1
- package/dist/schema-ir__types.d.mts +3 -3
- package/dist/schema-ir__types.mjs +1 -1
- package/dist/{schema-verify-Xmpe1PGb-Bcd_2avJ.mjs → schema-verify-lPfqY_aE-CZCO8my1.mjs} +32 -6
- package/dist/schema-verify-lPfqY_aE-CZCO8my1.mjs.map +1 -0
- package/dist/{serialized-index-B5X7s-oX-CVs8-5Rw.mjs → serialized-index-BeGqqsrC-PymnV1h-.mjs} +3 -3
- package/dist/{serialized-index-B5X7s-oX-CVs8-5Rw.mjs.map → serialized-index-BeGqqsrC-PymnV1h-.mjs.map} +1 -1
- package/dist/{sql-contract-serializer-C90xg7_q-C_Okh4NM.mjs → sql-contract-serializer-C90xg7_q-4UVEMTWO.mjs} +5 -5
- package/dist/{sql-contract-serializer-C90xg7_q-C_Okh4NM.mjs.map → sql-contract-serializer-C90xg7_q-4UVEMTWO.mjs.map} +1 -1
- package/dist/{sql-execution-plan-Db0j752I-dJ-JGxbD.d.mts → sql-execution-plan-CV6K4o9N-DAIvJbkb.d.mts} +3 -3
- package/dist/sql-execution-plan-CV6K4o9N-DAIvJbkb.d.mts.map +1 -0
- package/dist/{sql-expression-BXx0Ilj-.mjs → sql-expression-D7GsLgDM.mjs} +2 -2
- package/dist/{sql-expression-BXx0Ilj-.mjs.map → sql-expression-D7GsLgDM.mjs.map} +1 -1
- package/dist/{sql-expression-D_hbJOgM.d.mts → sql-expression-DE_MTt3T.d.mts} +2 -2
- package/dist/{sql-expression-D_hbJOgM.d.mts.map → sql-expression-DE_MTt3T.d.mts.map} +1 -1
- package/dist/{storage-table-ADhJ4Imk-CwcQVFXC.mjs → storage-table-BwwDKQkD-BN9cZrGX.mjs} +2 -2
- package/dist/{storage-table-ADhJ4Imk-CwcQVFXC.mjs.map → storage-table-BwwDKQkD-BN9cZrGX.mjs.map} +1 -1
- package/dist/{type-map-DpfnXzun-DZaSuJXh.d.mts → type-map-DmIbL4o--BfPMblbZ.d.mts} +4 -4
- package/dist/type-map-DmIbL4o--BfPMblbZ.d.mts.map +1 -0
- package/dist/{types-BPi4d3WI-D8PIEqBU.mjs → types-BLnsGaJf-m-qTW3ox.mjs} +3 -3
- package/dist/{types-BPi4d3WI-D8PIEqBU.mjs.map → types-BLnsGaJf-m-qTW3ox.mjs.map} +1 -1
- package/dist/{types-ByKpjyVh-CtYwWrbL.d.mts → types-CcGO_LSh-BKHiJvvA.d.mts} +8 -26
- package/dist/types-CcGO_LSh-BKHiJvvA.d.mts.map +1 -0
- package/dist/{types-Z-l6gAVD.mjs → types-Cn4JEguu.mjs} +2 -2
- package/dist/{types-Z-l6gAVD.mjs.map → types-Cn4JEguu.mjs.map} +1 -1
- package/dist/{types-DAoMCSPl-D2ajBTpK.mjs → types-CyPuXMTn-pumFirZ6.mjs} +4 -7
- package/dist/types-CyPuXMTn-pumFirZ6.mjs.map +1 -0
- package/dist/types-DZA5xxDT.d.mts +1 -0
- package/dist/{types-BzpC_V7p-DyBYmK1f.d.mts → types-Da1Y_OI7-BPyFwdFU.d.mts} +4 -43
- package/dist/types-Da1Y_OI7-BPyFwdFU.d.mts.map +1 -0
- package/dist/{types-BGHABElw-C5dqoVCg.d.mts → types-DpwLgzPO-Cb9nQ-Wt.d.mts} +6 -6
- package/dist/{types-BGHABElw-C5dqoVCg.d.mts.map → types-DpwLgzPO-Cb9nQ-Wt.d.mts.map} +1 -1
- package/dist/{types-Yui2yFf6-DYiGm9ET.d.mts → types-Dskga3R1-BtXuRmbf.d.mts} +3 -3
- package/dist/{types-Yui2yFf6-DYiGm9ET.d.mts.map → types-Dskga3R1-BtXuRmbf.d.mts.map} +1 -1
- package/dist/types-QvcS13Qc.d.mts +1 -0
- package/dist/{validators-D1wQns12.d.mts → validators-B-4g3vwP.d.mts} +2 -2
- package/dist/{validators-D1wQns12.d.mts.map → validators-B-4g3vwP.d.mts.map} +1 -1
- package/dist/{validators-Cx6UXIBf.mjs → validators-IGdAEEIM.mjs} +4 -4
- package/dist/{validators-Cx6UXIBf.mjs.map → validators-IGdAEEIM.mjs.map} +1 -1
- package/dist/{verify-BVk5bjdH-BXgGLM2U.mjs → verify-BVk5bjdH-dq5M4iIh.mjs} +2 -2
- package/dist/{verify-BVk5bjdH-BXgGLM2U.mjs.map → verify-BVk5bjdH-dq5M4iIh.mjs.map} +1 -1
- package/package.json +20 -18
- package/dist/ast-5hifzBHC.mjs.map +0 -1
- package/dist/ast-dPjHeaNs.d.mts.map +0 -1
- package/dist/authoring-type-constructors-DIyheCzv-BSrAEZsD.mjs.map +0 -1
- package/dist/config-types-DNRmpGNL.mjs.map +0 -1
- package/dist/contract-builder-Br5TlHMh.d.mts.map +0 -1
- package/dist/contract-builder-C3MYW38z.mjs.map +0 -1
- package/dist/control-BYOcSVih.mjs.map +0 -1
- package/dist/control-DL9y6GfG.d.mts.map +0 -1
- package/dist/control-adapter-C1hjk3Ic.d.mts +0 -1
- package/dist/control-adapter-WoXvPNj4-D64oWh9I.d.mts.map +0 -1
- package/dist/derived-checks-C_y1rk6O-DwCaGICl.mjs.map +0 -1
- package/dist/interpreter-C8cP92FD-BfjuQvb1.mjs.map +0 -1
- package/dist/middleware-CN4vQuOi.d.mts +0 -1
- package/dist/pack-C3mqZevM.d.mts.map +0 -1
- package/dist/plan-B7g2kDfQ-Dth0BeTe.d.mts.map +0 -1
- package/dist/plan-CrKSowWJ.d.mts +0 -2
- package/dist/psl-build-BnM1ZTyK.d.mts.map +0 -1
- package/dist/psl-build-zkIJwkdq.mjs.map +0 -1
- package/dist/psl-column-resolution-sNpXQygQ-BBo4tqwO.d.mts.map +0 -1
- package/dist/psl-field-resolution-_o74AUE4-C-vTNklI.mjs.map +0 -1
- package/dist/query-lane-context-BSmWfohZ-Jn0AbOQt.d.mts.map +0 -1
- package/dist/query-lane-context-DWdmmnrN.d.mts +0 -1
- package/dist/schema-verify-Xmpe1PGb-Bcd_2avJ.mjs.map +0 -1
- package/dist/sql-execution-plan-Db0j752I-dJ-JGxbD.d.mts.map +0 -1
- package/dist/type-map-DpfnXzun-DZaSuJXh.d.mts.map +0 -1
- package/dist/types-ByKpjyVh-CtYwWrbL.d.mts.map +0 -1
- package/dist/types-BzpC_V7p-DyBYmK1f.d.mts.map +0 -1
- package/dist/types-CQBRYgDW.d.mts +0 -1
- package/dist/types-DAoMCSPl-D2ajBTpK.mjs.map +0 -1
- package/dist/types-DdTdsdMn.d.mts +0 -1
|
@@ -3,22 +3,23 @@ import { a as SqlNamespaceEntries, c as SqlStorage } from "./sql-storage-jJySr7b
|
|
|
3
3
|
import { O as SqlControlDriverInstance } from "./types-Bl6ohp1g-CL4_GDuc.mjs";
|
|
4
4
|
import "./types-B11MGgKr.mjs";
|
|
5
5
|
import { r as SqlOperationDescriptors } from "./index-DZbfFGBA.mjs";
|
|
6
|
-
import { h as AnyQueryAst } from "./types-
|
|
6
|
+
import { h as AnyQueryAst } from "./types-Dskga3R1-BtXuRmbf.mjs";
|
|
7
7
|
import { o as SqlExecuteRequest } from "./driver-types-DYGFEcyv-DPaNalPf.mjs";
|
|
8
|
-
import { s as DdlNode } from "./ddl-types-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import "./
|
|
12
|
-
import
|
|
13
|
-
import "./types-
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
8
|
+
import { s as DdlNode } from "./ddl-types-BUqZdoZK-vyWnW2PW.mjs";
|
|
9
|
+
import { s as LowererContext } from "./ast-BUbHXpzG.mjs";
|
|
10
|
+
import { s as SqlTypeLookups } from "./data-type-CpqSDmR_.mjs";
|
|
11
|
+
import { t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-DE_MTt3T.mjs";
|
|
12
|
+
import "./validators-B-4g3vwP.mjs";
|
|
13
|
+
import { _ as SqlSchemaIR, y as SqlSchemaIRNode } from "./types-Da1Y_OI7-BPyFwdFU.mjs";
|
|
14
|
+
import "./types-DZA5xxDT.mjs";
|
|
15
|
+
import { r as SqlControlAdapter } from "./control-adapter-BVN98SzR-C-H_T7s-.mjs";
|
|
16
|
+
import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CZ-vdwYS-C25VGQVB.mjs";
|
|
17
|
+
import { D as SqlPlannerFailureResult, S as SqlMigrationRunnerSuccessValue, _ as SqlMigrationRunnerErrorCode, b as SqlMigrationRunnerFailure, g as SqlMigrationRunner, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, r as CreateSqlMigrationPlanOptions, t as AnyRecord, w as SqlPlannerConflict } from "./types-CcGO_LSh-BKHiJvvA.mjs";
|
|
18
|
+
import { t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-if2KDxZC.mjs";
|
|
18
19
|
import { StructuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
19
20
|
import { PresetStorageTemplate, TIMESTAMP_NOW_GENERATOR_ID } from "@prisma/orm-framework/components/authoring";
|
|
20
|
-
import { ColumnDefault, Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
|
|
21
21
|
import { CodecLookupWithDescriptors, DataType, DataTypeLookup } from "@prisma/orm-framework/components/codec";
|
|
22
|
+
import { ColumnDefault, Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
|
|
22
23
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
23
24
|
import { AssembledAuthoringContributions, ContractSerializer, ControlFamilyDescriptor, ControlFamilyInstance, ControlStack, DiffSubjectGranularity, MigratableTargetDescriptor, MigrationOperationClass, MigrationOperationPolicy, MigrationOperationPolicy as MigrationOperationPolicy$1, MigrationPlan as MigrationPlan$1, MigrationPlanOperation, MigrationPlanOperation as MigrationPlanOperation$1, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerConflict as MigrationPlannerConflict$1, MigrationPlannerResult, OpFactoryCall, OperationPreview, OperationPreviewCapable, PslContractBuildCapable, PslContractInferCapable, SchemaDiffIssue, SchemaVerifier, SchemaViewCapable, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult, assembleAuthoringContributions } from "@prisma/orm-framework/components/control";
|
|
24
25
|
import { NotOk, Ok, Result } from "@prisma/orm-framework/utils/result";
|
|
@@ -26,17 +27,9 @@ import { PslDocumentAst } from "@prisma/orm-framework/components/psl-ast";
|
|
|
26
27
|
import { EmissionSpi, TypesImportSpec } from "@prisma/orm-framework/components/emission";
|
|
27
28
|
//#region ../../../2-sql/9-family/dist/control.d.mts
|
|
28
29
|
//#region src/core/control-instance.d.ts
|
|
29
|
-
interface SqlTypeMetadata {
|
|
30
|
-
readonly typeId: string;
|
|
31
|
-
readonly familyId: 'sql';
|
|
32
|
-
readonly targetId: string;
|
|
33
|
-
readonly nativeType?: string;
|
|
34
|
-
}
|
|
35
|
-
type SqlTypeMetadataRegistry = Map<string, SqlTypeMetadata>;
|
|
36
30
|
interface SqlFamilyInstanceState {
|
|
37
31
|
readonly codecTypeImports: ReadonlyArray<TypesImportSpec>;
|
|
38
32
|
readonly extensionIds: ReadonlyArray<string>;
|
|
39
|
-
readonly typeMetadataRegistry: SqlTypeMetadataRegistry;
|
|
40
33
|
}
|
|
41
34
|
interface SqlControlFamilyInstance extends ControlFamilyInstance<'sql', SqlSchemaIRNode>, SchemaViewCapable<SqlSchemaIRNode>, PslContractInferCapable<SqlSchemaIRNode>, PslContractBuildCapable<Contract<SqlStorage>>, OperationPreviewCapable, SqlFamilyInstanceState {
|
|
42
35
|
/**
|
|
@@ -163,7 +156,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
163
156
|
readonly kind: "fieldPreset";
|
|
164
157
|
readonly output: {
|
|
165
158
|
readonly codecId: "sql/char@1";
|
|
166
|
-
readonly nativeType: "character";
|
|
167
159
|
readonly typeParams: {
|
|
168
160
|
readonly length: 36;
|
|
169
161
|
};
|
|
@@ -173,7 +165,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
173
165
|
readonly kind: "fieldPreset";
|
|
174
166
|
readonly output: {
|
|
175
167
|
readonly codecId: "sql/char@1";
|
|
176
|
-
readonly nativeType: "character";
|
|
177
168
|
readonly typeParams: {
|
|
178
169
|
readonly length: 26;
|
|
179
170
|
};
|
|
@@ -196,7 +187,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
196
187
|
}];
|
|
197
188
|
readonly output: {
|
|
198
189
|
readonly codecId: "sql/char@1";
|
|
199
|
-
readonly nativeType: "character";
|
|
200
190
|
readonly typeParams: {
|
|
201
191
|
readonly length: {
|
|
202
192
|
readonly kind: "arg";
|
|
@@ -211,7 +201,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
211
201
|
readonly kind: "fieldPreset";
|
|
212
202
|
readonly output: {
|
|
213
203
|
readonly codecId: "sql/char@1";
|
|
214
|
-
readonly nativeType: "character";
|
|
215
204
|
readonly typeParams: {
|
|
216
205
|
readonly length: 24;
|
|
217
206
|
};
|
|
@@ -221,7 +210,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
221
210
|
readonly kind: "fieldPreset";
|
|
222
211
|
readonly output: {
|
|
223
212
|
readonly codecId: "sql/char@1";
|
|
224
|
-
readonly nativeType: "character";
|
|
225
213
|
readonly typeParams: {
|
|
226
214
|
readonly length: 27;
|
|
227
215
|
};
|
|
@@ -232,7 +220,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
232
220
|
readonly kind: "fieldPreset";
|
|
233
221
|
readonly output: {
|
|
234
222
|
readonly codecId: "sql/char@1";
|
|
235
|
-
readonly nativeType: "character";
|
|
236
223
|
readonly typeParams: {
|
|
237
224
|
readonly length: 36;
|
|
238
225
|
};
|
|
@@ -249,7 +236,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
249
236
|
readonly kind: "fieldPreset";
|
|
250
237
|
readonly output: {
|
|
251
238
|
readonly codecId: "sql/char@1";
|
|
252
|
-
readonly nativeType: "character";
|
|
253
239
|
readonly typeParams: {
|
|
254
240
|
readonly length: 36;
|
|
255
241
|
};
|
|
@@ -266,7 +252,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
266
252
|
readonly kind: "fieldPreset";
|
|
267
253
|
readonly output: {
|
|
268
254
|
readonly codecId: "sql/char@1";
|
|
269
|
-
readonly nativeType: "character";
|
|
270
255
|
readonly typeParams: {
|
|
271
256
|
readonly length: 26;
|
|
272
257
|
};
|
|
@@ -296,7 +281,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
296
281
|
}];
|
|
297
282
|
readonly output: {
|
|
298
283
|
readonly codecId: "sql/char@1";
|
|
299
|
-
readonly nativeType: "character";
|
|
300
284
|
readonly typeParams: {
|
|
301
285
|
readonly length: {
|
|
302
286
|
readonly kind: "arg";
|
|
@@ -325,7 +309,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
325
309
|
readonly kind: "fieldPreset";
|
|
326
310
|
readonly output: {
|
|
327
311
|
readonly codecId: "sql/char@1";
|
|
328
|
-
readonly nativeType: "character";
|
|
329
312
|
readonly typeParams: {
|
|
330
313
|
readonly length: 24;
|
|
331
314
|
};
|
|
@@ -342,7 +325,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
342
325
|
readonly kind: "fieldPreset";
|
|
343
326
|
readonly output: {
|
|
344
327
|
readonly codecId: "sql/char@1";
|
|
345
|
-
readonly nativeType: "character";
|
|
346
328
|
readonly typeParams: {
|
|
347
329
|
readonly length: 27;
|
|
348
330
|
};
|
|
@@ -366,12 +348,9 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
366
348
|
readonly kind: "number";
|
|
367
349
|
readonly name: "length";
|
|
368
350
|
readonly integer: true;
|
|
369
|
-
readonly minimum: 1;
|
|
370
|
-
readonly maximum: 10485760;
|
|
371
351
|
}];
|
|
372
352
|
readonly output: {
|
|
373
353
|
readonly codecId: "sql/varchar@1";
|
|
374
|
-
readonly nativeType: "character varying";
|
|
375
354
|
readonly typeParams: {
|
|
376
355
|
readonly length: {
|
|
377
356
|
readonly kind: "arg";
|
|
@@ -605,46 +584,19 @@ interface AppliedTableRename {
|
|
|
605
584
|
*/
|
|
606
585
|
declare function applyTableRename(input: ApplyTableRenameInput): Result<AppliedTableRename, StructuredError>;
|
|
607
586
|
//#endregion
|
|
608
|
-
//#region src/core/migrations/data-type-resolver.d.ts
|
|
609
|
-
/** The data type a codec represents, or `undefined` when no component registers it. */
|
|
610
|
-
type DataTypeResolver = (codecId: string) => DataType | undefined;
|
|
611
|
-
/**
|
|
612
|
-
* Builds the resolver the contract→IR derivation uses to give each column its data type (ADR 254):
|
|
613
|
-
* the codec's descriptor names the type, and the composed components register it. Codecs and
|
|
614
|
-
* data types from extension packs are found the same way as the target's own, and a codec id two
|
|
615
|
-
* components contribute is refused, as everywhere else in the stack. Returns `undefined` when no
|
|
616
|
-
* framework components are supplied, so callers can omit the option.
|
|
617
|
-
*/
|
|
618
|
-
declare function buildDataTypeResolver(frameworkComponents?: ReadonlyArray<TargetBoundComponentDescriptor<'sql', string>>): DataTypeResolver | undefined;
|
|
619
|
-
//#endregion
|
|
620
587
|
//#region src/core/migrations/contract-to-schema-ir.d.ts
|
|
621
|
-
/**
|
|
622
|
-
* Target-specific callback that expands a column's base `nativeType` and optional
|
|
623
|
-
* `typeParams` into the fully-qualified type string used by the database
|
|
624
|
-
* (e.g. `character` + `{ length: 36 }` → `character(36)`).
|
|
625
|
-
*
|
|
626
|
-
* This lives in the family layer as a callback rather than importing a concrete
|
|
627
|
-
* implementation because each target (Postgres, MySQL, SQLite, …) has its own
|
|
628
|
-
* parameterization syntax. The target wires its expander when calling
|
|
629
|
-
* `contractToSchemaIR`, keeping the family layer target-agnostic.
|
|
630
|
-
*/
|
|
631
|
-
type NativeTypeExpander = (input: {
|
|
632
|
-
readonly nativeType: string;
|
|
633
|
-
readonly codecId?: string;
|
|
634
|
-
readonly typeParams?: Record<string, unknown>;
|
|
635
|
-
}) => string;
|
|
636
588
|
/**
|
|
637
589
|
* Target-specific callback that renders a `ColumnDefault` into the raw SQL literal
|
|
638
590
|
* string stored in `SqlColumnIR.default`.
|
|
639
591
|
*
|
|
640
592
|
* Default value serialization is target-specific (quoting, casting, type syntax vary
|
|
641
|
-
* between Postgres, MySQL, SQLite, …).
|
|
642
|
-
* `
|
|
643
|
-
*
|
|
593
|
+
* between Postgres, MySQL, SQLite, …). The target provides its renderer when calling
|
|
594
|
+
* `contractToSchemaIR`, keeping the family layer target-agnostic. `dataType` is the id of the
|
|
595
|
+
* data type the column's codec represents.
|
|
644
596
|
*/
|
|
645
|
-
type DefaultRenderer = (def: ColumnDefault, column: StorageColumn) => string;
|
|
597
|
+
type DefaultRenderer = (def: ColumnDefault, column: StorageColumn, dataType: string) => string;
|
|
646
598
|
/**
|
|
647
|
-
* Target-supplied hook (same IoC seam as `
|
|
599
|
+
* Target-supplied hook (same IoC seam as `DefaultRenderer`)
|
|
648
600
|
* that normalizes a contract-declared `ColumnDefault` into the resolved shape
|
|
649
601
|
* the target's introspection parses from the live database — e.g. a
|
|
650
602
|
* sql`'{}'::jsonb` raw default and the literal Postgres reports
|
|
@@ -653,20 +605,6 @@ type DefaultRenderer = (def: ColumnDefault, column: StorageColumn) => string;
|
|
|
653
605
|
* is the resolved default unchanged.
|
|
654
606
|
*/
|
|
655
607
|
type DefaultResolver = (def: ColumnDefault, resolvedNativeType: string) => ColumnDefault;
|
|
656
|
-
/**
|
|
657
|
-
* Target-supplied callback that resolves a contract namespace to the live
|
|
658
|
-
* database schema its enums are stored under.
|
|
659
|
-
*
|
|
660
|
-
* The projected enum annotations are nested by schema
|
|
661
|
-
* (`storageTypes[schema][nativeType]`) so two namespaces holding an enum with
|
|
662
|
-
* the same native type resolve to distinct live-database types. Mapping a
|
|
663
|
-
* namespace to its DDL schema is target-specific (Postgres schemas;
|
|
664
|
-
* SQLite/MySQL differ), so the target injects it here rather than the family
|
|
665
|
-
* importing a concrete `ddlSchemaName`. This keeps the family layer
|
|
666
|
-
* target-agnostic while the projection nests under the same schema the
|
|
667
|
-
* target's read side (`readExistingEnumValues`) looks up.
|
|
668
|
-
*/
|
|
669
|
-
type EnumNamespaceSchemaResolver = (storage: SqlStorage, namespaceId: string) => string;
|
|
670
608
|
/**
|
|
671
609
|
* Detects destructive changes between two contract storages.
|
|
672
610
|
*
|
|
@@ -677,39 +615,12 @@ type EnumNamespaceSchemaResolver = (storage: SqlStorage, namespaceId: string) =>
|
|
|
677
615
|
* Returns an empty array if no destructive changes are found.
|
|
678
616
|
*/
|
|
679
617
|
declare function detectDestructiveChanges(from: SqlStorage | null, to: SqlStorage): readonly MigrationPlannerConflict[];
|
|
680
|
-
|
|
618
|
+
/** Each column's type is written from the data type its codec represents, found through the lookups. */
|
|
619
|
+
interface ContractToSchemaIROptions extends SqlTypeLookups {
|
|
681
620
|
readonly annotationNamespace: string;
|
|
682
|
-
readonly expandNativeType?: NativeTypeExpander;
|
|
683
621
|
readonly renderDefault?: DefaultRenderer;
|
|
684
622
|
readonly resolveDefault?: DefaultResolver;
|
|
685
|
-
/**
|
|
686
|
-
* Gives each column the data type its codec represents, so a literal default compares through
|
|
687
|
-
* the type's canonical form. Build it with `buildDataTypeResolver(frameworkComponents)`.
|
|
688
|
-
*/
|
|
689
|
-
readonly dataTypeOf?: DataTypeResolver;
|
|
690
|
-
/**
|
|
691
|
-
* Target-supplied resolver mapping a namespace to the live database schema
|
|
692
|
-
* its enums are stored under. When provided (Postgres), namespace-scoped
|
|
693
|
-
* enums are nested by that schema in `enumTypes` so the projection matches
|
|
694
|
-
* the target's `readExistingEnumValues` lookup. Targets without
|
|
695
|
-
* schema-scoped enum storage (SQLite) omit it; enums are absent there.
|
|
696
|
-
*/
|
|
697
|
-
readonly resolveEnumNamespaceSchema?: EnumNamespaceSchemaResolver;
|
|
698
623
|
}
|
|
699
|
-
/**
|
|
700
|
-
* Converts a `Contract` to `SqlSchemaIR`.
|
|
701
|
-
*
|
|
702
|
-
* Reads `contract.storage` for tables and `contract.storage.types` for type
|
|
703
|
-
* annotations. Storage-type annotations are written under
|
|
704
|
-
* `options.annotationNamespace`.
|
|
705
|
-
*
|
|
706
|
-
* Drops codec metadata (`codecId`, `typeRef`) since the schema IR only represents
|
|
707
|
-
* structural information. When `expandNativeType` is provided, parameterized types
|
|
708
|
-
* are expanded (e.g. `character` + `{ length: 36 }` → `character(36)`) so the
|
|
709
|
-
* resulting IR compares correctly against the "to" contract during planning.
|
|
710
|
-
*
|
|
711
|
-
* Returns an empty schema IR when `contract` is `null` (new project).
|
|
712
|
-
*/
|
|
713
624
|
/**
|
|
714
625
|
* Converts the tables of a single namespace into a `SqlSchemaIR`, keyed by
|
|
715
626
|
* table name within that namespace. Unlike {@link contractToSchemaIR}, which
|
|
@@ -725,6 +636,19 @@ interface ContractToSchemaIROptions {
|
|
|
725
636
|
* per-table fields.
|
|
726
637
|
*/
|
|
727
638
|
declare function contractNamespaceToSchemaIR(storage: SqlStorage, namespaceId: string, options: ContractToSchemaIROptions): SqlSchemaIR;
|
|
639
|
+
/**
|
|
640
|
+
* Converts a `Contract` to `SqlSchemaIR`.
|
|
641
|
+
*
|
|
642
|
+
* Reads `contract.storage` for tables, and `contract.storage.types` for the
|
|
643
|
+
* types `typeRef` columns name.
|
|
644
|
+
*
|
|
645
|
+
* Drops codec metadata (`codecId`, `typeRef`) since the schema IR only represents
|
|
646
|
+
* structural information. Each column's type is written from the data type its codec
|
|
647
|
+
* represents, with its parameters (e.g. `character` + `{ length: 36 }` → `character(36)`),
|
|
648
|
+
* so the resulting IR compares correctly against the "to" contract during planning.
|
|
649
|
+
*
|
|
650
|
+
* Returns an empty schema IR when `contract` is `null` (new project).
|
|
651
|
+
*/
|
|
728
652
|
declare function contractToSchemaIR(contract: Contract<SqlStorage> | null, options: ContractToSchemaIROptions): SqlSchemaIR;
|
|
729
653
|
//#endregion
|
|
730
654
|
//#region src/core/migrations/control-policy.d.ts
|
|
@@ -883,19 +807,6 @@ interface PlanFieldEventOperationsOptions {
|
|
|
883
807
|
}
|
|
884
808
|
declare function planFieldEventOperations(options: PlanFieldEventOperationsOptions): readonly OpFactoryCall[];
|
|
885
809
|
//#endregion
|
|
886
|
-
//#region src/core/migrations/native-type-expander.d.ts
|
|
887
|
-
/**
|
|
888
|
-
* Builds the codec-hook-composed `expandNativeType` callback the contract→IR
|
|
889
|
-
* derivation uses to expand parameterized native types (e.g. `character` +
|
|
890
|
-
* `{ length: 36 }` → `character(36)`). Returns `undefined` when no framework
|
|
891
|
-
* components are supplied, so callers can omit the option entirely.
|
|
892
|
-
*/
|
|
893
|
-
declare function buildNativeTypeExpander(frameworkComponents?: ReadonlyArray<TargetBoundComponentDescriptor<'sql', string>>): ((input: {
|
|
894
|
-
readonly nativeType: string;
|
|
895
|
-
readonly codecId?: string;
|
|
896
|
-
readonly typeParams?: Record<string, unknown>;
|
|
897
|
-
}) => string) | undefined;
|
|
898
|
-
//#endregion
|
|
899
810
|
//#region src/core/migrations/plan-helpers.d.ts
|
|
900
811
|
declare function createMigrationPlan<TTargetDetails>(options: CreateSqlMigrationPlanOptions<TTargetDetails>): SqlMigrationPlan<TTargetDetails>;
|
|
901
812
|
declare function plannerSuccess<TTargetDetails>(plan: SqlMigrationPlan<TTargetDetails>, warnings?: readonly SqlPlannerConflict[]): SqlPlannerSuccessResult<TTargetDetails>;
|
|
@@ -921,6 +832,10 @@ declare function runnerFailure(code: SqlMigrationRunnerErrorCode, summary: strin
|
|
|
921
832
|
*/
|
|
922
833
|
declare const INIT_ADDITIVE_POLICY: MigrationOperationPolicy;
|
|
923
834
|
//#endregion
|
|
835
|
+
//#region src/core/migrations/sql-type-lookups.d.ts
|
|
836
|
+
/** The codecs and data types a set of composed components registers. */
|
|
837
|
+
declare function sqlTypeLookupsOf(frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<'sql', string>>): SqlTypeLookups;
|
|
838
|
+
//#endregion
|
|
924
839
|
//#region src/core/migrations/table-name-case-guard.d.ts
|
|
925
840
|
declare const TABLE_NAME_CASE_CHANGED_CODE = "MIGRATION.TABLE_NAME_CASE_CHANGED";
|
|
926
841
|
/** The one fact the guard needs about a table the plan would drop or create. */
|
|
@@ -1004,9 +919,8 @@ declare function temporalStringAuthoringPresets<const Storage extends PresetStor
|
|
|
1004
919
|
* entirely, and omitting a phase omits that phase (both omitted omits
|
|
1005
920
|
* `executionDefaults`).
|
|
1006
921
|
*/
|
|
1007
|
-
declare function temporalCodecPresetWithPrecision<const CodecId extends string, const
|
|
922
|
+
declare function temporalCodecPresetWithPrecision<const CodecId extends string, const GeneratorId extends string = typeof TIMESTAMP_NOW_GENERATOR_ID>(input: {
|
|
1008
923
|
readonly codecId: CodecId;
|
|
1009
|
-
readonly nativeType: NativeType;
|
|
1010
924
|
readonly generatorId?: GeneratorId;
|
|
1011
925
|
}): {
|
|
1012
926
|
readonly kind: "fieldPreset";
|
|
@@ -1015,7 +929,6 @@ declare function temporalCodecPresetWithPrecision<const CodecId extends string,
|
|
|
1015
929
|
readonly kind: "number";
|
|
1016
930
|
readonly optional: true;
|
|
1017
931
|
readonly integer: true;
|
|
1018
|
-
readonly minimum: 0;
|
|
1019
932
|
}, {
|
|
1020
933
|
readonly name: "onCreate";
|
|
1021
934
|
readonly kind: "option";
|
|
@@ -1029,7 +942,6 @@ declare function temporalCodecPresetWithPrecision<const CodecId extends string,
|
|
|
1029
942
|
}];
|
|
1030
943
|
readonly output: {
|
|
1031
944
|
readonly codecId: CodecId;
|
|
1032
|
-
readonly nativeType: NativeType;
|
|
1033
945
|
readonly typeParams: {
|
|
1034
946
|
readonly precision: {
|
|
1035
947
|
readonly kind: "arg";
|
|
@@ -1064,5 +976,5 @@ declare function temporalCodecPresetWithPrecision<const CodecId extends string,
|
|
|
1064
976
|
//#region src/exports/control.d.ts
|
|
1065
977
|
declare const _default: SqlFamilyDescriptor;
|
|
1066
978
|
//#endregion
|
|
1067
|
-
export {
|
|
1068
|
-
//# sourceMappingURL=control-
|
|
979
|
+
export { applyTableRename as A, partitionIssuesByControlPolicy as B, TABLE_NAME_CASE_CHANGED_CODE as C, TableRenameInMigration as D, TableRenameByHand as E, createMigrationPlan as F, runnerSuccess as G, plannerFailure as H, detectDestructiveChanges as I, temporalStringAuthoringPresets as J, sqlTypeLookupsOf as K, detectTableNameCaseChanges as L, contractNamespaceToSchemaIR as M, contractToSchemaIR as N, TargetMigrationsCapability as O, controlPolicyForCall as P, extractCodecControlHooks as R, SuppressionRecord as S, TableRename as T, plannerSuccess as U, planFieldEventOperations as V, runnerFailure as W, ResolvedTableRename as _, DefaultRenderer as a, SqlDescribedContractSpace as b, MigrationOperationClass as c, MigrationPlanOperation$1 as d, MigrationPlanner as f, RenameTableReferences as g, PlanFieldEventOperationsOptions as h, ControlPolicySubject as i, assembleAuthoringContributions as j, _default as k, MigrationOperationPolicy$1 as l, MigrationPlannerResult as m, ApplyTableRenameInput as n, DefaultResolver as o, MigrationPlannerConflict$1 as p, temporalCodecPresetWithPrecision as q, ContractToSchemaIROptions as r, INIT_ADDITIVE_POLICY as s, AppliedTableRename as t, MigrationPlan$1 as u, SqlControlFamilyInstance as v, TableNameCaseGuardTable as w, SqlPslBuildContext as x, SqlControlTargetDescriptor as y, partitionCallsByControlPolicy as z };
|
|
980
|
+
//# sourceMappingURL=control-Bpk8PtSL.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-Bpk8PtSL.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqBU;WACC,kBAAkB,cAAc;WAChC,cAAc;;UAEf,iCAAiC,6BAA6B,kBAAkB,kBAAkB,kBAAkB,wBAAwB,kBAAkB,wBAAwB,SAAS,cAAc,yBAAyB;;;;;;;;;EAS9O,oBAAoB,wBAAwB;EAC5C,OAAO;aACI,QAAQ;aACR;a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qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;yBACA;;;;mBAIN;qBACE;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;;;qBAGJ;uBACE;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;6BACA;;;;;qBAKR;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;;;aAKR;eACE;iBACE;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;;;aAOZ,gEAAgE;aAChE;eACE;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;UACE,2CAA2C;YACzC;4CACgC;;;;aAI/B;eACE;iBACE,0CAA0C;UACjD;0CACgC;iBACzB,yCAAyC;UAChD;mBACS;0CACuB;iBACzB,6CAA6C;UACpD;mBACS;0CACuB;iBACzB,4CAA4C;UACnD;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA,UAAU;0CACa;iBACzB,4CAA4C;mBAC1C;mBACA;mBACA;0CACuB;iBACzB,8CAA8C;UACrD;0CACgC;iBACzB,oDAAoD;UAC3D;0CACgC;iBACzB,2CAA2C;UAClD,qCAAqC,uDAAuD;UAC5F;0CACgC;;eAE3B;iBACE,0CAA0C;UACjD;0CACgC;iBACzB,yCAAyC;mBACvC;0CACuB;iBACzB,6CAA6C;mBAC3C;0CACuB;iBACzB,8CAA8C;UACrD;UACA;0CACgC;iBACzB,+CAA+C;UACtD;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;0CACuB;iBACzB,UAAU,oCAAoC,6DAA6D;UAClH,sCAAsC,mEAAmE,4CAA4C,iFAAiF,4CAA4C;0CAClP;;;aAG7B;gBACG,iFAAiF;;;WAGtF;aACE;;EAEX,OAAO,0BAA0B,OAAO,oBAAoB,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oC,4BAA4B,OAAO;WAC/J,cAAc;;WAEd;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,IAAI;;;;;WAKZ;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,IAAI;;iBAEN;mBACE;mBACA,IAAI;;;;;;;;;;;;;;;iBAeN,uCAAuC,8BAA8B,oCAAoC,4BAA4B;WAC3I,SAAS;WACT,cAAc;;WAEd;WACA;aACE;aACA;aACA;aACA;;aAEA;aACA;aACA;aACA;;aAEA;aACA;aACA;aACA;;WAEF;aACE,SAAS;aACT;eACE;iBACE;iBACA;;;aAGJ;eACE;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB;;;;eAI3B;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB;;;;;;;;;cAS5B,UAAU"}
|
package/dist/{control-adapter-WoXvPNj4-D64oWh9I.d.mts → control-adapter-BVN98SzR-C-H_T7s-.d.mts}
RENAMED
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
import { O as SqlControlDriverInstance } from "./types-Bl6ohp1g-CL4_GDuc.mjs";
|
|
2
2
|
import "./types-B11MGgKr.mjs";
|
|
3
|
-
import { dt as LoweredStatement, h as AnyQueryAst } from "./types-
|
|
3
|
+
import { dt as LoweredStatement, h as AnyQueryAst } from "./types-Dskga3R1-BtXuRmbf.mjs";
|
|
4
4
|
import { o as SqlExecuteRequest } from "./driver-types-DYGFEcyv-DPaNalPf.mjs";
|
|
5
|
-
import { r as DdlColumn, s as DdlNode } from "./ddl-types-
|
|
6
|
-
import {
|
|
7
|
-
import { y as SqlSchemaIRNode } from "./types-
|
|
8
|
-
import "./types-
|
|
5
|
+
import { r as DdlColumn, s as DdlNode } from "./ddl-types-BUqZdoZK-vyWnW2PW.mjs";
|
|
6
|
+
import { s as LowererContext } from "./ast-BUbHXpzG.mjs";
|
|
7
|
+
import { y as SqlSchemaIRNode } from "./types-Da1Y_OI7-BPyFwdFU.mjs";
|
|
8
|
+
import "./types-DZA5xxDT.mjs";
|
|
9
9
|
import { ColumnDefault, ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
|
|
10
10
|
import { ControlAdapterInstance, ControlStack } from "@prisma/orm-framework/components/control";
|
|
11
|
-
//#region ../../../2-sql/9-family/dist/control-adapter-
|
|
11
|
+
//#region ../../../2-sql/9-family/dist/control-adapter-BVN98SzR.d.mts
|
|
12
12
|
//#region src/core/diff/sql-schema-diff.d.ts
|
|
13
13
|
/**
|
|
14
14
|
* Function type for normalizing raw database default expressions into ColumnDefault.
|
|
15
15
|
* Target-specific implementations handle database dialect differences.
|
|
16
16
|
*/
|
|
17
17
|
type DefaultNormalizer = (rawDefault: string, nativeType: string) => ColumnDefault | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Function type for normalizing schema native types to canonical form for comparison.
|
|
20
|
-
* Target-specific implementations handle dialect-specific type name variations
|
|
21
|
-
* (e.g., Postgres 'varchar' → 'character varying', 'timestamptz' normalization).
|
|
22
|
-
*/
|
|
23
|
-
type NativeTypeNormalizer = (nativeType: string) => string;
|
|
24
18
|
/**
|
|
25
19
|
* Compares two arrays of strings for equality (order-sensitive).
|
|
26
20
|
*/
|
|
@@ -159,12 +153,6 @@ interface SqlControlAdapter<TTarget extends string = string> extends ControlAdap
|
|
|
159
153
|
* with contract defaults (ColumnDefault objects) during schema verification.
|
|
160
154
|
*/
|
|
161
155
|
readonly normalizeDefault?: DefaultNormalizer;
|
|
162
|
-
/**
|
|
163
|
-
* Optional target-specific normalizer for schema native type names.
|
|
164
|
-
* When provided, schema native types (from introspection) are normalized
|
|
165
|
-
* before comparison with contract native types during schema verification.
|
|
166
|
-
*/
|
|
167
|
-
readonly normalizeNativeType?: NativeTypeNormalizer;
|
|
168
156
|
/**
|
|
169
157
|
* Ordered DDL queries that bootstrap marker/ledger control tables for migration
|
|
170
158
|
* runners. Postgres includes `CREATE SCHEMA`; SQLite does not.
|
|
@@ -192,5 +180,5 @@ interface SqlControlAdapterDescriptor<TTarget extends string = string> {
|
|
|
192
180
|
create(stack: ControlStack<'sql', TTarget>): SqlControlAdapter<TTarget>;
|
|
193
181
|
}
|
|
194
182
|
//#endregion
|
|
195
|
-
export {
|
|
196
|
-
//# sourceMappingURL=control-adapter-
|
|
183
|
+
export { arraysEqual as a, SqlControlAdapterDescriptor as i, Lowerer as n, SqlControlAdapter as r, ExecuteRequestLowerer as t };
|
|
184
|
+
//# sourceMappingURL=control-adapter-BVN98SzR-C-H_T7s-.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-adapter-BVN98SzR-C-H_T7s-.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/control-adapter-BVN98SzR.d.mts"],"mappings":";;;;;;;;;;;;;;;;KAUK,qBAAqB,oBAAoB,uBAAuB;;;;iBAIpD,YAAY,sBAAsB;;;;;;;;;;UAUzC;EACR,MAAM,KAAK,cAAc,SAAS,SAAS,0BAA0B;;;;;;;;UAQ7D,8BAA8B;EACtC,sBAAsB,KAAK,cAAc,SAAS,UAAU,0BAA0B,QAAQ;;;;EAI9F,oBAAoB,QAAQ,WAAW,gBAAgB;;;;;;;;UAQ/C,kBAAkB,yCAAyC,8BAA8B,UAAU;;;;;;;;;;;;;;;;EAgB3G,WAAW,QAAQ,yBAAyB,UAAU,gBAAgB,QAAQ;;;;;;;;EAQ9E,eAAe,QAAQ,yBAAyB,WAAW,QAAQ,oBAAoB;;;;;EAKvF,WAAW,QAAQ,yBAAyB,UAAU,iBAAiB,iBAAiB;;;;;;;EAOxF,aAAa,QAAQ,yBAAyB,UAAU,eAAe;aAC5D;aACA;aACA;MACP;;;;;;;EAOJ,WAAW,QAAQ,yBAAyB,UAAU,eAAe;aAC1D;aACA;aACA;MACP;;;;;;;;EAQJ,aAAa,QAAQ,yBAAyB,UAAU,eAAe,sBAAsB;aAClF;aACA;aACA;MACP;;;;;;;EAOJ,iBAAiB,QAAQ,yBA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