@prisma/orm-family-sql 8.0.0-rc.14-dev.34 → 8.0.0-rc.14-dev.36
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-CQZn-6Wd.mjs → ast-B2W9tHy1.mjs} +6 -6
- package/dist/ast-B2W9tHy1.mjs.map +1 -0
- package/dist/{ast-BUbHXpzG.d.mts → ast-Foar49zl.d.mts} +3 -3
- package/dist/{ast-BUbHXpzG.d.mts.map → ast-Foar49zl.d.mts.map} +1 -1
- package/dist/{authoring-entity-types-CZ-vdwYS-C25VGQVB.d.mts → authoring-entity-types-CZ-vdwYS-BDKo-VHB.d.mts} +2 -2
- package/dist/{authoring-entity-types-CZ-vdwYS-C25VGQVB.d.mts.map → authoring-entity-types-CZ-vdwYS-BDKo-VHB.d.mts.map} +1 -1
- package/dist/{authoring-type-constructors-dihiQslc-hldmqa1r.mjs → authoring-type-constructors-dihiQslc-BcIPoPEn.mjs} +2 -2
- package/dist/{authoring-type-constructors-dihiQslc-hldmqa1r.mjs.map → authoring-type-constructors-dihiQslc-BcIPoPEn.mjs.map} +1 -1
- package/dist/builder.d.mts +2 -2
- package/dist/builder__runtime.d.mts +9 -9
- package/dist/builder__runtime.mjs +1 -1
- package/dist/builder__types.d.mts +2 -2
- package/dist/{codec-descriptor-registry-BW0REwkz.mjs → codec-descriptor-registry-DoGFktu5.mjs} +2 -2
- package/dist/{codec-descriptor-registry-BW0REwkz.mjs.map → codec-descriptor-registry-DoGFktu5.mjs.map} +1 -1
- package/dist/{config-types-ump1oN82.mjs → config-types-BvoqAKkw.mjs} +2 -2
- package/dist/{config-types-ump1oN82.mjs.map → config-types-BvoqAKkw.mjs.map} +1 -1
- package/dist/{config-types-Dxhmk983.d.mts → config-types-LClcQOkt.d.mts} +4 -4
- package/dist/{config-types-Dxhmk983.d.mts.map → config-types-LClcQOkt.d.mts.map} +1 -1
- package/dist/{contract-builder-CQvwPGAW.mjs → contract-builder-BRrG-DWN.mjs} +7 -8
- package/dist/contract-builder-BRrG-DWN.mjs.map +1 -0
- package/dist/{contract-builder-BXxFihYc.d.mts → contract-builder-DoT-AH8l.d.mts} +24 -27
- package/dist/{contract-builder-BXxFihYc.d.mts.map → contract-builder-DoT-AH8l.d.mts.map} +1 -1
- package/dist/contract-emitter.mjs +1 -1
- package/dist/contract-prisma7__provider.d.mts +2 -2
- package/dist/contract-prisma7__provider.mjs +4 -4
- package/dist/contract-psl.d.mts +3 -3
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +2 -2
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__provider.d.mts +2 -2
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +3 -3
- 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 +2 -2
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/{contract-view-CH3F_tqg.d.mts → contract-view-Cd6_tdxU.d.mts} +2 -2
- package/dist/{contract-view-CH3F_tqg.d.mts.map → contract-view-Cd6_tdxU.d.mts.map} +1 -1
- package/dist/contract.d.mts +12 -13
- package/dist/contract.mjs +8 -8
- package/dist/contract__contract-view.d.mts +1 -1
- package/dist/contract__data-type-support.d.mts +1 -1
- package/dist/contract__data-type-support.mjs +1 -1
- package/dist/contract__entity-kinds.d.mts +1 -1
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/contract__factories.d.mts +1 -1
- package/dist/contract__factories.mjs +1 -1
- package/dist/contract__index-type-validation.d.mts +1 -1
- package/dist/contract__resolve-storage-table.d.mts +1 -1
- package/dist/contract__types.d.mts +5 -5
- package/dist/contract__types.mjs +3 -3
- package/dist/contract__validators.d.mts +2 -2
- package/dist/contract__validators.mjs +3 -3
- package/dist/{control-AYMohAq_.mjs → control-C4PkND9K.mjs} +151 -91
- package/dist/control-C4PkND9K.mjs.map +1 -0
- package/dist/{control-Bpk8PtSL.d.mts → control-DQImoKde.d.mts} +23 -26
- package/dist/control-DQImoKde.d.mts.map +1 -0
- package/dist/control-adapter-BQJjVR9C.d.mts +1 -0
- package/dist/{control-adapter-BVN98SzR-C-H_T7s-.d.mts → control-adapter-CkFfBVei-Bz63KBJc.d.mts} +18 -10
- package/dist/{control-adapter-BVN98SzR-C-H_T7s-.d.mts.map → control-adapter-CkFfBVei-Bz63KBJc.d.mts.map} +1 -1
- package/dist/{data-type-support-rpD1jyZd.mjs → data-type-support-DeL6iJt8.mjs} +2 -2
- package/dist/{data-type-support-rpD1jyZd.mjs.map → data-type-support-DeL6iJt8.mjs.map} +1 -1
- package/dist/{data-type-support-B_Dr1cxB.d.mts → data-type-support-DoxtCfXq.d.mts} +3 -3
- package/dist/{data-type-support-B_Dr1cxB.d.mts.map → data-type-support-DoxtCfXq.d.mts.map} +1 -1
- package/dist/{db-DLjWu9-f-T8QbxDGY.d.mts → db-DLjWu9-f-Cw18jt8N.d.mts} +9 -9
- package/dist/{db-DLjWu9-f-T8QbxDGY.d.mts.map → db-DLjWu9-f-Cw18jt8N.d.mts.map} +1 -1
- package/dist/{ddl-types-BUqZdoZK-vyWnW2PW.d.mts → ddl-types-CWIiJxsH-BixiHVIr.d.mts} +5 -24
- package/dist/ddl-types-CWIiJxsH-BixiHVIr.d.mts.map +1 -0
- package/dist/{derived-checks-CILnJKoa-D42YRW01.mjs → derived-checks-CsB3zLJ--C7ymzzbW.mjs} +14 -17
- package/dist/derived-checks-CsB3zLJ--C7ymzzbW.mjs.map +1 -0
- package/dist/{derived-checks-DPdD01O0-BSShXJmp.d.mts → derived-checks-DPdD01O0-CABDLeK0.d.mts} +3 -3
- package/dist/{derived-checks-DPdD01O0-BSShXJmp.d.mts.map → derived-checks-DPdD01O0-CABDLeK0.d.mts.map} +1 -1
- package/dist/diff-B16bL_IR.mjs.map +1 -1
- package/dist/{diff-BsHizC0z.d.mts → diff-CJy4hgyc.d.mts} +8 -8
- package/dist/{diff-BsHizC0z.d.mts.map → diff-CJy4hgyc.d.mts.map} +1 -1
- package/dist/{dist-C_HYPisk.mjs → dist-ljGeuCdK.mjs} +8 -8
- package/dist/dist-ljGeuCdK.mjs.map +1 -0
- package/dist/{entity-kinds-DRPMASi3.d.mts → entity-kinds-DCwkg9t7.d.mts} +2 -2
- package/dist/{entity-kinds-DRPMASi3.d.mts.map → entity-kinds-DCwkg9t7.d.mts.map} +1 -1
- package/dist/{entity-kinds-BNQFeECV-BOJmOArY.mjs → entity-kinds-JlqzyFoo-BR7NtlZL.mjs} +6 -5
- package/dist/entity-kinds-JlqzyFoo-BR7NtlZL.mjs.map +1 -0
- package/dist/{expression-Bf_MkeQS.d.mts → expression-DTVL16zb.d.mts} +7 -7
- package/dist/{expression-Bf_MkeQS.d.mts.map → expression-DTVL16zb.d.mts.map} +1 -1
- package/dist/{factories-Di9PoiQh.d.mts → factories-CgVRbL8l.d.mts} +4 -4
- package/dist/{factories-Di9PoiQh.d.mts.map → factories-CgVRbL8l.d.mts.map} +1 -1
- package/dist/{factories-D6haP7by.mjs → factories-WPleYaty.mjs} +4 -4
- package/dist/factories-WPleYaty.mjs.map +1 -0
- package/dist/family.d.mts +15 -15
- package/dist/family.mjs +5 -5
- 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 +2 -2
- package/dist/family__psl-build.mjs +1 -1
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/family__runtime.d.mts +2 -2
- package/dist/{index-D2ho4por.d.mts → index-B_m7BMWx.d.mts} +11 -11
- package/dist/{index-D2ho4por.d.mts.map → index-B_m7BMWx.d.mts.map} +1 -1
- package/dist/{index-DZbfFGBA.d.mts → index-qOLTnfYz.d.mts} +3 -3
- package/dist/{index-DZbfFGBA.d.mts.map → index-qOLTnfYz.d.mts.map} +1 -1
- package/dist/{index-type-validation-9yBRmaQK.d.mts → index-type-validation-BHppm9U-.d.mts} +3 -3
- package/dist/{index-type-validation-9yBRmaQK.d.mts.map → index-type-validation-BHppm9U-.d.mts.map} +1 -1
- package/dist/{interpreter-Cn_CHpKv-V5WRLkBQ.mjs → interpreter-D50jf6Dd-DQMtcGPt.mjs} +24 -16
- package/dist/interpreter-D50jf6Dd-DQMtcGPt.mjs.map +1 -0
- package/dist/{ir-D7wRE9X4.d.mts → ir-BYHqe2mj.d.mts} +3 -3
- package/dist/{ir-D7wRE9X4.d.mts.map → ir-BYHqe2mj.d.mts.map} +1 -1
- package/dist/ir-I-xciGUH.mjs.map +1 -1
- package/dist/middleware-Bn2R6ocx.d.mts +1 -0
- package/dist/{middleware-BtMX6nSF-DUnzMyGl.d.mts → middleware-BtMX6nSF-DM55ZeCo.d.mts} +2 -2
- package/dist/{middleware-BtMX6nSF-DUnzMyGl.d.mts.map → middleware-BtMX6nSF-DM55ZeCo.d.mts.map} +1 -1
- package/dist/{migration-oet2BBxc.d.mts → migration-_T2FvKPk.d.mts} +4 -4
- package/dist/{migration-oet2BBxc.d.mts.map → migration-_T2FvKPk.d.mts.map} +1 -1
- package/dist/{opaque-sql-CwvHZSr8-Ch9goXqx.mjs → opaque-sql-BWxbqe5a-GGKfyakq.mjs} +2 -8
- package/dist/opaque-sql-BWxbqe5a-GGKfyakq.mjs.map +1 -0
- package/dist/operations.d.mts +1 -1
- package/dist/orm-client.d.mts +15 -15
- package/dist/orm-client.mjs +2 -2
- package/dist/{pack-C-JTs3HQ.d.mts → pack-B-_m58dV.d.mts} +2 -2
- package/dist/{pack-C-JTs3HQ.d.mts.map → pack-B-_m58dV.d.mts.map} +1 -1
- package/dist/{plan-BlQITcbP-DvbDlHXA.d.mts → plan-BlQITcbP-B2q80evU.d.mts} +4 -4
- package/dist/{plan-BlQITcbP-DvbDlHXA.d.mts.map → plan-BlQITcbP-B2q80evU.d.mts.map} +1 -1
- package/dist/plan-D11FmUVM.d.mts +2 -0
- package/dist/{prepared-statement-Cv54gpY_-dg9Qr8sK.d.mts → prepared-statement-Cv54gpY_-CT1ZL-2j.d.mts} +16 -16
- package/dist/{prepared-statement-Cv54gpY_-dg9Qr8sK.d.mts.map → prepared-statement-Cv54gpY_-CT1ZL-2j.d.mts.map} +1 -1
- package/dist/{psl-build-B6nw6MAM.mjs → psl-build-C1P-sV0c.mjs} +12 -10
- package/dist/psl-build-C1P-sV0c.mjs.map +1 -0
- package/dist/{psl-build-BrW7lQMO.d.mts → psl-build-ClK2AyY1.d.mts} +2 -2
- package/dist/psl-build-ClK2AyY1.d.mts.map +1 -0
- package/dist/{psl-column-resolution-BegCa1-t-BJJ9WB1c.d.mts → psl-column-resolution-BegCa1-t-o2A6uWWC.d.mts} +2 -2
- package/dist/{psl-column-resolution-BegCa1-t-BJJ9WB1c.d.mts.map → psl-column-resolution-BegCa1-t-o2A6uWWC.d.mts.map} +1 -1
- package/dist/{psl-field-resolution-Bf8vUaoK-CanSt2s1.mjs → psl-field-resolution-Bi-CSeoQ-BjACY_53.mjs} +105 -22
- package/dist/psl-field-resolution-Bi-CSeoQ-BjACY_53.mjs.map +1 -0
- package/dist/{psl-infer-DzH2Khty.d.mts → psl-infer-B91bSSdN.d.mts} +4 -4
- package/dist/{psl-infer-DzH2Khty.d.mts.map → psl-infer-B91bSSdN.d.mts.map} +1 -1
- package/dist/{query-lane-context-OSV9X636-CcPv1TZj.d.mts → query-lane-context-OSV9X636-DFRkNeXq.d.mts} +5 -5
- package/dist/{query-lane-context-OSV9X636-CcPv1TZj.d.mts.map → query-lane-context-OSV9X636-DFRkNeXq.d.mts.map} +1 -1
- package/dist/query-lane-context-SRmvD9-J.d.mts +1 -0
- package/dist/relational-core.d.mts +12 -12
- 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 +4 -4
- package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
- package/dist/relational-core__contract-free.d.mts +3 -3
- package/dist/relational-core__contract-free.mjs +1 -1
- package/dist/relational-core__contract-free.mjs.map +1 -1
- package/dist/relational-core__expression.d.mts +1 -1
- package/dist/relational-core__middleware.d.mts +2 -2
- package/dist/relational-core__plan.d.mts +3 -3
- package/dist/relational-core__query-lane-context.d.mts +2 -2
- package/dist/relational-core__types.d.mts +2 -2
- package/dist/{resolve-storage-table-GpIWDdpo.d.mts → resolve-storage-table-Ba33K41A.d.mts} +3 -3
- package/dist/{resolve-storage-table-GpIWDdpo.d.mts.map → resolve-storage-table-Ba33K41A.d.mts.map} +1 -1
- package/dist/{runtime-BbhrIR5H.d.mts → runtime-BUemUdMk.d.mts} +2 -2
- package/dist/{runtime-BbhrIR5H.d.mts.map → runtime-BUemUdMk.d.mts.map} +1 -1
- package/dist/runtime.d.mts +4 -4
- package/dist/runtime.mjs +2 -2
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/dist/{schema-differ-DpG_gnur-if2KDxZC.d.mts → schema-differ-CqWOkoW9--uxNOini.d.mts} +6 -6
- package/dist/{schema-differ-DpG_gnur-if2KDxZC.d.mts.map → schema-differ-CqWOkoW9--uxNOini.d.mts.map} +1 -1
- package/dist/schema-ir.d.mts +1 -1
- package/dist/schema-ir.mjs +1 -1
- package/dist/schema-ir__types.d.mts +2 -2
- package/dist/schema-ir__types.mjs +1 -1
- package/dist/{schema-verify-lPfqY_aE-CZCO8my1.mjs → schema-verify-DIfHSB4I-BK55V2WO.mjs} +3 -3
- package/dist/{schema-verify-lPfqY_aE-CZCO8my1.mjs.map → schema-verify-DIfHSB4I-BK55V2WO.mjs.map} +1 -1
- package/dist/{serialized-index-BeGqqsrC-PymnV1h-.mjs → serialized-index-QAYy0fjm-BW4shnLC.mjs} +3 -3
- package/dist/{serialized-index-BeGqqsrC-PymnV1h-.mjs.map → serialized-index-QAYy0fjm-BW4shnLC.mjs.map} +1 -1
- package/dist/{sql-contract-serializer-C90xg7_q-4UVEMTWO.mjs → sql-contract-serializer-DDaAVCQr-h_U10PEJ.mjs} +6 -6
- package/dist/sql-contract-serializer-DDaAVCQr-h_U10PEJ.mjs.map +1 -0
- package/dist/{sql-execution-plan-CV6K4o9N-DAIvJbkb.d.mts → sql-execution-plan-CV6K4o9N-B3EzlMwJ.d.mts} +2 -2
- package/dist/{sql-execution-plan-CV6K4o9N-DAIvJbkb.d.mts.map → sql-execution-plan-CV6K4o9N-B3EzlMwJ.d.mts.map} +1 -1
- package/dist/{sql-storage-jJySr7bL-C_xAiyzH.d.mts → sql-storage-DSnnRQAf-DaHPnley.d.mts} +13 -20
- package/dist/sql-storage-DSnnRQAf-DaHPnley.d.mts.map +1 -0
- package/dist/{storage-table-DLFvP77v-DLfqYsHX.d.mts → storage-table-BBcKoAuF-CssyCQhM.d.mts} +5 -4
- package/dist/storage-table-BBcKoAuF-CssyCQhM.d.mts.map +1 -0
- package/dist/{storage-table-BwwDKQkD-BN9cZrGX.mjs → storage-table-CyL4CNMi-zOQ-vTUd.mjs} +4 -4
- package/dist/{storage-table-BwwDKQkD-BN9cZrGX.mjs.map → storage-table-CyL4CNMi-zOQ-vTUd.mjs.map} +1 -1
- package/dist/{type-map-DmIbL4o--BfPMblbZ.d.mts → type-map-dnvRKl9o-avUb9OLv.d.mts} +5 -5
- package/dist/type-map-dnvRKl9o-avUb9OLv.d.mts.map +1 -0
- package/dist/{types-Cn4JEguu.mjs → types-BlcZJEoC.mjs} +4 -4
- package/dist/types-BlcZJEoC.mjs.map +1 -0
- package/dist/{types-Da1Y_OI7-BPyFwdFU.d.mts → types-CLsPsUiw-Db1BsN9R.d.mts} +25 -19
- package/dist/types-CLsPsUiw-Db1BsN9R.d.mts.map +1 -0
- package/dist/{types-CcGO_LSh-BKHiJvvA.d.mts → types-CvuS68sy-CK5U4IEM.d.mts} +10 -11
- package/dist/{types-CcGO_LSh-BKHiJvvA.d.mts.map → types-CvuS68sy-CK5U4IEM.d.mts.map} +1 -1
- package/dist/types-CxLmS9mV.d.mts +1 -0
- package/dist/types-D6XuABFQ.d.mts +1 -0
- package/dist/{types-Bl6ohp1g-CL4_GDuc.d.mts → types-DV040Uuq-Bu8CnbMa.d.mts} +4 -4
- package/dist/{types-Bl6ohp1g-CL4_GDuc.d.mts.map → types-DV040Uuq-Bu8CnbMa.d.mts.map} +1 -1
- package/dist/{types-CyPuXMTn-pumFirZ6.mjs → types-D_7dH1ie-CN5Dgmgh.mjs} +17 -16
- package/dist/types-D_7dH1ie-CN5Dgmgh.mjs.map +1 -0
- package/dist/{types-B11MGgKr.d.mts → types-DkOYK86-.d.mts} +4 -4
- package/dist/{types-B11MGgKr.d.mts.map → types-DkOYK86-.d.mts.map} +1 -1
- package/dist/{types-DpwLgzPO-Cb9nQ-Wt.d.mts → types-DpwLgzPO-6RCR0XpS.d.mts} +10 -10
- package/dist/{types-DpwLgzPO-Cb9nQ-Wt.d.mts.map → types-DpwLgzPO-6RCR0XpS.d.mts.map} +1 -1
- package/dist/{types-Dskga3R1-BtXuRmbf.d.mts → types-Dskga3R1-DeSwpS4A.d.mts} +2 -2
- package/dist/{types-Dskga3R1-BtXuRmbf.d.mts.map → types-Dskga3R1-DeSwpS4A.d.mts.map} +1 -1
- package/dist/{validators-IGdAEEIM.mjs → validators-BF_JSK38.mjs} +50 -27
- package/dist/validators-BF_JSK38.mjs.map +1 -0
- package/dist/{validators-B-4g3vwP.d.mts → validators-BLkHaNpd.d.mts} +10 -8
- package/dist/{validators-B-4g3vwP.d.mts.map → validators-BLkHaNpd.d.mts.map} +1 -1
- package/package.json +18 -19
- package/dist/ast-CQZn-6Wd.mjs.map +0 -1
- package/dist/contract-builder-CQvwPGAW.mjs.map +0 -1
- package/dist/contract__pack-types.d.mts +0 -2
- package/dist/contract__pack-types.mjs +0 -1
- package/dist/control-AYMohAq_.mjs.map +0 -1
- package/dist/control-Bpk8PtSL.d.mts.map +0 -1
- package/dist/control-adapter-DSGwSagr.d.mts +0 -1
- package/dist/ddl-types-BUqZdoZK-vyWnW2PW.d.mts.map +0 -1
- package/dist/derived-checks-CILnJKoa-D42YRW01.mjs.map +0 -1
- package/dist/dist-C_HYPisk.mjs.map +0 -1
- package/dist/entity-kinds-BNQFeECV-BOJmOArY.mjs.map +0 -1
- package/dist/factories-D6haP7by.mjs.map +0 -1
- package/dist/interpreter-Cn_CHpKv-V5WRLkBQ.mjs.map +0 -1
- package/dist/middleware-pBMsszaq.d.mts +0 -1
- package/dist/opaque-sql-CwvHZSr8-Ch9goXqx.mjs.map +0 -1
- package/dist/pack-types-BcLTpwbv.d.mts +0 -14
- package/dist/pack-types-BcLTpwbv.d.mts.map +0 -1
- package/dist/plan-BbkBYyGR.d.mts +0 -2
- package/dist/psl-build-B6nw6MAM.mjs.map +0 -1
- package/dist/psl-build-BrW7lQMO.d.mts.map +0 -1
- package/dist/psl-field-resolution-Bf8vUaoK-CanSt2s1.mjs.map +0 -1
- package/dist/query-lane-context-CLtywrTY.d.mts +0 -1
- package/dist/sql-contract-serializer-C90xg7_q-4UVEMTWO.mjs.map +0 -1
- package/dist/sql-storage-jJySr7bL-C_xAiyzH.d.mts.map +0 -1
- package/dist/storage-table-DLFvP77v-DLfqYsHX.d.mts.map +0 -1
- package/dist/type-map-DmIbL4o--BfPMblbZ.d.mts.map +0 -1
- package/dist/types-Cn4JEguu.mjs.map +0 -1
- package/dist/types-CyPuXMTn-pumFirZ6.mjs.map +0 -1
- package/dist/types-DZA5xxDT.d.mts +0 -1
- package/dist/types-Da1Y_OI7-BPyFwdFU.d.mts.map +0 -1
- package/dist/types-QvcS13Qc.d.mts +0 -1
- package/dist/validators-IGdAEEIM.mjs.map +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { t as StorageColumn } from "./storage-table-
|
|
2
|
-
import {
|
|
3
|
-
import { O as SqlControlDriverInstance } from "./types-
|
|
4
|
-
import "./types-
|
|
5
|
-
import { r as SqlOperationDescriptors } from "./index-
|
|
6
|
-
import { h as AnyQueryAst } from "./types-Dskga3R1-
|
|
1
|
+
import { t as StorageColumn } from "./storage-table-BBcKoAuF-CssyCQhM.mjs";
|
|
2
|
+
import { l as SqlStorage, o as SqlNamespaceEntries } from "./sql-storage-DSnnRQAf-DaHPnley.mjs";
|
|
3
|
+
import { O as SqlControlDriverInstance } from "./types-DV040Uuq-Bu8CnbMa.mjs";
|
|
4
|
+
import "./types-DkOYK86-.mjs";
|
|
5
|
+
import { r as SqlOperationDescriptors } from "./index-qOLTnfYz.mjs";
|
|
6
|
+
import { h as AnyQueryAst } from "./types-Dskga3R1-DeSwpS4A.mjs";
|
|
7
7
|
import { o as SqlExecuteRequest } from "./driver-types-DYGFEcyv-DPaNalPf.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import { s as LowererContext } from "./ast-
|
|
8
|
+
import { a as DdlNode } from "./ddl-types-CWIiJxsH-BixiHVIr.mjs";
|
|
9
|
+
import { s as LowererContext } from "./ast-Foar49zl.mjs";
|
|
10
10
|
import { s as SqlTypeLookups } from "./data-type-CpqSDmR_.mjs";
|
|
11
11
|
import { t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-DE_MTt3T.mjs";
|
|
12
|
-
import "./validators-
|
|
13
|
-
import { _ as SqlSchemaIR, y as SqlSchemaIRNode } from "./types-
|
|
14
|
-
import "./types-
|
|
15
|
-
import { r as SqlControlAdapter } from "./control-adapter-
|
|
16
|
-
import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CZ-vdwYS-
|
|
17
|
-
import { D as SqlPlannerFailureResult, S as SqlMigrationRunnerSuccessValue, _ as SqlMigrationRunnerErrorCode, b as SqlMigrationRunnerFailure, g as SqlMigrationRunner, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, r as CreateSqlMigrationPlanOptions, t as AnyRecord, w as SqlPlannerConflict } from "./types-
|
|
18
|
-
import { t as SqlSchemaDiffFn } from "./schema-differ-
|
|
12
|
+
import "./validators-BLkHaNpd.mjs";
|
|
13
|
+
import { _ as SqlSchemaIR, y as SqlSchemaIRNode } from "./types-CLsPsUiw-Db1BsN9R.mjs";
|
|
14
|
+
import "./types-D6XuABFQ.mjs";
|
|
15
|
+
import { r as SqlControlAdapter } from "./control-adapter-CkFfBVei-Bz63KBJc.mjs";
|
|
16
|
+
import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CZ-vdwYS-BDKo-VHB.mjs";
|
|
17
|
+
import { D as SqlPlannerFailureResult, S as SqlMigrationRunnerSuccessValue, _ as SqlMigrationRunnerErrorCode, b as SqlMigrationRunnerFailure, g as SqlMigrationRunner, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, r as CreateSqlMigrationPlanOptions, t as AnyRecord, w as SqlPlannerConflict } from "./types-CvuS68sy-CK5U4IEM.mjs";
|
|
18
|
+
import { t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9--uxNOini.mjs";
|
|
19
19
|
import { StructuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
20
20
|
import { PresetStorageTemplate, TIMESTAMP_NOW_GENERATOR_ID } from "@prisma/orm-framework/components/authoring";
|
|
21
21
|
import { CodecLookupWithDescriptors, DataType, DataTypeLookup } from "@prisma/orm-framework/components/codec";
|
|
22
22
|
import { ColumnDefault, Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
|
|
23
23
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
24
|
-
import { AssembledAuthoringContributions, ContractSerializer, ControlFamilyDescriptor, ControlFamilyInstance, ControlStack, DiffSubjectGranularity, MigratableTargetDescriptor, MigrationOperationClass, MigrationOperationPolicy, MigrationOperationPolicy as MigrationOperationPolicy$1, MigrationPlan as MigrationPlan$1, MigrationPlanOperation, MigrationPlanOperation as MigrationPlanOperation$1, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerConflict as MigrationPlannerConflict$1, MigrationPlannerResult, OpFactoryCall, OperationPreview, OperationPreviewCapable, PslContractBuildCapable, PslContractInferCapable, SchemaDiffIssue, SchemaVerifier, SchemaViewCapable,
|
|
24
|
+
import { AssembledAuthoringContributions, ContractSerializer, ControlFamilyDescriptor, ControlFamilyInstance, ControlStack, DiffSubjectGranularity, MigratableTargetDescriptor, MigrationOperationClass, MigrationOperationPolicy, MigrationOperationPolicy as MigrationOperationPolicy$1, MigrationPlan as MigrationPlan$1, MigrationPlanOperation, MigrationPlanOperation as MigrationPlanOperation$1, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerConflict as MigrationPlannerConflict$1, MigrationPlannerResult, OpFactoryCall, OperationPreview, OperationPreviewCapable, PslContractBuildCapable, PslContractInferCapable, SchemaDiffIssue, SchemaVerifier, SchemaViewCapable, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult, assembleAuthoringContributions } from "@prisma/orm-framework/components/control";
|
|
25
25
|
import { NotOk, Ok, Result } from "@prisma/orm-framework/utils/result";
|
|
26
26
|
import { PslDocumentAst } from "@prisma/orm-framework/components/psl-ast";
|
|
27
27
|
import { EmissionSpi, TypesImportSpec } from "@prisma/orm-framework/components/emission";
|
|
@@ -81,12 +81,6 @@ interface SqlControlFamilyInstance extends ControlFamilyInstance<'sql', SqlSchem
|
|
|
81
81
|
* capability. Nothing is stamped on the issue or the node.
|
|
82
82
|
*/
|
|
83
83
|
classifyEntityKind(issue: SchemaDiffIssue): string | undefined;
|
|
84
|
-
sign(options: {
|
|
85
|
-
readonly driver: SqlControlDriverInstance<string>;
|
|
86
|
-
readonly contract: unknown;
|
|
87
|
-
readonly contractPath: string;
|
|
88
|
-
readonly configPath?: string;
|
|
89
|
-
}): Promise<SignDatabaseResult>;
|
|
90
84
|
introspect(options: {
|
|
91
85
|
readonly driver: SqlControlDriverInstance<string>;
|
|
92
86
|
readonly contract?: unknown;
|
|
@@ -591,10 +585,13 @@ declare function applyTableRename(input: ApplyTableRenameInput): Result<AppliedT
|
|
|
591
585
|
*
|
|
592
586
|
* Default value serialization is target-specific (quoting, casting, type syntax vary
|
|
593
587
|
* between Postgres, MySQL, SQLite, …). The target provides its renderer when calling
|
|
594
|
-
* `contractToSchemaIR`, keeping the family layer target-agnostic. `dataType` is the id of
|
|
595
|
-
* data type the column's codec represents.
|
|
588
|
+
* `contractToSchemaIR`, keeping the family layer target-agnostic. `type.dataType` is the id of
|
|
589
|
+
* the data type the column's codec represents, and `type.baseTypeName` its base name.
|
|
596
590
|
*/
|
|
597
|
-
type DefaultRenderer = (def: ColumnDefault, column: StorageColumn,
|
|
591
|
+
type DefaultRenderer = (def: ColumnDefault, column: StorageColumn, type: {
|
|
592
|
+
readonly dataType: string;
|
|
593
|
+
readonly baseTypeName: string;
|
|
594
|
+
}) => string;
|
|
598
595
|
/**
|
|
599
596
|
* Target-supplied hook (same IoC seam as `DefaultRenderer`)
|
|
600
597
|
* that normalizes a contract-declared `ColumnDefault` into the resolved shape
|
|
@@ -977,4 +974,4 @@ declare function temporalCodecPresetWithPrecision<const CodecId extends string,
|
|
|
977
974
|
declare const _default: SqlFamilyDescriptor;
|
|
978
975
|
//#endregion
|
|
979
976
|
export { applyTableRename as A, partitionIssuesByControlPolicy as B, TABLE_NAME_CASE_CHANGED_CODE as C, TableRenameInMigration as D, TableRenameByHand as E, createMigrationPlan as F, runnerSuccess as G, plannerFailure as H, detectDestructiveChanges as I, temporalStringAuthoringPresets as J, sqlTypeLookupsOf as K, detectTableNameCaseChanges as L, contractNamespaceToSchemaIR as M, contractToSchemaIR as N, TargetMigrationsCapability as O, controlPolicyForCall as P, extractCodecControlHooks as R, SuppressionRecord as S, TableRename as T, plannerSuccess as U, planFieldEventOperations as V, runnerFailure as W, ResolvedTableRename as _, DefaultRenderer as a, SqlDescribedContractSpace as b, MigrationOperationClass as c, MigrationPlanOperation$1 as d, MigrationPlanner as f, RenameTableReferences as g, PlanFieldEventOperationsOptions as h, ControlPolicySubject as i, assembleAuthoringContributions as j, _default as k, MigrationOperationPolicy$1 as l, MigrationPlannerResult as m, ApplyTableRenameInput as n, DefaultResolver as o, MigrationPlannerConflict$1 as p, temporalCodecPresetWithPrecision as q, ContractToSchemaIROptions as r, INIT_ADDITIVE_POLICY as s, AppliedTableRename as t, MigrationPlan$1 as u, SqlControlFamilyInstance as v, TableNameCaseGuardTable as w, SqlPslBuildContext as x, SqlControlTargetDescriptor as y, partitionCallsByControlPolicy as z };
|
|
980
|
-
//# sourceMappingURL=control-
|
|
977
|
+
//# sourceMappingURL=control-DQImoKde.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-DQImoKde.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqBU;WACC,kBAAkB,cAAc;WAChC,cAAc;;UAEf,iCAAiC,6BAA6B,kBAAkB,kBAAkB,kBAAkB,wBAAwB,kBAAkB,wBAAwB,SAAS,cAAc,yBAAyB;;;;;;;;;EAS9O,oBAAoB,wBAAwB;EAC5C,OAAO;aACI,QAAQ;aACR;aACA;aACA;aACA;MACP,QAAQ;;;;;;;;;;EAUZ,aAAa;aACF;aACA,QAAQ;aACR;aACA,qBAAqB,cAAc;MAC1C;;;;;;;;;;EAUJ,2BAA2B,OAAO,kBAAkB;;;;;;;;EAQpD,mBAAmB,OAAO;EAC1B,WAAW;aACA,QAAQ;aACR;MACP,QAAQ;EACZ,iBAAiB,UAAU,kBAAkB;EAC7C,SAAS,KAAK,cAAc,SAAS,SAAS,0BAA0B,QAAQ;;;;;;EAMhF,WAAW;aACA,QAAQ;aACR;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,aAAa;aACF,QAAQ;aACR;aACA;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,iBAAiB;aACN,QAAQ;aACR;aACA;eACE;eACA;eACA;eACA;eACA;eACA;eACA;;MAET;EACJ,yCAAyC;EACzC,mBAAmB,qBAAqB,2BAA6B;;;;cAIzD,+BAA+B,+BAA+B;WACjE;WACA;WACA;WACA;WACA,UAAU;WACV,oBAAoB;WACpB;aACE;eACE;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;uBACA;;;;iBAIN;mBACE;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;;;;;eAKR;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;yBACA;;;;mBAIN;qBACE;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;;;qBAGJ;uBACE;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;6BACA;;;;;qBAKR;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;;;aAKR;eACE;iBACE;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;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ACE;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB;;;;eAI3B;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB;;;;;;;;;cAS5B,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./control-adapter-CkFfBVei-Bz63KBJc.mjs";
|
package/dist/{control-adapter-BVN98SzR-C-H_T7s-.d.mts → control-adapter-CkFfBVei-Bz63KBJc.d.mts}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { O as SqlControlDriverInstance } from "./types-
|
|
2
|
-
import "./types-
|
|
3
|
-
import { dt as LoweredStatement, h as AnyQueryAst } from "./types-Dskga3R1-
|
|
1
|
+
import { O as SqlControlDriverInstance } from "./types-DV040Uuq-Bu8CnbMa.mjs";
|
|
2
|
+
import "./types-DkOYK86-.mjs";
|
|
3
|
+
import { dt as LoweredStatement, h as AnyQueryAst } from "./types-Dskga3R1-DeSwpS4A.mjs";
|
|
4
4
|
import { o as SqlExecuteRequest } from "./driver-types-DYGFEcyv-DPaNalPf.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { s as LowererContext } from "./ast-
|
|
7
|
-
import { y as SqlSchemaIRNode } from "./types-
|
|
8
|
-
import "./types-
|
|
5
|
+
import { a as DdlNode, r as DdlColumn } from "./ddl-types-CWIiJxsH-BixiHVIr.mjs";
|
|
6
|
+
import { s as LowererContext } from "./ast-Foar49zl.mjs";
|
|
7
|
+
import { y as SqlSchemaIRNode } from "./types-CLsPsUiw-Db1BsN9R.mjs";
|
|
8
|
+
import "./types-D6XuABFQ.mjs";
|
|
9
9
|
import { ColumnDefault, ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
|
|
10
10
|
import { ControlAdapterInstance, ControlStack } from "@prisma/orm-framework/components/control";
|
|
11
|
-
//#region ../../../2-sql/9-family/dist/control-adapter-
|
|
11
|
+
//#region ../../../2-sql/9-family/dist/control-adapter-CkFfBVei.d.mts
|
|
12
12
|
//#region src/core/diff/sql-schema-diff.d.ts
|
|
13
13
|
/**
|
|
14
14
|
* Function type for normalizing raw database default expressions into ColumnDefault.
|
|
@@ -82,7 +82,7 @@ interface SqlControlAdapter<TTarget extends string = string> extends ControlAdap
|
|
|
82
82
|
readLedger(driver: SqlControlDriverInstance<TTarget>, space?: string): Promise<readonly LedgerEntryRecord[]>;
|
|
83
83
|
/**
|
|
84
84
|
* Inserts the initial marker row for `space` (`INSERT` only). Fails when a
|
|
85
|
-
* row for that space already exists. Used by `
|
|
85
|
+
* row for that space already exists. Used by `signSpaces()` so concurrent first-time
|
|
86
86
|
* stamps cannot silently overwrite each other. `updated_at` is DB-side
|
|
87
87
|
* (`now()` / `strftime('%Y-%m-%dT%H:%M:%fZ','now')`). Mirrors `MongoControlAdapter.initMarker`.
|
|
88
88
|
*/
|
|
@@ -129,6 +129,14 @@ interface SqlControlAdapter<TTarget extends string = string> extends ControlAdap
|
|
|
129
129
|
readonly operations: readonly unknown[];
|
|
130
130
|
readonly destinationContractJson?: unknown;
|
|
131
131
|
}): Promise<void>;
|
|
132
|
+
/**
|
|
133
|
+
* Runs `fn` in one transaction on `driver`: `BEGIN`, then `COMMIT` when `fn` resolves, or `ROLLBACK` and the error rethrown when it throws. The driver must send `BEGIN`, every statement `fn` sends through it and the final `COMMIT` or `ROLLBACK` over one database session; the Postgres and SQLite control drivers each hold one connection.
|
|
134
|
+
*/
|
|
135
|
+
withTransaction<T>(driver: SqlControlDriverInstance<TTarget>, fn: () => Promise<T>): Promise<T>;
|
|
136
|
+
/**
|
|
137
|
+
* Inside a transaction `withTransaction` opened, takes the one lock the migration runner holds while it reads and writes markers, and holds it until the transaction ends. The lock covers the marker table, so it is the same for every space. A target whose `withTransaction` already takes a lock that excludes the runner does nothing here.
|
|
138
|
+
*/
|
|
139
|
+
lockMarker(driver: SqlControlDriverInstance<TTarget>): Promise<void>;
|
|
132
140
|
/**
|
|
133
141
|
* Introspects a database schema and returns the target's schema-IR node.
|
|
134
142
|
*
|
|
@@ -181,4 +189,4 @@ interface SqlControlAdapterDescriptor<TTarget extends string = string> {
|
|
|
181
189
|
}
|
|
182
190
|
//#endregion
|
|
183
191
|
export { arraysEqual as a, SqlControlAdapterDescriptor as i, Lowerer as n, SqlControlAdapter as r, ExecuteRequestLowerer as t };
|
|
184
|
-
//# sourceMappingURL=control-adapter-
|
|
192
|
+
//# sourceMappingURL=control-adapter-CkFfBVei-Bz63KBJc.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-adapter-
|
|
1
|
+
{"version":3,"file":"control-adapter-CkFfBVei-Bz63KBJc.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/control-adapter-CkFfBVei.d.mts"],"mappings":";;;;;;;;;;;;;;;;KAUK,qBAAqB,oBAAoB,uBAAuB;;;;iBAIpD,YAAY,sBAAsB;;;;;;;;;;UAUzC;EACR,MAAM,KAAK,cAAc,SAAS,SAAS,0BAA0B;;;;;;;;UAQ7D,8BAA8B;EACtC,sBAAsB,KAAK,cAAc,SAAS,UAAU,0BAA0B,QAAQ;;;;EAI9F,oBAAoB,QAAQ,WAAW,gBAAgB;;;;;;;;UAQ/C,kBAAkB,yCAAyC,8BAA8B,UAAU;;;;;;;;;;;;;;;;EAgB3G,WAAW,QAAQ,yBAAyB,UAAU,gBAAgB,QAAQ;;;;;;;;EAQ9E,eAAe,QAAQ,yBAAyB,WAAW,QAAQ,oBAAoB;;;;;EAKvF,WAAW,QAAQ,yBAAyB,UAAU,iBAAiB,iBAAiB;;;;;;;EAOxF,aAAa,QAAQ,yBAAyB,UAAU,eAAe;aAC5D;aACA;aACA;MACP;;;;;;;EAOJ,WAAW,QAAQ,yBAAyB,UAAU,eAAe;aAC1D;aACA;aACA;MACP;;;;;;;;EAQJ,aAAa,QAAQ,yBAAyB,UAAU,eAAe,sBAAsB;aAClF;aACA;aACA;MACP;;;;;;;EAOJ,iBAAiB,QAAQ,yBAAyB,UAAU,eAAe;aAChE;aACA;aACA;aACA;aACA;aACA;aACA;MACP;;;;EAIJ,gBAAgB,GAAG,QAAQ,yBAAyB,UAAU,UAAU,QAAQ,KAAK,QAAQ;;;;EAI7F,WAAW,QAAQ,yBAAyB,WAAW;;;;;;;;;;;;;;;;;;EAkBvD,WAAW,QAAQ,yBAAyB,UAAU,oBAAoB,kBAAkB,QAAQ;;;;;;WAM3F,mBAAmB;;;;;EAK5B,yCAAyC;;;;;EAKzC,uCAAuC;;;;;;;;UAQ/B,4BAA4B;;;;;;;EAOpC,OAAO,OAAO,oBAAoB,WAAW,kBAAkB"}
|
|
@@ -346,7 +346,7 @@ function boundPosition(text, shape) {
|
|
|
346
346
|
*/
|
|
347
347
|
function canonicalDateTime(text, options, written = text) {
|
|
348
348
|
const shape = SHAPES[options.shape];
|
|
349
|
-
const {
|
|
349
|
+
const { ownerId: id } = options;
|
|
350
350
|
const parts = readWritten(text);
|
|
351
351
|
if (parts === void 0) refused(`${id} cannot read "${written}". Write ${shape.description}, as in "${shape.example}".`);
|
|
352
352
|
if (parts.date !== void 0 && !shape.date) refused(`${id} holds a time of day without a date, but "${written}" has a date. Write the time alone, as in "${shape.example}".`);
|
|
@@ -373,4 +373,4 @@ function canonicalDateTime(text, options, written = text) {
|
|
|
373
373
|
//#endregion
|
|
374
374
|
export { integerTextCanonicalForm as a, printJsonBody as c, escapePslString as i, signedRange as l, canonicalNumeralText as n, isNumeralText as o, createNumberClassifier as r, parseJsonBody as s, canonicalDateTime as t };
|
|
375
375
|
|
|
376
|
-
//# sourceMappingURL=data-type-support-
|
|
376
|
+
//# sourceMappingURL=data-type-support-DeL6iJt8.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-type-support-rpD1jyZd.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/data-type-support.mjs"],"sourcesContent":["import { t as numeralText } from \"./numeral-text-Cqu87pVe.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { isNonFiniteText } from \"@internal/framework-components/codec\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/data-type-support.ts\nconst INTEGER_TEXT = /^-?\\d+$/;\nconst DECIMAL_TEXT = /^-?\\d+\\.\\d+$/;\nconst DECIMAL_NUMERAL = /^(-?)0*(\\d+)(\\.\\d+)?$/;\n/** Whether `text` is a whole number or a decimal as a contract source writes one. */\nfunction isNumeralText(text) {\n\treturn INTEGER_TEXT.test(text) || DECIMAL_TEXT.test(text);\n}\n/**\n* A written numeral as the contract stores it. Leading zeros and the sign of zero never change a\n* number, so they go; trailing zeros stay, because a type without a scale keeps them.\n*/\nfunction canonicalNumeralText(text) {\n\tconst numeral = DECIMAL_NUMERAL.exec(text);\n\tif (numeral === null) return text;\n\tconst [, sign = \"\", whole = \"\", fraction = \"\"] = numeral;\n\tconst digits = `${whole}${fraction}`;\n\treturn /^[0.]+$/.test(digits) ? digits : `${sign}${digits}`;\n}\n/**\n* The canonical form of a 64-bit integer type: digit text. A database reads an integer default back as a number when it is a safe integer, so a safe integer reads as its digit text too; any other number may already have lost digits and is refused.\n*/\nconst integerTextCanonicalForm = (value) => {\n\tif (typeof value === \"number\" && Number.isSafeInteger(value)) return numeralText(value);\n\tif (typeof value === \"string\" && INTEGER_TEXT.test(value)) return BigInt(value).toString();\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `Expected digit text or a safe integer, got ${JSON.stringify(value)}.`, {\n\t\twhy: \"A 64-bit integer type stores its value as digit text, and a number past the safe integer range may already have lost digits.\",\n\t\tfix: \"Write the value as digit text.\"\n\t});\n};\n/** A string as a contract source writes it, with the escapes its string reader resolves. */\nfunction escapePslString(value) {\n\treturn value.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, \"\\\\\\\"\").replace(/\\n/g, \"\\\\n\").replace(/\\r/g, \"\\\\r\");\n}\n/** The range of a signed integer of `bits` bits. */\nfunction signedRange(bits) {\n\tconst half = 2n ** (BigInt(bits) - 1n);\n\treturn {\n\t\tmin: -half,\n\t\tmax: half - 1n\n\t};\n}\n/**\n* The classifier one target's plain-number authoring entry carries: it reads the digits and says\n* which of the target's types the value is, in that type's canonical form. `undefined` means no\n* type of this target holds the number.\n*/\nfunction createNumberClassifier(spec) {\n\tconst as = (classification, value) => classification === void 0 ? void 0 : {\n\t\ttype: classification.type,\n\t\tvalue\n\t};\n\treturn (text) => {\n\t\tif (isNonFiniteText(text)) return as(spec.words, spec.words?.form === \"number\" ? Number(text) : text);\n\t\tif (DECIMAL_TEXT.test(text)) {\n\t\t\tconst canonical = canonicalNumeralText(text);\n\t\t\treturn as(spec.fraction, spec.fraction?.form === \"number\" ? Number(canonical) : canonical);\n\t\t}\n\t\tif (!INTEGER_TEXT.test(text)) return void 0;\n\t\tconst digits = BigInt(text);\n\t\tconst classification = spec.integers.find(({ min, max }) => digits >= min && digits <= max) ?? spec.largerWhole;\n\t\treturn as(classification, classification?.form === \"number\" ? Number(digits) : digits.toString());\n\t};\n}\n/**\n* Read a JSON body into the document it holds.\n*\n* `JSON.parse` reads a numeral too large for a double as `Infinity`, and `JSON.stringify` writes\n* that back as `null`, so a document holding one would not be the document stored; it is refused\n* here instead, naming where the number is.\n*/\nfunction parseJsonBody(text) {\n\tlet value;\n\ttry {\n\t\tvalue = JSON.parse(text);\n\t} catch (error) {\n\t\tthrow structuredError(\"CONTRACT.INVALID_JSON_LITERAL\", error instanceof Error ? error.message : String(error), {\n\t\t\twhy: \"The body is not a JSON document.\",\n\t\t\tfix: \"Write a JSON document.\"\n\t\t});\n\t}\n\tconst overflowed = nonFiniteNumberIn(value, \"\");\n\tif (overflowed !== void 0) throw structuredError(\"CONTRACT.INVALID_JSON_LITERAL\", `${overflowed.path} is ${overflowed.value}, which JSON cannot write back: the number in the text is outside the range a JSON number holds.`, {\n\t\twhy: \"JSON.parse reads a numeral too large for a double as Infinity, which JSON.stringify writes back as null.\",\n\t\tfix: \"Write a number JSON can hold, or write it as text.\"\n\t});\n\treturn value;\n}\n/** Write a document as the body of a JSON literal. */\nfunction printJsonBody(value) {\n\treturn JSON.stringify(value);\n}\nfunction nonFiniteNumberIn(value, path) {\n\tif (typeof value === \"number\") return Number.isFinite(value) ? void 0 : {\n\t\tpath: path === \"\" ? \"The value\" : path,\n\t\tvalue\n\t};\n\tif (Array.isArray(value)) {\n\t\tfor (const [index, element] of value.entries()) {\n\t\t\tconst found = nonFiniteNumberIn(element, `${path}[${index}]`);\n\t\t\tif (found !== void 0) return found;\n\t\t}\n\t\treturn;\n\t}\n\tif (typeof value === \"object\" && value !== null) for (const [key, member] of Object.entries(value)) {\n\t\tconst found = nonFiniteNumberIn(member, path === \"\" ? key : `${path}.${key}`);\n\t\tif (found !== void 0) return found;\n\t}\n}\n//#endregion\n//#region src/date-time-canonical-form.ts\n/**\n* The reader the SQL targets build the canonical form of each date and time type with; ADR 254\n* states the forms and the text it reads.\n*/\nconst SHAPES = {\n\tdate: {\n\t\tdescription: \"a date\",\n\t\tplural: \"dates\",\n\t\texample: \"2024-01-01\",\n\t\tdate: true,\n\t\ttime: false,\n\t\toffset: false\n\t},\n\ttime: {\n\t\tdescription: \"a time of day\",\n\t\tplural: \"times of day\",\n\t\texample: \"12:34:56\",\n\t\tdate: false,\n\t\ttime: true,\n\t\toffset: false\n\t},\n\ttimeWithOffset: {\n\t\tdescription: \"a time of day with a UTC offset\",\n\t\tplural: \"times of day with a UTC offset\",\n\t\texample: \"12:34:56+02:00\",\n\t\tdate: false,\n\t\ttime: true,\n\t\toffset: true\n\t},\n\tdateTime: {\n\t\tdescription: \"a date and time\",\n\t\tplural: \"dates and times\",\n\t\texample: \"2024-01-01T12:34:56\",\n\t\tdate: true,\n\t\ttime: true,\n\t\toffset: false\n\t},\n\tinstant: {\n\t\tdescription: \"a date and time with a UTC offset\",\n\t\tplural: \"instants\",\n\t\texample: \"2024-01-01T12:34:56Z\",\n\t\tdate: true,\n\t\ttime: true,\n\t\toffset: true\n\t}\n};\nconst DATE_PREFIX = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})/;\nconst TIME_PREFIX = /^(\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.(\\d+))?)?/;\nconst OFFSET = /^([+-])(\\d{2})(?::(\\d{2})(?::(\\d{2}))?)?$/;\nconst MAX_FRACTION_DIGITS = 6;\nconst FRACTION_UNITS = {\n\t3: \"milliseconds\",\n\t6: \"microseconds\"\n};\nconst SECONDS_PER_DAY = 86400;\nconst MIDNIGHT = {\n\thour: 0,\n\tminute: 0,\n\tsecond: 0,\n\tfraction: \"\"\n};\nfunction refused(message) {\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", message, {\n\t\twhy: \"A date or time type stores one canonical form for each value (ADR 254).\",\n\t\tfix: \"Write text the type holds, as the message shows.\"\n\t});\n}\nfunction isLeapYear(year) {\n\treturn year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n}\nfunction daysInMonth(year, month) {\n\tif (month === 2) return isLeapYear(year) ? 29 : 28;\n\treturn [\n\t\t4,\n\t\t6,\n\t\t9,\n\t\t11\n\t].includes(month) ? 30 : 31;\n}\n/** Days from 1970-01-01 to a date of the proleptic Gregorian calendar, with year 0 as 1 BC. */\nfunction daysFromCivil({ year, month, day }) {\n\tconst shifted = month <= 2 ? year - 1 : year;\n\tconst era = Math.floor(shifted / 400);\n\tconst yearOfEra = shifted - era * 400;\n\tconst dayOfYear = Math.floor((153 * (month + (month > 2 ? -3 : 9)) + 2) / 5) + day - 1;\n\tconst dayOfEra = yearOfEra * 365 + Math.floor(yearOfEra / 4) - Math.floor(yearOfEra / 100) + dayOfYear;\n\treturn era * 146097 + dayOfEra - 719468;\n}\nfunction civilFromDays(days) {\n\tconst shifted = days + 719468;\n\tconst era = Math.floor(shifted / 146097);\n\tconst dayOfEra = shifted - era * 146097;\n\tconst yearOfEra = Math.floor((dayOfEra - Math.floor(dayOfEra / 1460) + Math.floor(dayOfEra / 36524) - Math.floor(dayOfEra / 146096)) / 365);\n\tconst dayOfYear = dayOfEra - (365 * yearOfEra + Math.floor(yearOfEra / 4) - Math.floor(yearOfEra / 100));\n\tconst monthIndex = Math.floor((5 * dayOfYear + 2) / 153);\n\tconst day = dayOfYear - Math.floor((153 * monthIndex + 2) / 5) + 1;\n\tconst month = monthIndex < 10 ? monthIndex + 3 : monthIndex - 9;\n\treturn {\n\t\tyear: yearOfEra + era * 400 + (month <= 2 ? 1 : 0),\n\t\tmonth,\n\t\tday\n\t};\n}\nfunction pad(value, width = 2) {\n\treturn String(value).padStart(width, \"0\");\n}\nfunction yearText(year) {\n\tif (year >= 0 && year <= 9999) return pad(year, 4);\n\treturn `${year < 0 ? \"-\" : \"+\"}${pad(Math.abs(year), 6)}`;\n}\nfunction dateText(date) {\n\treturn `${yearText(date.year)}-${pad(date.month)}-${pad(date.day)}`;\n}\nfunction timeText(time) {\n\tconst fraction = time.fraction.replace(/0+$/, \"\");\n\treturn `${pad(time.hour)}:${pad(time.minute)}:${pad(time.second)}${fraction === \"\" ? \"\" : `.${fraction}`}`;\n}\nfunction offsetText(seconds) {\n\tif (seconds === 0) return \"Z\";\n\tconst magnitude = Math.abs(seconds);\n\tconst rest = magnitude % 60;\n\treturn `${seconds < 0 ? \"-\" : \"+\"}${pad(Math.floor(magnitude / 3600))}:${pad(Math.floor(magnitude / 60) % 60)}${rest === 0 ? \"\" : `:${pad(rest)}`}`;\n}\n/**\n* The fields of an ISO 8601 date, time, or date and time, or `undefined` when the text is not one.\n* Ranges are checked by the caller, which words the refusal.\n*/\nfunction readWritten(text) {\n\tlet rest = text;\n\tlet date;\n\tlet timeFollows = true;\n\tconst dateMatch = DATE_PREFIX.exec(rest);\n\tif (dateMatch !== null) {\n\t\tconst [whole, yearDigits = \"\", month = \"\", day = \"\"] = dateMatch;\n\t\tif (yearDigits === \"-000000\") return void 0;\n\t\tdate = {\n\t\t\tyear: Number(yearDigits),\n\t\t\tmonth: Number(month),\n\t\t\tday: Number(day)\n\t\t};\n\t\trest = rest.slice(whole.length);\n\t\ttimeFollows = /^[Tt ]/.test(rest);\n\t\tif (timeFollows) rest = rest.slice(1);\n\t}\n\tlet time;\n\tlet fractionDigits = 0;\n\tif (timeFollows) {\n\t\tconst timeMatch = TIME_PREFIX.exec(rest);\n\t\tif (timeMatch === null) return void 0;\n\t\tconst [whole, hour = \"\", minute = \"\", second = \"00\", fraction = \"\"] = timeMatch;\n\t\ttime = {\n\t\t\thour: Number(hour),\n\t\t\tminute: Number(minute),\n\t\t\tsecond: Number(second),\n\t\t\tfraction\n\t\t};\n\t\tfractionDigits = fraction.length;\n\t\trest = rest.slice(whole.length);\n\t}\n\tlet offsetSeconds;\n\tif (rest === \"Z\" || rest === \"z\") offsetSeconds = 0;\n\telse if (rest !== \"\") {\n\t\tconst offset = OFFSET.exec(rest);\n\t\tif (offset === null) return void 0;\n\t\tconst [, sign, hours = \"\", minutes = \"00\", seconds = \"00\"] = offset;\n\t\tif (Number(minutes) > 59 || Number(seconds) > 59) return void 0;\n\t\tconst magnitude = Number(hours) * 3600 + Number(minutes) * 60 + Number(seconds);\n\t\toffsetSeconds = sign === \"-\" ? -magnitude : magnitude;\n\t}\n\treturn {\n\t\tdate,\n\t\ttime,\n\t\toffsetSeconds,\n\t\tfractionDigits\n\t};\n}\nfunction withFraction(example, digits) {\n\treturn example.replace(/(\\d{2}:\\d{2}:\\d{2})/, `$1.${\"123456\".slice(0, digits)}`);\n}\n/** The value with an instant moved to UTC. */\nfunction normalized(written, shape) {\n\tconst clock = written.time ?? MIDNIGHT;\n\tconst offsetSeconds = written.offsetSeconds ?? 0;\n\tif (written.date === void 0 || shape !== \"instant\") return {\n\t\tdate: written.date,\n\t\ttime: clock,\n\t\toffsetSeconds\n\t};\n\tconst utc = daysFromCivil(written.date) * SECONDS_PER_DAY + clock.hour * 3600 + clock.minute * 60 + clock.second - offsetSeconds;\n\tconst days = Math.floor(utc / SECONDS_PER_DAY);\n\tconst secondOfDay = utc - days * SECONDS_PER_DAY;\n\treturn {\n\t\tdate: civilFromDays(days),\n\t\ttime: {\n\t\t\thour: Math.floor(secondOfDay / 3600),\n\t\t\tminute: Math.floor(secondOfDay / 60) % 60,\n\t\t\tsecond: secondOfDay % 60,\n\t\t\tfraction: clock.fraction\n\t\t},\n\t\toffsetSeconds: 0\n\t};\n}\nfunction position(value) {\n\tconst { time } = value;\n\treturn [\n\t\tvalue.date === void 0 ? 0 : daysFromCivil(value.date),\n\t\ttime.hour * 3600 + time.minute * 60 + time.second,\n\t\ttime.fraction.padEnd(MAX_FRACTION_DIGITS, \"0\")\n\t];\n}\nfunction isBefore(left, right) {\n\tif (left[0] !== right[0]) return left[0] < right[0];\n\tif (left[1] !== right[1]) return left[1] < right[1];\n\treturn left[2] < right[2];\n}\nfunction printed(value, shape) {\n\tconst { date, time, offsetSeconds } = value;\n\tif (date === void 0) return shape === \"timeWithOffset\" ? `${timeText(time)}${offsetText(offsetSeconds)}` : timeText(time);\n\tif (shape === \"date\") return dateText(date);\n\tif (shape === \"dateTime\") return `${dateText(date)}T${timeText(time)}`;\n\treturn `${dateText(date)}T${timeText(time)}Z`;\n}\n/** The position of a range bound, which the data type declares in canonical form. */\nfunction boundPosition(text, shape) {\n\tconst written = readWritten(text);\n\tif (written === void 0) throw new InternalError(`The range bound \"${text}\" is not in canonical form.`);\n\treturn position(normalized(written, shape));\n}\n/**\n* The canonical form of written date or time text, or a refusal with a message that says what is\n* wrong and shows text the type holds. `written` is the text as its author wrote it, which the\n* message shows, when a target rewrote it into ISO 8601 before calling this.\n*/\nfunction canonicalDateTime(text, options, written = text) {\n\tconst shape = SHAPES[options.shape];\n\tconst { dataTypeId: id } = options;\n\tconst parts = readWritten(text);\n\tif (parts === void 0) refused(`${id} cannot read \"${written}\". Write ${shape.description}, as in \"${shape.example}\".`);\n\tif (parts.date !== void 0 && !shape.date) refused(`${id} holds a time of day without a date, but \"${written}\" has a date. Write the time alone, as in \"${shape.example}\".`);\n\tif (parts.date === void 0 && shape.date) refused(shape.time ? `${id} holds ${shape.description}, but \"${written}\" has no date. Write the date too, as in \"${shape.example}\".` : `${id} holds a date, and \"${written}\" is a time of day. Write a date, as in \"${shape.example}\".`);\n\tif (parts.time !== void 0 && !shape.time) refused(`${id} holds a date without a time of day, but \"${written}\" has a time. Write the date alone, as in \"${shape.example}\".`);\n\tif (parts.time === void 0 && shape.offset) refused(`${id} holds ${shape.description}, but \"${written}\" has no time of day. Write the time too, as in \"${shape.example}\".`);\n\tif (parts.offsetSeconds !== void 0 && !shape.offset) refused(`${id} holds no UTC offset, but \"${written}\" has one. Leave it out, as in \"${shape.example}\".`);\n\tif (parts.offsetSeconds === void 0 && shape.offset) refused(`${id} needs a UTC offset, but \"${written}\" has none. Add Z for UTC or an offset such as +02:00, as in \"${shape.example}\".`);\n\tconst maxFractionDigits = options.maxFractionDigits ?? MAX_FRACTION_DIGITS;\n\tif (parts.fractionDigits > maxFractionDigits) refused(`\"${written}\" has ${parts.fractionDigits} digits after the decimal point, but ${id} holds ${FRACTION_UNITS[maxFractionDigits]}, so at most ${maxFractionDigits}. Round it, as in \"${withFraction(shape.example, maxFractionDigits)}\".`);\n\tconst { date, time } = parts;\n\tif (date !== void 0 && (date.month < 1 || date.month > 12 || date.day < 1 || date.day > daysInMonth(date.year, date.month))) refused(`\"${written}\" is not a date that exists. Write a real date, as in \"${shape.example}\".`);\n\tif (time !== void 0 && (time.hour > 23 || time.minute > 59 || time.second > 59)) refused(`\"${written}\" is not a time of day that exists: hours run from 00 to 23, and minutes and seconds from 00 to 59. Write one, as in \"${shape.example}\".`);\n\tconst offsetLimit = options.maxOffsetHours ?? 23;\n\tif (parts.offsetSeconds !== void 0 && Math.abs(parts.offsetSeconds) >= (offsetLimit + 1) * 3600) refused(`\"${written}\" has a UTC offset outside -${pad(offsetLimit)}:59 to +${pad(offsetLimit)}:59, which ${id} does not hold. Write a smaller offset, as in \"${shape.example}\".`);\n\tconst value = normalized(parts, options.shape);\n\tconst { range } = options;\n\tif (range !== void 0) {\n\t\tconst at = position(value);\n\t\tif (isBefore(at, boundPosition(range.earliest, options.shape)) || isBefore(boundPosition(range.latest, options.shape), at)) refused(`${id} holds ${shape.plural} from ${range.earliest} to ${range.latest}, and \"${written}\" is outside them.`);\n\t}\n\treturn printed(value, options.shape);\n}\n//#endregion\nexport { canonicalDateTime, canonicalNumeralText, createNumberClassifier, escapePslString, integerTextCanonicalForm, isNumeralText, parseJsonBody, printJsonBody, signedRange };\n\n//# sourceMappingURL=data-type-support.mjs.map"],"mappings":";;;;;AAKA,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,kBAAkB;;AAExB,SAAS,cAAc,MAAM;CAC5B,OAAO,aAAa,KAAK,IAAI,KAAK,aAAa,KAAK,IAAI;AACzD;;;;;AAKA,SAAS,qBAAqB,MAAM;CACnC,MAAM,UAAU,gBAAgB,KAAK,IAAI;CACzC,IAAI,YAAY,MAAM,OAAO;CAC7B,MAAM,GAAG,OAAO,IAAI,QAAQ,IAAI,WAAW,MAAM;CACjD,MAAM,SAAS,GAAG,QAAQ;CAC1B,OAAO,UAAU,KAAK,MAAM,IAAI,SAAS,GAAG,OAAO;AACpD;;;;AAIA,MAAM,4BAA4B,UAAU;CAC3C,IAAI,OAAO,UAAU,YAAY,OAAO,cAAc,KAAK,GAAG,OAAO,YAAY,KAAK;CACtF,IAAI,OAAO,UAAU,YAAY,aAAa,KAAK,KAAK,GAAG,OAAO,OAAO,KAAK,CAAC,CAAC,SAAS;CACzF,MAAM,gBAAgB,yBAAyB,8CAA8C,KAAK,UAAU,KAAK,EAAE,IAAI;EACtH,KAAK;EACL,KAAK;CACN,CAAC;AACF;;AAEA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,MAAM,QAAQ,OAAO,MAAM,CAAC,CAAC,QAAQ,MAAM,MAAM,CAAC,CAAC,QAAQ,OAAO,KAAK,CAAC,CAAC,QAAQ,OAAO,KAAK;AACrG;;AAEA,SAAS,YAAY,MAAM;CAC1B,MAAM,OAAO,OAAO,OAAO,IAAI,IAAI;CACnC,OAAO;EACN,KAAK,CAAC;EACN,KAAK,OAAO;CACb;AACD;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C,GAAG,SAAS,eAAe,mBAAmB,eAAe,kBAAkB,qBAAqB,aAAa,MAAM,SAAS,iBAAiB,EAAE,GAAG;CAC5R,MAAM,EAAE,MAAM,SAAS;CACvB,IAAI,SAAS,KAAK,MAAM,KAAK,QAAQ,KAAK,KAAK,QAAQ,MAAM,KAAK,MAAM,KAAK,KAAK,MAAM,YAAY,KAAK,MAAM,KAAK,KAAK,IAAI,QAAQ,IAAI,QAAQ,yDAAyD,MAAM,QAAQ,GAAG;CAC3N,IAAI,SAAS,KAAK,MAAM,KAAK,OAAO,MAAM,KAAK,SAAS,MAAM,KAAK,SAAS,KAAK,QAAQ,IAAI,QAAQ,wHAAwH,MAAM,QAAQ,GAAG;CAC9O,MAAM,cAAc,QAAQ,kBAAkB;CAC9C,IAAI,MAAM,kBAAkB,KAAK,KAAK,KAAK,IAAI,MAAM,aAAa,MAAM,cAAc,KAAK,MAAM,QAAQ,IAAI,QAAQ,8BAA8B,IAAI,WAAW,EAAE,UAAU,IAAI,WAAW,EAAE,aAAa,GAAG,iDAAiD,MAAM,QAAQ,GAAG;CACjR,MAAM,QAAQ,WAAW,OAAO,QAAQ,KAAK;CAC7C,MAAM,EAAE,UAAU;CAClB,IAAI,UAAU,KAAK,GAAG;EACrB,MAAM,KAAK,SAAS,KAAK;EACzB,IAAI,SAAS,IAAI,cAAc,MAAM,UAAU,QAAQ,KAAK,CAAC,KAAK,SAAS,cAAc,MAAM,QAAQ,QAAQ,KAAK,GAAG,EAAE,GAAG,QAAQ,GAAG,GAAG,SAAS,MAAM,OAAO,QAAQ,MAAM,SAAS,MAAM,MAAM,OAAO,SAAS,QAAQ,mBAAmB;CAC/O;CACA,OAAO,QAAQ,OAAO,QAAQ,KAAK;AACpC"}
|
|
1
|
+
{"version":3,"file":"data-type-support-DeL6iJt8.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/data-type-support.mjs"],"sourcesContent":["import { t as numeralText } from \"./numeral-text-Cqu87pVe.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { isNonFiniteText } from \"@internal/framework-components/codec\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/data-type-support.ts\nconst INTEGER_TEXT = /^-?\\d+$/;\nconst DECIMAL_TEXT = /^-?\\d+\\.\\d+$/;\nconst DECIMAL_NUMERAL = /^(-?)0*(\\d+)(\\.\\d+)?$/;\n/** Whether `text` is a whole number or a decimal as a contract source writes one. */\nfunction isNumeralText(text) {\n\treturn INTEGER_TEXT.test(text) || DECIMAL_TEXT.test(text);\n}\n/**\n* A written numeral as the contract stores it. Leading zeros and the sign of zero never change a\n* number, so they go; trailing zeros stay, because a type without a scale keeps them.\n*/\nfunction canonicalNumeralText(text) {\n\tconst numeral = DECIMAL_NUMERAL.exec(text);\n\tif (numeral === null) return text;\n\tconst [, sign = \"\", whole = \"\", fraction = \"\"] = numeral;\n\tconst digits = `${whole}${fraction}`;\n\treturn /^[0.]+$/.test(digits) ? digits : `${sign}${digits}`;\n}\n/**\n* The canonical form of a 64-bit integer type: digit text. A database reads an integer default back as a number when it is a safe integer, so a safe integer reads as its digit text too; any other number may already have lost digits and is refused.\n*/\nconst integerTextCanonicalForm = (value) => {\n\tif (typeof value === \"number\" && Number.isSafeInteger(value)) return numeralText(value);\n\tif (typeof value === \"string\" && INTEGER_TEXT.test(value)) return BigInt(value).toString();\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `Expected digit text or a safe integer, got ${JSON.stringify(value)}.`, {\n\t\twhy: \"A 64-bit integer type stores its value as digit text, and a number past the safe integer range may already have lost digits.\",\n\t\tfix: \"Write the value as digit text.\"\n\t});\n};\n/** A string as a contract source writes it, with the escapes its string reader resolves. */\nfunction escapePslString(value) {\n\treturn value.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, \"\\\\\\\"\").replace(/\\n/g, \"\\\\n\").replace(/\\r/g, \"\\\\r\");\n}\n/** The range of a signed integer of `bits` bits. */\nfunction signedRange(bits) {\n\tconst half = 2n ** (BigInt(bits) - 1n);\n\treturn {\n\t\tmin: -half,\n\t\tmax: half - 1n\n\t};\n}\n/**\n* The classifier one target's plain-number authoring entry carries: it reads the digits and says\n* which of the target's types the value is, in that type's canonical form. `undefined` means no\n* type of this target holds the number.\n*/\nfunction createNumberClassifier(spec) {\n\tconst as = (classification, value) => classification === void 0 ? void 0 : {\n\t\ttype: classification.type,\n\t\tvalue\n\t};\n\treturn (text) => {\n\t\tif (isNonFiniteText(text)) return as(spec.words, spec.words?.form === \"number\" ? Number(text) : text);\n\t\tif (DECIMAL_TEXT.test(text)) {\n\t\t\tconst canonical = canonicalNumeralText(text);\n\t\t\treturn as(spec.fraction, spec.fraction?.form === \"number\" ? Number(canonical) : canonical);\n\t\t}\n\t\tif (!INTEGER_TEXT.test(text)) return void 0;\n\t\tconst digits = BigInt(text);\n\t\tconst classification = spec.integers.find(({ min, max }) => digits >= min && digits <= max) ?? spec.largerWhole;\n\t\treturn as(classification, classification?.form === \"number\" ? Number(digits) : digits.toString());\n\t};\n}\n/**\n* Read a JSON body into the document it holds.\n*\n* `JSON.parse` reads a numeral too large for a double as `Infinity`, and `JSON.stringify` writes\n* that back as `null`, so a document holding one would not be the document stored; it is refused\n* here instead, naming where the number is.\n*/\nfunction parseJsonBody(text) {\n\tlet value;\n\ttry {\n\t\tvalue = JSON.parse(text);\n\t} catch (error) {\n\t\tthrow structuredError(\"CONTRACT.INVALID_JSON_LITERAL\", error instanceof Error ? error.message : String(error), {\n\t\t\twhy: \"The body is not a JSON document.\",\n\t\t\tfix: \"Write a JSON document.\"\n\t\t});\n\t}\n\tconst overflowed = nonFiniteNumberIn(value, \"\");\n\tif (overflowed !== void 0) throw structuredError(\"CONTRACT.INVALID_JSON_LITERAL\", `${overflowed.path} is ${overflowed.value}, which JSON cannot write back: the number in the text is outside the range a JSON number holds.`, {\n\t\twhy: \"JSON.parse reads a numeral too large for a double as Infinity, which JSON.stringify writes back as null.\",\n\t\tfix: \"Write a number JSON can hold, or write it as text.\"\n\t});\n\treturn value;\n}\n/** Write a document as the body of a JSON literal. */\nfunction printJsonBody(value) {\n\treturn JSON.stringify(value);\n}\nfunction nonFiniteNumberIn(value, path) {\n\tif (typeof value === \"number\") return Number.isFinite(value) ? void 0 : {\n\t\tpath: path === \"\" ? \"The value\" : path,\n\t\tvalue\n\t};\n\tif (Array.isArray(value)) {\n\t\tfor (const [index, element] of value.entries()) {\n\t\t\tconst found = nonFiniteNumberIn(element, `${path}[${index}]`);\n\t\t\tif (found !== void 0) return found;\n\t\t}\n\t\treturn;\n\t}\n\tif (typeof value === \"object\" && value !== null) for (const [key, member] of Object.entries(value)) {\n\t\tconst found = nonFiniteNumberIn(member, path === \"\" ? key : `${path}.${key}`);\n\t\tif (found !== void 0) return found;\n\t}\n}\n//#endregion\n//#region src/date-time-canonical-form.ts\n/**\n* The reader the SQL targets build the canonical form of each date and time type with; ADR 254\n* states the forms and the text it reads.\n*/\nconst SHAPES = {\n\tdate: {\n\t\tdescription: \"a date\",\n\t\tplural: \"dates\",\n\t\texample: \"2024-01-01\",\n\t\tdate: true,\n\t\ttime: false,\n\t\toffset: false\n\t},\n\ttime: {\n\t\tdescription: \"a time of day\",\n\t\tplural: \"times of day\",\n\t\texample: \"12:34:56\",\n\t\tdate: false,\n\t\ttime: true,\n\t\toffset: false\n\t},\n\ttimeWithOffset: {\n\t\tdescription: \"a time of day with a UTC offset\",\n\t\tplural: \"times of day with a UTC offset\",\n\t\texample: \"12:34:56+02:00\",\n\t\tdate: false,\n\t\ttime: true,\n\t\toffset: true\n\t},\n\tdateTime: {\n\t\tdescription: \"a date and time\",\n\t\tplural: \"dates and times\",\n\t\texample: \"2024-01-01T12:34:56\",\n\t\tdate: true,\n\t\ttime: true,\n\t\toffset: false\n\t},\n\tinstant: {\n\t\tdescription: \"a date and time with a UTC offset\",\n\t\tplural: \"instants\",\n\t\texample: \"2024-01-01T12:34:56Z\",\n\t\tdate: true,\n\t\ttime: true,\n\t\toffset: true\n\t}\n};\nconst DATE_PREFIX = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})/;\nconst TIME_PREFIX = /^(\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.(\\d+))?)?/;\nconst OFFSET = /^([+-])(\\d{2})(?::(\\d{2})(?::(\\d{2}))?)?$/;\nconst MAX_FRACTION_DIGITS = 6;\nconst FRACTION_UNITS = {\n\t3: \"milliseconds\",\n\t6: \"microseconds\"\n};\nconst SECONDS_PER_DAY = 86400;\nconst MIDNIGHT = {\n\thour: 0,\n\tminute: 0,\n\tsecond: 0,\n\tfraction: \"\"\n};\nfunction refused(message) {\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", message, {\n\t\twhy: \"A date or time type stores one canonical form for each value (ADR 254).\",\n\t\tfix: \"Write text the type holds, as the message shows.\"\n\t});\n}\nfunction isLeapYear(year) {\n\treturn year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n}\nfunction daysInMonth(year, month) {\n\tif (month === 2) return isLeapYear(year) ? 29 : 28;\n\treturn [\n\t\t4,\n\t\t6,\n\t\t9,\n\t\t11\n\t].includes(month) ? 30 : 31;\n}\n/** Days from 1970-01-01 to a date of the proleptic Gregorian calendar, with year 0 as 1 BC. */\nfunction daysFromCivil({ year, month, day }) {\n\tconst shifted = month <= 2 ? year - 1 : year;\n\tconst era = Math.floor(shifted / 400);\n\tconst yearOfEra = shifted - era * 400;\n\tconst dayOfYear = Math.floor((153 * (month + (month > 2 ? -3 : 9)) + 2) / 5) + day - 1;\n\tconst dayOfEra = yearOfEra * 365 + Math.floor(yearOfEra / 4) - Math.floor(yearOfEra / 100) + dayOfYear;\n\treturn era * 146097 + dayOfEra - 719468;\n}\nfunction civilFromDays(days) {\n\tconst shifted = days + 719468;\n\tconst era = Math.floor(shifted / 146097);\n\tconst dayOfEra = shifted - era * 146097;\n\tconst yearOfEra = Math.floor((dayOfEra - Math.floor(dayOfEra / 1460) + Math.floor(dayOfEra / 36524) - Math.floor(dayOfEra / 146096)) / 365);\n\tconst dayOfYear = dayOfEra - (365 * yearOfEra + Math.floor(yearOfEra / 4) - Math.floor(yearOfEra / 100));\n\tconst monthIndex = Math.floor((5 * dayOfYear + 2) / 153);\n\tconst day = dayOfYear - Math.floor((153 * monthIndex + 2) / 5) + 1;\n\tconst month = monthIndex < 10 ? monthIndex + 3 : monthIndex - 9;\n\treturn {\n\t\tyear: yearOfEra + era * 400 + (month <= 2 ? 1 : 0),\n\t\tmonth,\n\t\tday\n\t};\n}\nfunction pad(value, width = 2) {\n\treturn String(value).padStart(width, \"0\");\n}\nfunction yearText(year) {\n\tif (year >= 0 && year <= 9999) return pad(year, 4);\n\treturn `${year < 0 ? \"-\" : \"+\"}${pad(Math.abs(year), 6)}`;\n}\nfunction dateText(date) {\n\treturn `${yearText(date.year)}-${pad(date.month)}-${pad(date.day)}`;\n}\nfunction timeText(time) {\n\tconst fraction = time.fraction.replace(/0+$/, \"\");\n\treturn `${pad(time.hour)}:${pad(time.minute)}:${pad(time.second)}${fraction === \"\" ? \"\" : `.${fraction}`}`;\n}\nfunction offsetText(seconds) {\n\tif (seconds === 0) return \"Z\";\n\tconst magnitude = Math.abs(seconds);\n\tconst rest = magnitude % 60;\n\treturn `${seconds < 0 ? \"-\" : \"+\"}${pad(Math.floor(magnitude / 3600))}:${pad(Math.floor(magnitude / 60) % 60)}${rest === 0 ? \"\" : `:${pad(rest)}`}`;\n}\n/**\n* The fields of an ISO 8601 date, time, or date and time, or `undefined` when the text is not one.\n* Ranges are checked by the caller, which words the refusal.\n*/\nfunction readWritten(text) {\n\tlet rest = text;\n\tlet date;\n\tlet timeFollows = true;\n\tconst dateMatch = DATE_PREFIX.exec(rest);\n\tif (dateMatch !== null) {\n\t\tconst [whole, yearDigits = \"\", month = \"\", day = \"\"] = dateMatch;\n\t\tif (yearDigits === \"-000000\") return void 0;\n\t\tdate = {\n\t\t\tyear: Number(yearDigits),\n\t\t\tmonth: Number(month),\n\t\t\tday: Number(day)\n\t\t};\n\t\trest = rest.slice(whole.length);\n\t\ttimeFollows = /^[Tt ]/.test(rest);\n\t\tif (timeFollows) rest = rest.slice(1);\n\t}\n\tlet time;\n\tlet fractionDigits = 0;\n\tif (timeFollows) {\n\t\tconst timeMatch = TIME_PREFIX.exec(rest);\n\t\tif (timeMatch === null) return void 0;\n\t\tconst [whole, hour = \"\", minute = \"\", second = \"00\", fraction = \"\"] = timeMatch;\n\t\ttime = {\n\t\t\thour: Number(hour),\n\t\t\tminute: Number(minute),\n\t\t\tsecond: Number(second),\n\t\t\tfraction\n\t\t};\n\t\tfractionDigits = fraction.length;\n\t\trest = rest.slice(whole.length);\n\t}\n\tlet offsetSeconds;\n\tif (rest === \"Z\" || rest === \"z\") offsetSeconds = 0;\n\telse if (rest !== \"\") {\n\t\tconst offset = OFFSET.exec(rest);\n\t\tif (offset === null) return void 0;\n\t\tconst [, sign, hours = \"\", minutes = \"00\", seconds = \"00\"] = offset;\n\t\tif (Number(minutes) > 59 || Number(seconds) > 59) return void 0;\n\t\tconst magnitude = Number(hours) * 3600 + Number(minutes) * 60 + Number(seconds);\n\t\toffsetSeconds = sign === \"-\" ? -magnitude : magnitude;\n\t}\n\treturn {\n\t\tdate,\n\t\ttime,\n\t\toffsetSeconds,\n\t\tfractionDigits\n\t};\n}\nfunction withFraction(example, digits) {\n\treturn example.replace(/(\\d{2}:\\d{2}:\\d{2})/, `$1.${\"123456\".slice(0, digits)}`);\n}\n/** The value with an instant moved to UTC. */\nfunction normalized(written, shape) {\n\tconst clock = written.time ?? MIDNIGHT;\n\tconst offsetSeconds = written.offsetSeconds ?? 0;\n\tif (written.date === void 0 || shape !== \"instant\") return {\n\t\tdate: written.date,\n\t\ttime: clock,\n\t\toffsetSeconds\n\t};\n\tconst utc = daysFromCivil(written.date) * SECONDS_PER_DAY + clock.hour * 3600 + clock.minute * 60 + clock.second - offsetSeconds;\n\tconst days = Math.floor(utc / SECONDS_PER_DAY);\n\tconst secondOfDay = utc - days * SECONDS_PER_DAY;\n\treturn {\n\t\tdate: civilFromDays(days),\n\t\ttime: {\n\t\t\thour: Math.floor(secondOfDay / 3600),\n\t\t\tminute: Math.floor(secondOfDay / 60) % 60,\n\t\t\tsecond: secondOfDay % 60,\n\t\t\tfraction: clock.fraction\n\t\t},\n\t\toffsetSeconds: 0\n\t};\n}\nfunction position(value) {\n\tconst { time } = value;\n\treturn [\n\t\tvalue.date === void 0 ? 0 : daysFromCivil(value.date),\n\t\ttime.hour * 3600 + time.minute * 60 + time.second,\n\t\ttime.fraction.padEnd(MAX_FRACTION_DIGITS, \"0\")\n\t];\n}\nfunction isBefore(left, right) {\n\tif (left[0] !== right[0]) return left[0] < right[0];\n\tif (left[1] !== right[1]) return left[1] < right[1];\n\treturn left[2] < right[2];\n}\nfunction printed(value, shape) {\n\tconst { date, time, offsetSeconds } = value;\n\tif (date === void 0) return shape === \"timeWithOffset\" ? `${timeText(time)}${offsetText(offsetSeconds)}` : timeText(time);\n\tif (shape === \"date\") return dateText(date);\n\tif (shape === \"dateTime\") return `${dateText(date)}T${timeText(time)}`;\n\treturn `${dateText(date)}T${timeText(time)}Z`;\n}\n/** The position of a range bound, which the data type declares in canonical form. */\nfunction boundPosition(text, shape) {\n\tconst written = readWritten(text);\n\tif (written === void 0) throw new InternalError(`The range bound \"${text}\" is not in canonical form.`);\n\treturn position(normalized(written, shape));\n}\n/**\n* The canonical form of written date or time text, or a refusal with a message that says what is\n* wrong and shows text the type holds. `written` is the text as its author wrote it, which the\n* message shows, when a target rewrote it into ISO 8601 before calling this.\n*/\nfunction canonicalDateTime(text, options, written = text) {\n\tconst shape = SHAPES[options.shape];\n\tconst { ownerId: id } = options;\n\tconst parts = readWritten(text);\n\tif (parts === void 0) refused(`${id} cannot read \"${written}\". Write ${shape.description}, as in \"${shape.example}\".`);\n\tif (parts.date !== void 0 && !shape.date) refused(`${id} holds a time of day without a date, but \"${written}\" has a date. Write the time alone, as in \"${shape.example}\".`);\n\tif (parts.date === void 0 && shape.date) refused(shape.time ? `${id} holds ${shape.description}, but \"${written}\" has no date. Write the date too, as in \"${shape.example}\".` : `${id} holds a date, and \"${written}\" is a time of day. Write a date, as in \"${shape.example}\".`);\n\tif (parts.time !== void 0 && !shape.time) refused(`${id} holds a date without a time of day, but \"${written}\" has a time. Write the date alone, as in \"${shape.example}\".`);\n\tif (parts.time === void 0 && shape.offset) refused(`${id} holds ${shape.description}, but \"${written}\" has no time of day. Write the time too, as in \"${shape.example}\".`);\n\tif (parts.offsetSeconds !== void 0 && !shape.offset) refused(`${id} holds no UTC offset, but \"${written}\" has one. Leave it out, as in \"${shape.example}\".`);\n\tif (parts.offsetSeconds === void 0 && shape.offset) refused(`${id} needs a UTC offset, but \"${written}\" has none. Add Z for UTC or an offset such as +02:00, as in \"${shape.example}\".`);\n\tconst maxFractionDigits = options.maxFractionDigits ?? MAX_FRACTION_DIGITS;\n\tif (parts.fractionDigits > maxFractionDigits) refused(`\"${written}\" has ${parts.fractionDigits} digits after the decimal point, but ${id} holds ${FRACTION_UNITS[maxFractionDigits]}, so at most ${maxFractionDigits}. Round it, as in \"${withFraction(shape.example, maxFractionDigits)}\".`);\n\tconst { date, time } = parts;\n\tif (date !== void 0 && (date.month < 1 || date.month > 12 || date.day < 1 || date.day > daysInMonth(date.year, date.month))) refused(`\"${written}\" is not a date that exists. Write a real date, as in \"${shape.example}\".`);\n\tif (time !== void 0 && (time.hour > 23 || time.minute > 59 || time.second > 59)) refused(`\"${written}\" is not a time of day that exists: hours run from 00 to 23, and minutes and seconds from 00 to 59. Write one, as in \"${shape.example}\".`);\n\tconst offsetLimit = options.maxOffsetHours ?? 23;\n\tif (parts.offsetSeconds !== void 0 && Math.abs(parts.offsetSeconds) >= (offsetLimit + 1) * 3600) refused(`\"${written}\" has a UTC offset outside -${pad(offsetLimit)}:59 to +${pad(offsetLimit)}:59, which ${id} does not hold. Write a smaller offset, as in \"${shape.example}\".`);\n\tconst value = normalized(parts, options.shape);\n\tconst { range } = options;\n\tif (range !== void 0) {\n\t\tconst at = position(value);\n\t\tif (isBefore(at, boundPosition(range.earliest, options.shape)) || isBefore(boundPosition(range.latest, options.shape), at)) refused(`${id} holds ${shape.plural} from ${range.earliest} to ${range.latest}, and \"${written}\" is outside them.`);\n\t}\n\treturn printed(value, options.shape);\n}\n//#endregion\nexport { canonicalDateTime, canonicalNumeralText, createNumberClassifier, escapePslString, integerTextCanonicalForm, isNumeralText, parseJsonBody, printJsonBody, signedRange };\n\n//# sourceMappingURL=data-type-support.mjs.map"],"mappings":";;;;;AAKA,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,kBAAkB;;AAExB,SAAS,cAAc,MAAM;CAC5B,OAAO,aAAa,KAAK,IAAI,KAAK,aAAa,KAAK,IAAI;AACzD;;;;;AAKA,SAAS,qBAAqB,MAAM;CACnC,MAAM,UAAU,gBAAgB,KAAK,IAAI;CACzC,IAAI,YAAY,MAAM,OAAO;CAC7B,MAAM,GAAG,OAAO,IAAI,QAAQ,IAAI,WAAW,MAAM;CACjD,MAAM,SAAS,GAAG,QAAQ;CAC1B,OAAO,UAAU,KAAK,MAAM,IAAI,SAAS,GAAG,OAAO;AACpD;;;;AAIA,MAAM,4BAA4B,UAAU;CAC3C,IAAI,OAAO,UAAU,YAAY,OAAO,cAAc,KAAK,GAAG,OAAO,YAAY,KAAK;CACtF,IAAI,OAAO,UAAU,YAAY,aAAa,KAAK,KAAK,GAAG,OAAO,OAAO,KAAK,CAAC,CAAC,SAAS;CACzF,MAAM,gBAAgB,yBAAyB,8CAA8C,KAAK,UAAU,KAAK,EAAE,IAAI;EACtH,KAAK;EACL,KAAK;CACN,CAAC;AACF;;AAEA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,MAAM,QAAQ,OAAO,MAAM,CAAC,CAAC,QAAQ,MAAM,MAAM,CAAC,CAAC,QAAQ,OAAO,KAAK,CAAC,CAAC,QAAQ,OAAO,KAAK;AACrG;;AAEA,SAAS,YAAY,MAAM;CAC1B,MAAM,OAAO,OAAO,OAAO,IAAI,IAAI;CACnC,OA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instant';
|
|
70
70
|
interface CanonicalDateTimeOptions {
|
|
71
71
|
readonly shape: DateTimeShape;
|
|
72
|
-
/** The data type
|
|
73
|
-
readonly
|
|
72
|
+
/** The id of the data type or codec that declares this canonical form, which messages name. */
|
|
73
|
+
readonly ownerId: string;
|
|
74
74
|
/** The largest UTC offset the type holds, in hours. Defaults to 23. */
|
|
75
75
|
readonly maxOffsetHours?: number;
|
|
76
76
|
/** The most digits after the decimal point the type holds. Defaults to 6, microseconds. */
|
|
@@ -89,4 +89,4 @@ interface CanonicalDateTimeOptions {
|
|
|
89
89
|
declare function canonicalDateTime(text: string, options: CanonicalDateTimeOptions, written?: string): string;
|
|
90
90
|
//#endregion
|
|
91
91
|
export { NumberClassifierSpec as a, createNumberClassifier as c, isNumeralText as d, parseJsonBody as f, NumberClassification as i, escapePslString as l, signedRange as m, DateTimeShape as n, canonicalDateTime as o, printJsonBody as p, IntegerStep as r, canonicalNumeralText as s, CanonicalDateTimeOptions as t, integerTextCanonicalForm as u };
|
|
92
|
-
//# sourceMappingURL=data-type-support-
|
|
92
|
+
//# sourceMappingURL=data-type-support-DoxtCfXq.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-type-support-
|
|
1
|
+
{"version":3,"file":"data-type-support-DoxtCfXq.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/data-type-support.d.mts"],"mappings":";;;;;iBAIiB,cAAc;;;;;iBAKd,qBAAqB;;;;cAIxB,0BAA0B;;iBAEvB,gBAAgB;;UAEvB;WACC,MAAM;WACN;;;UAGD,oBAAoB;WACnB;WACA;;;iBAGM,YAAY;WAClB;WACA;;UAED;;WAEC,mBAAmB;;WAEnB,cAAc;;WAEd,WAAW;;WAEX,QAAQ;;;;;;;iBAOF,uBAAuB,MAAM,wBAAwB;WAC3D,MAAM;WACN,OAAO;;;;;;;;;iBASD,cAAc,eAAe;;iBAE7B,cAAc,OAAO;;;;;;;;KAQjC;UACK;WACC,OAAO;;WAEP;;WAEA;;WAEA;;WAEA;aACE;aACA;;;;;;;;iBAQI,kBAAkB,cAAc,SAAS,0BAA0B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as StorageTable } from "./storage-table-
|
|
2
|
-
import { T as QueryOperationTypesBase, h as ExtractStorageColumnTypes, l as ExtractAggregateTypes, m as ExtractStorageColumnInputTypes, p as ExtractQueryOperationTypes, r as AggregateTypesBase, u as ExtractCodecTypes } from "./types-
|
|
3
|
-
import { o as StorageColumnMapAt } from "./types-
|
|
4
|
-
import { Ot as SelectAst, l as AnyFromSource, vt as OrderByNulls } from "./types-Dskga3R1-
|
|
5
|
-
import "./ast-
|
|
6
|
-
import { n as SqlQueryPlan } from "./plan-BlQITcbP-
|
|
7
|
-
import { S as TraitExpression, c as RawAffectedCountQuery, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, o as Expression, r as CodecExpression, s as NoReservedRowColumn, x as ScopeField, y as RawSqlTag } from "./expression-
|
|
8
|
-
import "./plan-
|
|
1
|
+
import { r as StorageTable } from "./storage-table-BBcKoAuF-CssyCQhM.mjs";
|
|
2
|
+
import { T as QueryOperationTypesBase, h as ExtractStorageColumnTypes, l as ExtractAggregateTypes, m as ExtractStorageColumnInputTypes, p as ExtractQueryOperationTypes, r as AggregateTypesBase, u as ExtractCodecTypes } from "./types-DV040Uuq-Bu8CnbMa.mjs";
|
|
3
|
+
import { o as StorageColumnMapAt } from "./types-DkOYK86-.mjs";
|
|
4
|
+
import { Ot as SelectAst, l as AnyFromSource, vt as OrderByNulls } from "./types-Dskga3R1-DeSwpS4A.mjs";
|
|
5
|
+
import "./ast-Foar49zl.mjs";
|
|
6
|
+
import { n as SqlQueryPlan } from "./plan-BlQITcbP-B2q80evU.mjs";
|
|
7
|
+
import { S as TraitExpression, c as RawAffectedCountQuery, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, o as Expression, r as CodecExpression, s as NoReservedRowColumn, x as ScopeField, y as RawSqlTag } from "./expression-DTVL16zb.mjs";
|
|
8
|
+
import "./plan-D11FmUVM.mjs";
|
|
9
9
|
import { AnnotationValue, OperationKind, ValidAnnotations } from "@prisma/orm-framework/components/runtime";
|
|
10
10
|
//#region ../../../2-sql/4-lanes/sql-builder/dist/db-DLjWu9-f.d.mts
|
|
11
11
|
//#region src/scope.d.ts
|
|
@@ -564,4 +564,4 @@ type Namespace<C extends TableProxyContract, NsId extends string & keyof C['stor
|
|
|
564
564
|
type Db<C extends TableProxyContract> = { readonly [Ns in keyof C['storage']['namespaces'] & string]: Namespace<C, Ns>; };
|
|
565
565
|
//#endregion
|
|
566
566
|
export { UnboundTables as C, TableProxyContract as S, WhereFilter as T, SelectQuery as _, DeleteQuery as a, TableNamesAcrossNamespaces as b, GatedMethod as c, Namespace as d, QueryContext as f, Scope as g, ResolveRow as h, Db as i, GroupedQuery as l, RawTagFor as m, BooleanCodecType as n, FieldProxy as o, RawLane as p, ContractRawTag as r, Functions as s, AggregateFunctions as t, InsertQuery as u, Subquery as v, UpdateQuery as w, TableProxy as x, TableInAnyNamespace as y };
|
|
567
|
-
//# sourceMappingURL=db-DLjWu9-f-
|
|
567
|
+
//# sourceMappingURL=db-DLjWu9-f-Cw18jt8N.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-DLjWu9-f-T8QbxDGY.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/sql-builder/dist/db-DLjWu9-f.d.mts"],"mappings":";;;;;;;;;;;KAMK,YAAY,cAAc,UAAU,UAAU,qBAAqB,WAAW;cACrE;cACA;KACT,OAAO,QAAQ,WAAW,IAAI,EAAE;KAChC,WAAW,cAAc;KACzB,aAAa,eAAe;KAC5B;EACH,UAAU;EACV,YAAY,eAAe;;KAExB,WAAW,YAAY,YAAY;YAC5B;IACR,UAAU;IACV,YAAY,OAAO,OAAO;;EAE5B,qBAAqB;EACrB,YAAY;;KAET,aAAa,qBAAqB,cAAc;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,GAAG;KACzH,sBAAsB,UAAU,oBAAoB,mBAAmB,oCAAoC,kBAAkB,2BAA2B;KACxJ,2BAA2B,UAAU,yBAAyB,cAAc,mCAAmC,kBAAkB,2BAA2B,yBAAyB;KACrL,oBAAoB,UAAU,oBAAoB,0BAA0B,cAAc,6BAA6B,mBAAmB,kBAAkB,2BAA2B,SAAS,kBAAkB,2BAA2B,OAAO,uBAAuB;KAC3Q,eAAe,UAAU,oBAAoB,qBAAqB,uBAAuB,kBAAkB,2BAA2B,OAAO;KAC7I,UAAU,UAAU,oBAAoB,4BAA4B,0CAA0C,cAAc,kBAAkB,2BAA2B,kBAAkB,WAAW,GAAG,MAAM;;;;;;;;;KAS/M,GAAG,UAAU,kCAAkC,YAAY,sCAAsC,UAAU,GAAG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as ReferentialAction } from "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
|
|
2
|
-
import "./types-
|
|
3
|
-
import { E as CodecRef$1, m as AnyParamRef } from "./types-Dskga3R1-
|
|
2
|
+
import "./types-DkOYK86-.mjs";
|
|
3
|
+
import { E as CodecRef$1, m as AnyParamRef } from "./types-Dskga3R1-DeSwpS4A.mjs";
|
|
4
4
|
import { ColumnDefaultLiteralInputValue } from "@prisma/orm-framework/contract/types";
|
|
5
|
-
//#region ../../../2-sql/4-lanes/relational-core/dist/ddl-types-
|
|
5
|
+
//#region ../../../2-sql/4-lanes/relational-core/dist/ddl-types-CWIiJxsH.d.mts
|
|
6
6
|
//#region src/ast/opaque-sql.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* SQL text that Prisma does not parse, placed inside a larger statement: a CHECK or policy predicate, an index element list or predicate, a column default, or an ALTER COLUMN TYPE conversion. ADR 244 calls such text opaque.
|
|
@@ -18,38 +18,19 @@ declare function opaqueSql(text: string): OpaqueSql;
|
|
|
18
18
|
declare function renderOpaqueSql(sql: OpaqueSql): string;
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/ast/ddl-types.d.ts
|
|
21
|
-
/**
|
|
22
|
-
* Render-time context the column-default visitor needs to make dialect
|
|
23
|
-
* decisions that depend on the parent column. Today only the parent
|
|
24
|
-
* column's native type (`"jsonb"`, `"text"`, …) — the Postgres renderer
|
|
25
|
-
* uses it to decide whether to emit a `::jsonb` / `::json` cast on JSON
|
|
26
|
-
* literal defaults so the emitted DDL matches the column type without
|
|
27
|
-
* relying on Postgres's implicit text → jsonb cast at default-evaluation
|
|
28
|
-
* time. Additional fields can join without re-shaping the interface.
|
|
29
|
-
*/
|
|
30
|
-
interface DdlColumnRenderContext {
|
|
31
|
-
readonly nativeType: string;
|
|
32
|
-
}
|
|
33
|
-
interface DdlColumnDefaultVisitor<R> {
|
|
34
|
-
literal(node: LiteralColumnDefault, ctx: DdlColumnRenderContext): R;
|
|
35
|
-
function(node: FunctionColumnDefault, ctx: DdlColumnRenderContext): R;
|
|
36
|
-
}
|
|
37
21
|
declare abstract class DdlColumnDefault {
|
|
38
22
|
abstract readonly kind: string;
|
|
39
|
-
abstract accept<R>(visitor: DdlColumnDefaultVisitor<R>, ctx: DdlColumnRenderContext): R;
|
|
40
23
|
protected freeze(): void;
|
|
41
24
|
}
|
|
42
25
|
declare class LiteralColumnDefault extends DdlColumnDefault {
|
|
43
26
|
readonly kind: "literal";
|
|
44
27
|
readonly value: ColumnDefaultLiteralInputValue;
|
|
45
28
|
constructor(value: ColumnDefaultLiteralInputValue);
|
|
46
|
-
accept<R>(visitor: DdlColumnDefaultVisitor<R>, ctx: DdlColumnRenderContext): R;
|
|
47
29
|
}
|
|
48
30
|
declare class FunctionColumnDefault extends DdlColumnDefault {
|
|
49
31
|
readonly kind: "function";
|
|
50
32
|
readonly expression: OpaqueSql;
|
|
51
33
|
constructor(expression: OpaqueSql);
|
|
52
|
-
accept<R>(visitor: DdlColumnDefaultVisitor<R>, ctx: DdlColumnRenderContext): R;
|
|
53
34
|
}
|
|
54
35
|
type AnyDdlColumnDefault = LiteralColumnDefault | FunctionColumnDefault;
|
|
55
36
|
declare class DdlColumn {
|
|
@@ -158,5 +139,5 @@ declare class CheckExpressionConstraint {
|
|
|
158
139
|
}
|
|
159
140
|
type DdlTableConstraint = PrimaryKeyConstraint | ForeignKeyConstraint | UniqueConstraint | CheckExpressionConstraint;
|
|
160
141
|
//#endregion
|
|
161
|
-
export {
|
|
162
|
-
//# sourceMappingURL=ddl-types-
|
|
142
|
+
export { DdlNode as a, FunctionColumnDefault as c, PrimaryKeyConstraint as d, UniqueConstraint as f, renderOpaqueSql as h, DdlColumnDefault as i, LiteralColumnDefault as l, opaqueSql as m, CheckExpressionConstraint as n, DdlTableConstraint as o, isDdlNode as p, DdlColumn as r, ForeignKeyConstraint as s, AnyDdlColumnDefault as t, OpaqueSql as u };
|
|
143
|
+
//# sourceMappingURL=ddl-types-CWIiJxsH-BixiHVIr.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ddl-types-CWIiJxsH-BixiHVIr.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/ddl-types-CWIiJxsH.d.mts"],"mappings":";;;;;;;;;cAOc;WACH;EACT,YAAY;;iBAEG,UAAU,eAAe;;;;iBAIzB,gBAAgB,KAAK;;;uBAGf;oBACH;YACR;;cAEE,6BAA6B;WAChC;WACA,OAAO;EAChB,YAAY,OAAO;;cAEP,8BAA8B;WACjC;WACA,YAAY;EACrB,YAAY,YAAY;;KAErB,sBAAsB,uBAAuB;cACpC;WACH;WACA;WACA;WACA;WACA,UAAU;;WAEV,WAAW;EACpB,YAAY;aACD;aACA;aACA;aACA;aACA,UAAU;aACV,WAAW;;;uBAGD;oBACH;;;;;;;EAOlB;YACU;EACV,oBAAoB;;iBAEL,UAAU,iBAAiB,SAAS;;;;;;;;cAQvC;WACH;WACA,SAAS;WACT;EACT,YAAY;aACD;aACA;;;;;;;;;;cAUC;WACH;WACA,SAAS;WACT;WACA,YAAY;WACZ,UAAU;WACV,UAAU;WACV;EACT,YAAY;aACD;aACA;aACA;aACA,WAAW;aACX,WAAW;aACX;;;;;;;;;;cAUC;WACH;WACA,SAAS;WACT;EACT,YAAY;aACD;aACA;;;;;;;;;;;;cAYC;WACH;WACA;WACA,YAAY;EACrB,YAAY;aACD;aACA,YAAY;;;KAGpB,qBAAqB,uBAAuB,uBAAuB,mBAAmB"}
|
|
@@ -2,15 +2,15 @@ import { i as computeCheckContentHash, r as composeCheckWirePrefix, s as derived
|
|
|
2
2
|
import { r as lowerAuthoredIndex } from "./index-naming-Cj1Anq-T-DgO8vEIL.mjs";
|
|
3
3
|
import { t as lowerAuthoredCheck } from "./authored-check-naming-BjIs43HD.mjs";
|
|
4
4
|
import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-dmXkOR4a.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { c as StorageTable, i as Index, t as CheckConstraint } from "./storage-table-
|
|
7
|
-
import { n as checkConstraintInputFromSerialized } from "./serialized-index-
|
|
8
|
-
import { m as valueSetEntityKind, p as tableEntityKind } from "./entity-kinds-
|
|
5
|
+
import { f as validateSqlTypeParams, l as sqlDataTypeOfCodec, t as dataTypeParams } from "./data-type-CAPmGXg9.mjs";
|
|
6
|
+
import { c as StorageTable, i as Index, t as CheckConstraint } from "./storage-table-CyL4CNMi-zOQ-vTUd.mjs";
|
|
7
|
+
import { n as checkConstraintInputFromSerialized } from "./serialized-index-QAYy0fjm-BW4shnLC.mjs";
|
|
8
|
+
import { m as valueSetEntityKind, p as tableEntityKind } from "./entity-kinds-JlqzyFoo-BR7NtlZL.mjs";
|
|
9
9
|
import { r as materializeForeignKeysAndIndexes } from "./foreign-key-materialization-uN1uuv25.mjs";
|
|
10
10
|
import { t as validateIndexTypes } from "./index-type-validation-COH4d78M.mjs";
|
|
11
11
|
import { t as createIndexTypeRegistry } from "./index-types-DJQ_xwaE.mjs";
|
|
12
|
-
import { c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, o as SqlStorage, s as applyFkDefaults } from "./types-
|
|
13
|
-
import { p as validateStorageSemantics } from "./validators-
|
|
12
|
+
import { c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, o as SqlStorage, s as applyFkDefaults } from "./types-BlcZJEoC.mjs";
|
|
13
|
+
import { p as validateStorageSemantics } from "./validators-BF_JSK38.mjs";
|
|
14
14
|
import { t as deriveValueSetFromEntity } from "./value-set-derivation-hook-Di9JZ0X7.mjs";
|
|
15
15
|
import { isStructuredError, structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
16
16
|
import { flushAuthoringWarnings, isAuthoringEntityTypeDescriptor } from "@prisma/orm-framework/components/authoring";
|
|
@@ -26,7 +26,7 @@ import { buildExecutionSection, computeProfileHash, computeStorageHash } from "@
|
|
|
26
26
|
import { resolveToOneRelationNullable } from "@prisma/orm-framework/contract-authoring";
|
|
27
27
|
import { invariant } from "@prisma/orm-framework/utils/assertions";
|
|
28
28
|
import { applySpecifierDefaultControlPolicy } from "@prisma/orm-framework/contract/apply-specifier-default-control-policy";
|
|
29
|
-
//#region ../../../2-sql/2-authoring/contract-ts/dist/derived-checks-
|
|
29
|
+
//#region ../../../2-sql/2-authoring/contract-ts/dist/derived-checks-CsB3zLJ-.mjs
|
|
30
30
|
/**
|
|
31
31
|
* Whether a field is stored in a list column. A list of scalars is; a list of value objects is not, because it is stored in one column whose value is the whole list, as one JSON array.
|
|
32
32
|
*/
|
|
@@ -544,7 +544,7 @@ function buildStorageColumn(field, enumRefs, modelName, storageTypes, lookups) {
|
|
|
544
544
|
invariant(enumRefs === void 0 || descriptor.valueSet === void 0, `Field "${modelName}.${field.fieldName}" is typed by a domain enum and also carries a storage value set from its type constructor.`);
|
|
545
545
|
const valueSet = enumRefs?.storage ?? descriptor.valueSet;
|
|
546
546
|
return {
|
|
547
|
-
|
|
547
|
+
dataType: dataType.id,
|
|
548
548
|
codecId,
|
|
549
549
|
nullable: field.nullable,
|
|
550
550
|
many: isListColumn ? { elementNullable: field.elementNullable === true } : false,
|
|
@@ -995,14 +995,11 @@ function buildSqlContractFromDefinition(definition, codecLookup, dataTypeLookup)
|
|
|
995
995
|
roots[key] = entry.ref;
|
|
996
996
|
}
|
|
997
997
|
const rawStorageTypes = definition.storageTypes ?? {};
|
|
998
|
-
const documentTypes = Object.fromEntries(Object.entries(rawStorageTypes).map(([name, entry]) => {
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
typeParams
|
|
1004
|
-
})];
|
|
1005
|
-
}));
|
|
998
|
+
const documentTypes = Object.fromEntries(Object.entries(rawStorageTypes).map(([name, entry]) => [name, toStorageTypeInstance({
|
|
999
|
+
codecId: entry.codecId,
|
|
1000
|
+
dataType: sqlDataTypeOfCodec(entry.codecId, lookups).id,
|
|
1001
|
+
typeParams: entry.typeParams
|
|
1002
|
+
})]));
|
|
1006
1003
|
const namespaceCoordinateIds = collectStorageNamespaceCoordinateIds(definition);
|
|
1007
1004
|
const domainEnumsByNs = {};
|
|
1008
1005
|
const storageValueSetsByNs = {};
|
|
@@ -1247,4 +1244,4 @@ function withoutDerivedChecks(tableName, table, contractDefault) {
|
|
|
1247
1244
|
//#endregion
|
|
1248
1245
|
export { storedAsListColumn as a, isValueObjectMember as i, buildSqlContractFromDefinition as n, toOneNullabilityContradictionMessage as o, contractError as r, applySqlSpecifierControlPolicy as t };
|
|
1249
1246
|
|
|
1250
|
-
//# sourceMappingURL=derived-checks-
|
|
1247
|
+
//# sourceMappingURL=derived-checks-CsB3zLJ--C7ymzzbW.mjs.map
|