@prisma/orm-family-sql 8.0.0-rc.18-dev.7 → 8.0.0-rc.18-dev.8
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-De8XGuVW.mjs → ast-BDwGvnKK.mjs} +4 -30
- package/dist/ast-BDwGvnKK.mjs.map +1 -0
- package/dist/{ast-Dp6lQXUX.d.mts → ast-DbmdIKFd.d.mts} +6 -14
- package/dist/ast-DbmdIKFd.d.mts.map +1 -0
- package/dist/{attribute-specs-BgdwJoq3.d.mts → attribute-specs-CKg3a2P_.d.mts} +3 -3
- package/dist/{attribute-specs-BgdwJoq3.d.mts.map → attribute-specs-CKg3a2P_.d.mts.map} +1 -1
- package/dist/{authoring-entity-types-CZ-vdwYS-CrNb3aBC.d.mts → authoring-entity-types-CZ-vdwYS-Cc7JCJ0Q.d.mts} +2 -2
- package/dist/{authoring-entity-types-CZ-vdwYS-CrNb3aBC.d.mts.map → authoring-entity-types-CZ-vdwYS-Cc7JCJ0Q.d.mts.map} +1 -1
- package/dist/{authoring-type-constructors-0Iv2zdwS-zu35z-Tg.mjs → authoring-type-constructors-0Iv2zdwS-BG0FZNDM.mjs} +2 -2
- package/dist/{authoring-type-constructors-0Iv2zdwS-zu35z-Tg.mjs.map → authoring-type-constructors-0Iv2zdwS-BG0FZNDM.mjs.map} +1 -1
- package/dist/builder.d.mts +3 -3
- package/dist/builder__runtime.d.mts +9 -9
- package/dist/builder__runtime.mjs +1 -1
- package/dist/builder__types.d.mts +5 -5
- package/dist/{collection-methods-BnR4UjcW-tiz3frtf.d.mts → collection-methods-BnR4UjcW-BY8ZGjfa.d.mts} +3 -3
- package/dist/{collection-methods-BnR4UjcW-tiz3frtf.d.mts.map → collection-methods-BnR4UjcW-BY8ZGjfa.d.mts.map} +1 -1
- package/dist/collection-methods-iWGpEfkq.d.mts +1 -0
- package/dist/{config-types-Ci51fcnp.d.mts → config-types-C2mASmPh.d.mts} +3 -3
- package/dist/{config-types-Ci51fcnp.d.mts.map → config-types-C2mASmPh.d.mts.map} +1 -1
- package/dist/{config-types-DyZXyiNb.mjs → config-types-CrREu8Fa.mjs} +2 -2
- package/dist/{config-types-DyZXyiNb.mjs.map → config-types-CrREu8Fa.mjs.map} +1 -1
- package/dist/{contract-builder-C4fgERNT.d.mts → contract-builder-ClsLO9DI.d.mts} +464 -101
- package/dist/contract-builder-ClsLO9DI.d.mts.map +1 -0
- package/dist/{contract-builder-B_oFvMWk.mjs → contract-builder-Du_YOA1B.mjs} +10 -9
- package/dist/contract-builder-Du_YOA1B.mjs.map +1 -0
- package/dist/contract-emitter.d.mts +1 -0
- package/dist/contract-emitter.d.mts.map +1 -1
- package/dist/contract-emitter.mjs +1 -1
- package/dist/contract-prisma7__provider.d.mts +1 -1
- package/dist/contract-prisma7__provider.mjs +6 -6
- package/dist/contract-psl.d.mts +3 -3
- package/dist/contract-psl.d.mts.map +1 -1
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +1 -1
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__diagnostics.d.mts +12 -0
- package/dist/contract-psl__diagnostics.d.mts.map +1 -0
- package/dist/contract-psl__diagnostics.mjs +2 -0
- package/dist/contract-psl__provider.d.mts +1 -1
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +4 -4
- 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 +3 -3
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/contract.d.mts +8 -8
- package/dist/contract.mjs +4 -4
- package/dist/contract__data-type.d.mts +2 -2
- package/dist/contract__data-type.mjs +1 -1
- package/dist/contract__factories.d.mts +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-type-validation.d.mts +1 -1
- package/dist/contract__types.d.mts +3 -3
- package/dist/contract__validators.d.mts +1 -1
- package/dist/contract__validators.mjs +1 -1
- package/dist/{control-CyY2Ijms.d.mts → control-Ced1D4yz.d.mts} +17 -16
- package/dist/control-Ced1D4yz.d.mts.map +1 -0
- package/dist/{control-_KWRuSBH.mjs → control-DiLXYDZc.mjs} +15 -10
- package/dist/control-DiLXYDZc.mjs.map +1 -0
- package/dist/{control-adapter-CkFfBVei-DH5DAObc.d.mts → control-adapter-CkFfBVei-4WUzQP7G.d.mts} +8 -8
- package/dist/{control-adapter-CkFfBVei-DH5DAObc.d.mts.map → control-adapter-CkFfBVei-4WUzQP7G.d.mts.map} +1 -1
- package/dist/control-adapter-pn8u9o3J.d.mts +1 -0
- package/dist/{data-type-gKl5DBHw.d.mts → data-type-CYsho6Yd.d.mts} +4 -12
- package/dist/data-type-CYsho6Yd.d.mts.map +1 -0
- package/dist/{data-type-BgP6Wv48.mjs → data-type-DU0mtme5.mjs} +18 -9
- package/dist/data-type-DU0mtme5.mjs.map +1 -0
- package/dist/{db-BmrN9nRS-CDq1n2be.d.mts → db-BmrN9nRS-CkMIL55t.d.mts} +12 -12
- package/dist/{db-BmrN9nRS-CDq1n2be.d.mts.map → db-BmrN9nRS-CkMIL55t.d.mts.map} +1 -1
- package/dist/{ddl-types-DtKZjNtN-CwtcEWLd.d.mts → ddl-types-DtKZjNtN-BCpmdMQF.d.mts} +3 -3
- package/dist/{ddl-types-DtKZjNtN-CwtcEWLd.d.mts.map → ddl-types-DtKZjNtN-BCpmdMQF.d.mts.map} +1 -1
- package/dist/{type-map-BMCZ_fb9-BTmWHQ-J.d.mts → default-mapping-B8_APB1M-CWcTmSQW.d.mts} +3 -22
- package/dist/default-mapping-B8_APB1M-CWcTmSQW.d.mts.map +1 -0
- package/dist/{derived-checks-BPWwhTds-Cy93UfrT.mjs → derived-checks-BVSHiu2A-CzEmkTMg.mjs} +18 -6
- package/dist/{derived-checks-BPWwhTds-Cy93UfrT.mjs.map → derived-checks-BVSHiu2A-CzEmkTMg.mjs.map} +1 -1
- package/dist/{derived-checks-DpPkO6Dt-ZEbWeWKL.d.mts → derived-checks-DpPkO6Dt--oL-Zi3r.d.mts} +2 -2
- package/dist/{derived-checks-DpPkO6Dt-ZEbWeWKL.d.mts.map → derived-checks-DpPkO6Dt--oL-Zi3r.d.mts.map} +1 -1
- package/dist/diagnostics-C8YevjSU.mjs +21 -0
- package/dist/diagnostics-C8YevjSU.mjs.map +1 -0
- package/dist/{diff-C-18M6Ii.d.mts → diff-Cx7qTc2x.d.mts} +7 -7
- package/dist/{diff-C-18M6Ii.d.mts.map → diff-Cx7qTc2x.d.mts.map} +1 -1
- package/dist/{dist-Dswy-oRP.mjs → dist-D4FKWSKx.mjs} +30 -41
- package/dist/dist-D4FKWSKx.mjs.map +1 -0
- package/dist/{expression-CNBCbbzU-BG3rv8Wb.d.mts → expression-CNBCbbzU-DnvLZYf4.d.mts} +3 -3
- package/dist/{expression-CNBCbbzU-BG3rv8Wb.d.mts.map → expression-CNBCbbzU-DnvLZYf4.d.mts.map} +1 -1
- package/dist/{expression-Ck1wys3N-RNyviMcU.d.mts → expression-Ck1wys3N-CBfr-HMG.d.mts} +6 -6
- package/dist/{expression-Ck1wys3N-RNyviMcU.d.mts.map → expression-Ck1wys3N-CBfr-HMG.d.mts.map} +1 -1
- package/dist/expression-eDSWdiqh.d.mts +2 -0
- package/dist/{factories-BVIVyHQU.d.mts → factories-2LNVsQ2j.d.mts} +2 -2
- package/dist/{factories-BVIVyHQU.d.mts.map → factories-2LNVsQ2j.d.mts.map} +1 -1
- package/dist/family.d.mts +14 -14
- package/dist/family.mjs +7 -7
- 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.d.mts +3 -3
- package/dist/family__psl-build.mjs +2 -2
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/family__psl-infer.mjs +1 -1
- package/dist/{foreign-key-materialization-DBYDet74.d.mts → foreign-key-materialization-DJ6uhBba.d.mts} +3 -3
- package/dist/{foreign-key-materialization-DBYDet74.d.mts.map → foreign-key-materialization-DJ6uhBba.d.mts.map} +1 -1
- package/dist/{foreign-key-materialization-DyoakLGY.mjs → foreign-key-materialization-DibQ9Hjg.mjs} +2 -2
- package/dist/{foreign-key-materialization-DyoakLGY.mjs.map → foreign-key-materialization-DibQ9Hjg.mjs.map} +1 -1
- package/dist/{functions-CJ8Yf8uL.d.mts → functions-DucgffNf.d.mts} +6 -6
- package/dist/{functions-CJ8Yf8uL.d.mts.map → functions-DucgffNf.d.mts.map} +1 -1
- package/dist/{index-We-mbWnZ.d.mts → index-CJlr0Eja.d.mts} +3 -3
- package/dist/{index-We-mbWnZ.d.mts.map → index-CJlr0Eja.d.mts.map} +1 -1
- package/dist/{index-UHjF-U84.d.mts → index-DuD4M3b8.d.mts} +19 -19
- package/dist/{index-UHjF-U84.d.mts.map → index-DuD4M3b8.d.mts.map} +1 -1
- package/dist/{index-equivalence-DswCiq5l-_gF1Un8p.mjs → index-equivalence-DswCiq5l-DlC2yTK1.mjs} +2 -2
- package/dist/{index-equivalence-DswCiq5l-_gF1Un8p.mjs.map → index-equivalence-DswCiq5l-DlC2yTK1.mjs.map} +1 -1
- package/dist/index-reference-CrohwmmB.d.mts +1 -0
- package/dist/{index-reference-DJX-CNsb-D2qUlYq2.d.mts → index-reference-DJX-CNsb-C1fCMhrJ.d.mts} +3 -3
- package/dist/{index-reference-DJX-CNsb-D2qUlYq2.d.mts.map → index-reference-DJX-CNsb-C1fCMhrJ.d.mts.map} +1 -1
- package/dist/{index-type-validation-D7-fPxIJ.d.mts → index-type-validation-P4WLRyZA.d.mts} +2 -2
- package/dist/{index-type-validation-D7-fPxIJ.d.mts.map → index-type-validation-P4WLRyZA.d.mts.map} +1 -1
- package/dist/{interpreter-C3Ltz47m-BM7A_CmQ.mjs → interpreter-y1GRudgs-DnP0uDGL.mjs} +7 -5
- package/dist/interpreter-y1GRudgs-DnP0uDGL.mjs.map +1 -0
- package/dist/{ir-OBn7ct21.d.mts → ir-BEQwEnRB.d.mts} +2 -2
- package/dist/{ir-OBn7ct21.d.mts.map → ir-BEQwEnRB.d.mts.map} +1 -1
- package/dist/middleware-DTu2jl68.d.mts +1 -0
- package/dist/{middleware-YsFLC19Y-xhimGDiS.d.mts → middleware-YsFLC19Y-Dot9R8QY.d.mts} +2 -2
- package/dist/{middleware-YsFLC19Y-xhimGDiS.d.mts.map → middleware-YsFLC19Y-Dot9R8QY.d.mts.map} +1 -1
- package/dist/{migration-Bdt_UrTg.d.mts → migration-Cc102YUu.d.mts} +3 -3
- package/dist/{migration-Bdt_UrTg.d.mts.map → migration-Cc102YUu.d.mts.map} +1 -1
- package/dist/operations.d.mts +1 -1
- package/dist/orm-client.d.mts +38 -32
- package/dist/orm-client.d.mts.map +1 -1
- package/dist/orm-client.mjs +1 -1
- package/dist/{pack-DOLmsrEs.d.mts → pack-DI4Nur5d.d.mts} +3 -3
- package/dist/{pack-DOLmsrEs.d.mts.map → pack-DI4Nur5d.d.mts.map} +1 -1
- package/dist/plan-CuSLaQdv.d.mts +2 -0
- package/dist/{plan-cGEaSXHv-j0w37mVT.d.mts → plan-cGEaSXHv-Bv-SBtFA.d.mts} +3 -3
- package/dist/{plan-cGEaSXHv-j0w37mVT.d.mts.map → plan-cGEaSXHv-Bv-SBtFA.d.mts.map} +1 -1
- package/dist/psl-attribute-parsing-BCsFWsSp-LaNsbcrw.mjs +42 -0
- package/dist/psl-attribute-parsing-BCsFWsSp-LaNsbcrw.mjs.map +1 -0
- package/dist/{psl-build-C3WT2pWV.mjs → psl-build-8bx9WTUt.mjs} +113 -4
- package/dist/psl-build-8bx9WTUt.mjs.map +1 -0
- package/dist/psl-build-PXVtl8gM.d.mts +73 -0
- package/dist/psl-build-PXVtl8gM.d.mts.map +1 -0
- package/dist/{psl-column-resolution-Cj4gkj9H-Cu2xVY6w.d.mts → psl-column-resolution-BCkhNzOK-0Gry4LFl.d.mts} +5 -5
- package/dist/psl-column-resolution-BCkhNzOK-0Gry4LFl.d.mts.map +1 -0
- package/dist/{psl-field-resolution-ztVU6TV2-BSBajXoF.mjs → psl-field-resolution-4U7Plpfb-CCfgoBAa.mjs} +7 -41
- package/dist/psl-field-resolution-4U7Plpfb-CCfgoBAa.mjs.map +1 -0
- package/dist/{psl-infer-DHO72J_m.mjs → psl-infer-CG0_wra6.mjs} +2 -2
- package/dist/{psl-infer-DHO72J_m.mjs.map → psl-infer-CG0_wra6.mjs.map} +1 -1
- package/dist/{psl-infer-Dp_NzWE0.d.mts → psl-infer-g040TwAr.d.mts} +4 -6
- package/dist/psl-infer-g040TwAr.d.mts.map +1 -0
- package/dist/query-lane-context-C29KGcgz.d.mts +1 -0
- package/dist/{query-lane-context-C42-u9L1-Bxa4DkI_.d.mts → query-lane-context-C42-u9L1-CUP3uW4A.d.mts} +6 -6
- package/dist/{query-lane-context-C42-u9L1-Bxa4DkI_.d.mts.map → query-lane-context-C42-u9L1-CUP3uW4A.d.mts.map} +1 -1
- package/dist/relational-core.d.mts +13 -13
- package/dist/relational-core.mjs +2 -2
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
- package/dist/relational-core__ast.d.mts +4 -4
- package/dist/relational-core__ast.mjs +2 -2
- package/dist/relational-core__codec-descriptor-registry.d.mts +3 -3
- package/dist/relational-core__collection-methods.d.mts +2 -2
- package/dist/relational-core__contract-free.d.mts +3 -3
- package/dist/relational-core__expression.d.mts +3 -3
- package/dist/relational-core__functions.d.mts +1 -1
- package/dist/relational-core__index-reference.d.mts +2 -2
- package/dist/relational-core__middleware.d.mts +2 -2
- package/dist/relational-core__plan.d.mts +3 -3
- package/dist/relational-core__query-lane-context.d.mts +2 -2
- package/dist/relational-core__types.d.mts +2 -2
- package/dist/runtime.d.mts +4 -4
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/dist/{schema-differ-CqWOkoW9-DQkzKV8b.d.mts → schema-differ-CqWOkoW9-DAcuiQPU.d.mts} +4 -4
- package/dist/{schema-differ-CqWOkoW9-DQkzKV8b.d.mts.map → schema-differ-CqWOkoW9-DAcuiQPU.d.mts.map} +1 -1
- package/dist/schema-ir.d.mts +2 -2
- package/dist/schema-ir.mjs +1 -1
- package/dist/schema-ir__types.d.mts +3 -3
- package/dist/schema-ir__types.mjs +1 -1
- package/dist/{schema-verify-DIfHSB4I-Du0-5I8k.mjs → schema-verify-DIfHSB4I-CU6ViTDO.mjs} +2 -2
- package/dist/{schema-verify-DIfHSB4I-Du0-5I8k.mjs.map → schema-verify-DIfHSB4I-CU6ViTDO.mjs.map} +1 -1
- package/dist/{sql-contract-serializer-DDaAVCQr-BAb4jKvV.mjs → sql-contract-serializer-DDaAVCQr-DFIIkxQr.mjs} +2 -2
- package/dist/{sql-contract-serializer-DDaAVCQr-BAb4jKvV.mjs.map → sql-contract-serializer-DDaAVCQr-DFIIkxQr.mjs.map} +1 -1
- package/dist/{sql-execution-plan-C7XauPPu-eskZJbmm.d.mts → sql-execution-plan-C7XauPPu-DI9L8IkC.d.mts} +2 -2
- package/dist/{sql-execution-plan-C7XauPPu-eskZJbmm.d.mts.map → sql-execution-plan-C7XauPPu-DI9L8IkC.d.mts.map} +1 -1
- package/dist/{transaction-state-DR3nKTmH-BZ-54Zu0.d.mts → transaction-state-DR3nKTmH-CkkfiS9z.d.mts} +9 -9
- package/dist/{transaction-state-DR3nKTmH-BZ-54Zu0.d.mts.map → transaction-state-DR3nKTmH-CkkfiS9z.d.mts.map} +1 -1
- package/dist/types-BhcBOXu7.d.mts +1 -0
- package/dist/{types-DIZSW9JI-DNUF-RnL.d.mts → types-C-z8HyiZ-1Nhw0pHj.d.mts} +17 -3
- package/dist/types-C-z8HyiZ-1Nhw0pHj.d.mts.map +1 -0
- package/dist/types-CJK7FBdw.d.mts +1 -0
- package/dist/{types-Cl4MLNrS-lbf-K25i.d.mts → types-Cl4MLNrS-GHKQvTNi.d.mts} +8 -8
- package/dist/{types-Cl4MLNrS-lbf-K25i.d.mts.map → types-Cl4MLNrS-GHKQvTNi.d.mts.map} +1 -1
- package/dist/{types-CzxOObSY-BxwvvyRZ.d.mts → types-CzxOObSY-DTQ2rnLF.d.mts} +7 -7
- package/dist/{types-CzxOObSY-BxwvvyRZ.d.mts.map → types-CzxOObSY-DTQ2rnLF.d.mts.map} +1 -1
- package/dist/{types-D0GFxty0-CP8b4dR3.mjs → types-DvhckjSz-Cm0Oodhr.mjs} +3 -2
- package/dist/types-DvhckjSz-Cm0Oodhr.mjs.map +1 -0
- package/dist/types-HD5m-h8B.d.mts +67 -0
- package/dist/types-HD5m-h8B.d.mts.map +1 -0
- package/dist/{types-Sh5HuaZE-CqThc46M.d.mts → types-Sh5HuaZE-Dq4AUzl7.d.mts} +2 -2
- package/dist/{types-Sh5HuaZE-CqThc46M.d.mts.map → types-Sh5HuaZE-Dq4AUzl7.d.mts.map} +1 -1
- package/dist/{types-DFZhLz18-Msi8wwig.d.mts → types-zwKzjyma-CxZkmkUI.d.mts} +114 -3
- package/dist/types-zwKzjyma-CxZkmkUI.d.mts.map +1 -0
- package/dist/{validators-CudqzmkF.d.mts → validators-BifwoR5e.d.mts} +2 -2
- package/dist/{validators-CudqzmkF.d.mts.map → validators-BifwoR5e.d.mts.map} +1 -1
- package/dist/{validators-BMWQ7-5D.mjs → validators-CfUrQdiv.mjs} +2 -2
- package/dist/{validators-BMWQ7-5D.mjs.map → validators-CfUrQdiv.mjs.map} +1 -1
- package/package.json +19 -18
- package/dist/ast-De8XGuVW.mjs.map +0 -1
- package/dist/ast-Dp6lQXUX.d.mts.map +0 -1
- package/dist/collection-methods-DoBrRR69.d.mts +0 -1
- package/dist/contract-builder-B_oFvMWk.mjs.map +0 -1
- package/dist/contract-builder-C4fgERNT.d.mts.map +0 -1
- package/dist/control-CyY2Ijms.d.mts.map +0 -1
- package/dist/control-_KWRuSBH.mjs.map +0 -1
- package/dist/control-adapter-DB7MPI5L.d.mts +0 -1
- package/dist/data-type-BgP6Wv48.mjs.map +0 -1
- package/dist/data-type-gKl5DBHw.d.mts.map +0 -1
- package/dist/dist-Dswy-oRP.mjs.map +0 -1
- package/dist/expression-DWcDQHh9.d.mts +0 -2
- package/dist/index-reference-ZZrszBDq.d.mts +0 -1
- package/dist/interpreter-C3Ltz47m-BM7A_CmQ.mjs.map +0 -1
- package/dist/middleware-DOKGNt72.d.mts +0 -1
- package/dist/plan-_8dKi13Q.d.mts +0 -2
- package/dist/psl-build-C3WT2pWV.mjs.map +0 -1
- package/dist/psl-build-TrbDSGOA.d.mts +0 -13
- package/dist/psl-build-TrbDSGOA.d.mts.map +0 -1
- package/dist/psl-column-resolution-Cj4gkj9H-Cu2xVY6w.d.mts.map +0 -1
- package/dist/psl-field-resolution-ztVU6TV2-BSBajXoF.mjs.map +0 -1
- package/dist/psl-infer-Dp_NzWE0.d.mts.map +0 -1
- package/dist/query-lane-context-DW5q2RAY.d.mts +0 -1
- package/dist/type-map-BMCZ_fb9-BTmWHQ-J.d.mts.map +0 -1
- package/dist/types-BkA6tyT-.d.mts +0 -1
- package/dist/types-D0GFxty0-CP8b4dR3.mjs.map +0 -1
- package/dist/types-DFZhLz18-Msi8wwig.d.mts.map +0 -1
- package/dist/types-DIZSW9JI-DNUF-RnL.d.mts.map +0 -1
- package/dist/types-DqSCaTK3.d.mts +0 -1
- package/dist/types-Uv3oTMAb.d.mts +0 -18
- package/dist/types-Uv3oTMAb.d.mts.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l as SqlStorage } from "./sql-storage-BTlJLUID-CGy3wuH4.mjs";
|
|
2
|
-
import "./types-
|
|
3
|
-
import {
|
|
4
|
-
import "./types-
|
|
5
|
-
import "./control-adapter-CkFfBVei-
|
|
6
|
-
import { n as CodecControlHooks } from "./types-CzxOObSY-
|
|
7
|
-
import { t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-
|
|
2
|
+
import "./types-HD5m-h8B.mjs";
|
|
3
|
+
import { b as SqlSchemaIRNode } from "./types-C-z8HyiZ-1Nhw0pHj.mjs";
|
|
4
|
+
import "./types-CJK7FBdw.mjs";
|
|
5
|
+
import "./control-adapter-CkFfBVei-4WUzQP7G.mjs";
|
|
6
|
+
import { n as CodecControlHooks } from "./types-CzxOObSY-DTQ2rnLF.mjs";
|
|
7
|
+
import { t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-DAcuiQPU.mjs";
|
|
8
8
|
import { Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
|
|
9
9
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
10
10
|
import { DiffSubjectGranularity, SchemaDiffIssue, VerifierIssueCategory, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
@@ -101,4 +101,4 @@ interface VerifySqlSchemaByDiffInput {
|
|
|
101
101
|
declare function verifySqlSchemaByDiff(input: VerifySqlSchemaByDiffInput): VerifyDatabaseSchemaResult;
|
|
102
102
|
//#endregion
|
|
103
103
|
export { VerifySqlSchemaByDiffInput as a, computeSqlDiffVerdict as c, StorageTypeVerdictInput as i, computeStorageTypeVerdict as l, SqlDiffVerdictInput as n, classifyDiffSubjectGranularity as o, StorageTypeVerdict as r, classifySqlDiffIssue as s, SqlDiffVerdict as t, verifySqlSchemaByDiff as u };
|
|
104
|
-
//# sourceMappingURL=diff-
|
|
104
|
+
//# sourceMappingURL=diff-Cx7qTc2x.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-
|
|
1
|
+
{"version":3,"file":"diff-Cx7qTc2x.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/diff.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAmBiB,+BAA+B,OAAO,iBAAiB,gBAAgB,qBAAqB,yBAAyB;;;;;;;;;;;;;iBAarH,qBAAqB,OAAO,iBAAiB,gBAAgB,qBAAqB,yBAAyB;UAClH;;WAEC,iBAAiB;;WAEjB,uBAAuB,OAAO,oBAAoB;WAClD;WACA,sBAAsB;;WAEtB,gBAAgB,qBAAqB;;UAEtC;WACC,mBAAmB;WACnB,mBAAmB;;;;;;;;;iBASb,sBAAsB,OAAO,sBAAsB;UAC1D;WACC,UAAU,SAAS;;;;;;;WAOnB,gBAAgB;aACd,QAAQ;;WAEV,YAAY,oBAAoB;;;;;;;;;UASjC;WACC,mBAAmB;WACnB,mBAAmB;;iBAEb,0BAA0B,OAAO,0BAA0B;UAClE;WACC,UAAU,SAAS;WACnB,QAAQ;WACR;WACA,qBAAqB,cAAc;;WAEnC,YAAY;;WAEZ,gBAAgB,qBAAqB;;;;;;;;;iBAS/B,sBAAsB,OAAO,6BAA6B"}
|
|
@@ -3,8 +3,7 @@ import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
|
3
3
|
import { UNBOUND_NAMESPACE_ID, entityAt } from "@prisma/orm-framework/components/ir";
|
|
4
4
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
5
5
|
import { settleAggregateOverloads } from "@prisma/orm-framework/components/components";
|
|
6
|
-
import {
|
|
7
|
-
import { isSafeTypeExpression } from "@prisma/orm-toolchain/emitter/type-expression-safety";
|
|
6
|
+
import { renderCodecTypeOverride, renderTypeOverridesMap, renderValueSetOverride, serializeNamespaceId, serializeObjectKey, serializeValue } from "@prisma/orm-toolchain/emitter/domain-type-generation";
|
|
8
7
|
//#region ../../../2-sql/3-tooling/emitter/dist/index.mjs
|
|
9
8
|
function sqlEmitterError(code, message, options) {
|
|
10
9
|
return structuredError(code, message, options);
|
|
@@ -114,14 +113,21 @@ const sqlEmission = {
|
|
|
114
113
|
getStorageTypeExports(contract, codecLookup) {
|
|
115
114
|
const storage = blindCast(contract.storage);
|
|
116
115
|
if (!storage?.namespaces) return void 0;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
return [
|
|
117
|
+
`type ColumnTypeOverrides = ${generateColumnTypeOverridesMap(storage, codecLookup)};`,
|
|
118
|
+
`export type StorageColumnTypes = ${columnTypesExpression("output")};`,
|
|
119
|
+
`export type StorageColumnInputTypes = ${columnTypesExpression("input")};`
|
|
120
|
+
].join("\n");
|
|
121
|
+
},
|
|
122
|
+
fieldTypesExpression(side) {
|
|
123
|
+
return `FieldTypesFromDomain<ContractBase['domain']['namespaces'], CodecTypes, ParameterizedOutputTypeFunctions, FieldTypeOverrides, ${serializeValue(side)}>`;
|
|
120
124
|
},
|
|
121
125
|
getFamilyImports(resolveImportSpecifier) {
|
|
122
126
|
return [
|
|
123
127
|
"import type {",
|
|
128
|
+
" ColumnTypesFromStorage,",
|
|
124
129
|
" ContractWithTypeMaps,",
|
|
130
|
+
" FieldTypesFromDomain,",
|
|
125
131
|
" RelationKeys,",
|
|
126
132
|
" TypeMaps as TypeMapsType,",
|
|
127
133
|
`} from '${resolveImportSpecifier("@internal/sql-contract/types")}';`
|
|
@@ -152,49 +158,32 @@ const sqlEmission = {
|
|
|
152
158
|
].join("\n");
|
|
153
159
|
}
|
|
154
160
|
};
|
|
155
|
-
function
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
return
|
|
161
|
+
function columnTypesExpression(side) {
|
|
162
|
+
return `ColumnTypesFromStorage<ContractBase['storage'], CodecTypes, ParameterizedOutputTypeFunctions, ColumnTypeOverrides, ${serializeValue(side)}>`;
|
|
163
|
+
}
|
|
164
|
+
/** `ColumnTypeOverrides`: per namespace, table and column, the type of each column its codec does not give. */
|
|
165
|
+
function generateColumnTypeOverridesMap(storage, codecLookup) {
|
|
166
|
+
return renderTypeOverridesMap(Object.entries(storage.namespaces ?? {}).flatMap(([nsId, ns]) => {
|
|
167
|
+
const tables = blindCast(ns.entries.table ?? {});
|
|
168
|
+
return Object.entries(tables).flatMap(([tableName, table]) => Object.entries(table.columns).map(([columnName, column]) => [
|
|
169
|
+
nsId,
|
|
170
|
+
tableName,
|
|
171
|
+
columnName,
|
|
172
|
+
columnTypeOverride(storage, column, codecLookup)
|
|
173
|
+
]));
|
|
174
|
+
}));
|
|
161
175
|
}
|
|
162
|
-
function
|
|
163
|
-
let base;
|
|
176
|
+
function columnTypeOverride(storage, column, codecLookup) {
|
|
164
177
|
if (column.valueSet) {
|
|
165
178
|
const valueSet = entityAt(storage, {
|
|
166
179
|
namespaceId: column.valueSet.namespaceId,
|
|
167
180
|
entityKind: column.valueSet.entityKind,
|
|
168
181
|
entityName: column.valueSet.entityName
|
|
169
182
|
});
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
if (base === void 0) base = renderRefinedCodecType(column, side, resolvedTypeParams(column, storage.types), codecLookup);
|
|
173
|
-
if (column.many !== false) base = `ReadonlyArray<${column.many.elementNullable ? `${base} | null` : base}>`;
|
|
174
|
-
return column.nullable ? `${base} | null` : base;
|
|
175
|
-
}
|
|
176
|
-
function generateStorageColumnTypesMap(storage, side, codecLookup) {
|
|
177
|
-
const namespaceEntries = Object.entries(storage.namespaces ?? {}).sort(([a], [b]) => a.localeCompare(b));
|
|
178
|
-
if (namespaceEntries.length === 0) return "Record<string, never>";
|
|
179
|
-
const nsParts = [];
|
|
180
|
-
for (const [nsId, ns] of namespaceEntries) {
|
|
181
|
-
const tables = blindCast(ns.entries.table ?? {});
|
|
182
|
-
const tableEntries = Object.entries(tables).sort(([a], [b]) => a.localeCompare(b));
|
|
183
|
-
const tableParts = [];
|
|
184
|
-
for (const [tableName, table] of tableEntries) {
|
|
185
|
-
const colEntries = Object.entries(table.columns).sort(([a], [b]) => a.localeCompare(b));
|
|
186
|
-
const colParts = [];
|
|
187
|
-
for (const [colName, col] of colEntries) {
|
|
188
|
-
const colType = computeColumnType(storage, col, side, codecLookup);
|
|
189
|
-
colParts.push(`readonly ${serializeObjectKey(colName)}: ${colType}`);
|
|
190
|
-
}
|
|
191
|
-
const colMap = colParts.length > 0 ? `{ ${colParts.join("; ")} }` : "{}";
|
|
192
|
-
tableParts.push(`readonly ${serializeObjectKey(tableName)}: ${colMap}`);
|
|
193
|
-
}
|
|
194
|
-
const tableMap = tableParts.length > 0 ? `{ ${tableParts.join("; ")} }` : "{}";
|
|
195
|
-
nsParts.push(`readonly ${serializeObjectKey(nsId)}: ${tableMap}`);
|
|
183
|
+
const override = valueSet ? renderValueSetOverride(valueSet.values, column.codecId, codecLookup) : void 0;
|
|
184
|
+
if (override !== void 0) return override;
|
|
196
185
|
}
|
|
197
|
-
return
|
|
186
|
+
return renderCodecTypeOverride(column.codecId, resolvedTypeParams(column, storage.types), codecLookup);
|
|
198
187
|
}
|
|
199
188
|
function generateDocumentScopedStorageTypesType(types) {
|
|
200
189
|
if (!types || Object.keys(types).length === 0) return;
|
|
@@ -305,4 +294,4 @@ function generateStorageNamespacesType(namespaces) {
|
|
|
305
294
|
//#endregion
|
|
306
295
|
export { sqlEmission as t };
|
|
307
296
|
|
|
308
|
-
//# sourceMappingURL=dist-
|
|
297
|
+
//# sourceMappingURL=dist-D4FKWSKx.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-D4FKWSKx.mjs","names":[],"sources":["../../../../2-sql/3-tooling/emitter/dist/index.mjs"],"sourcesContent":["import { renderCodecTypeOverride, renderTypeOverridesMap, renderValueSetOverride, serializeNamespaceId, serializeObjectKey, serializeValue } from \"@internal/emitter/domain-type-generation\";\nimport { settleAggregateOverloads } from \"@internal/framework-components/components\";\nimport { UNBOUND_NAMESPACE_ID, entityAt } from \"@internal/framework-components/ir\";\nimport { resolvedTypeParams } from \"@internal/sql-contract/types\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/errors.ts\nfunction sqlEmitterError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/index.ts\n/**\n* Render the aggregate result map from the overloads the stack contributes, settled against the codecs it contributes.\n*\n* Every emitted row is keyed by a contributed codec, whichever rung settled it. Trait fallbacks reach only the contributed codecs to begin with, and an exact overload naming an uncontributed codec is dropped here — settling keeps such a row, because naming a codec id is a claim that stands on its own and the runtime honours it for whatever ref reaches it, but a target may register codecs its adapter withholds, and an emitted type over one of those would advertise availability no contract can use.\n*\n* Only the two rungs that name a codec are materialized; the input-agnostic overload stays a single row, which a consumer reads when no per-codec row claims its input.\n*/\nfunction generateAggregateTypes(options) {\n\tconst descriptors = options?.aggregateDescriptors ?? [];\n\tconst codecs = options?.codecDescriptors ?? [];\n\tif (descriptors.length === 0) return \"Record<string, never>\";\n\tconst contributedIds = new Set(codecs.map((codec) => codec.codecId));\n\tconst settled = settleAggregateOverloads(descriptors, codecs);\n\tconst ambiguity = settled.ambiguities[0];\n\tif (ambiguity !== void 0) throw sqlEmitterError(\"CONTRACT.AGGREGATE_DESCRIPTOR_AMBIGUOUS\", `Aggregate '${ambiguity.operation}' has no single result type over codec '${ambiguity.codecId}': traits ${ambiguity.traits.join(\", \")} all claim it.`, {\n\t\twhy: \"Emitted result types must name one codec per aggregate and input.\",\n\t\tfix: `Contribute an exact descriptor for '${ambiguity.operation}' over '${ambiguity.codecId}', or narrow the overlapping trait contributions.`,\n\t\tmeta: {\n\t\t\toperation: ambiguity.operation,\n\t\t\tcodecId: ambiguity.codecId,\n\t\t\ttraits: ambiguity.traits\n\t\t}\n\t});\n\treturn `{ ${[...settled.operations].sort(([left], [right]) => left.localeCompare(right)).map(([operation, entry]) => {\n\t\tconst members = [`readonly byCodec: { ${[...entry.byCodecId].filter(([codecId]) => contributedIds.has(codecId)).sort(([left], [right]) => left.localeCompare(right)).map(([codecId, descriptor]) => {\n\t\t\treturn `readonly ${serializeObjectKey(codecId)}: ${renderAggregateResult(descriptor, codecId, contributedIds)}`;\n\t\t}).join(\"; \")} }`];\n\t\tconst withoutInput = entry.noInput ?? entry.anyInput;\n\t\tif (withoutInput !== void 0) members.push(`readonly withoutInput: ${renderAggregateResult(withoutInput, void 0, contributedIds)}`);\n\t\tif (entry.anyInput !== void 0) members.push(`readonly anyInput: ${renderAggregateResult(entry.anyInput, void 0, contributedIds)}`);\n\t\treturn `readonly ${serializeObjectKey(operation)}: { ${members.join(\"; \")} }`;\n\t}).join(\"; \")} }`;\n}\n/** One row of the map: the codec the result carries, and whether it can be null. A `self` result carries the codec of the input it was resolved for. */\nfunction renderAggregateResult(descriptor, inputCodecId, contributedIds) {\n\tconst output = descriptor.output.kind === \"self\" ? inputCodecId : descriptor.output.codecId;\n\tif (output === void 0) throw sqlEmitterError(\"CONTRACT.AGGREGATE_DESCRIPTOR_AMBIGUOUS\", `Aggregate '${descriptor.operation}' declares its own input's codec as its result but answers calls that carry no input.`, {\n\t\twhy: \"A result that reuses its input needs an input to reuse.\",\n\t\tfix: \"Name the result codec on the descriptor.\",\n\t\tmeta: { operation: descriptor.operation }\n\t});\n\tif (!contributedIds.has(output)) throw sqlEmitterError(\"CONTRACT.AGGREGATE_OUTPUT_CODEC_MISSING\", `Aggregate '${descriptor.operation}' names result codec '${output}', which the stack does not contribute.`, {\n\t\twhy: \"An emitted result type names a codec in the contract codec map; a codec the stack does not contribute has no emitted type to name.\",\n\t\tfix: \"Contribute the codec, or declare a result codec the stack contributes.\",\n\t\tmeta: {\n\t\t\toperation: descriptor.operation,\n\t\t\toutputCodecId: output\n\t\t}\n\t});\n\treturn `{ readonly output: ${serializeValue(output)}; readonly nullable: ${descriptor.nullable} }`;\n}\nfunction serializeTypeParamsLiteral(params) {\n\tif (!params || Object.keys(params).length === 0) return \"Record<string, never>\";\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(params)) entries.push(`readonly ${serializeObjectKey(key)}: ${serializeValue(value)}`);\n\treturn `{ ${entries.join(\"; \")} }`;\n}\nconst sqlEmission = {\n\tid: \"sql\",\n\tgenerateStorageType(contract, storageHashTypeName) {\n\t\tconst storage = contract.storage;\n\t\tconst namespacesType = generateStorageNamespacesType(storage.namespaces);\n\t\tconst docTypes = generateDocumentScopedStorageTypesType(storage.types);\n\t\treturn `{ readonly namespaces: ${namespacesType}${docTypes === void 0 ? \"\" : `; readonly types: ${docTypes}`}; readonly storageHash: ${storageHashTypeName} }`;\n\t},\n\tgenerateModelStorageType(_modelName, model) {\n\t\tconst sqlModel = model;\n\t\tconst tableName = sqlModel.storage.table;\n\t\tconst storageFields = sqlModel.storage.fields;\n\t\tconst storageParts = [`readonly table: ${serializeValue(tableName)}`, `readonly namespaceId: ${serializeValue(sqlModel.storage.namespaceId)}`];\n\t\tif (Object.keys(storageFields).length > 0) {\n\t\t\tconst fieldParts = [];\n\t\t\tfor (const [fieldName, field] of Object.entries(storageFields)) fieldParts.push(`readonly ${serializeObjectKey(fieldName)}: { readonly column: ${serializeValue(field.column)} }`);\n\t\t\tstorageParts.push(`readonly fields: { ${fieldParts.join(\"; \")} }`);\n\t\t}\n\t\treturn `{ ${storageParts.join(\"; \")} }`;\n\t},\n\tresolveFieldValueSet(_modelName, fieldName, model, contract) {\n\t\tconst sqlModel = blindCast(model);\n\t\tconst storageField = sqlModel.storage?.fields?.[fieldName];\n\t\tif (!storageField) return void 0;\n\t\tconst storage = blindCast(contract.storage);\n\t\tif (!storage) return void 0;\n\t\tconst storageNamespaceId = sqlModel.storage.namespaceId;\n\t\tif (!storageNamespaceId) return void 0;\n\t\tconst column = entityAt(storage, {\n\t\t\tnamespaceId: storageNamespaceId,\n\t\t\tentityKind: \"table\",\n\t\t\tentityName: sqlModel.storage.table\n\t\t})?.columns[storageField.column];\n\t\tif (!column?.valueSet) return void 0;\n\t\tconst valueSet = entityAt(storage, {\n\t\t\tnamespaceId: column.valueSet.namespaceId,\n\t\t\tentityKind: column.valueSet.entityKind,\n\t\t\tentityName: column.valueSet.entityName\n\t\t});\n\t\tif (!valueSet) return void 0;\n\t\treturn {\n\t\t\tencodedValues: valueSet.values,\n\t\t\tcodecId: column.codecId\n\t\t};\n\t},\n\tgetStorageTypeExports(contract, codecLookup) {\n\t\tconst storage = blindCast(contract.storage);\n\t\tif (!storage?.namespaces) return void 0;\n\t\treturn [\n\t\t\t`type ColumnTypeOverrides = ${generateColumnTypeOverridesMap(storage, codecLookup)};`,\n\t\t\t`export type StorageColumnTypes = ${columnTypesExpression(\"output\")};`,\n\t\t\t`export type StorageColumnInputTypes = ${columnTypesExpression(\"input\")};`\n\t\t].join(\"\\n\");\n\t},\n\tfieldTypesExpression(side) {\n\t\treturn `FieldTypesFromDomain<ContractBase['domain']['namespaces'], CodecTypes, ParameterizedOutputTypeFunctions, FieldTypeOverrides, ${serializeValue(side)}>`;\n\t},\n\tgetFamilyImports(resolveImportSpecifier) {\n\t\treturn [\n\t\t\t\"import type {\",\n\t\t\t\" ColumnTypesFromStorage,\",\n\t\t\t\" ContractWithTypeMaps,\",\n\t\t\t\" FieldTypesFromDomain,\",\n\t\t\t\" RelationKeys,\",\n\t\t\t\" TypeMaps as TypeMapsType,\",\n\t\t\t`} from '${resolveImportSpecifier(\"@internal/sql-contract/types\")}';`\n\t\t];\n\t},\n\tgetFamilyTypeAliases(options) {\n\t\tconst queryOperationAliases = (options?.queryOperationTypeImports ?? []).filter((imp) => imp.named === \"QueryOperationTypes\").map((imp) => `${imp.alias}<CodecTypes>`);\n\t\treturn [\n\t\t\t\"export type LaneCodecTypes = CodecTypes;\",\n\t\t\t`export type QueryOperationTypes = ${queryOperationAliases.length > 0 ? queryOperationAliases.join(\" & \") : \"Record<string, never>\"};`,\n\t\t\t`export type AggregateTypes = ${generateAggregateTypes(options)};`,\n\t\t\t\"type DefaultLiteralValue<CodecId extends string, Encoded> =\",\n\t\t\t\" CodecId extends keyof CodecTypes\",\n\t\t\t\" ? Encoded extends CodecTypes[CodecId][\\\"json\\\"]\",\n\t\t\t\" ? Encoded\",\n\t\t\t\" : CodecTypes[CodecId][\\\"json\\\"]\",\n\t\t\t\" : Encoded;\"\n\t\t].join(\"\\n\");\n\t},\n\tgetTypeMapsExpression() {\n\t\treturn \"TypeMapsType<CodecTypes, QueryOperationTypes, FieldOutputTypes, FieldInputTypes, StorageColumnTypes, StorageColumnInputTypes, AggregateTypes>\";\n\t},\n\tgetContractWrapper(contractBaseName, typeMapsName) {\n\t\treturn [\n\t\t\t`export type Contract = ContractWithTypeMaps<${contractBaseName}, ${typeMapsName}>;`,\n\t\t\t\"\",\n\t\t\t\"export type Namespaces = Contract['storage']['namespaces'];\"\n\t\t].join(\"\\n\");\n\t}\n};\nfunction columnTypesExpression(side) {\n\treturn `ColumnTypesFromStorage<ContractBase['storage'], CodecTypes, ParameterizedOutputTypeFunctions, ColumnTypeOverrides, ${serializeValue(side)}>`;\n}\n/** `ColumnTypeOverrides`: per namespace, table and column, the type of each column its codec does not give. */\nfunction generateColumnTypeOverridesMap(storage, codecLookup) {\n\treturn renderTypeOverridesMap(Object.entries(storage.namespaces ?? {}).flatMap(([nsId, ns]) => {\n\t\tconst tables = blindCast(ns.entries.table ?? {});\n\t\treturn Object.entries(tables).flatMap(([tableName, table]) => Object.entries(table.columns).map(([columnName, column]) => [\n\t\t\tnsId,\n\t\t\ttableName,\n\t\t\tcolumnName,\n\t\t\tcolumnTypeOverride(storage, column, codecLookup)\n\t\t]));\n\t}));\n}\nfunction columnTypeOverride(storage, column, codecLookup) {\n\tif (column.valueSet) {\n\t\tconst valueSet = entityAt(storage, {\n\t\t\tnamespaceId: column.valueSet.namespaceId,\n\t\t\tentityKind: column.valueSet.entityKind,\n\t\t\tentityName: column.valueSet.entityName\n\t\t});\n\t\tconst override = valueSet ? renderValueSetOverride(valueSet.values, column.codecId, codecLookup) : void 0;\n\t\tif (override !== void 0) return override;\n\t}\n\treturn renderCodecTypeOverride(column.codecId, resolvedTypeParams(column, storage.types), codecLookup);\n}\nfunction generateDocumentScopedStorageTypesType(types) {\n\tif (!types || Object.keys(types).length === 0) return;\n\tconst typeEntries = [];\n\tfor (const [typeName, typeInstance] of Object.entries(types)) {\n\t\tconst codecInstanceShape = typeInstance;\n\t\tif (typeof codecInstanceShape.codecId !== \"string\" || typeof codecInstanceShape.dataType !== \"string\") throw sqlEmitterError(\"CONTRACT.TYPE_UNKNOWN\", `Unknown storage type kind for \"${typeName}\" in document-scoped storage.types; expected a codec-instance triple.`, {\n\t\t\twhy: \"A storage.types entry is not a codec-instance triple, so its column type cannot be emitted.\",\n\t\t\tfix: \"Regenerate the contract from its authoring source; storage.types entries must carry codecId and dataType.\",\n\t\t\tmeta: { type: typeName }\n\t\t});\n\t\tconst codecId = serializeValue(codecInstanceShape.codecId);\n\t\tconst dataType = serializeValue(codecInstanceShape.dataType);\n\t\tconst typeParamsStr = serializeTypeParamsLiteral(codecInstanceShape.typeParams);\n\t\ttypeEntries.push(`readonly ${serializeObjectKey(typeName)}: { readonly kind: \"codec-instance\"; readonly codecId: ${codecId}; readonly dataType: ${dataType}; readonly typeParams: ${typeParamsStr} }`);\n\t}\n\treturn `{ ${typeEntries.join(\"; \")} }`;\n}\n/**\n* Literalizes the `valueSet` entries slot — a core SQL entity kind (alongside\n* `table`), not a pack-contributed one, so naming it here isn't a\n* family→target layering leak. This is the only non-`table` entries slot with\n* a type-level consumer (`db.nativeEnums`, `packages/3-extensions/postgres`):\n* pack-contributed slots (`role`, `policy`, `native_enum`, …) have none and\n* are not emitted.\n*/\nfunction generateValueSetBlockType(valueSets) {\n\treturn `{ ${Object.entries(valueSets).sort(([a], [b]) => a.localeCompare(b)).map(([name, valueSet]) => `readonly ${serializeObjectKey(name)}: ${serializeValue(valueSet)}`).join(\"; \")} }`;\n}\nfunction namespaceSerializedKind(ns) {\n\tconst kind = ns.kind;\n\tif (kind === \"schema\") return `readonly kind: \"${ns.id === UNBOUND_NAMESPACE_ID ? \"postgres-unbound-schema\" : \"postgres-schema\"}\"`;\n\tif (typeof kind === \"string\") return `readonly kind: ${serializeValue(kind)}`;\n\tthrow sqlEmitterError(\"CONTRACT.NAMESPACE_INVALID\", `Namespace '${ns.id}' has no string kind — all namespaces must be target concretions with a defined kind property.`, {\n\t\twhy: \"The namespace is not a target concretion, so the emitter cannot serialize its kind.\",\n\t\tfix: \"Regenerate the contract with a target pack that materializes every namespace as a target concretion.\",\n\t\tmeta: { namespace: ns.id }\n\t});\n}\nfunction generateTableLiteralType(table) {\n\tconst columns = [];\n\tfor (const [colName, col] of Object.entries(table.columns)) {\n\t\tconst nullable = col.nullable ? \"true\" : \"false\";\n\t\tconst dataType = serializeValue(col.dataType);\n\t\tconst codecId = serializeValue(col.codecId);\n\t\tconst defaultSpec = col.default ? col.default.kind === \"literal\" ? `; readonly default: { readonly kind: \"literal\"; readonly value: DefaultLiteralValue<${codecId}, ${serializeValue(col.default.value)}> }` : `; readonly default: { readonly kind: \"function\"; readonly expression: ${serializeValue(col.default.expression)} }` : \"\";\n\t\tconst typeParamsSpec = col.typeParams && Object.keys(col.typeParams).length > 0 ? `; readonly typeParams: ${serializeTypeParamsLiteral(col.typeParams)}` : \"\";\n\t\tconst typeRefSpec = col.typeRef ? `; readonly typeRef: ${serializeValue(col.typeRef)}` : \"\";\n\t\tconst manySpec = col.many === false ? \"; readonly many: false\" : `; readonly many: { readonly elementNullable: ${col.many.elementNullable} }`;\n\t\tcolumns.push(`readonly ${serializeObjectKey(colName)}: { readonly dataType: ${dataType}; readonly codecId: ${codecId}; readonly nullable: ${nullable}${defaultSpec}${typeParamsSpec}${typeRefSpec}${manySpec} }`);\n\t}\n\tconst tableParts = [`columns: { ${columns.join(\"; \")} }`];\n\tif (table.primaryKey) {\n\t\tconst pkParts = [`readonly columns: readonly [${table.primaryKey.columns.map((c) => serializeValue(c)).join(\", \")}]`];\n\t\tif (table.primaryKey.name) pkParts.push(`readonly name: ${serializeValue(table.primaryKey.name)}`);\n\t\ttableParts.push(`primaryKey: { ${pkParts.join(\"; \")} }`);\n\t}\n\tconst uniques = table.uniques.map((u) => {\n\t\tconst parts = [`readonly columns: readonly [${u.columns.map((c) => serializeValue(c)).join(\", \")}]`];\n\t\tif (u.name) parts.push(`readonly name: ${serializeValue(u.name)}`);\n\t\treturn `{ ${parts.join(\"; \")} }`;\n\t}).join(\", \");\n\ttableParts.push(`uniques: readonly [${uniques}]`);\n\tconst indexes = table.indexes.map((i) => {\n\t\tconst parts = [`readonly name: ${serializeValue(i.name)}`];\n\t\tif (i.prefix !== void 0) parts.push(`readonly prefix: ${serializeValue(i.prefix)}`);\n\t\tif (i.columns !== void 0) parts.push(`readonly columns: readonly [${i.columns.map((c) => serializeValue(c)).join(\", \")}]`);\n\t\tif (i.expression !== void 0) parts.push(`readonly expression: ${serializeValue(i.expression)}`);\n\t\tif (i.where !== void 0) parts.push(`readonly where: ${serializeValue(i.where)}`);\n\t\tparts.push(`readonly unique: ${i.unique}`);\n\t\tif (i.type !== void 0) parts.push(`readonly type: ${serializeValue(i.type)}`);\n\t\tif (i.options !== void 0) parts.push(`readonly options: ${serializeValue(i.options)}`);\n\t\treturn `{ ${parts.join(\"; \")} }`;\n\t}).join(\", \");\n\ttableParts.push(`indexes: readonly [${indexes}]`);\n\tconst fks = table.foreignKeys.map((fk) => {\n\t\tconst srcCols = fk.source.columns.map((c) => serializeValue(c)).join(\", \");\n\t\tconst tgtCols = fk.target.columns.map((c) => serializeValue(c)).join(\", \");\n\t\tconst srcRef = `{ readonly namespaceId: ${serializeNamespaceId(String(fk.source.namespaceId))}; readonly tableName: ${serializeValue(fk.source.tableName)}; readonly columns: readonly [${srcCols}] }`;\n\t\tconst tgtRef = `{ readonly namespaceId: ${serializeNamespaceId(String(fk.target.namespaceId))}; readonly tableName: ${serializeValue(fk.target.tableName)}; readonly columns: readonly [${tgtCols}] }`;\n\t\tconst parts = [`readonly source: ${srcRef}`, `readonly target: ${tgtRef}`];\n\t\tif (fk.name) parts.push(`readonly name: ${serializeValue(fk.name)}`);\n\t\treturn `{ ${parts.join(\"; \")} }`;\n\t}).join(\", \");\n\ttableParts.push(`foreignKeys: readonly [${fks}]`);\n\treturn `{ ${tableParts.join(\"; \")} }`;\n}\nfunction generateTablesMapType(tables) {\n\tconst tableEntries = [];\n\tfor (const [tableName, table] of Object.entries(tables).sort(([a], [b]) => a.localeCompare(b))) tableEntries.push(`readonly ${serializeObjectKey(tableName)}: ${generateTableLiteralType(table)}`);\n\tif (tableEntries.length === 0) return \"{}\";\n\treturn `{ ${tableEntries.join(\"; \")} }`;\n}\nfunction generateStorageNamespacesType(namespaces) {\n\tconst entries = Object.entries(namespaces ?? {}).sort(([a], [b]) => a.localeCompare(b));\n\tif (entries.length === 0) return \"Record<string, never>\";\n\tconst parts = [];\n\tfor (const [name, ns] of entries) {\n\t\tconst kindSuffix = `; ${namespaceSerializedKind(ns)}`;\n\t\tconst entriesParts = [`readonly table: ${generateTablesMapType(ns.entries.table ?? {})}`];\n\t\tconst valueSetEntries = ns.entries.valueSet;\n\t\tif (valueSetEntries !== void 0 && Object.keys(valueSetEntries).length > 0) entriesParts.push(`readonly valueSet: ${generateValueSetBlockType(valueSetEntries)}`);\n\t\tconst entriesType = `{ ${entriesParts.join(\"; \")} }`;\n\t\tparts.push(`readonly ${serializeObjectKey(name)}: { readonly id: ${serializeValue(ns.id)}${kindSuffix}; readonly entries: ${entriesType} }`);\n\t}\n\treturn `{ ${parts.join(\"; \")} }`;\n}\n//#endregion\nexport { sqlEmission };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;AAOA,SAAS,gBAAgB,MAAM,SAAS,SAAS;CAChD,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;;;;;;;;AAUA,SAAS,uBAAuB,SAAS;CACxC,MAAM,cAAc,SAAS,wBAAwB,CAAC;CACtD,MAAM,SAAS,SAAS,oBAAoB,CAAC;CAC7C,IAAI,YAAY,WAAW,GAAG,OAAO;CACrC,MAAM,iBAAiB,IAAI,IAAI,OAAO,KAAK,UAAU,MAAM,OAAO,CAAC;CACnE,MAAM,UAAU,yBAAyB,aAAa,MAAM;CAC5D,MAAM,YAAY,QAAQ,YAAY;CACtC,IAAI,cAAc,KAAK,GAAG,M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,QAAQ,WAAW,GAAG,OAAO;CACjC,MAAM,QAAQ,CAAC;CACf,KAAK,MAAM,CAAC,MAAM,OAAO,SAAS;EACjC,MAAM,aAAa,KAAK,wBAAwB,EAAE;EAClD,MAAM,eAAe,CAAC,mBAAmB,sBAAsB,GAAG,QAAQ,SAAS,CAAC,CAAC,GAAG;EACxF,MAAM,kBAAkB,GAAG,QAAQ;EACnC,IAAI,oBAAoB,KAAK,KAAK,OAAO,KAAK,eAAe,CAAC,CAAC,SAAS,GAAG,aAAa,KAAK,sBAAsB,0BAA0B,eAAe,GAAG;EAC/J,MAAM,cAAc,KAAK,aAAa,KAAK,IAAI,EAAE;EACjD,MAAM,KAAK,YAAY,mBAAmB,IAAI,EAAE,mBAAmB,eAAe,GAAG,EAAE,IAAI,WAAW,sBAAsB,YAAY,GAAG;CAC5I;CACA,OAAO,KAAK,MAAM,KAAK,IAAI,EAAE;AAC9B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as AnyExpression } from "./types-Sh5HuaZE-
|
|
2
|
-
import { o as Expression, x as ScopeField } from "./expression-Ck1wys3N-
|
|
1
|
+
import { c as AnyExpression } from "./types-Sh5HuaZE-Dq4AUzl7.mjs";
|
|
2
|
+
import { o as Expression, x as ScopeField } from "./expression-Ck1wys3N-CBfr-HMG.mjs";
|
|
3
3
|
//#region ../../../2-sql/4-lanes/relational-core/dist/expression-CNBCbbzU.d.mts
|
|
4
4
|
//#region src/expression-impl.d.ts
|
|
5
5
|
/**
|
|
@@ -19,4 +19,4 @@ declare class ExpressionImpl<T extends ScopeField = ScopeField> implements Expre
|
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
21
|
export { ExpressionImpl as t };
|
|
22
|
-
//# sourceMappingURL=expression-CNBCbbzU-
|
|
22
|
+
//# sourceMappingURL=expression-CNBCbbzU-DnvLZYf4.d.mts.map
|
package/dist/{expression-CNBCbbzU-BG3rv8Wb.d.mts.map → expression-CNBCbbzU-DnvLZYf4.d.mts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression-CNBCbbzU-
|
|
1
|
+
{"version":3,"file":"expression-CNBCbbzU-DnvLZYf4.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/expression-CNBCbbzU.d.mts"],"mappings":";;;;;;;;;;;cAUc,eAAe,UAAU,aAAa,uBAAuB,WAAW;mBACnE;mBACA;WACR,YAAY;EACrB,YAAY,KAAK,eAAe,YAAY,GAAG,gBAAgB;EAC/D,YAAY;EACZ,sBAAsB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l as SqlStorage } from "./sql-storage-BTlJLUID-CGy3wuH4.mjs";
|
|
2
|
-
import {
|
|
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-
|
|
2
|
+
import { w as QueryOperationReturn } from "./types-zwKzjyma-CxZkmkUI.mjs";
|
|
3
|
+
import "./types-HD5m-h8B.mjs";
|
|
4
|
+
import { t as SqlLoweringSpec } from "./index-CJlr0Eja.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-Dq4AUzl7.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-Bv-SBtFA.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/expression-Ck1wys3N.d.mts
|
|
@@ -275,4 +275,4 @@ declare function createRawSql(adapter: RawCodecInferer, planContext: RawPlanCont
|
|
|
275
275
|
declare function createRawSql(adapter: RawCodecInferer): RawSqlTag;
|
|
276
276
|
//#endregion
|
|
277
277
|
export { TraitExpression as C, isExpression as D, createRawSql as E, param as O, StorageColumnScopeField as S, codecOf 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, toExpr as k, 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, buildOperation as w, ScopeField as x, RawSqlTag as y };
|
|
278
|
-
//# sourceMappingURL=expression-Ck1wys3N-
|
|
278
|
+
//# sourceMappingURL=expression-Ck1wys3N-CBfr-HMG.d.mts.map
|
package/dist/{expression-Ck1wys3N-RNyviMcU.d.mts.map → expression-Ck1wys3N-CBfr-HMG.d.mts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression-Ck1wys3N-
|
|
1
|
+
{"version":3,"file":"expression-Ck1wys3N-CBfr-HMG.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/expression-Ck1wys3N.d.mts"],"mappings":";;;;;;;;;;;KAQK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;;KAGL,wBAAwB;WAClB;WACA;;EAET,SAAS;EACT,UAAU;KACP;EACH;;EAEA;IACE;KACC,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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,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"}
|
|
@@ -2,7 +2,7 @@ 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
3
|
import { t as Index } from "./sql-index-ByAAE7K8-BpbPBWPD.mjs";
|
|
4
4
|
import { n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-WXeVNycx-BCwDhdq5.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { M as SqlModelFieldStorage, N as SqlModelStorage, x as ForeignKeyOptions } from "./types-zwKzjyma-CxZkmkUI.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-2LNVsQ2j.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factories-
|
|
1
|
+
{"version":3,"file":"factories-2LNVsQ2j.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"}
|
package/dist/family.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-wSUswl-4.mjs";
|
|
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 backfillOfDefaultedField, A as SchemaTables, At as rowsWithoutValueFailure, B as StatementColumn, Bt as temporalStringAuthoringPresets, C as ModelStorageEffect, Ct as plannerFailure, D as PlannedStatements, Dt as requiredColumnsOfMigration, E as PlanFieldEventOperationsOptions, Et as requiredColumnOf, F as SqlPslBuildContext, Ft as sqlOfSlot, G as TableNameCaseGuardTable, H as SubjectStorage, Ht as unknownCallNames, I as SqlQuote, It as sqlTypeLookupsOf, J as TableRenameRequest, K as TableRename, L as SqlQuotingRules, Lt as storageNameOfOperation, M as SqlControlFamilyInstance, Mt as runnerFailure, N as SqlControlTargetDescriptor, Nt as runnerSuccess, O as RequiredColumn, Ot as resolveColumnRenameAgainst, P as SqlDescribedContractSpace, Pt as slotSource, Q as assembleAuthoringContributions, R as SqlSlot, Rt as subjectsOfCalls, S as MigrationPlannerResult, St as planStatements, T as NoTable, Tt as requiredColumnMeta, U as SuppressionRecord, Ut as unmatchedColumnRename, V as StatementPlanningTarget, Vt as unconvertedFieldOf, W as TABLE_NAME_CASE_CHANGED_CODE, Wt as unmatchedTableRename, Y as TargetMigrationsCapability, Z as appliedStatementsInOrder, _ as MigrationOperationPolicy, _t as modelRenameStorageEffect, a as ColumnRename, at as convertedColumnMeta, b as MigrationPlanner, bt as planFieldEventCalls, c as ControlPolicySubject, ct as createSqlTextSources, d as DefaultResolver, dt as extractCodecControlHooks, et as checkSqlExpressionText, f as FieldEventCall, ft as fieldEventStorage, g as MigrationOperationClass, gt as isUnfilledSlot, h as INIT_ADDITIVE_POLICY, ht as fieldStatementColumns, i as ColumnOnOneSide, it as controlPolicyForCall, j as SingleOperationCall, jt as rowsWithoutValueSummary, k as RequiredColumnMark, kt as resolveTableRenameAgainst, l as ConvertedColumn, lt as detectDestructiveChanges, m as FieldStorageEffect, mt as fieldRenameStorageEffect, n as CallSubjects, nt as contractNamespaceToSchemaIR, o as ColumnRenameRequest, ot as convertedColumnOf, p as FieldStatementColumns, pt as fieldOfColumn, q as TableRenameByHand, r as CallWithCompanions, rt as contractToSchemaIR, s as ContractToSchemaIROptions, st as createMigrationPlan, t as COLUMN_RENAME_UNMATCHED_CODE, tt as columnTakesTemporaryValue, u as DefaultRenderer, ut as detectTableNameCaseChanges, v as MigrationPlan, vt as partitionCallsByControlPolicy, w as ModelTable, wt as plannerSuccess, x as MigrationPlannerConflict, xt as planFieldEventOperations, y as MigrationPlanOperation, yt as partitionIssuesByControlPolicy, z as SqlTextSources, zt as temporalCodecPresetWithPrecision } 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-
|
|
12
|
-
import {
|
|
13
|
-
import { t as toEnumMemberName } from "./psl-build-
|
|
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-
|
|
2
|
+
import { h as checkSqlDefaultText } from "./validators-BifwoR5e.mjs";
|
|
3
|
+
import { a as arraysEqual, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-4WUzQP7G.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-DTQ2rnLF.mjs";
|
|
5
|
+
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-DAcuiQPU.mjs";
|
|
6
|
+
import { $ as backfillOfDefaultedField, A as SchemaTables, At as rowsWithoutValueFailure, B as StatementColumn, Bt as temporalStringAuthoringPresets, C as ModelStorageEffect, Ct as plannerFailure, D as PlannedStatements, Dt as requiredColumnsOfMigration, E as PlanFieldEventOperationsOptions, Et as requiredColumnOf, F as SqlPslBuildContext, Ft as sqlOfSlot, G as TableNameCaseGuardTable, H as SubjectStorage, Ht as unknownCallNames, I as SqlQuote, It as sqlTypeLookupsOf, J as TableRenameRequest, K as TableRename, L as SqlQuotingRules, Lt as storageNameOfOperation, M as SqlControlFamilyInstance, Mt as runnerFailure, N as SqlControlTargetDescriptor, Nt as runnerSuccess, O as RequiredColumn, Ot as resolveColumnRenameAgainst, P as SqlDescribedContractSpace, Pt as slotSource, Q as assembleAuthoringContributions, R as SqlSlot, Rt as subjectsOfCalls, S as MigrationPlannerResult, St as planStatements, T as NoTable, Tt as requiredColumnMeta, U as SuppressionRecord, Ut as unmatchedColumnRename, V as StatementPlanningTarget, Vt as unconvertedFieldOf, W as TABLE_NAME_CASE_CHANGED_CODE, Wt as unmatchedTableRename, Y as TargetMigrationsCapability, Z as appliedStatementsInOrder, _ as MigrationOperationPolicy, _t as modelRenameStorageEffect, a as ColumnRename, at as convertedColumnMeta, b as MigrationPlanner, bt as planFieldEventCalls, c as ControlPolicySubject, ct as createSqlTextSources, d as DefaultResolver, dt as extractCodecControlHooks, et as checkSqlExpressionText, f as FieldEventCall, ft as fieldEventStorage, g as MigrationOperationClass, gt as isUnfilledSlot, h as INIT_ADDITIVE_POLICY, ht as fieldStatementColumns, i as ColumnOnOneSide, it as controlPolicyForCall, j as SingleOperationCall, jt as rowsWithoutValueSummary, k as RequiredColumnMark, kt as resolveTableRenameAgainst, l as ConvertedColumn, lt as detectDestructiveChanges, m as FieldStorageEffect, mt as fieldRenameStorageEffect, n as CallSubjects, nt as contractNamespaceToSchemaIR, o as ColumnRenameRequest, ot as convertedColumnOf, p as FieldStatementColumns, pt as fieldOfColumn, q as TableRenameByHand, r as CallWithCompanions, rt as contractToSchemaIR, s as ContractToSchemaIROptions, st as createMigrationPlan, t as COLUMN_RENAME_UNMATCHED_CODE, tt as columnTakesTemporaryValue, u as DefaultRenderer, ut as detectTableNameCaseChanges, v as MigrationPlan, vt as partitionCallsByControlPolicy, w as ModelTable, wt as plannerSuccess, x as MigrationPlannerConflict, xt as planFieldEventOperations, y as MigrationPlanOperation, yt as partitionIssuesByControlPolicy, z as SqlTextSources, zt as temporalCodecPresetWithPrecision } from "./control-Ced1D4yz.mjs";
|
|
7
|
+
import "./control-adapter-pn8u9o3J.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-Cx7qTc2x.mjs";
|
|
9
|
+
import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-BEQwEnRB.mjs";
|
|
10
|
+
import { t as SqlMigration } from "./migration-Cc102YUu.mjs";
|
|
11
|
+
import "./pack-DI4Nur5d.mjs";
|
|
12
|
+
import { n as DefaultMappingResult, r as mapDefault, t as DefaultMappingOptions } from "./default-mapping-B8_APB1M-CWcTmSQW.mjs";
|
|
13
|
+
import { a as PslTypeCall, c as inferredTypeConstructors, i as IntrospectedTable, l as pslTypeArgumentText, n as InferredTypeConstructor, o as fewestArgumentsCall, r as InferredTypeConstructors, s as inferColumnTypes, t as ColumnTypeOf, u as toEnumMemberName } from "./psl-build-PXVtl8gM.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-g040TwAr.mjs";
|
|
15
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
|
-
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultRenderer, type DefaultResolver, type EnumInfo, type ExecuteRequestLowerer, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, 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
|
|
17
|
+
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ColumnTypeOf, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultRenderer, type DefaultResolver, type EnumInfo, type ExecuteRequestLowerer, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, INIT_ADDITIVE_POLICY, type InferredRelations, type InferredTypeConstructor, type InferredTypeConstructors, type IntrospectedTable, 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 PslTypeCall, type RelationField, type RequiredColumn, type RequiredColumnMark, 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 SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementPlanningTarget, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, pslTypeArgumentText, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveStorageTable, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, 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-CfUrQdiv.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-CU6ViTDO.mjs";
|
|
4
|
+
import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-DDaAVCQr-DFIIkxQr.mjs";
|
|
5
5
|
import { n as parseContractMarkerRow } from "./verify-BVk5bjdH-dq5M4iIh.mjs";
|
|
6
|
-
import { A as plannerFailure, B as runnerSuccess, C as isUnfilledSlot, D as planFieldEventCalls, E as partitionIssuesByControlPolicy, F as resolveColumnRenameAgainst, G as subjectsOfCalls, H as sqlOfSlot, I as resolveTableRenameAgainst, J as unconvertedFieldOf, K as temporalCodecPresetWithPrecision, L as rowsWithoutValueFailure, M as requiredColumnMeta, N as requiredColumnOf, O as planFieldEventOperations, P as requiredColumnsOfMigration, R as rowsWithoutValueSummary, S as fieldStatementColumns, T as partitionCallsByControlPolicy, U as sqlTypeLookupsOf, V as slotSource, W as storageNameOfOperation, X as unmatchedColumnRename, Y as unknownCallNames, Z as unmatchedTableRename, _ as detectDestructiveChanges, a as assembleAuthoringContributions, b as fieldOfColumn, c as columnTakesTemporaryValue, d as controlPolicyForCall, g as createSqlTextSources, h as createMigrationPlan, i as appliedStatementsInOrder, j as plannerSuccess, k as planStatements, l as contractNamespaceToSchemaIR, m as convertedColumnOf, n as INIT_ADDITIVE_POLICY, o as backfillOfDefaultedField, p as convertedColumnMeta, q as temporalStringAuthoringPresets, r as TABLE_NAME_CASE_CHANGED_CODE, s as checkSqlExpressionText, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractToSchemaIR, v as detectTableNameCaseChanges, w as modelRenameStorageEffect, x as fieldRenameStorageEffect, y as fieldEventStorage, z as runnerFailure } from "./control-
|
|
6
|
+
import { A as plannerFailure, B as runnerSuccess, C as isUnfilledSlot, D as planFieldEventCalls, E as partitionIssuesByControlPolicy, F as resolveColumnRenameAgainst, G as subjectsOfCalls, H as sqlOfSlot, I as resolveTableRenameAgainst, J as unconvertedFieldOf, K as temporalCodecPresetWithPrecision, L as rowsWithoutValueFailure, M as requiredColumnMeta, N as requiredColumnOf, O as planFieldEventOperations, P as requiredColumnsOfMigration, R as rowsWithoutValueSummary, S as fieldStatementColumns, T as partitionCallsByControlPolicy, U as sqlTypeLookupsOf, V as slotSource, W as storageNameOfOperation, X as unmatchedColumnRename, Y as unknownCallNames, Z as unmatchedTableRename, _ as detectDestructiveChanges, a as assembleAuthoringContributions, b as fieldOfColumn, c as columnTakesTemporaryValue, d as controlPolicyForCall, g as createSqlTextSources, h as createMigrationPlan, i as appliedStatementsInOrder, j as plannerSuccess, k as planStatements, l as contractNamespaceToSchemaIR, m as convertedColumnOf, n as INIT_ADDITIVE_POLICY, o as backfillOfDefaultedField, p as convertedColumnMeta, q as temporalStringAuthoringPresets, r as TABLE_NAME_CASE_CHANGED_CODE, s as checkSqlExpressionText, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractToSchemaIR, v as detectTableNameCaseChanges, w as modelRenameStorageEffect, x as fieldRenameStorageEffect, y as fieldEventStorage, z as runnerFailure } from "./control-DiLXYDZc.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 {
|
|
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 { a as pslTypeArgumentText, i as mapDefault, n as inferColumnTypes, r as inferredTypeConstructors, t as fewestArgumentsCall } from "./psl-build-8bx9WTUt.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-CG0_wra6.mjs";
|
|
13
13
|
import { i as timestampNowRuntimeGenerator, n as resolveDomainModel, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./runtime-Z3nD7ix1.mjs";
|
|
14
|
-
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, SqlMigration as Migration, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, TABLE_NAME_CASE_CHANGED_CODE, UNBOUND_DOMAIN_NAMESPACE_ID, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, inferRelations, isUnfilledSlot, mapDefault, modelRenameStorageEffect, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveStorageTable, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff };
|
|
14
|
+
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, SqlMigration as Migration, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, TABLE_NAME_CASE_CHANGED_CODE, UNBOUND_DOMAIN_NAMESPACE_ID, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, pslTypeArgumentText, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveStorageTable, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, 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-4WUzQP7G.mjs";
|
|
2
|
+
import "./control-adapter-pn8u9o3J.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 backfillOfDefaultedField, A as SchemaTables, At as rowsWithoutValueFailure, B as StatementColumn, Bt as temporalStringAuthoringPresets, C as ModelStorageEffect, Ct as plannerFailure, D as PlannedStatements, Dt as requiredColumnsOfMigration, E as PlanFieldEventOperationsOptions, Et as requiredColumnOf, F as SqlPslBuildContext, Ft as sqlOfSlot, G as TableNameCaseGuardTable, H as SubjectStorage, Ht as unknownCallNames, I as SqlQuote, It as sqlTypeLookupsOf, J as TableRenameRequest, K as TableRename, L as SqlQuotingRules, Lt as storageNameOfOperation, M as SqlControlFamilyInstance, Mt as runnerFailure, N as SqlControlTargetDescriptor, Nt as runnerSuccess, O as RequiredColumn, Ot as resolveColumnRenameAgainst, P as SqlDescribedContractSpace, Pt as slotSource, Q as assembleAuthoringContributions, R as SqlSlot, Rt as subjectsOfCalls, S as MigrationPlannerResult, St as planStatements, T as NoTable, Tt as requiredColumnMeta, U as SuppressionRecord, Ut as unmatchedColumnRename, V as StatementPlanningTarget, Vt as unconvertedFieldOf, W as TABLE_NAME_CASE_CHANGED_CODE, Wt as unmatchedTableRename, X as _default, Y as TargetMigrationsCapability, Z as appliedStatementsInOrder, _ as MigrationOperationPolicy, _t as modelRenameStorageEffect, a as ColumnRename, at as convertedColumnMeta, b as MigrationPlanner, bt as planFieldEventCalls, c as ControlPolicySubject, ct as createSqlTextSources, d as DefaultResolver, dt as extractCodecControlHooks, et as checkSqlExpressionText, f as FieldEventCall, ft as fieldEventStorage, g as MigrationOperationClass, gt as isUnfilledSlot, h as INIT_ADDITIVE_POLICY, ht as fieldStatementColumns, i as ColumnOnOneSide, it as controlPolicyForCall, j as SingleOperationCall, jt as rowsWithoutValueSummary, k as RequiredColumnMark, kt as resolveTableRenameAgainst, l as ConvertedColumn, lt as detectDestructiveChanges, m as FieldStorageEffect, mt as fieldRenameStorageEffect, n as CallSubjects, nt as contractNamespaceToSchemaIR, o as ColumnRenameRequest, ot as convertedColumnOf, p as FieldStatementColumns, pt as fieldOfColumn, q as TableRenameByHand, r as CallWithCompanions, rt as contractToSchemaIR, s as ContractToSchemaIROptions, st as createMigrationPlan, t as COLUMN_RENAME_UNMATCHED_CODE, tt as columnTakesTemporaryValue, u as DefaultRenderer, ut as detectTableNameCaseChanges, v as MigrationPlan, vt as partitionCallsByControlPolicy, w as ModelTable, wt as plannerSuccess, x as MigrationPlannerConflict, xt as planFieldEventOperations, y as MigrationPlanOperation, yt as partitionIssuesByControlPolicy, z as SqlTextSources, zt as temporalCodecPresetWithPrecision } from "./control-
|
|
1
|
+
import { h as checkSqlDefaultText } from "./validators-BifwoR5e.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-DTQ2rnLF.mjs";
|
|
3
|
+
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-DAcuiQPU.mjs";
|
|
4
|
+
import { $ as backfillOfDefaultedField, A as SchemaTables, At as rowsWithoutValueFailure, B as StatementColumn, Bt as temporalStringAuthoringPresets, C as ModelStorageEffect, Ct as plannerFailure, D as PlannedStatements, Dt as requiredColumnsOfMigration, E as PlanFieldEventOperationsOptions, Et as requiredColumnOf, F as SqlPslBuildContext, Ft as sqlOfSlot, G as TableNameCaseGuardTable, H as SubjectStorage, Ht as unknownCallNames, I as SqlQuote, It as sqlTypeLookupsOf, J as TableRenameRequest, K as TableRename, L as SqlQuotingRules, Lt as storageNameOfOperation, M as SqlControlFamilyInstance, Mt as runnerFailure, N as SqlControlTargetDescriptor, Nt as runnerSuccess, O as RequiredColumn, Ot as resolveColumnRenameAgainst, P as SqlDescribedContractSpace, Pt as slotSource, Q as assembleAuthoringContributions, R as SqlSlot, Rt as subjectsOfCalls, S as MigrationPlannerResult, St as planStatements, T as NoTable, Tt as requiredColumnMeta, U as SuppressionRecord, Ut as unmatchedColumnRename, V as StatementPlanningTarget, Vt as unconvertedFieldOf, W as TABLE_NAME_CASE_CHANGED_CODE, Wt as unmatchedTableRename, X as _default, Y as TargetMigrationsCapability, Z as appliedStatementsInOrder, _ as MigrationOperationPolicy, _t as modelRenameStorageEffect, a as ColumnRename, at as convertedColumnMeta, b as MigrationPlanner, bt as planFieldEventCalls, c as ControlPolicySubject, ct as createSqlTextSources, d as DefaultResolver, dt as extractCodecControlHooks, et as checkSqlExpressionText, f as FieldEventCall, ft as fieldEventStorage, g as MigrationOperationClass, gt as isUnfilledSlot, h as INIT_ADDITIVE_POLICY, ht as fieldStatementColumns, i as ColumnOnOneSide, it as controlPolicyForCall, j as SingleOperationCall, jt as rowsWithoutValueSummary, k as RequiredColumnMark, kt as resolveTableRenameAgainst, l as ConvertedColumn, lt as detectDestructiveChanges, m as FieldStorageEffect, mt as fieldRenameStorageEffect, n as CallSubjects, nt as contractNamespaceToSchemaIR, o as ColumnRenameRequest, ot as convertedColumnOf, p as FieldStatementColumns, pt as fieldOfColumn, q as TableRenameByHand, r as CallWithCompanions, rt as contractToSchemaIR, s as ContractToSchemaIROptions, st as createMigrationPlan, t as COLUMN_RENAME_UNMATCHED_CODE, tt as columnTakesTemporaryValue, u as DefaultRenderer, ut as detectTableNameCaseChanges, v as MigrationPlan, vt as partitionCallsByControlPolicy, w as ModelTable, wt as plannerSuccess, x as MigrationPlannerConflict, xt as planFieldEventOperations, y as MigrationPlanOperation, yt as partitionIssuesByControlPolicy, z as SqlTextSources, zt as temporalCodecPresetWithPrecision } from "./control-Ced1D4yz.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 ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultRenderer, type DefaultResolver, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, 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 RequiredColumn, type RequiredColumnMark, 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 SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementPlanningTarget, type StorageTypePlanResult, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, _default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, unconvertedFieldOf, 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 plannerFailure, B as runnerSuccess, C as isUnfilledSlot, D as planFieldEventCalls, E as partitionIssuesByControlPolicy, F as resolveColumnRenameAgainst, G as subjectsOfCalls, H as sqlOfSlot, I as resolveTableRenameAgainst, J as unconvertedFieldOf, K as temporalCodecPresetWithPrecision, L as rowsWithoutValueFailure, M as requiredColumnMeta, N as requiredColumnOf, O as planFieldEventOperations, P as requiredColumnsOfMigration, R as rowsWithoutValueSummary, S as fieldStatementColumns, T as partitionCallsByControlPolicy, U as sqlTypeLookupsOf, V as slotSource, W as storageNameOfOperation, X as unmatchedColumnRename, Y as unknownCallNames, Z as unmatchedTableRename, _ as detectDestructiveChanges, a as assembleAuthoringContributions, b as fieldOfColumn, c as columnTakesTemporaryValue, d as controlPolicyForCall, f as control_default, g as createSqlTextSources, h as createMigrationPlan, i as appliedStatementsInOrder, j as plannerSuccess, k as planStatements, l as contractNamespaceToSchemaIR, m as convertedColumnOf, n as INIT_ADDITIVE_POLICY, o as backfillOfDefaultedField, p as convertedColumnMeta, q as temporalStringAuthoringPresets, r as TABLE_NAME_CASE_CHANGED_CODE, s as checkSqlExpressionText, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractToSchemaIR, v as detectTableNameCaseChanges, w as modelRenameStorageEffect, x as fieldRenameStorageEffect, y as fieldEventStorage, z as runnerFailure } from "./control-
|
|
1
|
+
import { n as checkSqlDefaultText } from "./validators-CfUrQdiv.mjs";
|
|
2
|
+
import { s as extractCodecControlHooks } from "./schema-verify-DIfHSB4I-CU6ViTDO.mjs";
|
|
3
|
+
import { A as plannerFailure, B as runnerSuccess, C as isUnfilledSlot, D as planFieldEventCalls, E as partitionIssuesByControlPolicy, F as resolveColumnRenameAgainst, G as subjectsOfCalls, H as sqlOfSlot, I as resolveTableRenameAgainst, J as unconvertedFieldOf, K as temporalCodecPresetWithPrecision, L as rowsWithoutValueFailure, M as requiredColumnMeta, N as requiredColumnOf, O as planFieldEventOperations, P as requiredColumnsOfMigration, R as rowsWithoutValueSummary, S as fieldStatementColumns, T as partitionCallsByControlPolicy, U as sqlTypeLookupsOf, V as slotSource, W as storageNameOfOperation, X as unmatchedColumnRename, Y as unknownCallNames, Z as unmatchedTableRename, _ as detectDestructiveChanges, a as assembleAuthoringContributions, b as fieldOfColumn, c as columnTakesTemporaryValue, d as controlPolicyForCall, f as control_default, g as createSqlTextSources, h as createMigrationPlan, i as appliedStatementsInOrder, j as plannerSuccess, k as planStatements, l as contractNamespaceToSchemaIR, m as convertedColumnOf, n as INIT_ADDITIVE_POLICY, o as backfillOfDefaultedField, p as convertedColumnMeta, q as temporalStringAuthoringPresets, r as TABLE_NAME_CASE_CHANGED_CODE, s as checkSqlExpressionText, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractToSchemaIR, v as detectTableNameCaseChanges, w as modelRenameStorageEffect, x as fieldRenameStorageEffect, y as fieldEventStorage, z as runnerFailure } from "./control-DiLXYDZc.mjs";
|
|
4
4
|
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, TABLE_NAME_CASE_CHANGED_CODE, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, control_default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, unconvertedFieldOf, 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-4WUzQP7G.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-Cx7qTc2x.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-CU6ViTDO.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-BEQwEnRB.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-DFIIkxQr.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-Cc102YUu.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-DI4Nur5d.mjs";
|
|
2
2
|
export { sqlFamilyPack as default };
|
package/dist/family__pack.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-0Iv2zdwS-
|
|
1
|
+
import { v as sqlAttributeSpecs } from "./psl-field-resolution-4U7Plpfb-CCfgoBAa.mjs";
|
|
2
|
+
import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-0Iv2zdwS-BG0FZNDM.mjs";
|
|
3
3
|
//#region ../../../2-sql/9-family/dist/pack.mjs
|
|
4
4
|
const sqlFamilyPack = {
|
|
5
5
|
kind: "family",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as toEnumMemberName } from "./psl-build-
|
|
3
|
-
export { type DefaultMappingOptions, type DefaultMappingResult, type
|
|
1
|
+
import { n as DefaultMappingResult, r as mapDefault, t as DefaultMappingOptions } from "./default-mapping-B8_APB1M-CWcTmSQW.mjs";
|
|
2
|
+
import { a as PslTypeCall, c as inferredTypeConstructors, i as IntrospectedTable, l as pslTypeArgumentText, n as InferredTypeConstructor, o as fewestArgumentsCall, r as InferredTypeConstructors, s as inferColumnTypes, t as ColumnTypeOf, u as toEnumMemberName } from "./psl-build-PXVtl8gM.mjs";
|
|
3
|
+
export { type ColumnTypeOf, type DefaultMappingOptions, type DefaultMappingResult, type InferredTypeConstructor, type InferredTypeConstructors, type IntrospectedTable, type PslTypeCall, fewestArgumentsCall, inferColumnTypes, inferredTypeConstructors, mapDefault, pslTypeArgumentText, toEnumMemberName };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { s as toEnumMemberName } from "./psl-names-C3cwe0rg-CsuHOV7E.mjs";
|
|
2
|
-
import {
|
|
3
|
-
export { mapDefault, toEnumMemberName };
|
|
2
|
+
import { a as pslTypeArgumentText, i as mapDefault, n as inferColumnTypes, r as inferredTypeConstructors, t as fewestArgumentsCall } from "./psl-build-8bx9WTUt.mjs";
|
|
3
|
+
export { fewestArgumentsCall, inferColumnTypes, inferredTypeConstructors, mapDefault, pslTypeArgumentText, toEnumMemberName };
|
|
@@ -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-g040TwAr.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-CG0_wra6.mjs";
|
|
2
2
|
export { buildChildRelationField, deriveBackRelationFieldName, deriveRelationFieldName, inferRelations, pluralize, toEnumName, toFieldName, toModelName };
|
|
@@ -2,8 +2,8 @@ import { a as ForeignKeyReferenceInput, n as ForeignKeyIndex, o as ReferentialAc
|
|
|
2
2
|
import { i as UniqueConstraintInput, n as PrimaryKeyInput } from "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
|
|
3
3
|
import { r as IndexInput } from "./sql-index-ByAAE7K8-BpbPBWPD.mjs";
|
|
4
4
|
import { a as IndexTypeRegistry } from "./index-types-H1O43iYT-ONvDbszL.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import "./types-
|
|
5
|
+
import { h as SqlIndexIR } from "./types-C-z8HyiZ-1Nhw0pHj.mjs";
|
|
6
|
+
import "./types-CJK7FBdw.mjs";
|
|
7
7
|
import { AuthoringWarningSink } from "@prisma/orm-framework/components/authoring";
|
|
8
8
|
//#region ../../../2-sql/1-core/contract/dist/foreign-key-materialization.d.mts
|
|
9
9
|
//#region src/index-equivalence.d.ts
|
|
@@ -95,4 +95,4 @@ declare function defaultForeignKeyIndex(tableName: string, columns: readonly str
|
|
|
95
95
|
}): ForeignKeyIndex | undefined;
|
|
96
96
|
//#endregion
|
|
97
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 };
|
|
98
|
-
//# sourceMappingURL=foreign-key-materialization-
|
|
98
|
+
//# sourceMappingURL=foreign-key-materialization-DJ6uhBba.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foreign-key-materialization-
|
|
1
|
+
{"version":3,"file":"foreign-key-materialization-DJ6uhBba.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-DyoakLGY.mjs → foreign-key-materialization-DibQ9Hjg.mjs}
RENAMED
|
@@ -2,7 +2,7 @@ import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
|
|
|
2
2
|
import { a as rendersIndexBody, t as accessMethodOf } from "./index-types-pC_5vADQ-TTUXAfmL.mjs";
|
|
3
3
|
import { g as truncateToWireNamePrefixBytes, l as nameOf, o as defaultIndexName } from "./naming-CT8tRisJ-DLHKo0Hm.mjs";
|
|
4
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-
|
|
5
|
+
import { i as leadingBackingObjectName, n as identicalIndexes, o as servingKey, r as indexNodeOf, s as startsWithColumns, t as derivedBackingIndexIsRedundant } from "./index-equivalence-DswCiq5l-DlC2yTK1.mjs";
|
|
6
6
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
7
7
|
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
8
8
|
import { asNamespaceId } from "@prisma/orm-framework/contract/types";
|
|
@@ -284,4 +284,4 @@ function foreignKeyIndexOf(backing) {
|
|
|
284
284
|
//#endregion
|
|
285
285
|
export { materializeForeignKeysAndIndexes as a, defaultForeignKeyIndex as i, declaredBackingObjectName as n, declaredIndexesServeForeignKey as r, FOREIGN_KEY_INDEX_UNRESOLVED as t };
|
|
286
286
|
|
|
287
|
-
//# sourceMappingURL=foreign-key-materialization-
|
|
287
|
+
//# sourceMappingURL=foreign-key-materialization-DibQ9Hjg.mjs.map
|