@prisma/orm-family-sql 8.0.0-rc.17-dev.2 → 8.0.0-rc.17-dev.4
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/{ast-DUU5OVjo.mjs → ast-De8XGuVW.mjs} +2 -2
- package/dist/{ast-DUU5OVjo.mjs.map → ast-De8XGuVW.mjs.map} +1 -1
- package/dist/{ast-Bmb-2vbO.d.mts → ast-Dp6lQXUX.d.mts} +3 -3
- package/dist/{ast-Bmb-2vbO.d.mts.map → ast-Dp6lQXUX.d.mts.map} +1 -1
- package/dist/{authored-check-naming-C8_TvzU6.d.mts → authored-check-naming-CK6T_Dfh.d.mts} +2 -2
- package/dist/{authored-check-naming-C8_TvzU6.d.mts.map → authored-check-naming-CK6T_Dfh.d.mts.map} +1 -1
- package/dist/{authored-check-naming-BBdhHujS.mjs → authored-check-naming-CO3GA46Y.mjs} +3 -3
- package/dist/{authored-check-naming-BBdhHujS.mjs.map → authored-check-naming-CO3GA46Y.mjs.map} +1 -1
- package/dist/{authoring-entity-types-CZ-vdwYS-BLYHcBXG.d.mts → authoring-entity-types-CZ-vdwYS-BQPeBSla.d.mts} +2 -2
- package/dist/{authoring-entity-types-CZ-vdwYS-BLYHcBXG.d.mts.map → authoring-entity-types-CZ-vdwYS-BQPeBSla.d.mts.map} +1 -1
- package/dist/{authoring-type-constructors-0Iv2zdwS-ClKI8Uuk.mjs → authoring-type-constructors-0Iv2zdwS-CcpLSwei.mjs} +2 -2
- package/dist/{authoring-type-constructors-0Iv2zdwS-ClKI8Uuk.mjs.map → authoring-type-constructors-0Iv2zdwS-CcpLSwei.mjs.map} +1 -1
- package/dist/builder.d.mts +2 -2
- package/dist/builder__runtime.d.mts +9 -9
- package/dist/builder__runtime.mjs +129 -2
- package/dist/builder__runtime.mjs.map +1 -1
- package/dist/builder__types.d.mts +3 -3
- package/dist/{check-constraint-B7qGu6rc-agxAjKLG.d.mts → check-constraint-B7qGu6rc-CBVYAMwG.d.mts} +2 -2
- package/dist/{check-constraint-B7qGu6rc-agxAjKLG.d.mts.map → check-constraint-B7qGu6rc-CBVYAMwG.d.mts.map} +1 -1
- package/dist/{codec-descriptor-registry-CdIIOkuE.mjs → codec-descriptor-registry-CYK0Wzja.mjs} +2 -2
- package/dist/{codec-descriptor-registry-CdIIOkuE.mjs.map → codec-descriptor-registry-CYK0Wzja.mjs.map} +1 -1
- package/dist/{config-types-DB6gRJ5K.d.mts → config-types-Ci51fcnp.d.mts} +4 -4
- package/dist/{config-types-DB6gRJ5K.d.mts.map → config-types-Ci51fcnp.d.mts.map} +1 -1
- package/dist/{config-types-D0sxpKAN.mjs → config-types-DsRO_uxd.mjs} +3 -3
- package/dist/{config-types-D0sxpKAN.mjs.map → config-types-DsRO_uxd.mjs.map} +1 -1
- package/dist/{contract-builder-tEax3I2q.mjs → contract-builder-DEtvdts6.mjs} +15 -9
- package/dist/contract-builder-DEtvdts6.mjs.map +1 -0
- package/dist/{contract-builder-V5pFHDv3.d.mts → contract-builder-DWQhH8FQ.d.mts} +21 -13
- package/dist/contract-builder-DWQhH8FQ.d.mts.map +1 -0
- package/dist/contract-emitter.mjs +1 -1
- package/dist/contract-prisma7__provider.d.mts +2 -2
- package/dist/contract-prisma7__provider.mjs +8 -8
- package/dist/contract-psl.d.mts +3 -3
- 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.d.mts +2 -2
- package/dist/contract-psl__provider.mjs +3 -3
- package/dist/contract-ts.d.mts +5 -5
- package/dist/contract-ts.mjs +3 -3
- package/dist/contract-ts__config-types.d.mts +1 -1
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +4 -4
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/{contract-view-C1xX3yIj.d.mts → contract-view-CijuTaer.d.mts} +2 -2
- package/dist/{contract-view-C1xX3yIj.d.mts.map → contract-view-CijuTaer.d.mts.map} +1 -1
- package/dist/contract.d.mts +19 -19
- package/dist/contract.mjs +14 -14
- package/dist/contract__authored-check-naming.d.mts +1 -1
- package/dist/contract__authored-check-naming.mjs +1 -1
- package/dist/contract__contract-view.d.mts +1 -1
- package/dist/contract__data-type.mjs +1 -1
- package/dist/contract__entity-kinds.d.mts +1 -1
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/contract__factories.d.mts +1 -1
- package/dist/contract__factories.mjs +1 -1
- package/dist/contract__foreign-key-materialization.d.mts +1 -1
- package/dist/contract__foreign-key-materialization.mjs +2 -2
- package/dist/contract__index-naming.d.mts +1 -1
- package/dist/contract__index-naming.mjs +1 -1
- package/dist/contract__index-type-validation.d.mts +2 -2
- package/dist/contract__index-type-validation.mjs +1 -1
- package/dist/contract__index-types.d.mts +3 -3
- package/dist/contract__index-types.mjs +2 -2
- package/dist/contract__resolve-storage-table.d.mts +1 -1
- package/dist/contract__types.d.mts +7 -7
- 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-C5Yy0n3w.mjs → control-4kwMnHYO.mjs} +13 -13
- package/dist/{control-C5Yy0n3w.mjs.map → control-4kwMnHYO.mjs.map} +1 -1
- package/dist/{control-B3Mb21Md.d.mts → control-BK2oKZmT.d.mts} +16 -16
- package/dist/{control-B3Mb21Md.d.mts.map → control-BK2oKZmT.d.mts.map} +1 -1
- package/dist/{control-adapter-CkFfBVei-BLYeKcLW.d.mts → control-adapter-CkFfBVei-DH5DAObc.d.mts} +8 -8
- package/dist/{control-adapter-CkFfBVei-BLYeKcLW.d.mts.map → control-adapter-CkFfBVei-DH5DAObc.d.mts.map} +1 -1
- package/dist/control-adapter-DB7MPI5L.d.mts +1 -0
- package/dist/{data-type-CAPmGXg9.mjs → data-type-C_PI_Jsa.mjs} +2 -2
- package/dist/{data-type-CAPmGXg9.mjs.map → data-type-C_PI_Jsa.mjs.map} +1 -1
- package/dist/{db-D7R5zKiH-P7Tg4ZXk.d.mts → db-DB1FVK1P-DbwoL7vg.d.mts} +48 -11
- package/dist/db-DB1FVK1P-DbwoL7vg.d.mts.map +1 -0
- package/dist/{ddl-types-DtKZjNtN-CByECwns.d.mts → ddl-types-DtKZjNtN-CwtcEWLd.d.mts} +3 -3
- package/dist/{ddl-types-DtKZjNtN-CByECwns.d.mts.map → ddl-types-DtKZjNtN-CwtcEWLd.d.mts.map} +1 -1
- package/dist/{derived-checks-D5zdlyyh-CPofdm1W.mjs → derived-checks-CfXjGvNH-CrXoMrPU.mjs} +22 -32
- package/dist/derived-checks-CfXjGvNH-CrXoMrPU.mjs.map +1 -0
- package/dist/{derived-checks-DpPkO6Dt-D3M7YEr2.d.mts → derived-checks-DpPkO6Dt-ZEbWeWKL.d.mts} +3 -3
- package/dist/{derived-checks-DpPkO6Dt-D3M7YEr2.d.mts.map → derived-checks-DpPkO6Dt-ZEbWeWKL.d.mts.map} +1 -1
- package/dist/{diff-CBqsNkxe.d.mts → diff-l4-qJpTV.d.mts} +8 -8
- package/dist/{diff-CBqsNkxe.d.mts.map → diff-l4-qJpTV.d.mts.map} +1 -1
- package/dist/{dist-Dm_hQ-hh.mjs → dist-D8EkCena.mjs} +2 -2
- package/dist/{dist-Dm_hQ-hh.mjs.map → dist-D8EkCena.mjs.map} +1 -1
- package/dist/{entity-kinds-O3V1K26U-B8TUrsX2.mjs → entity-kinds-DDTkNIr9-DJ2EIO94.mjs} +5 -5
- package/dist/{entity-kinds-O3V1K26U-B8TUrsX2.mjs.map → entity-kinds-DDTkNIr9-DJ2EIO94.mjs.map} +1 -1
- package/dist/{entity-kinds--HvqT50S.d.mts → entity-kinds-DqUYen0Y.d.mts} +5 -5
- package/dist/{entity-kinds--HvqT50S.d.mts.map → entity-kinds-DqUYen0Y.d.mts.map} +1 -1
- package/dist/{expression-DE893va7.d.mts → expression-CvXfXCGs.d.mts} +7 -7
- package/dist/{expression-DE893va7.d.mts.map → expression-CvXfXCGs.d.mts.map} +1 -1
- package/dist/{factories-DzLBAAvj.d.mts → factories-BVIVyHQU.d.mts} +4 -4
- package/dist/{factories-DzLBAAvj.d.mts.map → factories-BVIVyHQU.d.mts.map} +1 -1
- package/dist/{factories-Bp41Aity.mjs → factories-CScqMnFk.mjs} +3 -3
- package/dist/{factories-Bp41Aity.mjs.map → factories-CScqMnFk.mjs.map} +1 -1
- package/dist/family.d.mts +13 -13
- package/dist/family.mjs +6 -6
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +4 -4
- package/dist/family__control.mjs +3 -3
- package/dist/family__diff.d.mts +2 -2
- package/dist/family__diff.mjs +1 -1
- package/dist/family__ir.d.mts +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__psl-build.mjs +1 -1
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/family__psl-infer.mjs +1 -1
- package/dist/family__runtime.d.mts +2 -2
- package/dist/{foreign-key-materialization-D0Ltg78T.d.mts → foreign-key-materialization-DBYDet74.d.mts} +6 -4
- package/dist/foreign-key-materialization-DBYDet74.d.mts.map +1 -0
- package/dist/{foreign-key-materialization-Cv3q8Pix.mjs → foreign-key-materialization-DyoakLGY.mjs} +16 -7
- package/dist/foreign-key-materialization-DyoakLGY.mjs.map +1 -0
- package/dist/{index-oNRBExeI.d.mts → index-BzAG1PFV.d.mts} +11 -11
- package/dist/{index-oNRBExeI.d.mts.map → index-BzAG1PFV.d.mts.map} +1 -1
- package/dist/{index-CnpTmyXs.d.mts → index-We-mbWnZ.d.mts} +3 -3
- package/dist/{index-CnpTmyXs.d.mts.map → index-We-mbWnZ.d.mts.map} +1 -1
- package/dist/{index-equivalence-DswCiq5l-C7wLMPwF.mjs → index-equivalence-DswCiq5l-_gF1Un8p.mjs} +2 -2
- package/dist/{index-equivalence-DswCiq5l-C7wLMPwF.mjs.map → index-equivalence-DswCiq5l-_gF1Un8p.mjs.map} +1 -1
- package/dist/{index-naming-Cj1Anq-T-NX841eiU.mjs → index-naming-BOcJT1B3-CeEoP8t3.mjs} +7 -5
- package/dist/index-naming-BOcJT1B3-CeEoP8t3.mjs.map +1 -0
- package/dist/{index-naming-UEtT94f5.d.mts → index-naming-C7pme5Pj.d.mts} +4 -3
- package/dist/index-naming-C7pme5Pj.d.mts.map +1 -0
- package/dist/index-type-validation-Bcme_Ust.mjs +42 -0
- package/dist/index-type-validation-Bcme_Ust.mjs.map +1 -0
- package/dist/index-type-validation-D7-fPxIJ.d.mts +16 -0
- package/dist/index-type-validation-D7-fPxIJ.d.mts.map +1 -0
- package/dist/index-types-ByX8MLso.d.mts +1 -0
- package/dist/index-types-H1O43iYT-ONvDbszL.d.mts +66 -0
- package/dist/index-types-H1O43iYT-ONvDbszL.d.mts.map +1 -0
- package/dist/index-types-pC_5vADQ-TTUXAfmL.mjs +95 -0
- package/dist/index-types-pC_5vADQ-TTUXAfmL.mjs.map +1 -0
- package/dist/{interpreter-DlG-2o64-DmykcFbp.mjs → interpreter-DlG-2o64-CDb20sM1.mjs} +7 -7
- package/dist/{interpreter-DlG-2o64-DmykcFbp.mjs.map → interpreter-DlG-2o64-CDb20sM1.mjs.map} +1 -1
- package/dist/{ir-BPrf_vgX.d.mts → ir-OBn7ct21.d.mts} +3 -3
- package/dist/{ir-BPrf_vgX.d.mts.map → ir-OBn7ct21.d.mts.map} +1 -1
- package/dist/middleware-FHkIPvYR.d.mts +1 -0
- package/dist/{middleware-mLwvcOLS-SaqhgsmA.d.mts → middleware-mLwvcOLS-wIYSKgog.d.mts} +2 -2
- package/dist/{middleware-mLwvcOLS-SaqhgsmA.d.mts.map → middleware-mLwvcOLS-wIYSKgog.d.mts.map} +1 -1
- package/dist/{migration-C_J49WKy.d.mts → migration-DEK3Hxlo.d.mts} +4 -4
- package/dist/{migration-C_J49WKy.d.mts.map → migration-DEK3Hxlo.d.mts.map} +1 -1
- package/dist/{naming-C1OcnGJg-DB1o9TS6.d.mts → naming-BcD36g9T-DFyaudUa.d.mts} +3 -10
- package/dist/{naming-C1OcnGJg-DB1o9TS6.d.mts.map → naming-BcD36g9T-DFyaudUa.d.mts.map} +1 -1
- package/dist/{naming-DkG_OegU-DpENNdZX.mjs → naming-CT8tRisJ-DLHKo0Hm.mjs} +9 -10
- package/dist/{naming-DkG_OegU-DpENNdZX.mjs.map → naming-CT8tRisJ-DLHKo0Hm.mjs.map} +1 -1
- package/dist/operations.d.mts +1 -1
- package/dist/orm-client.d.mts +22 -25
- package/dist/orm-client.d.mts.map +1 -1
- package/dist/orm-client.mjs +20 -7
- package/dist/orm-client.mjs.map +1 -1
- package/dist/{pack-DZtuLikU.d.mts → pack-D3L1b4Ag.d.mts} +2 -2
- package/dist/{pack-DZtuLikU.d.mts.map → pack-D3L1b4Ag.d.mts.map} +1 -1
- package/dist/plan-_8dKi13Q.d.mts +2 -0
- package/dist/{plan-cGEaSXHv-BeW-cC5v.d.mts → plan-cGEaSXHv-j0w37mVT.d.mts} +4 -4
- package/dist/{plan-cGEaSXHv-BeW-cC5v.d.mts.map → plan-cGEaSXHv-j0w37mVT.d.mts.map} +1 -1
- package/dist/{prepared-statement-YtgdlN7e-CI1fD5IM.d.mts → prepared-statement-YtgdlN7e-D4MSU3i0.d.mts} +16 -16
- package/dist/{prepared-statement-YtgdlN7e-CI1fD5IM.d.mts.map → prepared-statement-YtgdlN7e-D4MSU3i0.d.mts.map} +1 -1
- package/dist/{psl-build-B5iMVWHu.mjs → psl-build-DTE03hcr.mjs} +2 -2
- package/dist/{psl-build-B5iMVWHu.mjs.map → psl-build-DTE03hcr.mjs.map} +1 -1
- package/dist/{psl-column-resolution-CNtNJ7g7-CEuutj8I.d.mts → psl-column-resolution-CNtNJ7g7-DOrhyw4S.d.mts} +2 -2
- package/dist/{psl-column-resolution-CNtNJ7g7-CEuutj8I.d.mts.map → psl-column-resolution-CNtNJ7g7-DOrhyw4S.d.mts.map} +1 -1
- package/dist/{psl-field-resolution-BW0ZuqBd-Dv18ERa7.mjs → psl-field-resolution-BW0ZuqBd--WxiBxb0.mjs} +4 -4
- package/dist/{psl-field-resolution-BW0ZuqBd-Dv18ERa7.mjs.map → psl-field-resolution-BW0ZuqBd--WxiBxb0.mjs.map} +1 -1
- package/dist/{psl-infer-B0yuv-j_.mjs → psl-infer-DHO72J_m.mjs} +2 -2
- package/dist/{psl-infer-B0yuv-j_.mjs.map → psl-infer-DHO72J_m.mjs.map} +1 -1
- package/dist/{psl-infer-DkPZJnUM.d.mts → psl-infer-DsHE9xAU.d.mts} +3 -3
- package/dist/{psl-infer-DkPZJnUM.d.mts.map → psl-infer-DsHE9xAU.d.mts.map} +1 -1
- package/dist/{query-lane-context-CJoNBspB-CR_n8DNB.d.mts → query-lane-context-CJoNBspB--ieuKEei.d.mts} +5 -5
- package/dist/{query-lane-context-CJoNBspB-CR_n8DNB.d.mts.map → query-lane-context-CJoNBspB--ieuKEei.d.mts.map} +1 -1
- package/dist/query-lane-context-DNt2DeQu.d.mts +1 -0
- package/dist/relational-core.d.mts +11 -11
- package/dist/relational-core.mjs +1 -1
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
- package/dist/relational-core__ast.d.mts +3 -3
- package/dist/relational-core__ast.mjs +1 -1
- package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
- package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
- package/dist/relational-core__contract-free.d.mts +3 -3
- package/dist/relational-core__expression.d.mts +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/{resolve-storage-table-B7m9cFy4.d.mts → resolve-storage-table-wSUswl-4.d.mts} +3 -3
- package/dist/{resolve-storage-table-B7m9cFy4.d.mts.map → resolve-storage-table-wSUswl-4.d.mts.map} +1 -1
- package/dist/{runtime-Ca7PVQcJ.d.mts → runtime-BHJXmBhw.d.mts} +2 -2
- package/dist/{runtime-Ca7PVQcJ.d.mts.map → runtime-BHJXmBhw.d.mts.map} +1 -1
- package/dist/runtime.d.mts +4 -4
- package/dist/runtime.mjs +2 -2
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/dist/{schema-differ-CqWOkoW9-BABSAGGB.d.mts → schema-differ-CqWOkoW9-DQkzKV8b.d.mts} +5 -5
- package/dist/{schema-differ-CqWOkoW9-BABSAGGB.d.mts.map → schema-differ-CqWOkoW9-DQkzKV8b.d.mts.map} +1 -1
- package/dist/schema-ir.d.mts +1 -1
- package/dist/schema-ir.mjs +1 -1
- package/dist/schema-ir__naming.d.mts +1 -1
- package/dist/schema-ir__naming.mjs +1 -1
- package/dist/schema-ir__types.d.mts +2 -2
- package/dist/schema-ir__types.mjs +1 -1
- package/dist/{schema-verify-DIfHSB4I-Dx3Tq9hf.mjs → schema-verify-DIfHSB4I-k8l0LZZB.mjs} +4 -4
- package/dist/{schema-verify-DIfHSB4I-Dx3Tq9hf.mjs.map → schema-verify-DIfHSB4I-k8l0LZZB.mjs.map} +1 -1
- package/dist/{serialized-index-C26m_DWu-CnNi8WAI.mjs → serialized-index-C26m_DWu-BjU519sW.mjs} +3 -3
- package/dist/{serialized-index-C26m_DWu-CnNi8WAI.mjs.map → serialized-index-C26m_DWu-BjU519sW.mjs.map} +1 -1
- package/dist/{serialized-index-CrgG8ct1-D64Figsu.d.mts → serialized-index-CrgG8ct1-DDfHKUEK.d.mts} +3 -3
- package/dist/{serialized-index-CrgG8ct1-D64Figsu.d.mts.map → serialized-index-CrgG8ct1-DDfHKUEK.d.mts.map} +1 -1
- package/dist/{sql-contract-serializer-DDaAVCQr-c3jZiPS3.mjs → sql-contract-serializer-DDaAVCQr-CGG0I8ur.mjs} +5 -5
- package/dist/{sql-contract-serializer-DDaAVCQr-c3jZiPS3.mjs.map → sql-contract-serializer-DDaAVCQr-CGG0I8ur.mjs.map} +1 -1
- package/dist/{sql-execution-plan-C7XauPPu-BFhGKvp4.d.mts → sql-execution-plan-C7XauPPu-eskZJbmm.d.mts} +2 -2
- package/dist/{sql-execution-plan-C7XauPPu-BFhGKvp4.d.mts.map → sql-execution-plan-C7XauPPu-eskZJbmm.d.mts.map} +1 -1
- package/dist/{sql-index-ByAAE7K8-DPkZtr7t.d.mts → sql-index-ByAAE7K8-BpbPBWPD.d.mts} +2 -2
- package/dist/{sql-index-ByAAE7K8-DPkZtr7t.d.mts.map → sql-index-ByAAE7K8-BpbPBWPD.d.mts.map} +1 -1
- package/dist/{sql-storage-BTlJLUID-O6fBB_am.d.mts → sql-storage-BTlJLUID-CGy3wuH4.d.mts} +2 -2
- package/dist/{sql-storage-BTlJLUID-O6fBB_am.d.mts.map → sql-storage-BTlJLUID-CGy3wuH4.d.mts.map} +1 -1
- package/dist/{storage-table-B7OSPl3G-EOodFPzq.mjs → storage-table-B7OSPl3G-p1j6AjMS.mjs} +2 -2
- package/dist/{storage-table-B7OSPl3G-EOodFPzq.mjs.map → storage-table-B7OSPl3G-p1j6AjMS.mjs.map} +1 -1
- package/dist/{storage-table-WXeVNycx-tlFMnbig.d.mts → storage-table-WXeVNycx-BCwDhdq5.d.mts} +4 -4
- package/dist/{storage-table-WXeVNycx-tlFMnbig.d.mts.map → storage-table-WXeVNycx-BCwDhdq5.d.mts.map} +1 -1
- package/dist/types-BCPHaykc.d.mts +1 -0
- package/dist/{types-BJQcLx-8-DY221fiX.d.mts → types-BJQcLx-8-BHNxJ_df.d.mts} +10 -10
- package/dist/{types-BJQcLx-8-DY221fiX.d.mts.map → types-BJQcLx-8-BHNxJ_df.d.mts.map} +1 -1
- package/dist/{types-CzxOObSY-DEfjmbj1.d.mts → types-CzxOObSY-CxZ_bdVi.d.mts} +9 -9
- package/dist/{types-CzxOObSY-DEfjmbj1.d.mts.map → types-CzxOObSY-CxZ_bdVi.d.mts.map} +1 -1
- package/dist/{types-Cz_bcUWN-CC3lFQOi.mjs → types-D0GFxty0-CP8b4dR3.mjs} +4 -4
- package/dist/{types-Cz_bcUWN-CC3lFQOi.mjs.map → types-D0GFxty0-CP8b4dR3.mjs.map} +1 -1
- package/dist/{types-DFZhLz18-C_h0u-Zx.d.mts → types-DFZhLz18-Msi8wwig.d.mts} +6 -6
- package/dist/{types-DFZhLz18-C_h0u-Zx.d.mts.map → types-DFZhLz18-Msi8wwig.d.mts.map} +1 -1
- package/dist/{types-CLsPsUiw-Db1BsN9R.d.mts → types-DIZSW9JI-DNUF-RnL.d.mts} +3 -3
- package/dist/{types-CLsPsUiw-Db1BsN9R.d.mts.map → types-DIZSW9JI-DNUF-RnL.d.mts.map} +1 -1
- package/dist/{types-C7oOtFcJ.mjs → types-DXrO0fxT.mjs} +2 -2
- package/dist/{types-C7oOtFcJ.mjs.map → types-DXrO0fxT.mjs.map} +1 -1
- package/dist/types-DqSCaTK3.d.mts +1 -0
- package/dist/{types-Sh5HuaZE-B_FQUPng.d.mts → types-Sh5HuaZE-CqThc46M.d.mts} +2 -2
- package/dist/{types-Sh5HuaZE-B_FQUPng.d.mts.map → types-Sh5HuaZE-CqThc46M.d.mts.map} +1 -1
- package/dist/{types-BURWzacK.d.mts → types-Uv3oTMAb.d.mts} +7 -7
- package/dist/{types-BURWzacK.d.mts.map → types-Uv3oTMAb.d.mts.map} +1 -1
- package/dist/{validators-oyDG5mVX.mjs → validators-CIfn8ezs.mjs} +5 -5
- package/dist/{validators-oyDG5mVX.mjs.map → validators-CIfn8ezs.mjs.map} +1 -1
- package/dist/{validators-Cr_FFJAG.d.mts → validators-COcD3_iw.d.mts} +3 -3
- package/dist/{validators-Cr_FFJAG.d.mts.map → validators-COcD3_iw.d.mts.map} +1 -1
- package/package.json +18 -18
- package/dist/contract-builder-V5pFHDv3.d.mts.map +0 -1
- package/dist/contract-builder-tEax3I2q.mjs.map +0 -1
- package/dist/control-adapter-BXQ29_fa.d.mts +0 -1
- package/dist/db-D7R5zKiH-P7Tg4ZXk.d.mts.map +0 -1
- package/dist/derived-checks-D5zdlyyh-CPofdm1W.mjs.map +0 -1
- package/dist/foreign-key-materialization-Cv3q8Pix.mjs.map +0 -1
- package/dist/foreign-key-materialization-D0Ltg78T.d.mts.map +0 -1
- package/dist/index-naming-Cj1Anq-T-NX841eiU.mjs.map +0 -1
- package/dist/index-naming-UEtT94f5.d.mts.map +0 -1
- package/dist/index-type-validation-B925ye4q.d.mts +0 -10
- package/dist/index-type-validation-B925ye4q.d.mts.map +0 -1
- package/dist/index-type-validation-COH4d78M.mjs +0 -17
- package/dist/index-type-validation-COH4d78M.mjs.map +0 -1
- package/dist/index-types-CNhHgKHi.d.mts +0 -1
- package/dist/index-types-DJQ_xwaE.mjs +0 -40
- package/dist/index-types-DJQ_xwaE.mjs.map +0 -1
- package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts +0 -31
- package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts.map +0 -1
- package/dist/middleware-DwaZ6s12.d.mts +0 -1
- package/dist/plan-Dhl03MtT.d.mts +0 -2
- package/dist/query-lane-context-BaoHpLsE.d.mts +0 -1
- package/dist/types-D6XuABFQ.d.mts +0 -1
- package/dist/types-DLjT0ADz.d.mts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-kinds
|
|
1
|
+
{"version":3,"file":"entity-kinds-DqUYen0Y.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/entity-kinds.d.mts"],"mappings":";;;;;;;;;;;;;KAYK,yBAAyB,KAAK;WACxB,SAAS,cAAc,QAAQ;WAC/B,SAAS,cAAc,kBAAkB;;cAEtC,iBAAiB,qBAAqB,wBAAwB;cAC9D,oBAAoB,qBAAqB,sBAAsB;;;;;;;;;iBAS5D,sBAAsB,qBAAqB,4BAA4B,oBAAoB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as SqlStorage } from "./sql-storage-BTlJLUID-
|
|
2
|
-
import { S as QueryOperationReturn } from "./types-DFZhLz18-
|
|
3
|
-
import "./types-
|
|
4
|
-
import { t as SqlLoweringSpec } from "./index-
|
|
5
|
-
import { Ct as ParamRef, E as CodecRef$1, Ot as RawQueryAst, c as AnyExpression, jt as RawSqlLiteral, kt as RawQueryColumn } from "./types-Sh5HuaZE-
|
|
1
|
+
import { l as SqlStorage } from "./sql-storage-BTlJLUID-CGy3wuH4.mjs";
|
|
2
|
+
import { S as QueryOperationReturn } from "./types-DFZhLz18-Msi8wwig.mjs";
|
|
3
|
+
import "./types-Uv3oTMAb.mjs";
|
|
4
|
+
import { t as SqlLoweringSpec } from "./index-We-mbWnZ.mjs";
|
|
5
|
+
import { Ct as ParamRef, E as CodecRef$1, Ot as RawQueryAst, c as AnyExpression, jt as RawSqlLiteral, kt as RawQueryColumn } from "./types-Sh5HuaZE-CqThc46M.mjs";
|
|
6
6
|
import { l as SqlStatementStats } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
|
|
7
|
-
import { n as SqlQueryPlan } from "./plan-cGEaSXHv-
|
|
7
|
+
import { n as SqlQueryPlan } from "./plan-cGEaSXHv-j0w37mVT.mjs";
|
|
8
8
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
9
9
|
import { ParamSpec } from "@prisma/orm-framework/operations";
|
|
10
10
|
//#region ../../../2-sql/4-lanes/relational-core/dist/exports/expression.d.mts
|
|
@@ -263,4 +263,4 @@ declare function createRawSql(adapter: RawCodecInferer, planContext: RawPlanCont
|
|
|
263
263
|
declare function createRawSql(adapter: RawCodecInferer): RawSqlTag;
|
|
264
264
|
//#endregion
|
|
265
265
|
export { buildOperation as C, param as D, isExpression as E, toExpr as O, TraitExpression as S, createRawSql as T, RawSqlStatementBuilder as _, CodecValue as a, ScalarListExpression as b, RawAffectedCountQuery as c, RawRow as d, RawRowQuery as f, RawSqlInterpolation as g, RawSqlBuilder as h, CodecTypesBase as i, RawCodecInferer as l, RawRowSpecEntry as m, BuildOperationSpec as n, Expression as o, RawRowSpec as p, CodecExpression as r, NoReservedRowColumn as s, AffectedCount as t, RawPlanContext as u, RawSqlStatementTag as v, codecOf as w, ScopeField as x, RawSqlTag as y };
|
|
266
|
-
//# sourceMappingURL=expression-
|
|
266
|
+
//# sourceMappingURL=expression-CvXfXCGs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression-
|
|
1
|
+
{"version":3,"file":"expression-CvXfXCGs.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.d.mts"],"mappings":";;;;;;;;;;;KAQK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;KAEL,iBAAiB;WACX;WACA;;;;;KAKN,WAAW,UAAU,cAAc;WAC7B,YAAY;EACrB,YAAY;;KAET,kBAAkB,WAAW;WACvB;IACP,+CAA+C,WAAW,cAAc,GAAG;WACpE,cAAc;KACpB,iCAAiC,KAAK,2BAA2B;KACjE,WAAW,KAAK;;;;;KAKhB,WAAW,wBAAwB,0BAA0B,WAAW;WAClE;OACJ,sBAAsB,KAAK,GAAG,6BAA6B,WAAW;;;;;;;;;;;;;;;KAexE,gBAAgB,wBAAwB,0BAA0B,WAAW;WACvE;MACL;EACJ,SAAS;EACT,UAAU;EACV;KACG,WAAW,SAAS,UAAU;;;;;;;KAO9B,qBAAqB,wBAAwB,4BAA4B;EAC5E,SAAS;EACT,UAAU;EACV;;;;;;;KAOG,gBAAgB,kCAAkC,0BAA0B,WAAW;WACjF;MACL,gBAAgB,kBAAkB,IAAI,SAAS,UAAU;;;;;;;;iBAQ9C,OAAO,gBAAgB,QAAQ,aAAW;;;;iBAI1C,MAAM,GAAG,OAAO,GAAG;EAClC;IACE;;;;;;;;;;iBAUa,QAAQ,iBAAiB;iBACzB,aAAa,iBAAiB,SAAS,WAAW;UACzD,mBAAmB,UAAU;WAC5B;;;;WAIA,gBAAgB,kBAAkB;WAClC,SAAS,IAAI;WACb,UAAU;;;;;iBAKJ,eAAe,UAAU,YAAY,MAAM,mBAAmB,KAAK,WAAW;;;;;;;;;;;;;UAarF;EACR,WAAW,OAAO;;;UAGV;EACR,QAAQ,kBAAkB,MAAM,IAAI;IAClC,SAAS;IACT;;EAEF,QAAQ,kBAAkB,2BAA2B;aAC1C,SAAS;aACT,WAAW;MAClB;IACF,SAAS;IACT,UAAU;;;;;;;;;KAST;WACM;WACA;;;;;;;;;KASN;WACM;;;KAGN,aAAa,SAAS,eAAe,oBAAoB;;;;;;KAMzD,OAAO,aAAa,0BAA0B,WAAW;;;;;UAKpD;WACC,UAAU,SAAS;WACnB;;;;;;;;;;UAUD,YAAY,eAAe,aAAa,SAAS,eAAe,mBAAmB,SAAS,eAAe;;;;;;;;;WAS1G,SAAS;EAClB,YAAY;EACZ,SAAS,aAAa;;cAEV;;;;;;;;;;UAUJ,sBAAsB;YACpB;;;;;;;;UAQF;EACR,SAAS,aAAa;;;;;;;UAOd,+BAA+B;EACvC,WAAW,aAAa,YAAY,MAAM,OAAO,YAAY,OAAO;EACpE,iBAAiB;;;KAGd,aAAa,SAAS,yBAAyB,QAAQ,0BAA0B;;KAEjF,sBAAsB,SAAS,yBAAyB,QAAQ,0BAA0B;;KAE1F,uBAAuB,WAAW,cAAc,WAAW;;KAE3D,sBAAsB,uBAAuB;;;;;;;;iBAQjC,aAAa,SAAS,iBAAiB,aAAa,iBAAiB;iBACrE,aAAa,SAAS,kBAAkB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as ForeignKey } from "./foreign-key-qkDFfG8t-Fyrzd0VI.mjs";
|
|
2
2
|
import { r as UniqueConstraint, t as PrimaryKey } from "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
|
|
3
|
-
import { t as Index } from "./sql-index-ByAAE7K8-
|
|
4
|
-
import { n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-WXeVNycx-
|
|
5
|
-
import { A as SqlModelStorage, k as SqlModelFieldStorage, y as ForeignKeyOptions } from "./types-DFZhLz18-
|
|
3
|
+
import { t as Index } from "./sql-index-ByAAE7K8-BpbPBWPD.mjs";
|
|
4
|
+
import { n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-WXeVNycx-BCwDhdq5.mjs";
|
|
5
|
+
import { A as SqlModelStorage, k as SqlModelFieldStorage, y as ForeignKeyOptions } from "./types-DFZhLz18-Msi8wwig.mjs";
|
|
6
6
|
import { ScalarFieldType } from "@prisma/orm-framework/contract/types";
|
|
7
7
|
//#region ../../../2-sql/1-core/contract/dist/factories.d.mts
|
|
8
8
|
//#region src/factories.d.ts
|
|
@@ -42,4 +42,4 @@ declare function model(tableName: string, fields: Record<string, SqlModelFieldSt
|
|
|
42
42
|
};
|
|
43
43
|
//#endregion
|
|
44
44
|
export { pk as a, model as i, fk as n, table as o, index as r, unique as s, col as t };
|
|
45
|
-
//# sourceMappingURL=factories-
|
|
45
|
+
//# sourceMappingURL=factories-BVIVyHQU.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factories-
|
|
1
|
+
{"version":3,"file":"factories-BVIVyHQU.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.d.mts"],"mappings":";;;;;;;;KAOK;WACM;WACA;;WAEA;WACA;;iBAEM,IAAI,kBAAkB,iBAAiB,oBAAoB,OAAO,4BAA4B;iBAC9F,MAAM,6BAA6B;iBACnC,UAAU,6BAA6B;iBACvC,MAAM,cAAc,4BAA4B;WACtD;WACA;WACA;WACA,UAAU;IACjB;iBACa,GAAG,sBAAsB,+BAA+B,yBAAyB,kCAAkC,OAAO;EACzI;IACE;iBACa,MAAM,SAAS,eAAe,gBAAgB,qBAAqB;EAClF,KAAK;EACL,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;IACb;iBACa,MAAM,mBAAmB,QAAQ,eAAe,uBAAuB,YAAY,yBAAyB;EAC3H,SAAS;EACT,QAAQ;aACG;aACA,MAAM;aACN;;EAEX,WAAW"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
|
|
2
|
-
import { m as parseNaming } from "./naming-
|
|
3
|
-
import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, s as StorageColumn } from "./storage-table-B7OSPl3G-
|
|
2
|
+
import { m as parseNaming } from "./naming-CT8tRisJ-DLHKo0Hm.mjs";
|
|
3
|
+
import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, s as StorageColumn } from "./storage-table-B7OSPl3G-p1j6AjMS.mjs";
|
|
4
4
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
5
5
|
import { asNamespaceId } from "@prisma/orm-framework/contract/types";
|
|
6
6
|
//#region ../../../2-sql/1-core/contract/dist/factories.mjs
|
|
@@ -81,4 +81,4 @@ function model(tableName, fields, relations = {}, namespaceId = UNBOUND_NAMESPAC
|
|
|
81
81
|
//#endregion
|
|
82
82
|
export { pk as a, model as i, fk as n, table as o, index as r, unique as s, col as t };
|
|
83
83
|
|
|
84
|
-
//# sourceMappingURL=factories-
|
|
84
|
+
//# sourceMappingURL=factories-CScqMnFk.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factories-
|
|
1
|
+
{"version":3,"file":"factories-CScqMnFk.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { a as ForeignKey, i as PrimaryKey, n as UniqueConstraint, r as StorageColumn, s as Index, t as StorageTable } from \"./storage-table-B7OSPl3G.mjs\";\nimport { parseNaming } from \"@internal/sql-schema-ir/naming\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { asNamespaceId } from \"@internal/contract/types\";\n//#region src/factories.ts\nfunction col(dataType, codecId, nullable = false, opts) {\n\tif (opts?.elementNullable !== void 0 && opts.many !== true) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", \"StorageColumn elementNullable must be nested under many.\", { meta: { reason: \"elementNullable-without-many\" } });\n\treturn new StorageColumn({\n\t\tdataType,\n\t\tcodecId,\n\t\tnullable,\n\t\tmany: opts?.many === true ? { elementNullable: opts.elementNullable ?? false } : false\n\t});\n}\nfunction pk(...columns) {\n\treturn new PrimaryKey({ columns });\n}\nfunction unique(...columns) {\n\treturn new UniqueConstraint({ columns });\n}\nfunction index(name, columns, opts) {\n\treturn new Index({\n\t\tnaming: parseNaming(name, opts?.prefix),\n\t\tcolumns,\n\t\twhere: void 0,\n\t\tunique: opts?.unique ?? false,\n\t\ttype: opts?.type,\n\t\toptions: opts?.options\n\t});\n}\nfunction fk(srcTableName, srcColumns, targetTableName, targetColumns, opts) {\n\tconst namespaceId = asNamespaceId(opts?.namespaceId ?? UNBOUND_NAMESPACE_ID);\n\treturn new ForeignKey({\n\t\tsource: {\n\t\t\tnamespaceId,\n\t\t\ttableName: srcTableName,\n\t\t\tcolumns: srcColumns\n\t\t},\n\t\ttarget: {\n\t\t\tnamespaceId,\n\t\t\ttableName: targetTableName,\n\t\t\tcolumns: targetColumns\n\t\t},\n\t\t...opts?.name !== void 0 && { name: opts.name },\n\t\t...opts?.onDelete !== void 0 && { onDelete: opts.onDelete },\n\t\t...opts?.onUpdate !== void 0 && { onUpdate: opts.onUpdate },\n\t\t...opts?.index !== void 0 && { index: opts.index }\n\t});\n}\nfunction table(columns, opts) {\n\treturn new StorageTable({\n\t\tcolumns,\n\t\t...opts?.pk !== void 0 && { primaryKey: opts.pk },\n\t\tuniques: opts?.uniques ?? [],\n\t\tindexes: opts?.indexes ?? [],\n\t\tforeignKeys: opts?.fks ?? []\n\t});\n}\nfunction model(tableName, fields, relations = {}, namespaceId = UNBOUND_NAMESPACE_ID) {\n\tconst storage = {\n\t\ttable: tableName,\n\t\tnamespaceId,\n\t\tfields\n\t};\n\tconst domainFields = {};\n\tfor (const [name, field] of Object.entries(fields)) domainFields[name] = {\n\t\tnullable: field.nullable ?? false,\n\t\ttype: {\n\t\t\tkind: \"scalar\",\n\t\t\tcodecId: field.codecId ?? \"core/unknown@1\"\n\t\t},\n\t\tmany: false\n\t};\n\treturn {\n\t\tstorage,\n\t\tfields: domainFields,\n\t\trelations\n\t};\n}\n//#endregion\nexport { col, fk, index, model, pk, table, unique };\n\n//# sourceMappingURL=factories.mjs.map"],"mappings":";;;;;;AAMA,SAAS,IAAI,UAAU,SAAS,WAAW,OAAO,MAAM;CACvD,IAAI,MAAM,oBAAoB,KAAK,KAAK,KAAK,SAAS,MAAM,MAAM,cAAc,6BAA6B,4DAA4D,EAAE,MAAM,EAAE,QAAQ,+BAA+B,EAAE,CAAC;CAC7N,OAAO,IAAI,cAAc;EACxB;EACA;EACA;EACA,MAAM,MAAM,SAAS,OAAO,EAAE,iBAAiB,KAAK,mBAAmB,MAAM,IAAI;CAClF,CAAC;AACF;AACA,SAAS,GAAG,GAAG,SAAS;CACvB,OAAO,IAAI,WAAW,EAAE,QAAQ,CAAC;AAClC;AACA,SAAS,OAAO,GAAG,SAAS;CAC3B,OAAO,IAAI,iBAAiB,EAAE,QAAQ,CAAC;AACxC;AACA,SAAS,MAAM,MAAM,SAAS,MAAM;CACnC,OAAO,IAAI,MAAM;EAChB,QAAQ,YAAY,MAAM,MAAM,MAAM;EACtC;EACA,OAAO,KAAK;EACZ,QAAQ,MAAM,UAAU;EACxB,MAAM,MAAM;EACZ,SAAS,MAAM;CAChB,CAAC;AACF;AACA,SAAS,GAAG,cAAc,YAAY,iBAAiB,eAAe,MAAM;CAC3E,MAAM,cAAc,cAAc,MAAM,eAAe,oBAAoB;CAC3E,OAAO,IAAI,WAAW;EACrB,QAAQ;GACP;GACA,WAAW;GACX,SAAS;EACV;EACA,QAAQ;GACP;GACA,WAAW;GACX,SAAS;EACV;EACA,GAAG,MAAM,SAAS,KAAK,KAAK,EAAE,MAAM,KAAK,KAAK;EAC9C,GAAG,MAAM,aAAa,KAAK,KAAK,EAAE,UAAU,KAAK,SAAS;EAC1D,GAAG,MAAM,aAAa,KAAK,KAAK,EAAE,UAAU,KAAK,SAAS;EAC1D,GAAG,MAAM,UAAU,KAAK,KAAK,EAAE,OAAO,KAAK,MAAM;CAClD,CAAC;AACF;AACA,SAAS,MAAM,SAAS,MAAM;CAC7B,OAAO,IAAI,aAAa;EACvB;EACA,GAAG,MAAM,OAAO,KAAK,KAAK,EAAE,YAAY,KAAK,GAAG;EAChD,SAAS,MAAM,WAAW,CAAC;EAC3B,SAAS,MAAM,WAAW,CAAC;EAC3B,aAAa,MAAM,OAAO,CAAC;CAC5B,CAAC;AACF;AACA,SAAS,MAAM,WAAW,QAAQ,YAAY,CAAC,GAAG,cAAc,sBAAsB;CACrF,MAAM,UAAU;EACf,OAAO;EACP;EACA;CACD;CACA,MAAM,eAAe,CAAC;CACtB,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,MAAM,GAAG,aAAa,QAAQ;EACxE,UAAU,MAAM,YAAY;EAC5B,MAAM;GACL,MAAM;GACN,SAAS,MAAM,WAAW;EAC3B;EACA,MAAM;CACP;CACA,OAAO;EACN;EACA,QAAQ;EACR;CACD;AACD"}
|
package/dist/family.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-
|
|
2
|
-
import { h as checkSqlDefaultText } from "./validators-
|
|
3
|
-
import { a as arraysEqual, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-
|
|
4
|
-
import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CzxOObSY-
|
|
5
|
-
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-
|
|
6
|
-
import { $ as partitionIssuesByControlPolicy, A as SqlDescribedContractSpace, C as NoTable, D as SingleOperationCall, E as SchemaTables, F as TABLE_NAME_CASE_CHANGED_CODE, G as createMigrationPlan, H as contractNamespaceToSchemaIR, I as TableNameCaseGuardTable, J as extractCodecControlHooks, K as detectDestructiveChanges, L as TableRename, M as StatementPlanningTarget, N as SubjectStorage, O as SqlControlFamilyInstance, P as SuppressionRecord, Q as partitionCallsByControlPolicy, R as TableRenameRequest, S as ModelTable, T as PlannedStatements, U as contractToSchemaIR, V as assembleAuthoringContributions, W as controlPolicyForCall, X as fieldRenameStorageEffect, Y as fieldEventStorage, Z as modelRenameStorageEffect, _ as MigrationPlanOperation, a as ColumnRename, at as resolveColumnRenameAgainst, b as MigrationPlannerResult, c as ControlPolicySubject, ct as runnerSuccess, d as FieldEventCall, dt as subjectsOfCalls, et as planFieldEventCalls, f as FieldStorageEffect, ft as temporalCodecPresetWithPrecision, g as MigrationPlan, gt as unmatchedTableRename, h as MigrationOperationPolicy, ht as unmatchedColumnRename, i as ColumnOnOneSide, it as plannerSuccess, j as SqlPslBuildContext, k as SqlControlTargetDescriptor, l as DefaultRenderer, lt as sqlTypeLookupsOf, m as MigrationOperationClass, mt as unknownCallNames, n as CallSubjects, nt as planStatements, o as ColumnRenameRequest, ot as resolveTableRenameAgainst, p as INIT_ADDITIVE_POLICY, pt as temporalStringAuthoringPresets, q as detectTableNameCaseChanges, r as CallWithCompanions, rt as plannerFailure, s as ContractToSchemaIROptions, st as runnerFailure, t as COLUMN_RENAME_UNMATCHED_CODE, tt as planFieldEventOperations, u as DefaultResolver, ut as storageNameOfOperation, v as MigrationPlanner, w as PlanFieldEventOperationsOptions, x as ModelStorageEffect, y as MigrationPlannerConflict, z as TargetMigrationsCapability } from "./control-
|
|
7
|
-
import "./control-adapter-
|
|
8
|
-
import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-
|
|
9
|
-
import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-
|
|
10
|
-
import { t as SqlMigration } from "./migration-
|
|
11
|
-
import "./pack-
|
|
1
|
+
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-wSUswl-4.mjs";
|
|
2
|
+
import { h as checkSqlDefaultText } from "./validators-COcD3_iw.mjs";
|
|
3
|
+
import { a as arraysEqual, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-DH5DAObc.mjs";
|
|
4
|
+
import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CzxOObSY-CxZ_bdVi.mjs";
|
|
5
|
+
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-DQkzKV8b.mjs";
|
|
6
|
+
import { $ as partitionIssuesByControlPolicy, A as SqlDescribedContractSpace, C as NoTable, D as SingleOperationCall, E as SchemaTables, F as TABLE_NAME_CASE_CHANGED_CODE, G as createMigrationPlan, H as contractNamespaceToSchemaIR, I as TableNameCaseGuardTable, J as extractCodecControlHooks, K as detectDestructiveChanges, L as TableRename, M as StatementPlanningTarget, N as SubjectStorage, O as SqlControlFamilyInstance, P as SuppressionRecord, Q as partitionCallsByControlPolicy, R as TableRenameRequest, S as ModelTable, T as PlannedStatements, U as contractToSchemaIR, V as assembleAuthoringContributions, W as controlPolicyForCall, X as fieldRenameStorageEffect, Y as fieldEventStorage, Z as modelRenameStorageEffect, _ as MigrationPlanOperation, a as ColumnRename, at as resolveColumnRenameAgainst, b as MigrationPlannerResult, c as ControlPolicySubject, ct as runnerSuccess, d as FieldEventCall, dt as subjectsOfCalls, et as planFieldEventCalls, f as FieldStorageEffect, ft as temporalCodecPresetWithPrecision, g as MigrationPlan, gt as unmatchedTableRename, h as MigrationOperationPolicy, ht as unmatchedColumnRename, i as ColumnOnOneSide, it as plannerSuccess, j as SqlPslBuildContext, k as SqlControlTargetDescriptor, l as DefaultRenderer, lt as sqlTypeLookupsOf, m as MigrationOperationClass, mt as unknownCallNames, n as CallSubjects, nt as planStatements, o as ColumnRenameRequest, ot as resolveTableRenameAgainst, p as INIT_ADDITIVE_POLICY, pt as temporalStringAuthoringPresets, q as detectTableNameCaseChanges, r as CallWithCompanions, rt as plannerFailure, s as ContractToSchemaIROptions, st as runnerFailure, t as COLUMN_RENAME_UNMATCHED_CODE, tt as planFieldEventOperations, u as DefaultResolver, ut as storageNameOfOperation, v as MigrationPlanner, w as PlanFieldEventOperationsOptions, x as ModelStorageEffect, y as MigrationPlannerConflict, z as TargetMigrationsCapability } from "./control-BK2oKZmT.mjs";
|
|
7
|
+
import "./control-adapter-DB7MPI5L.mjs";
|
|
8
|
+
import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-l4-qJpTV.mjs";
|
|
9
|
+
import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-OBn7ct21.mjs";
|
|
10
|
+
import { t as SqlMigration } from "./migration-DEK3Hxlo.mjs";
|
|
11
|
+
import "./pack-D3L1b4Ag.mjs";
|
|
12
12
|
import { a as PslTypeResolution, i as PslTypeReference, n as DefaultMappingResult, o as mapDefault, r as PslTypeMap, t as DefaultMappingOptions } from "./type-map-3w0ieDAb-DiMpKEc2.mjs";
|
|
13
13
|
import { t as toEnumMemberName } from "./psl-build-C_n5uPZH.mjs";
|
|
14
|
-
import { a as buildChildRelationField, c as inferRelations, d as toFieldName, f as toModelName, i as RelationField, l as pluralize, n as InferredRelations, o as deriveBackRelationFieldName, r as PslPrinterOptions, s as deriveRelationFieldName, t as EnumInfo, u as toEnumName } from "./psl-infer-
|
|
15
|
-
import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-
|
|
14
|
+
import { a as buildChildRelationField, c as inferRelations, d as toFieldName, f as toModelName, i as RelationField, l as pluralize, n as InferredRelations, o as deriveBackRelationFieldName, r as PslPrinterOptions, s as deriveRelationFieldName, t as EnumInfo, u as toEnumName } from "./psl-infer-DsHE9xAU.mjs";
|
|
15
|
+
import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-BHJXmBhw.mjs";
|
|
16
16
|
import { n as parseContractMarkerRow, t as ContractMarkerRow } from "./verify-zDRnw0Rn.mjs";
|
|
17
17
|
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultRenderer, type DefaultResolver, type EnumInfo, type ExecuteRequestLowerer, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStorageEffect, INIT_ADDITIVE_POLICY, type InferredRelations, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, type NoTable, type PlanFieldEventOperationsOptions, type PlannedStatements, type PslPrinterOptions, type PslTypeMap, type PslTypeReference, type PslTypeResolution, type RelationField, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, type SchemaTables, type SingleOperationCall, SqlContractSerializer, SqlContractSerializerBase, type SqlControlAdapter, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDescribedContractSpace, type SqlDiffVerdict, type SqlDiffVerdictInput, type SqlEntityHydrationFactory, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type StatementPlanningTarget, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableNameCaseGuardTable, type TableRename, type TableRenameRequest, type TargetMigrationsCapability, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, arraysEqual, assembleAuthoringContributions, buildChildRelationField, checkSqlDefaultText, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldRenameStorageEffect, inferRelations, mapDefault, modelRenameStorageEffect, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, resolveColumnRenameAgainst, resolveDomainModel, resolveStorageTable, resolveTableRenameAgainst, runnerFailure, runnerSuccess, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff };
|
package/dist/family.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
|
|
2
|
-
import { n as checkSqlDefaultText } from "./validators-
|
|
3
|
-
import { a as computeStorageTypeVerdict, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as extractCodecControlHooks } from "./schema-verify-DIfHSB4I-
|
|
4
|
-
import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-DDaAVCQr-
|
|
2
|
+
import { n as checkSqlDefaultText } from "./validators-CIfn8ezs.mjs";
|
|
3
|
+
import { a as computeStorageTypeVerdict, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as extractCodecControlHooks } from "./schema-verify-DIfHSB4I-k8l0LZZB.mjs";
|
|
4
|
+
import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-DDaAVCQr-CGG0I8ur.mjs";
|
|
5
5
|
import { n as parseContractMarkerRow } from "./verify-BVk5bjdH-dq5M4iIh.mjs";
|
|
6
|
-
import { A as temporalStringAuthoringPresets, C as resolveTableRenameAgainst, D as storageNameOfOperation, E as sqlTypeLookupsOf, M as unmatchedColumnRename, N as unmatchedTableRename, O as subjectsOfCalls, S as resolveColumnRenameAgainst, T as runnerSuccess, _ as planFieldEventCalls, a as contractNamespaceToSchemaIR, b as plannerFailure, d as detectTableNameCaseChanges, f as fieldEventStorage, g as partitionIssuesByControlPolicy, h as partitionCallsByControlPolicy, i as assembleAuthoringContributions, j as unknownCallNames, k as temporalCodecPresetWithPrecision, l as createMigrationPlan, m as modelRenameStorageEffect, n as INIT_ADDITIVE_POLICY, o as contractToSchemaIR, p as fieldRenameStorageEffect, r as TABLE_NAME_CASE_CHANGED_CODE, s as controlPolicyForCall, t as COLUMN_RENAME_UNMATCHED_CODE, u as detectDestructiveChanges, v as planFieldEventOperations, w as runnerFailure, x as plannerSuccess, y as planStatements } from "./control-
|
|
6
|
+
import { A as temporalStringAuthoringPresets, C as resolveTableRenameAgainst, D as storageNameOfOperation, E as sqlTypeLookupsOf, M as unmatchedColumnRename, N as unmatchedTableRename, O as subjectsOfCalls, S as resolveColumnRenameAgainst, T as runnerSuccess, _ as planFieldEventCalls, a as contractNamespaceToSchemaIR, b as plannerFailure, d as detectTableNameCaseChanges, f as fieldEventStorage, g as partitionIssuesByControlPolicy, h as partitionCallsByControlPolicy, i as assembleAuthoringContributions, j as unknownCallNames, k as temporalCodecPresetWithPrecision, l as createMigrationPlan, m as modelRenameStorageEffect, n as INIT_ADDITIVE_POLICY, o as contractToSchemaIR, p as fieldRenameStorageEffect, r as TABLE_NAME_CASE_CHANGED_CODE, s as controlPolicyForCall, t as COLUMN_RENAME_UNMATCHED_CODE, u as detectDestructiveChanges, v as planFieldEventOperations, w as runnerFailure, x as plannerSuccess, y as planStatements } from "./control-4kwMnHYO.mjs";
|
|
7
7
|
import { t as arraysEqual } from "./diff-B16bL_IR.mjs";
|
|
8
8
|
import { t as SqlSchemaVerifierBase } from "./ir-I-xciGUH.mjs";
|
|
9
9
|
import { t as SqlMigration } from "./migration-Dy_4Wmiy.mjs";
|
|
10
10
|
import { s as toEnumMemberName } from "./psl-names-C3cwe0rg-CsuHOV7E.mjs";
|
|
11
|
-
import { t as mapDefault } from "./psl-build-
|
|
12
|
-
import { a as pluralize, c as toModelName, i as inferRelations, n as deriveBackRelationFieldName, o as toEnumName, r as deriveRelationFieldName, s as toFieldName, t as buildChildRelationField } from "./psl-infer-
|
|
11
|
+
import { t as mapDefault } from "./psl-build-DTE03hcr.mjs";
|
|
12
|
+
import { a as pluralize, c as toModelName, i as inferRelations, n as deriveBackRelationFieldName, o as toEnumName, r as deriveRelationFieldName, s as toFieldName, t as buildChildRelationField } from "./psl-infer-DHO72J_m.mjs";
|
|
13
13
|
import { i as timestampNowRuntimeGenerator, n as resolveDomainModel, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./runtime-Z3nD7ix1.mjs";
|
|
14
14
|
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, SqlMigration as Migration, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, TABLE_NAME_CASE_CHANGED_CODE, UNBOUND_DOMAIN_NAMESPACE_ID, arraysEqual, assembleAuthoringContributions, buildChildRelationField, checkSqlDefaultText, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldRenameStorageEffect, inferRelations, mapDefault, modelRenameStorageEffect, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, resolveColumnRenameAgainst, resolveDomainModel, resolveStorageTable, resolveTableRenameAgainst, runnerFailure, runnerSuccess, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as SqlControlAdapterDescriptor, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-
|
|
2
|
-
import "./control-adapter-
|
|
1
|
+
import { i as SqlControlAdapterDescriptor, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-DH5DAObc.mjs";
|
|
2
|
+
import "./control-adapter-DB7MPI5L.mjs";
|
|
3
3
|
export type { ExecuteRequestLowerer, Lowerer, SqlControlAdapter, SqlControlAdapterDescriptor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as checkSqlDefaultText } from "./validators-
|
|
2
|
-
import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CzxOObSY-
|
|
3
|
-
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-
|
|
4
|
-
import { $ as partitionIssuesByControlPolicy, A as SqlDescribedContractSpace, B as _default, C as NoTable, D as SingleOperationCall, E as SchemaTables, F as TABLE_NAME_CASE_CHANGED_CODE, G as createMigrationPlan, H as contractNamespaceToSchemaIR, I as TableNameCaseGuardTable, J as extractCodecControlHooks, K as detectDestructiveChanges, L as TableRename, M as StatementPlanningTarget, N as SubjectStorage, O as SqlControlFamilyInstance, P as SuppressionRecord, Q as partitionCallsByControlPolicy, R as TableRenameRequest, S as ModelTable, T as PlannedStatements, U as contractToSchemaIR, V as assembleAuthoringContributions, W as controlPolicyForCall, X as fieldRenameStorageEffect, Y as fieldEventStorage, Z as modelRenameStorageEffect, _ as MigrationPlanOperation, a as ColumnRename, at as resolveColumnRenameAgainst, b as MigrationPlannerResult, c as ControlPolicySubject, ct as runnerSuccess, d as FieldEventCall, dt as subjectsOfCalls, et as planFieldEventCalls, f as FieldStorageEffect, ft as temporalCodecPresetWithPrecision, g as MigrationPlan, gt as unmatchedTableRename, h as MigrationOperationPolicy, ht as unmatchedColumnRename, i as ColumnOnOneSide, it as plannerSuccess, j as SqlPslBuildContext, k as SqlControlTargetDescriptor, l as DefaultRenderer, lt as sqlTypeLookupsOf, m as MigrationOperationClass, mt as unknownCallNames, n as CallSubjects, nt as planStatements, o as ColumnRenameRequest, ot as resolveTableRenameAgainst, p as INIT_ADDITIVE_POLICY, pt as temporalStringAuthoringPresets, q as detectTableNameCaseChanges, r as CallWithCompanions, rt as plannerFailure, s as ContractToSchemaIROptions, st as runnerFailure, t as COLUMN_RENAME_UNMATCHED_CODE, tt as planFieldEventOperations, u as DefaultResolver, ut as storageNameOfOperation, v as MigrationPlanner, w as PlanFieldEventOperationsOptions, x as ModelStorageEffect, y as MigrationPlannerConflict, z as TargetMigrationsCapability } from "./control-
|
|
1
|
+
import { h as checkSqlDefaultText } from "./validators-COcD3_iw.mjs";
|
|
2
|
+
import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CzxOObSY-CxZ_bdVi.mjs";
|
|
3
|
+
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-DQkzKV8b.mjs";
|
|
4
|
+
import { $ as partitionIssuesByControlPolicy, A as SqlDescribedContractSpace, B as _default, C as NoTable, D as SingleOperationCall, E as SchemaTables, F as TABLE_NAME_CASE_CHANGED_CODE, G as createMigrationPlan, H as contractNamespaceToSchemaIR, I as TableNameCaseGuardTable, J as extractCodecControlHooks, K as detectDestructiveChanges, L as TableRename, M as StatementPlanningTarget, N as SubjectStorage, O as SqlControlFamilyInstance, P as SuppressionRecord, Q as partitionCallsByControlPolicy, R as TableRenameRequest, S as ModelTable, T as PlannedStatements, U as contractToSchemaIR, V as assembleAuthoringContributions, W as controlPolicyForCall, X as fieldRenameStorageEffect, Y as fieldEventStorage, Z as modelRenameStorageEffect, _ as MigrationPlanOperation, a as ColumnRename, at as resolveColumnRenameAgainst, b as MigrationPlannerResult, c as ControlPolicySubject, ct as runnerSuccess, d as FieldEventCall, dt as subjectsOfCalls, et as planFieldEventCalls, f as FieldStorageEffect, ft as temporalCodecPresetWithPrecision, g as MigrationPlan, gt as unmatchedTableRename, h as MigrationOperationPolicy, ht as unmatchedColumnRename, i as ColumnOnOneSide, it as plannerSuccess, j as SqlPslBuildContext, k as SqlControlTargetDescriptor, l as DefaultRenderer, lt as sqlTypeLookupsOf, m as MigrationOperationClass, mt as unknownCallNames, n as CallSubjects, nt as planStatements, o as ColumnRenameRequest, ot as resolveTableRenameAgainst, p as INIT_ADDITIVE_POLICY, pt as temporalStringAuthoringPresets, q as detectTableNameCaseChanges, r as CallWithCompanions, rt as plannerFailure, s as ContractToSchemaIROptions, st as runnerFailure, t as COLUMN_RENAME_UNMATCHED_CODE, tt as planFieldEventOperations, u as DefaultResolver, ut as storageNameOfOperation, v as MigrationPlanner, w as PlanFieldEventOperationsOptions, x as ModelStorageEffect, y as MigrationPlannerConflict, z as TargetMigrationsCapability } from "./control-BK2oKZmT.mjs";
|
|
5
5
|
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ContractToSchemaIROptions, type ControlPolicySubject, type CreateSqlMigrationPlanOptions, type DefaultRenderer, type DefaultResolver, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStorageEffect, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, type NoTable, type PlanFieldEventOperationsOptions, type PlannedStatements, type ResolveIdentityValueInput, type SchemaTables, type SingleOperationCall, type SqlControlAdapterDescriptor, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDescribedContractSpace, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type StatementPlanningTarget, type StorageTypePlanResult, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableNameCaseGuardTable, type TableRename, type TableRenameRequest, type TargetMigrationsCapability, assembleAuthoringContributions, checkSqlDefaultText, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, _default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldRenameStorageEffect, modelRenameStorageEffect, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, resolveColumnRenameAgainst, resolveTableRenameAgainst, runnerFailure, runnerSuccess, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, unknownCallNames, unmatchedColumnRename, unmatchedTableRename };
|
package/dist/family__control.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as checkSqlDefaultText } from "./validators-
|
|
2
|
-
import { s as extractCodecControlHooks } from "./schema-verify-DIfHSB4I-
|
|
3
|
-
import { A as temporalStringAuthoringPresets, C as resolveTableRenameAgainst, D as storageNameOfOperation, E as sqlTypeLookupsOf, M as unmatchedColumnRename, N as unmatchedTableRename, O as subjectsOfCalls, S as resolveColumnRenameAgainst, T as runnerSuccess, _ as planFieldEventCalls, a as contractNamespaceToSchemaIR, b as plannerFailure, c as control_default, d as detectTableNameCaseChanges, f as fieldEventStorage, g as partitionIssuesByControlPolicy, h as partitionCallsByControlPolicy, i as assembleAuthoringContributions, j as unknownCallNames, k as temporalCodecPresetWithPrecision, l as createMigrationPlan, m as modelRenameStorageEffect, n as INIT_ADDITIVE_POLICY, o as contractToSchemaIR, p as fieldRenameStorageEffect, r as TABLE_NAME_CASE_CHANGED_CODE, s as controlPolicyForCall, t as COLUMN_RENAME_UNMATCHED_CODE, u as detectDestructiveChanges, v as planFieldEventOperations, w as runnerFailure, x as plannerSuccess, y as planStatements } from "./control-
|
|
1
|
+
import { n as checkSqlDefaultText } from "./validators-CIfn8ezs.mjs";
|
|
2
|
+
import { s as extractCodecControlHooks } from "./schema-verify-DIfHSB4I-k8l0LZZB.mjs";
|
|
3
|
+
import { A as temporalStringAuthoringPresets, C as resolveTableRenameAgainst, D as storageNameOfOperation, E as sqlTypeLookupsOf, M as unmatchedColumnRename, N as unmatchedTableRename, O as subjectsOfCalls, S as resolveColumnRenameAgainst, T as runnerSuccess, _ as planFieldEventCalls, a as contractNamespaceToSchemaIR, b as plannerFailure, c as control_default, d as detectTableNameCaseChanges, f as fieldEventStorage, g as partitionIssuesByControlPolicy, h as partitionCallsByControlPolicy, i as assembleAuthoringContributions, j as unknownCallNames, k as temporalCodecPresetWithPrecision, l as createMigrationPlan, m as modelRenameStorageEffect, n as INIT_ADDITIVE_POLICY, o as contractToSchemaIR, p as fieldRenameStorageEffect, r as TABLE_NAME_CASE_CHANGED_CODE, s as controlPolicyForCall, t as COLUMN_RENAME_UNMATCHED_CODE, u as detectDestructiveChanges, v as planFieldEventOperations, w as runnerFailure, x as plannerSuccess, y as planStatements } from "./control-4kwMnHYO.mjs";
|
|
4
4
|
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, TABLE_NAME_CASE_CHANGED_CODE, assembleAuthoringContributions, checkSqlDefaultText, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, control_default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldRenameStorageEffect, modelRenameStorageEffect, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, resolveColumnRenameAgainst, resolveTableRenameAgainst, runnerFailure, runnerSuccess, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, unknownCallNames, unmatchedColumnRename, unmatchedTableRename };
|
package/dist/family__diff.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as arraysEqual } from "./control-adapter-CkFfBVei-
|
|
2
|
-
import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-
|
|
1
|
+
import { a as arraysEqual } from "./control-adapter-CkFfBVei-DH5DAObc.mjs";
|
|
2
|
+
import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-l4-qJpTV.mjs";
|
|
3
3
|
export { type SqlDiffVerdict, type SqlDiffVerdictInput, type StorageTypeVerdict, type StorageTypeVerdictInput, type VerifySqlSchemaByDiffInput, arraysEqual, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, verifySqlSchemaByDiff };
|
package/dist/family__diff.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as computeStorageTypeVerdict, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue } from "./schema-verify-DIfHSB4I-
|
|
1
|
+
import { a as computeStorageTypeVerdict, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue } from "./schema-verify-DIfHSB4I-k8l0LZZB.mjs";
|
|
2
2
|
import { t as arraysEqual } from "./diff-B16bL_IR.mjs";
|
|
3
3
|
export { arraysEqual, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, verifySqlSchemaByDiff };
|
package/dist/family__ir.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-
|
|
1
|
+
import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-OBn7ct21.mjs";
|
|
2
2
|
export { SqlContractSerializer, SqlContractSerializerBase, type SqlEntityHydrationFactory, SqlSchemaVerifierBase };
|
package/dist/family__ir.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-DDaAVCQr-
|
|
1
|
+
import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-DDaAVCQr-CGG0I8ur.mjs";
|
|
2
2
|
import { t as SqlSchemaVerifierBase } from "./ir-I-xciGUH.mjs";
|
|
3
3
|
export { SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SqlMigration } from "./migration-
|
|
1
|
+
import { t as SqlMigration } from "./migration-DEK3Hxlo.mjs";
|
|
2
2
|
export { SqlMigration as Migration };
|
package/dist/family__pack.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as sqlFamilyPack } from "./pack-
|
|
1
|
+
import { t as sqlFamilyPack } from "./pack-D3L1b4Ag.mjs";
|
|
2
2
|
export { sqlFamilyPack as default };
|
package/dist/family__pack.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as sqlAttributeSpecs } from "./psl-field-resolution-BW0ZuqBd
|
|
2
|
-
import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-0Iv2zdwS-
|
|
1
|
+
import { b as sqlAttributeSpecs } from "./psl-field-resolution-BW0ZuqBd--WxiBxb0.mjs";
|
|
2
|
+
import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-0Iv2zdwS-CcpLSwei.mjs";
|
|
3
3
|
//#region ../../../2-sql/9-family/dist/pack.mjs
|
|
4
4
|
const sqlFamilyPack = {
|
|
5
5
|
kind: "family",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildChildRelationField, c as inferRelations, d as toFieldName, f as toModelName, i as RelationField, l as pluralize, n as InferredRelations, o as deriveBackRelationFieldName, r as PslPrinterOptions, s as deriveRelationFieldName, t as EnumInfo, u as toEnumName } from "./psl-infer-
|
|
1
|
+
import { a as buildChildRelationField, c as inferRelations, d as toFieldName, f as toModelName, i as RelationField, l as pluralize, n as InferredRelations, o as deriveBackRelationFieldName, r as PslPrinterOptions, s as deriveRelationFieldName, t as EnumInfo, u as toEnumName } from "./psl-infer-DsHE9xAU.mjs";
|
|
2
2
|
export { type EnumInfo, type InferredRelations, type PslPrinterOptions, type RelationField, buildChildRelationField, deriveBackRelationFieldName, deriveRelationFieldName, inferRelations, pluralize, toEnumName, toFieldName, toModelName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as pluralize, c as toModelName, i as inferRelations, n as deriveBackRelationFieldName, o as toEnumName, r as deriveRelationFieldName, s as toFieldName, t as buildChildRelationField } from "./psl-infer-
|
|
1
|
+
import { a as pluralize, c as toModelName, i as inferRelations, n as deriveBackRelationFieldName, o as toEnumName, r as deriveRelationFieldName, s as toFieldName, t as buildChildRelationField } from "./psl-infer-DHO72J_m.mjs";
|
|
2
2
|
export { buildChildRelationField, deriveBackRelationFieldName, deriveRelationFieldName, inferRelations, pluralize, toEnumName, toFieldName, toModelName };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-
|
|
2
|
-
import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-
|
|
1
|
+
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-wSUswl-4.mjs";
|
|
2
|
+
import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-BHJXmBhw.mjs";
|
|
3
3
|
export { type ResolvedDomainModel, type ResolvedStorageTable, UNBOUND_DOMAIN_NAMESPACE_ID, sqlRuntimeFamilyDescriptor as default, resolveDomainModel, resolveStorageTable, timestampNowRuntimeGenerator };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { a as ForeignKeyReferenceInput, n as ForeignKeyIndex, o as ReferentialAction, r as ForeignKeyInput } from "./foreign-key-qkDFfG8t-Fyrzd0VI.mjs";
|
|
2
2
|
import { i as UniqueConstraintInput, n as PrimaryKeyInput } from "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
|
|
3
|
-
import { r as IndexInput } from "./sql-index-ByAAE7K8-
|
|
4
|
-
import {
|
|
5
|
-
import "./types-
|
|
3
|
+
import { r as IndexInput } from "./sql-index-ByAAE7K8-BpbPBWPD.mjs";
|
|
4
|
+
import { a as IndexTypeRegistry } from "./index-types-H1O43iYT-ONvDbszL.mjs";
|
|
5
|
+
import { m as SqlIndexIR } from "./types-DIZSW9JI-DNUF-RnL.mjs";
|
|
6
|
+
import "./types-DqSCaTK3.mjs";
|
|
6
7
|
import { AuthoringWarningSink } from "@prisma/orm-framework/components/authoring";
|
|
7
8
|
//#region ../../../2-sql/1-core/contract/dist/foreign-key-materialization.d.mts
|
|
8
9
|
//#region src/index-equivalence.d.ts
|
|
@@ -66,6 +67,7 @@ declare function materializeForeignKeysAndIndexes(input: {
|
|
|
66
67
|
readonly uniques: readonly UniqueConstraintInput[];
|
|
67
68
|
readonly primaryKey: PrimaryKeyInput | undefined;
|
|
68
69
|
readonly warnings: AuthoringWarningSink;
|
|
70
|
+
readonly indexTypes: Pick<IndexTypeRegistry, 'get'> | undefined;
|
|
69
71
|
}): MaterializedTableConstraints;
|
|
70
72
|
/**
|
|
71
73
|
* Whether a table's declared indexes, unique constraints or primary key already serve a foreign key on `columns`, so the build would drop a derived backing index again. A source that writes no backing index of its own, such as a Prisma 7 schema, leaves the foreign key's `index` to the build where this holds, so the stored foreign key states what backs it.
|
|
@@ -93,4 +95,4 @@ declare function defaultForeignKeyIndex(tableName: string, columns: readonly str
|
|
|
93
95
|
}): ForeignKeyIndex | undefined;
|
|
94
96
|
//#endregion
|
|
95
97
|
export { declaredBackingObjectName as a, derivedBackingIndexIsRedundant as c, MaterializedTableConstraints as i, leadingBackingObjectName as l, ForeignKeyAuthoringInput as n, declaredIndexesServeForeignKey as o, IndexCandidate as r, defaultForeignKeyIndex as s, FOREIGN_KEY_INDEX_UNRESOLVED as t, materializeForeignKeysAndIndexes as u };
|
|
96
|
-
//# sourceMappingURL=foreign-key-materialization-
|
|
98
|
+
//# sourceMappingURL=foreign-key-materialization-DBYDet74.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foreign-key-materialization-DBYDet74.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/foreign-key-materialization.d.mts"],"mappings":";;;;;;;;;KAOK;WACM;;UAED,WAAW,QAAQ,gBAAgB,OAAO,oBAAoB;WAC7D,kBAAkB;WAClB,SAAS,OAAO,WAAW;WAC3B,kBAAkB;WAClB,YAAY;;;;;iBAKN,+BAA+B,QAAQ,gBAAgB,OAAO,oBAAoB,OAAO,4BAA4B,OAAO,WAAW,QAAQ,SAAS;KACpK,WAAW;WACL;;;;;iBAKM,yBAAyB,QAAQ,gBAAgB,UAAU,oBAAoB,UAAU,4BAA4B,OAAO,WAAW,QAAQ,SAAS;WAC9J,SAAS,OAAO;;;;;UAKjB;WACC,OAAO;;WAEP;;;;;cAKG;;;;UAIJ;WACC,QAAQ;WACR,QAAQ;WACR;WACA,WAAW;WACX,WAAW;WACX;WACA;;UAED;WACC,sBAAsB;WACtB,kBAAkB;;;;;iBAKZ,iCAAiC;WACvC;WACA,sBAAsB;WACtB,0BAA0B;WAC1B,kBAAkB;WAClB,YAAY;WACZ,UAAU;WACV,YAAY,KAAK;IACxB;;;;iBAIa,+BAA+B,4BAA4B;WACjE,kBAAkB;WAClB,kBAAkB;WAClB,YAAY;;;;;iBAKN,0BAA0B,4BAA4B;WAC5D,kBAAkB;WAClB,kBAAkB;WAClB,YAAY;;;;;iBAKN,uBAAuB,mBAAmB,4BAA4B;WAC5E,kBAAkB;WAClB,kBAAkB;WAClB,YAAY;IACnB"}
|
package/dist/{foreign-key-materialization-Cv3q8Pix.mjs → foreign-key-materialization-DyoakLGY.mjs}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { a as rendersIndexBody, t as accessMethodOf } from "./index-types-pC_5vADQ-TTUXAfmL.mjs";
|
|
3
|
+
import { g as truncateToWireNamePrefixBytes, l as nameOf, o as defaultIndexName } from "./naming-CT8tRisJ-DLHKo0Hm.mjs";
|
|
4
|
+
import { r as lowerAuthoredIndex } from "./index-naming-BOcJT1B3-CeEoP8t3.mjs";
|
|
5
|
+
import { i as leadingBackingObjectName, n as identicalIndexes, o as servingKey, r as indexNodeOf, s as startsWithColumns, t as derivedBackingIndexIsRedundant } from "./index-equivalence-DswCiq5l-_gF1Un8p.mjs";
|
|
5
6
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
6
7
|
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
7
8
|
import { asNamespaceId } from "@prisma/orm-framework/contract/types";
|
|
@@ -103,7 +104,7 @@ const FOREIGN_KEY_INDEX_UNRESOLVED = "foreign-key-index-unresolved";
|
|
|
103
104
|
* Lowers a table's authored foreign keys and indexes into the entities `contract.json` persists. A `constraint: false` foreign key contributes no `foreignKeys[]` entry. A foreign key with `index: true` gets a derived backing index; one with `index: "<name>"` uses what the table declares under that name. The table's indexes then pass through {@link deduplicateIndexes}, and each foreign key states what backs it in the result: an index by name, or the primary key or a unique constraint by kind.
|
|
104
105
|
*/
|
|
105
106
|
function materializeForeignKeysAndIndexes(input) {
|
|
106
|
-
const { tableName, declaredIndexes, uniques, primaryKey } = input;
|
|
107
|
+
const { tableName, declaredIndexes, uniques, primaryKey, indexTypes } = input;
|
|
107
108
|
const derivedIndexes = [];
|
|
108
109
|
const intents = input.foreignKeys.map((foreignKey) => {
|
|
109
110
|
const { constraint, index, ...reference } = foreignKey;
|
|
@@ -134,6 +135,7 @@ function materializeForeignKeysAndIndexes(input) {
|
|
|
134
135
|
declaredIndexes,
|
|
135
136
|
uniques,
|
|
136
137
|
primaryKey,
|
|
138
|
+
indexTypes,
|
|
137
139
|
resolve
|
|
138
140
|
}) : resolve({
|
|
139
141
|
kind: "index",
|
|
@@ -194,7 +196,8 @@ function defaultForeignKeyIndex(tableName, columns, table) {
|
|
|
194
196
|
})),
|
|
195
197
|
uniques: table.uniques,
|
|
196
198
|
primaryKey: table.primaryKey,
|
|
197
|
-
warnings: []
|
|
199
|
+
warnings: [],
|
|
200
|
+
indexTypes: void 0
|
|
198
201
|
}).foreignKeys;
|
|
199
202
|
return typeof foreignKey?.index === "object" ? foreignKey.index : void 0;
|
|
200
203
|
}
|
|
@@ -213,7 +216,7 @@ function derivedBackingIndex(tableName, columns) {
|
|
|
213
216
|
};
|
|
214
217
|
}
|
|
215
218
|
/**
|
|
216
|
-
* What a relation's `index: "<name>"` points at. The name is the `name` or `map` the source gave an index, unique constraint or primary key, or an index's stored name; an unnamed index's default name does not count. Identical indexes count as one, so the name is resolved after they merge. The object must start with the foreign key's columns, in order, or it would not serve the foreign key's lookups.
|
|
219
|
+
* What a relation's `index: "<name>"` points at. The name is the `name` or `map` the source gave an index, unique constraint or primary key, or an index's stored name; an unnamed index's default name does not count. Identical indexes count as one, so the name is resolved after they merge. The object must start with the foreign key's columns, in order, or it would not serve the foreign key's lookups. An index of a type whose body is rendered from its options (see {@link rendersIndexBody}) is refused too: its columns are not its key.
|
|
217
220
|
*/
|
|
218
221
|
function namedBackingObject(source, name, table) {
|
|
219
222
|
const { namespaceId, tableName, columns } = source;
|
|
@@ -248,6 +251,12 @@ function namedBackingObject(source, name, table) {
|
|
|
248
251
|
});
|
|
249
252
|
const [match] = resolvedIndexes;
|
|
250
253
|
const key = keys[0];
|
|
254
|
+
const matchType = match?.index.index.type;
|
|
255
|
+
const typeEntry = matchType === void 0 ? void 0 : table.indexTypes?.get(matchType);
|
|
256
|
+
if (typeEntry !== void 0 && rendersIndexBody(typeEntry)) throw contractError("CONTRACT.ARGUMENT_INVALID", `${subject}, but it is a "${typeEntry.type}" index, a "${accessMethodOf(typeEntry)}" index whose key is rendered from its options rather than its columns, so it does not serve the foreign key's lookups.`, {
|
|
257
|
+
fix: `Name an index, unique constraint or primary key whose first columns are (${columns.join(", ")}), or drop the index argument so the foreign key gets its own backing index beside the "${typeEntry.type}" index.`,
|
|
258
|
+
meta
|
|
259
|
+
});
|
|
251
260
|
const objectColumns = match !== void 0 ? match.index.index.columns : key?.columns;
|
|
252
261
|
if (objectColumns === void 0 || !startsWithColumns(objectColumns, columns)) throw contractError("CONTRACT.ARGUMENT_INVALID", `${subject}, but ${objectColumns === void 0 ? "it indexes an expression, not the foreign key's columns" : `its columns (${objectColumns.join(", ")}) do not start with the foreign key's columns`}, so it does not serve the foreign key's lookups.`, {
|
|
253
262
|
fix: `Name an index, unique constraint or primary key whose first columns are (${columns.join(", ")}), or drop the index argument so the foreign key gets its own backing index.`,
|
|
@@ -275,4 +284,4 @@ function foreignKeyIndexOf(backing) {
|
|
|
275
284
|
//#endregion
|
|
276
285
|
export { materializeForeignKeysAndIndexes as a, defaultForeignKeyIndex as i, declaredBackingObjectName as n, declaredIndexesServeForeignKey as r, FOREIGN_KEY_INDEX_UNRESOLVED as t };
|
|
277
286
|
|
|
278
|
-
//# sourceMappingURL=foreign-key-materialization-
|
|
287
|
+
//# sourceMappingURL=foreign-key-materialization-DyoakLGY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foreign-key-materialization-DyoakLGY.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/foreign-key-materialization.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { a as rendersIndexBody, t as accessMethodOf } from \"./index-types-pC_5vADQ.mjs\";\nimport { r as lowerAuthoredIndex } from \"./index-naming-BOcJT1B3.mjs\";\nimport { i as leadingBackingObjectName, n as identicalIndexes, o as servingKey, r as indexNodeOf, s as startsWithColumns, t as derivedBackingIndexIsRedundant } from \"./index-equivalence-DswCiq5l.mjs\";\nimport { defaultIndexName, nameOf, truncateToWireNamePrefixBytes } from \"@internal/sql-schema-ir/naming\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { asNamespaceId } from \"@internal/contract/types\";\n//#region src/index-deduplication.ts\nconst IDENTICAL_DESCRIPTION = \"the planner sees them as the same index. The contract keeps both because each is named.\";\nconst REDUNDANT_DESCRIPTION = \"which already serves the same lookups.\";\n/**\n* Removes the indexes of one table that duplicate another. Two indexes are identical when the planner sees them as the same index apart from their names (see {@link identicalIndexes}); of an identical group the pass keeps the indexes named by the user, or the first one when none is. A plain non-unique index whose columns are those of the primary key, a unique constraint or a unique index without a predicate is redundant (see {@link servingKey}), and the pass removes it unless it is named by the user. Every index named by the user survives; the pass warns about each one that duplicates another, and refuses two identical indexes both named with `name:`, whose wire names the planner could not tell apart.\n*/\nfunction deduplicateIndexes(input) {\n\tconst { tableName, warnings } = input;\n\tconst replacements = /* @__PURE__ */ new Map();\n\tconst nodes = new Map(input.indexes.map((candidate) => [candidate, indexNodeOf(candidate.index)]));\n\tconst nodeOf = (candidate) => {\n\t\tconst node = nodes.get(candidate);\n\t\tif (node === void 0) throw new InternalError(\"every candidate has a node\");\n\t\treturn node;\n\t};\n\tconst groups = [];\n\tfor (const candidate of input.indexes) {\n\t\tconst position = groups.findIndex(([first]) => identicalIndexes(nodeOf(first), nodeOf(candidate)));\n\t\tconst group = groups[position];\n\t\tif (group === void 0) groups.push([candidate]);\n\t\telse groups[position] = [...group, candidate];\n\t}\n\tfor (const group of groups) {\n\t\tconst named = group.filter((candidate) => candidate.namedByUser);\n\t\tconst wireNamed = named.filter((candidate) => candidate.index.naming.kind === \"wire\");\n\t\tif (wireNamed.length > 1) throw identicalWireNamedIndexesError(tableName, wireNamed);\n\t\tconst kept = named[0] ?? group[0];\n\t\tfor (const candidate of group) if (candidate !== kept && !candidate.namedByUser) replacements.set(candidate, {\n\t\t\tkind: \"index\",\n\t\t\tindex: kept\n\t\t});\n\t\tif (named.length > 1) warnings.push(identicalIndexesWarning(tableName, named));\n\t}\n\tconst survivors = input.indexes.filter((candidate) => !replacements.has(candidate));\n\tfor (const candidate of survivors) {\n\t\tconst servedBy = servingKey(nodeOf(candidate), {\n\t\t\tindexes: survivors,\n\t\t\tnodeOf,\n\t\t\tuniques: input.uniques,\n\t\t\tprimaryKey: input.primaryKey\n\t\t});\n\t\tif (servedBy === void 0) continue;\n\t\tif (candidate.namedByUser) warnings.push(redundantIndexWarning(tableName, candidate, servedBy));\n\t\telse replacements.set(candidate, servedBy);\n\t}\n\treturn {\n\t\tindexes: input.indexes.filter((candidate) => !replacements.has(candidate)),\n\t\treplacements\n\t};\n}\nfunction identicalWireNamedIndexesError(tableName, wireNamed) {\n\treturn contractError(\"CONTRACT.ARGUMENT_INVALID\", `Indexes ${quotedList(wireNamed.map((candidate) => writtenName(candidate.index)))} on table \"${tableName}\" are identical and both named with name:; the planner pairs wire-named indexes by their content, so it could not tell them apart.`, {\n\t\tfix: \"Remove one of them, or name one with map: to keep both under exact names.\",\n\t\tmeta: {\n\t\t\ttableName,\n\t\t\tindexes: wireNamed.map((candidate) => writtenName(candidate.index))\n\t\t}\n\t});\n}\n/** The name the source wrote: the prefix of a wire-named index, the whole name of an exact one. */\nfunction writtenName(index) {\n\treturn index.naming.kind === \"wire\" ? index.naming.prefix : index.naming.name;\n}\nfunction quotedList(names) {\n\tconst quoted = names.map((name) => `\"${name}\"`);\n\treturn quoted.length <= 2 ? quoted.join(\" and \") : `${quoted.slice(0, -1).join(\", \")} and ${quoted.at(-1)}`;\n}\nfunction identicalIndexesWarning(tableName, named) {\n\tconst names = quotedList(named.map((candidate) => writtenName(candidate.index)));\n\treturn {\n\t\tcode: \"PN_INDEX_DUPLICATE\",\n\t\tmessage: `Indexes ${names} on table \"${tableName}\" are identical: ${IDENTICAL_DESCRIPTION} Remove one of them.`,\n\t\titem: `table \"${tableName}\": indexes ${names}`,\n\t\tsummary: `tables have named indexes that are identical: ${IDENTICAL_DESCRIPTION} Remove one of each.`\n\t};\n}\nfunction describeReplacement(replacement) {\n\tswitch (replacement.kind) {\n\t\tcase \"primaryKey\": return \"the primary key\";\n\t\tcase \"uniqueConstraint\": return replacement.unique.name === void 0 ? `the unique constraint on (${replacement.unique.columns.join(\", \")})` : `the unique constraint \"${replacement.unique.name}\"`;\n\t\tcase \"index\": return `the unique index \"${writtenName(replacement.index.index)}\"`;\n\t}\n}\nfunction redundantIndexWarning(tableName, candidate, servedBy) {\n\tconst name = writtenName(candidate.index);\n\treturn {\n\t\tcode: \"PN_INDEX_REDUNDANT\",\n\t\tmessage: `Index \"${name}\" on table \"${tableName}\" has the same columns as ${describeReplacement(servedBy)}, ${REDUNDANT_DESCRIPTION} The contract keeps the index because it is named. Remove it.`,\n\t\titem: `table \"${tableName}\": index \"${name}\"`,\n\t\tsummary: `tables have a named index with the same columns as a unique constraint, unique index or primary key, ${REDUNDANT_DESCRIPTION} The contract keeps each index because it is named. Remove them.`\n\t};\n}\n//#endregion\n//#region src/foreign-key-materialization.ts\n/** The `meta.reason` of the refusal of a relation's `index: \"<name>\"`, which a source can report at the relation. */\nconst FOREIGN_KEY_INDEX_UNRESOLVED = \"foreign-key-index-unresolved\";\n/**\n* Lowers a table's authored foreign keys and indexes into the entities `contract.json` persists. A `constraint: false` foreign key contributes no `foreignKeys[]` entry. A foreign key with `index: true` gets a derived backing index; one with `index: \"<name>\"` uses what the table declares under that name. The table's indexes then pass through {@link deduplicateIndexes}, and each foreign key states what backs it in the result: an index by name, or the primary key or a unique constraint by kind.\n*/\nfunction materializeForeignKeysAndIndexes(input) {\n\tconst { tableName, declaredIndexes, uniques, primaryKey, indexTypes } = input;\n\tconst derivedIndexes = [];\n\tconst intents = input.foreignKeys.map((foreignKey) => {\n\t\tconst { constraint, index, ...reference } = foreignKey;\n\t\tif (index !== true) return {\n\t\t\tconstraint,\n\t\t\treference,\n\t\t\tindex\n\t\t};\n\t\tconst derived = derivedBackingIndex(tableName, reference.source.columns);\n\t\tderivedIndexes.push(derived);\n\t\treturn {\n\t\t\tconstraint,\n\t\t\treference,\n\t\t\tindex: derived\n\t\t};\n\t});\n\tconst deduplicated = deduplicateIndexes({\n\t\ttableName,\n\t\tindexes: [...declaredIndexes, ...derivedIndexes],\n\t\tuniques,\n\t\tprimaryKey,\n\t\twarnings: input.warnings\n\t});\n\tconst resolve = (backing) => foreignKeyIndexOf(resolveReplacement(backing, deduplicated.replacements));\n\treturn {\n\t\tforeignKeys: intents.flatMap(({ constraint, reference, index }) => {\n\t\t\tconst backing = index === false ? void 0 : typeof index === \"string\" ? namedBackingObject(reference.source, index, {\n\t\t\t\tdeclaredIndexes,\n\t\t\t\tuniques,\n\t\t\t\tprimaryKey,\n\t\t\t\tindexTypes,\n\t\t\t\tresolve\n\t\t\t}) : resolve({\n\t\t\t\tkind: \"index\",\n\t\t\t\tindex\n\t\t\t});\n\t\t\tif (!constraint) return [];\n\t\t\treturn [backing === void 0 ? reference : {\n\t\t\t\t...reference,\n\t\t\t\tindex: backing\n\t\t\t}];\n\t\t}),\n\t\tindexes: deduplicated.indexes.map((candidate) => candidate.index)\n\t};\n}\n/**\n* Whether a table's declared indexes, unique constraints or primary key already serve a foreign key on `columns`, so the build would drop a derived backing index again. A source that writes no backing index of its own, such as a Prisma 7 schema, leaves the foreign key's `index` to the build where this holds, so the stored foreign key states what backs it.\n*/\nfunction declaredIndexesServeForeignKey(columns, table) {\n\treturn derivedBackingIndexIsRedundant(columns, {\n\t\tindexes: table.indexes,\n\t\tnodeOf: indexNodeOf,\n\t\tuniques: table.uniques,\n\t\tprimaryKey: table.primaryKey\n\t});\n}\n/**\n* The name to give a relation's `index` argument when the table's declared indexes and keys serve a foreign key on `columns` although the build would keep a derived backing index beside them (see {@link leadingBackingObjectName}).\n*/\nfunction declaredBackingObjectName(columns, table) {\n\treturn leadingBackingObjectName(columns, {\n\t\tindexes: table.indexes,\n\t\tnodeOf: indexNodeOf,\n\t\tnameOf: (index) => nameOf(index.naming),\n\t\tuniques: table.uniques,\n\t\tprimaryKey: table.primaryKey\n\t});\n}\n/**\n* What a foreign key on `columns` states it is backed by when its relation says nothing, beside a table whose indexes all carry the `name` or `map` the source gave them, as a printed contract's do. A printer writes a relation's `index` argument only where the stored foreign key differs from this.\n*/\nfunction defaultForeignKeyIndex(tableName, columns, table) {\n\tconst reference = {\n\t\tnamespaceId: asNamespaceId(UNBOUND_NAMESPACE_ID),\n\t\ttableName,\n\t\tcolumns\n\t};\n\tconst [foreignKey] = materializeForeignKeysAndIndexes({\n\t\ttableName,\n\t\tforeignKeys: [{\n\t\t\tsource: reference,\n\t\t\ttarget: reference,\n\t\t\tconstraint: true,\n\t\t\tindex: true\n\t\t}],\n\t\tdeclaredIndexes: table.indexes.map((index) => ({\n\t\t\tindex,\n\t\t\tnamedByUser: true\n\t\t})),\n\t\tuniques: table.uniques,\n\t\tprimaryKey: table.primaryKey,\n\t\twarnings: [],\n\t\tindexTypes: void 0\n\t}).foreignKeys;\n\treturn typeof foreignKey?.index === \"object\" ? foreignKey.index : void 0;\n}\nfunction derivedBackingIndex(tableName, columns) {\n\treturn {\n\t\tindex: lowerAuthoredIndex(tableName, {\n\t\t\tcolumns,\n\t\t\twhere: void 0,\n\t\t\tunique: void 0,\n\t\t\tmap: void 0,\n\t\t\tname: truncateToWireNamePrefixBytes(defaultIndexName(tableName, columns)),\n\t\t\ttype: void 0,\n\t\t\toptions: void 0\n\t\t}),\n\t\tnamedByUser: false\n\t};\n}\n/**\n* What a relation's `index: \"<name>\"` points at. The name is the `name` or `map` the source gave an index, unique constraint or primary key, or an index's stored name; an unnamed index's default name does not count. Identical indexes count as one, so the name is resolved after they merge. The object must start with the foreign key's columns, in order, or it would not serve the foreign key's lookups. An index of a type whose body is rendered from its options (see {@link rendersIndexBody}) is refused too: its columns are not its key.\n*/\nfunction namedBackingObject(source, name, table) {\n\tconst { namespaceId, tableName, columns } = source;\n\tconst subject = `The foreign key on table \"${tableName}\" columns (${columns.join(\", \")}) names \"${name}\" as its index`;\n\tconst meta = {\n\t\treason: FOREIGN_KEY_INDEX_UNRESOLVED,\n\t\tnamespaceId,\n\t\ttableName,\n\t\tcolumns,\n\t\tindex: name\n\t};\n\tconst indexes = table.declaredIndexes.filter((candidate) => candidate.namedByUser && writtenName(candidate.index) === name || nameOf(candidate.index.naming) === name);\n\tconst keys = [...table.uniques.filter((unique) => unique.name === name), ...table.primaryKey?.name === name ? [table.primaryKey] : []];\n\tconst resolvedIndexes = [...new Map(indexes.map((index) => {\n\t\tconst resolved = table.resolve({\n\t\t\tkind: \"index\",\n\t\t\tindex\n\t\t});\n\t\treturn [JSON.stringify(resolved), {\n\t\t\tindex,\n\t\t\tresolved\n\t\t}];\n\t})).values()];\n\tconst matches = resolvedIndexes.length + keys.length;\n\tif (matches === 0) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `${subject}, but table \"${tableName}\" has no index, unique constraint or primary key with that name.`, {\n\t\tfix: `Declare an index, unique constraint or primary key named \"${name}\" on table \"${tableName}\", or drop the index argument so the foreign key gets its own backing index.`,\n\t\tmeta\n\t});\n\tif (matches > 1) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `${subject}, but table \"${tableName}\" has more than one index, unique constraint or primary key with that name.`, {\n\t\tfix: `Give the object the foreign key should use a name no other index, unique constraint or primary key of table \"${tableName}\" has, and name that on the relation.`,\n\t\tmeta\n\t});\n\tconst [match] = resolvedIndexes;\n\tconst key = keys[0];\n\tconst matchType = match?.index.index.type;\n\tconst typeEntry = matchType === void 0 ? void 0 : table.indexTypes?.get(matchType);\n\tif (typeEntry !== void 0 && rendersIndexBody(typeEntry)) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `${subject}, but it is a \"${typeEntry.type}\" index, a \"${accessMethodOf(typeEntry)}\" index whose key is rendered from its options rather than its columns, so it does not serve the foreign key's lookups.`, {\n\t\tfix: `Name an index, unique constraint or primary key whose first columns are (${columns.join(\", \")}), or drop the index argument so the foreign key gets its own backing index beside the \"${typeEntry.type}\" index.`,\n\t\tmeta\n\t});\n\tconst objectColumns = match !== void 0 ? match.index.index.columns : key?.columns;\n\tif (objectColumns === void 0 || !startsWithColumns(objectColumns, columns)) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `${subject}, but ${objectColumns === void 0 ? \"it indexes an expression, not the foreign key's columns\" : `its columns (${objectColumns.join(\", \")}) do not start with the foreign key's columns`}, so it does not serve the foreign key's lookups.`, {\n\t\tfix: `Name an index, unique constraint or primary key whose first columns are (${columns.join(\", \")}), or drop the index argument so the foreign key gets its own backing index.`,\n\t\tmeta\n\t});\n\tif (match !== void 0) return match.resolved;\n\treturn key === table.primaryKey ? { primaryKey: true } : { unique: objectColumns };\n}\nfunction resolveReplacement(backing, replacements) {\n\tlet current = backing;\n\twhile (current.kind === \"index\") {\n\t\tconst replacement = replacements.get(current.index);\n\t\tif (replacement === void 0) break;\n\t\tcurrent = replacement;\n\t}\n\treturn current;\n}\nfunction foreignKeyIndexOf(backing) {\n\tswitch (backing.kind) {\n\t\tcase \"index\": return { name: nameOf(backing.index.index.naming) };\n\t\tcase \"uniqueConstraint\": return { unique: backing.unique.columns };\n\t\tcase \"primaryKey\": return { primaryKey: true };\n\t}\n}\n//#endregion\nexport { FOREIGN_KEY_INDEX_UNRESOLVED, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, derivedBackingIndexIsRedundant, leadingBackingObjectName, materializeForeignKeysAndIndexes };\n\n//# sourceMappingURL=foreign-key-materialization.mjs.map"],"mappings":"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"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { l as SqlStorage } from "./sql-storage-BTlJLUID-
|
|
2
|
-
import "./types-
|
|
3
|
-
import { h as AnyQueryAst, ht as LoweredStatement, k as ContractCodecRegistry } from "./types-Sh5HuaZE-
|
|
4
|
-
import { t as Adapter } from "./ast-
|
|
5
|
-
import { n as SqlQueryPlan } from "./plan-cGEaSXHv-
|
|
6
|
-
import { t as SqlExecutionPlan } from "./sql-execution-plan-C7XauPPu-
|
|
7
|
-
import "./plan-
|
|
8
|
-
import { t as CodecDescriptorRegistry } from "./query-lane-context-CJoNBspB
|
|
9
|
-
import "./query-lane-context-
|
|
10
|
-
import { k as SqlMiddleware } from "./prepared-statement-YtgdlN7e-
|
|
1
|
+
import { l as SqlStorage } from "./sql-storage-BTlJLUID-CGy3wuH4.mjs";
|
|
2
|
+
import "./types-Uv3oTMAb.mjs";
|
|
3
|
+
import { h as AnyQueryAst, ht as LoweredStatement, k as ContractCodecRegistry } from "./types-Sh5HuaZE-CqThc46M.mjs";
|
|
4
|
+
import { t as Adapter } from "./ast-Dp6lQXUX.mjs";
|
|
5
|
+
import { n as SqlQueryPlan } from "./plan-cGEaSXHv-j0w37mVT.mjs";
|
|
6
|
+
import { t as SqlExecutionPlan } from "./sql-execution-plan-C7XauPPu-eskZJbmm.mjs";
|
|
7
|
+
import "./plan-_8dKi13Q.mjs";
|
|
8
|
+
import { t as CodecDescriptorRegistry } from "./query-lane-context-CJoNBspB--ieuKEei.mjs";
|
|
9
|
+
import "./query-lane-context-DNt2DeQu.mjs";
|
|
10
|
+
import { k as SqlMiddleware } from "./prepared-statement-YtgdlN7e-D4MSU3i0.mjs";
|
|
11
11
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
12
12
|
import { AfterExecuteResult as AfterExecuteResult$1, AfterQueryResult as AfterQueryResult$1, ExecuteInterceptResult as ExecuteInterceptResult$1, QueryInterceptResult as QueryInterceptResult$1, RuntimeLog as Log } from "@prisma/orm-framework/components/runtime";
|
|
13
13
|
//#region ../../../2-sql/5-runtime/dist/index.d.mts
|
|
@@ -81,4 +81,4 @@ interface LintsOptions {
|
|
|
81
81
|
declare function lints(options?: LintsOptions): SqlMiddleware;
|
|
82
82
|
//#endregion
|
|
83
83
|
export { LintsOptions as a, budgets as c, lints as d, lowerSqlPlan as f, ExecuteInterceptResult$1 as i, createAstCodecRegistry as l, validateContractCodecMappings as m, AfterQueryResult$1 as n, Log as o, validateCodecRegistryCompleteness as p, BudgetsOptions as r, QueryInterceptResult$1 as s, AfterExecuteResult$1 as t, extractCodecIds as u };
|
|
84
|
-
//# sourceMappingURL=index-
|
|
84
|
+
//# sourceMappingURL=index-BzAG1PFV.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BzAG1PFV.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiBiB,uBAAuB,aAAa,0BAA0B;;;iBAG9D,gBAAgB,UAAU,SAAS,cAAc;iBACjD,8BAA8B,UAAU,yBAAyB,UAAU,SAAS;iBACpF,kCAAkC,UAAU,yBAAyB,UAAU,SAAS;;;;;;;;;;;;iBAYxF,aAAa,KAAK,SAAS,QAAQ,aAAa,SAAS,aAAa,mBAAmB,UAAU,SAAS,aAAa,WAAW,aAAa,OAAO,iBAAiB;;;UAGhL;WACC;WACA;WACA,YAAY;WACZ;WACA;aACE;aACA;;;iBAGI,QAAQ,UAAU,iBAAiB;;;UAG1C;WACC;aACE;aACA;aACA;aACA;aACA;;WAEF;;;;;;;;;;;;;;;;iBAgBM,MAAM,UAAU,eAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as QueryOperationTypeEntry } from "./types-DFZhLz18-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { w as QueryOperationTypeEntry } from "./types-DFZhLz18-Msi8wwig.mjs";
|
|
2
|
+
import "./types-Uv3oTMAb.mjs";
|
|
3
3
|
import { OperationDescriptor, OperationDescriptors, OperationRegistry } from "@prisma/orm-framework/operations";
|
|
4
4
|
//#region ../../../2-sql/1-core/operations/dist/index.d.mts
|
|
5
5
|
//#region src/index.d.ts
|
|
@@ -21,4 +21,4 @@ type SqlOperationRegistry = OperationRegistry<SqlOperationEntry>;
|
|
|
21
21
|
declare function createSqlOperationRegistry(): SqlOperationRegistry;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { SqlOperationRegistry as a, SqlOperationEntry as i, SqlOperationDescriptor as n, createSqlOperationRegistry as o, SqlOperationDescriptors as r, SqlLoweringSpec as t };
|
|
24
|
-
//# sourceMappingURL=index-
|
|
24
|
+
//# sourceMappingURL=index-We-mbWnZ.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-We-mbWnZ.d.mts","names":[],"sources":["../../../../2-sql/1-core/operations/dist/index.d.mts"],"mappings":";;;;;UAGU;WACC;WACA;;;;;;;;;KASN,oBAAoB;KACpB,yBAAyB,oBAAoB;KAC7C,0BAA0B,qBAAqB;KAC/C,uBAAuB,kBAAkB;iBAC7B,8BAA8B"}
|
package/dist/{index-equivalence-DswCiq5l-C7wLMPwF.mjs → index-equivalence-DswCiq5l-_gF1Un8p.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as SqlIndexIR } from "./types-
|
|
1
|
+
import { s as SqlIndexIR } from "./types-D0GFxty0-CP8b4dR3.mjs";
|
|
2
2
|
//#region ../../../2-sql/1-core/contract/dist/index-equivalence-DswCiq5l.mjs
|
|
3
3
|
/** The schema node the planner builds for an index the contract states, which is what it compares. */
|
|
4
4
|
function indexNodeOf(index) {
|
|
@@ -106,4 +106,4 @@ function leadingBackingObjectName(columns, table) {
|
|
|
106
106
|
//#endregion
|
|
107
107
|
export { sameColumns as a, leadingBackingObjectName as i, identicalIndexes as n, servingKey as o, indexNodeOf as r, startsWithColumns as s, derivedBackingIndexIsRedundant as t };
|
|
108
108
|
|
|
109
|
-
//# sourceMappingURL=index-equivalence-DswCiq5l-
|
|
109
|
+
//# sourceMappingURL=index-equivalence-DswCiq5l-_gF1Un8p.mjs.map
|