@prisma/orm-family-sql 8.0.0-rc.2-dev.2 → 8.0.0-rc.20
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/README.md +2 -6
- package/dist/{aggregate-descriptor-registry-C7hel5O7.mjs → aggregate-descriptor-registry-ZrKjxwQe.mjs} +5 -5
- package/dist/aggregate-descriptor-registry-ZrKjxwQe.mjs.map +1 -0
- package/dist/ast-D0miQ1B6.mjs +372 -0
- package/dist/ast-D0miQ1B6.mjs.map +1 -0
- package/dist/ast-YEMe_B8z.d.mts +292 -0
- package/dist/ast-YEMe_B8z.d.mts.map +1 -0
- package/dist/attribute-specs-DA_RwQFB.d.mts +114 -0
- package/dist/attribute-specs-DA_RwQFB.d.mts.map +1 -0
- package/dist/{authored-check-naming-Hf9990DV.mjs → authored-check-naming-BHGJhjqn.mjs} +5 -5
- package/dist/authored-check-naming-BHGJhjqn.mjs.map +1 -0
- package/dist/{authored-check-naming-BWBe-PVE.d.mts → authored-check-naming-D-o196ry.d.mts} +3 -3
- package/dist/authored-check-naming-D-o196ry.d.mts.map +1 -0
- package/dist/authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts +9 -0
- package/dist/authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts.map +1 -0
- package/dist/builder.d.mts +4 -3
- package/dist/builder__runtime.d.mts +29 -31
- package/dist/builder__runtime.d.mts.map +1 -1
- package/dist/builder__runtime.mjs +261 -191
- package/dist/builder__runtime.mjs.map +1 -1
- package/dist/builder__types.d.mts +6 -3
- package/dist/{canonicalization-hooks-dmXkOR4a.mjs → canonicalization-hooks-Ce1v_TDl.mjs} +2 -2
- package/dist/canonicalization-hooks-Ce1v_TDl.mjs.map +1 -0
- package/dist/{canonicalization-hooks-CYnW_sGn.d.mts → canonicalization-hooks-DyapQ0my.d.mts} +2 -2
- package/dist/canonicalization-hooks-DyapQ0my.d.mts.map +1 -0
- package/dist/{check-constraint-B7qGu6rc-HvQjjX82.d.mts → check-constraint-B7qGu6rc-Bk2ezWXu.d.mts} +4 -4
- package/dist/check-constraint-B7qGu6rc-Bk2ezWXu.d.mts.map +1 -0
- package/dist/{codec-descriptor-registry-N0dhtKaH.mjs → codec-descriptor-registry-CiiFzMtb.mjs} +13 -40
- package/dist/codec-descriptor-registry-CiiFzMtb.mjs.map +1 -0
- package/dist/collection-methods-BB8YH69u.d.mts +1 -0
- package/dist/collection-methods-D2UnCS0S-DOy2qHYS.d.mts +77 -0
- package/dist/collection-methods-D2UnCS0S-DOy2qHYS.d.mts.map +1 -0
- package/dist/{config-types-D9fdKG3g.d.mts → config-types-C-1mIiJO.d.mts} +5 -5
- package/dist/config-types-C-1mIiJO.d.mts.map +1 -0
- package/dist/{config-types-gAm54C_v.mjs → config-types-DkEeq_qq.mjs} +10 -6
- package/dist/config-types-DkEeq_qq.mjs.map +1 -0
- package/dist/{contract-builder-D4a5dT7j.mjs → contract-builder-50lF0kz1.mjs} +431 -226
- package/dist/contract-builder-50lF0kz1.mjs.map +1 -0
- package/dist/contract-builder-C_Zi57iD.d.mts +1967 -0
- package/dist/contract-builder-C_Zi57iD.d.mts.map +1 -0
- package/dist/contract-emitter.d.mts +4 -7
- package/dist/contract-emitter.d.mts.map +1 -1
- package/dist/contract-emitter.mjs +1 -1
- package/dist/{contract-errors-BCN6RVI5-5IHBF_lg.mjs → contract-errors-BCN6RVI5-DoH6b_KZ.mjs} +2 -2
- package/dist/contract-errors-BCN6RVI5-DoH6b_KZ.mjs.map +1 -0
- package/dist/contract-prisma7__provider.d.mts +97 -0
- package/dist/contract-prisma7__provider.d.mts.map +1 -0
- package/dist/contract-prisma7__provider.mjs +2011 -0
- package/dist/contract-prisma7__provider.mjs.map +1 -0
- package/dist/contract-psl.d.mts +18 -29
- package/dist/contract-psl.d.mts.map +1 -1
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +2 -0
- package/dist/contract-psl__attribute-specs.mjs +2 -0
- package/dist/contract-psl__default-table-name.d.mts +7 -0
- package/dist/contract-psl__default-table-name.d.mts.map +1 -0
- package/dist/contract-psl__default-table-name.mjs +2 -0
- 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__map-names.d.mts +16 -0
- package/dist/contract-psl__map-names.d.mts.map +1 -0
- package/dist/contract-psl__map-names.mjs +21 -0
- package/dist/contract-psl__map-names.mjs.map +1 -0
- package/dist/contract-psl__provider.d.mts +3 -3
- package/dist/contract-psl__provider.d.mts.map +1 -1
- package/dist/contract-psl__provider.mjs +95 -46
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +5 -5
- package/dist/contract-ts.mjs +5 -4
- package/dist/contract-ts__config-types.d.mts +1 -1
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +4 -4
- package/dist/contract-ts__contract-builder.mjs +4 -3
- package/dist/{contract-view-BMR5IWk4.mjs → contract-view-DqpzeYeE.mjs} +2 -2
- package/dist/contract-view-DqpzeYeE.mjs.map +1 -0
- package/dist/{contract-view-CPHxoAEX.d.mts → contract-view-DuB35or0.d.mts} +3 -3
- package/dist/contract-view-DuB35or0.d.mts.map +1 -0
- package/dist/contract.d.mts +30 -28
- package/dist/contract.mjs +23 -18
- package/dist/contract__authored-check-naming.d.mts +1 -1
- package/dist/contract__authored-check-naming.mjs +1 -1
- package/dist/contract__canonicalization-hooks.d.mts +1 -1
- package/dist/contract__canonicalization-hooks.mjs +1 -1
- package/dist/contract__contract-view.d.mts +1 -1
- package/dist/contract__contract-view.mjs +1 -1
- package/dist/contract__data-type-support.d.mts +2 -0
- package/dist/contract__data-type-support.mjs +2 -0
- package/dist/contract__data-type.d.mts +2 -0
- package/dist/contract__data-type.mjs +3 -0
- package/dist/contract__entity-handle-lowering-hook.d.mts +2 -2
- package/dist/contract__entity-handle-lowering-hook.mjs +2 -2
- package/dist/contract__entity-kinds.d.mts +1 -1
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/contract__factories.d.mts +1 -1
- package/dist/contract__factories.mjs +1 -1
- package/dist/contract__foreign-key-materialization.d.mts +2 -2
- package/dist/contract__foreign-key-materialization.mjs +3 -2
- package/dist/contract__index-naming.d.mts +2 -2
- package/dist/contract__index-naming.mjs +2 -2
- package/dist/contract__index-type-validation.d.mts +2 -2
- package/dist/contract__index-type-validation.mjs +1 -1
- package/dist/contract__index-types.d.mts +3 -3
- package/dist/contract__index-types.mjs +2 -2
- package/dist/contract__referential-action-sql.d.mts +1 -1
- package/dist/contract__referential-action-sql.mjs +1 -1
- package/dist/contract__resolve-storage-table.d.mts +1 -1
- package/dist/contract__resolve-storage-table.mjs +1 -1
- package/dist/contract__sql-expression.d.mts +2 -0
- package/dist/contract__sql-expression.mjs +2 -0
- package/dist/contract__types.d.mts +12 -12
- package/dist/contract__types.mjs +4 -4
- package/dist/contract__validators.d.mts +2 -2
- package/dist/contract__validators.mjs +3 -3
- package/dist/contract__value-set-derivation-hook.d.mts +1 -1
- package/dist/contract__value-set-derivation-hook.mjs +1 -1
- package/dist/control-BK50zF6c.mjs +2721 -0
- package/dist/control-BK50zF6c.mjs.map +1 -0
- package/dist/control-ChAUdOOu.d.mts +1416 -0
- package/dist/control-ChAUdOOu.d.mts.map +1 -0
- package/dist/{control-adapter-C99J7aEF-B7eQd7vD.d.mts → control-adapter-Bn0uhplA-BzP2uPqJ.d.mts} +27 -44
- package/dist/control-adapter-Bn0uhplA-BzP2uPqJ.d.mts.map +1 -0
- package/dist/control-adapter-NZ2kKc4x.d.mts +13 -0
- package/dist/control-adapter-NZ2kKc4x.d.mts.map +1 -0
- package/dist/control-adapter-SlQkTEwT.mjs +16 -0
- package/dist/control-adapter-SlQkTEwT.mjs.map +1 -0
- package/dist/data-type-BFSpaotu.mjs +52 -0
- package/dist/data-type-BFSpaotu.mjs.map +1 -0
- package/dist/data-type-DJIvKQHf.d.mts +158 -0
- package/dist/data-type-DJIvKQHf.d.mts.map +1 -0
- package/dist/data-type-support-BhSoPUFj.mjs +9 -0
- package/dist/data-type-support-BhSoPUFj.mjs.map +1 -0
- package/dist/data-type-support-CXpA0ex-.d.mts +7 -0
- package/dist/data-type-support-CXpA0ex-.d.mts.map +1 -0
- package/dist/{db-D18PrXKW-DvTv4JFn.d.mts → db-D1d75IvM-D4mRDC6w.d.mts} +123 -128
- package/dist/db-D1d75IvM-D4mRDC6w.d.mts.map +1 -0
- package/dist/{ddl-types-CXx4vPz6-BsgrnSUY.d.mts → ddl-types-By5mT2_S-CdaaFvsX.d.mts} +24 -29
- package/dist/ddl-types-By5mT2_S-CdaaFvsX.d.mts.map +1 -0
- package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts +39 -0
- package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts.map +1 -0
- package/dist/default-table-name-BfFY8qYR-CWZFDX6v.mjs +9 -0
- package/dist/default-table-name-BfFY8qYR-CWZFDX6v.mjs.map +1 -0
- package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs +1508 -0
- package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs.map +1 -0
- package/dist/{derived-checks-DPdD01O0-DGqOFjs6.d.mts → derived-checks-DpPkO6Dt-9U9UJZOo.d.mts} +4 -4
- package/dist/derived-checks-DpPkO6Dt-9U9UJZOo.d.mts.map +1 -0
- package/dist/diagnostics-RHJxoiIk.mjs +23 -0
- package/dist/diagnostics-RHJxoiIk.mjs.map +1 -0
- package/dist/{diff-DbTNVm2f.d.mts → diff-1qHOLoUB.d.mts} +23 -10
- package/dist/diff-1qHOLoUB.d.mts.map +1 -0
- package/dist/diff-C1rFOhek.mjs +21 -0
- package/dist/diff-C1rFOhek.mjs.map +1 -0
- package/dist/{dist-ZK6oeI5e.mjs → dist-C8Y-PPuE.mjs} +36 -212
- package/dist/dist-C8Y-PPuE.mjs.map +1 -0
- package/dist/{dist-C_q1_QR9.mjs → dist-CHz1hF8M.mjs} +2 -2
- package/dist/dist-CHz1hF8M.mjs.map +1 -0
- package/dist/{dist-x6jvtkKM.mjs → dist-CMDXybwm.mjs} +2 -2
- package/dist/dist-CMDXybwm.mjs.map +1 -0
- package/dist/{driver-types-BQtRkOJ0-Bv2RPSfr.d.mts → driver-types-DRsYeq3j-BimeCnUk.d.mts} +11 -2
- package/dist/driver-types-DRsYeq3j-BimeCnUk.d.mts.map +1 -0
- package/dist/entity-handle-lowering-hook-BJZSlVVF.mjs +16 -0
- package/dist/entity-handle-lowering-hook-BJZSlVVF.mjs.map +1 -0
- package/dist/{entity-handle-lowering-hook-CIvRKBfa.d.mts → entity-handle-lowering-hook-BuvLtgFi.d.mts} +8 -11
- package/dist/entity-handle-lowering-hook-BuvLtgFi.d.mts.map +1 -0
- package/dist/{entity-kinds-B5cUFU22.d.mts → entity-kinds-BPG2xCZV.d.mts} +7 -7
- package/dist/entity-kinds-BPG2xCZV.d.mts.map +1 -0
- package/dist/{entity-kinds-D7vwoN_T-CCBwFJy0.mjs → entity-kinds-JR5SAm5h-DOH6VUtL.mjs} +31 -28
- package/dist/entity-kinds-JR5SAm5h-DOH6VUtL.mjs.map +1 -0
- package/dist/{errors-B5g0xWro-mWH2C07F.mjs → errors-B5g0xWro-C8plbqga.mjs} +2 -2
- package/dist/errors-B5g0xWro-C8plbqga.mjs.map +1 -0
- package/dist/errors.d.mts +1 -1
- package/dist/errors.d.mts.map +1 -1
- package/dist/errors.mjs +1 -1
- package/dist/exports-C3wGYtID-D65DEUTC.mjs +2389 -0
- package/dist/exports-C3wGYtID-D65DEUTC.mjs.map +1 -0
- package/dist/{expression-FJK6Ar-d.d.mts → expression-6ld_ZQL6-fOuazzzm.d.mts} +37 -16
- package/dist/expression-6ld_ZQL6-fOuazzzm.d.mts.map +1 -0
- package/dist/expression-CieaNuRM-B1uVqxwd.d.mts +22 -0
- package/dist/expression-CieaNuRM-B1uVqxwd.d.mts.map +1 -0
- package/dist/expression-D8HstQiB.d.mts +2 -0
- package/dist/{expression-CX5mTA-z.mjs → expression-impl-B-XNINxr-BhN2sysZ.mjs} +41 -18
- package/dist/expression-impl-B-XNINxr-BhN2sysZ.mjs.map +1 -0
- package/dist/{factories-SVor5xIT.mjs → factories-Crobuxwn.mjs} +27 -20
- package/dist/factories-Crobuxwn.mjs.map +1 -0
- package/dist/{factories-P3qBQhO-.d.mts → factories-DbNP9qfs.d.mts} +16 -10
- package/dist/factories-DbNP9qfs.d.mts.map +1 -0
- package/dist/family.d.mts +17 -13
- package/dist/family.mjs +17 -12
- package/dist/family__control-adapter.d.mts +3 -3
- package/dist/family__control-adapter.mjs +2 -1
- package/dist/family__control.d.mts +5 -4
- package/dist/family__control.mjs +4 -4
- package/dist/family__diff.d.mts +2 -3
- package/dist/family__diff.mjs +2 -2
- package/dist/family__ir.d.mts +1 -1
- package/dist/family__ir.mjs +2 -2
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__migration.mjs +1 -1
- package/dist/family__pack.d.mts +2 -249
- package/dist/family__pack.mjs +3 -18
- package/dist/family__psl-build.d.mts +3 -0
- package/dist/family__psl-build.mjs +3 -0
- package/dist/family__psl-infer.d.mts +2 -2
- package/dist/family__psl-infer.mjs +2 -2
- package/dist/family__runtime.d.mts +2 -2
- package/dist/family__runtime.mjs +2 -2
- package/dist/family__verify.d.mts +1 -1
- package/dist/family__verify.mjs +1 -1
- package/dist/foreign-key-materialization-48P2V8on.d.mts +98 -0
- package/dist/foreign-key-materialization-48P2V8on.d.mts.map +1 -0
- package/dist/foreign-key-materialization-BM59w_Xg.mjs +287 -0
- package/dist/foreign-key-materialization-BM59w_Xg.mjs.map +1 -0
- package/dist/{foreign-key-C-iTPuRT-C9ip8zFx.d.mts → foreign-key-qkDFfG8t-TaK_GYWR.d.mts} +21 -5
- package/dist/foreign-key-qkDFfG8t-TaK_GYWR.d.mts.map +1 -0
- package/dist/functions-CsOoN7I3.mjs +88 -0
- package/dist/functions-CsOoN7I3.mjs.map +1 -0
- package/dist/functions-EW-RrRn3.d.mts +73 -0
- package/dist/functions-EW-RrRn3.d.mts.map +1 -0
- package/dist/generator-functions-D_qdqBV--Bq296cED.mjs +544 -0
- package/dist/generator-functions-D_qdqBV--Bq296cED.mjs.map +1 -0
- package/dist/index-7nHHQsAj.d.mts +606 -0
- package/dist/index-7nHHQsAj.d.mts.map +1 -0
- package/dist/{index-C5I8D-MB.d.mts → index-Nqc3OHR_.d.mts} +4 -5
- package/dist/index-Nqc3OHR_.d.mts.map +1 -0
- package/dist/index-equivalence-DswCiq5l-CGsyPP9B.mjs +109 -0
- package/dist/index-equivalence-DswCiq5l-CGsyPP9B.mjs.map +1 -0
- package/dist/{index-naming-DREt6js7-CRH27yUv.mjs → index-naming-BOcJT1B3-mG8Fd6KN.mjs} +35 -9
- package/dist/index-naming-BOcJT1B3-mG8Fd6KN.mjs.map +1 -0
- package/dist/{index-naming-Ct65z5Xk.d.mts → index-naming-Cs6wwia3.d.mts} +15 -5
- package/dist/index-naming-Cs6wwia3.d.mts.map +1 -0
- package/dist/index-reference-4wsdeB7v-DCwswK-q.d.mts +67 -0
- package/dist/index-reference-4wsdeB7v-DCwswK-q.d.mts.map +1 -0
- package/dist/index-reference-BQSrkRfT.mjs +55 -0
- package/dist/index-reference-BQSrkRfT.mjs.map +1 -0
- package/dist/index-reference-D8ewQRJr.d.mts +1 -0
- package/dist/index-type-validation-DJEMmmw0.mjs +42 -0
- package/dist/index-type-validation-DJEMmmw0.mjs.map +1 -0
- package/dist/index-type-validation-fGGwAHWc.d.mts +16 -0
- package/dist/index-type-validation-fGGwAHWc.d.mts.map +1 -0
- package/dist/index-types-H1O43iYT-BD0VwPqV.d.mts +66 -0
- package/dist/index-types-H1O43iYT-BD0VwPqV.d.mts.map +1 -0
- package/dist/index-types-pC_5vADQ-BOOBi14R.mjs +95 -0
- package/dist/index-types-pC_5vADQ-BOOBi14R.mjs.map +1 -0
- package/dist/index-types-snhtt_Fo.d.mts +1 -0
- package/dist/interpreter-D5qk4B---CG0C7kdx.mjs +2280 -0
- package/dist/interpreter-D5qk4B---CG0C7kdx.mjs.map +1 -0
- package/dist/{ir-Bghjt-FG.d.mts → ir-BvptQsFW.d.mts} +11 -5
- package/dist/ir-BvptQsFW.d.mts.map +1 -0
- package/dist/{ir-I-xciGUH.mjs → ir-DzsUDO8e.mjs} +2 -2
- package/dist/ir-DzsUDO8e.mjs.map +1 -0
- package/dist/{middleware-AhTz1BOW-th-Suxuf.d.mts → middleware-DHkW6pRr-DM6hd9iZ.d.mts} +5 -5
- package/dist/middleware-DHkW6pRr-DM6hd9iZ.d.mts.map +1 -0
- package/dist/middleware-gqy3l13N.d.mts +1 -0
- package/dist/{middleware-CMr4CHNz-DHIUdxlm.mjs → middleware-yBAfiVWn-DZO0vCRQ.mjs} +3 -3
- package/dist/middleware-yBAfiVWn-DZO0vCRQ.mjs.map +1 -0
- package/dist/{migration-CK4oePIo.mjs → migration-BJQjkqFz.mjs} +4 -4
- package/dist/migration-BJQjkqFz.mjs.map +1 -0
- package/dist/{migration-CjDRZNep.d.mts → migration-Cxmpzaz0.d.mts} +6 -6
- package/dist/migration-Cxmpzaz0.d.mts.map +1 -0
- package/dist/{naming-CV9j2pXl-KARaDReS.d.mts → naming-BcD36g9T-Mfe_xGGL.d.mts} +9 -14
- package/dist/naming-BcD36g9T-Mfe_xGGL.d.mts.map +1 -0
- package/dist/{naming-DKr4TJd7-Cszhq9RV.mjs → naming-bM5qm5PY-jOg3JFMb.mjs} +20 -31
- package/dist/naming-bM5qm5PY-jOg3JFMb.mjs.map +1 -0
- package/dist/{ddl-types-BGdnAbXo-DKPHPUGx.mjs → opaque-sql-Dset3kln-CtsPDTXn.mjs} +24 -11
- package/dist/opaque-sql-Dset3kln-CtsPDTXn.mjs.map +1 -0
- package/dist/operations.d.mts +1 -1
- package/dist/operations.mjs +1 -1
- package/dist/orm-client.d.mts +817 -267
- package/dist/orm-client.d.mts.map +1 -1
- package/dist/orm-client.mjs +4719 -2942
- package/dist/orm-client.mjs.map +1 -1
- package/dist/pack-DA8HZ2mo.d.mts +535 -0
- package/dist/pack-DA8HZ2mo.d.mts.map +1 -0
- package/dist/pack-gSvGQWqs.mjs +80 -0
- package/dist/pack-gSvGQWqs.mjs.map +1 -0
- package/dist/{plan-CDxduYaN-pLIyyJaB.d.mts → plan-Cr4azjnG-CuL8FqXC.d.mts} +12 -8
- package/dist/plan-Cr4azjnG-CuL8FqXC.d.mts.map +1 -0
- package/dist/{plan-Dh0LbYIv-Crx5-ThG.mjs → plan-Dh0LbYIv-ubBSdUgl.mjs} +2 -2
- package/dist/plan-Dh0LbYIv-ubBSdUgl.mjs.map +1 -0
- package/dist/plan-Di6Gs2JD.d.mts +2 -0
- package/dist/psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs +42 -0
- package/dist/psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs.map +1 -0
- package/dist/psl-build-DFBG6vhz.mjs +426 -0
- package/dist/psl-build-DFBG6vhz.mjs.map +1 -0
- package/dist/psl-build-RelubU2E.d.mts +112 -0
- package/dist/psl-build-RelubU2E.d.mts.map +1 -0
- package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts +24 -0
- package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts.map +1 -0
- package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs +1960 -0
- package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs.map +1 -0
- package/dist/psl-infer--g4i84Go.mjs +201 -0
- package/dist/psl-infer--g4i84Go.mjs.map +1 -0
- package/dist/psl-infer-DzoxPZGd.d.mts +80 -0
- package/dist/psl-infer-DzoxPZGd.d.mts.map +1 -0
- package/dist/psl-names-C3cwe0rg-D1CTmC3a.mjs +66 -0
- package/dist/psl-names-C3cwe0rg-D1CTmC3a.mjs.map +1 -0
- package/dist/{query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts → query-lane-context-BCEoKy0_-CzmyavC9.d.mts} +20 -49
- package/dist/query-lane-context-BCEoKy0_-CzmyavC9.d.mts.map +1 -0
- package/dist/query-lane-context-VqH0mS9B.d.mts +1 -0
- package/dist/{referential-action-sql-DJ9ps6-S.d.mts → referential-action-sql-B2vKoUK6.d.mts} +3 -3
- package/dist/referential-action-sql-B2vKoUK6.d.mts.map +1 -0
- package/dist/{referential-action-sql-DSqkrySN.mjs → referential-action-sql-BLzCtTi8.mjs} +2 -2
- package/dist/referential-action-sql-BLzCtTi8.mjs.map +1 -0
- package/dist/relational-core.d.mts +14 -13
- package/dist/relational-core.mjs +8 -8
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +2 -2
- package/dist/relational-core__aggregate-descriptor-registry.d.mts.map +1 -1
- package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
- package/dist/relational-core__ast.d.mts +5 -5
- package/dist/relational-core__ast.mjs +5 -5
- package/dist/relational-core__codec-descriptor-registry.d.mts +7 -8
- package/dist/relational-core__codec-descriptor-registry.d.mts.map +1 -1
- package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
- package/dist/relational-core__collection-methods.d.mts +3 -0
- package/dist/relational-core__contract-free.d.mts +18 -8
- package/dist/relational-core__contract-free.d.mts.map +1 -1
- package/dist/relational-core__contract-free.mjs +26 -10
- package/dist/relational-core__contract-free.mjs.map +1 -1
- package/dist/relational-core__expression.d.mts +4 -2
- package/dist/relational-core__expression.mjs +2 -2
- package/dist/relational-core__functions.d.mts +2 -0
- package/dist/relational-core__functions.mjs +2 -0
- package/dist/relational-core__index-reference.d.mts +3 -0
- package/dist/relational-core__index-reference.mjs +2 -0
- package/dist/relational-core__middleware.d.mts +2 -2
- package/dist/relational-core__middleware.mjs +1 -1
- package/dist/relational-core__plan.d.mts +4 -4
- package/dist/relational-core__plan.mjs +1 -1
- package/dist/relational-core__query-lane-context.d.mts +3 -3
- package/dist/relational-core__types.d.mts +2 -2
- package/dist/{resolve-storage-table-DZsfnzeW.mjs → resolve-storage-table-BHLQsOza.mjs} +3 -3
- package/dist/resolve-storage-table-BHLQsOza.mjs.map +1 -0
- package/dist/{resolve-storage-table-Nyrgk4h8.d.mts → resolve-storage-table-DCqtmnSU.d.mts} +4 -4
- package/dist/resolve-storage-table-DCqtmnSU.d.mts.map +1 -0
- package/dist/{runtime-tIHpGCcG.mjs → runtime-6tH1yOxK.mjs} +6 -6
- package/dist/runtime-6tH1yOxK.mjs.map +1 -0
- package/dist/{runtime-DpKF2Yu2.d.mts → runtime-CF6rAlE5.d.mts} +7 -8
- package/dist/runtime-CF6rAlE5.d.mts.map +1 -0
- package/dist/runtime.d.mts +5 -5
- package/dist/runtime.mjs +2 -1799
- package/dist/runtime__internal__prepared-query.d.mts +2 -2
- package/dist/runtime__internal__prepared-query.mjs +2 -2
- package/dist/{schema-differ-DpG_gnur-DFAtGezx.d.mts → schema-differ-DmP74bB8-tqHKiJ88.d.mts} +6 -6
- package/dist/schema-differ-DmP74bB8-tqHKiJ88.d.mts.map +1 -0
- package/dist/schema-ir.d.mts +2 -2
- package/dist/schema-ir.mjs +2 -2
- package/dist/schema-ir__naming.d.mts +1 -1
- package/dist/schema-ir__naming.mjs +1 -1
- package/dist/schema-ir__types.d.mts +3 -3
- package/dist/schema-ir__types.mjs +2 -2
- package/dist/{schema-verify-C_PEdlAr-Dxxjm6EM.mjs → schema-verify-C3wbdviw-DMjIubOr.mjs} +50 -8
- package/dist/schema-verify-C3wbdviw-DMjIubOr.mjs.map +1 -0
- package/dist/{serialized-index-CrgG8ct1-DG3JpHc7.d.mts → serialized-index-CrgG8ct1-DKVJ7TDX.d.mts} +4 -4
- package/dist/serialized-index-CrgG8ct1-DKVJ7TDX.d.mts.map +1 -0
- package/dist/{serialized-index-nBTwanKy-_ddEK4tk.mjs → serialized-index-DjCCnXB1-DMA7BtO2.mjs} +4 -4
- package/dist/serialized-index-DjCCnXB1-DMA7BtO2.mjs.map +1 -0
- package/dist/{sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs → sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs} +41 -16
- package/dist/sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs.map +1 -0
- package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs +400 -0
- package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs.map +1 -0
- package/dist/{sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts → sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts} +3 -3
- package/dist/sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts.map +1 -0
- package/dist/sql-expression-B4BrhGPi.d.mts +62 -0
- package/dist/sql-expression-B4BrhGPi.d.mts.map +1 -0
- package/dist/sql-expression-CKgKznXS.mjs +137 -0
- package/dist/sql-expression-CKgKznXS.mjs.map +1 -0
- package/dist/{sql-index-ByAAE7K8-DKj2V86p.d.mts → sql-index-ByAAE7K8-Dqtn_vUL.d.mts} +4 -4
- package/dist/sql-index-ByAAE7K8-Dqtn_vUL.d.mts.map +1 -0
- package/dist/{sql-node-kEz6YFZo-v2F7delx.d.mts → sql-node-kEz6YFZo-1ogT6Cxt.d.mts} +2 -2
- package/dist/sql-node-kEz6YFZo-1ogT6Cxt.d.mts.map +1 -0
- package/dist/{sql-storage-8LqxeLAY-DH4DdUXx.d.mts → sql-storage-DeCAh5Hi-CEM-m8cs.d.mts} +19 -22
- package/dist/sql-storage-DeCAh5Hi-CEM-m8cs.d.mts.map +1 -0
- package/dist/{storage-table-DSeWszOL-CI-cItEK.d.mts → storage-table-Bf1ZjnxO-pUj6pyP0.d.mts} +17 -24
- package/dist/storage-table-Bf1ZjnxO-pUj6pyP0.d.mts.map +1 -0
- package/dist/{storage-table-ZzbR-xzQ-BRoTQE_2.mjs → storage-table-DDvN83mw-DkbBFmK9.mjs} +12 -9
- package/dist/storage-table-DDvN83mw-DkbBFmK9.mjs.map +1 -0
- package/dist/{storage-value-set-BGlj5Uus-CvZD--GG.d.mts → storage-value-set-BGlj5Uus-ny2k-0PA.d.mts} +3 -3
- package/dist/storage-value-set-BGlj5Uus-ny2k-0PA.d.mts.map +1 -0
- package/dist/transaction-state-BfXhs7D7-DhmbySW9.mjs +45 -0
- package/dist/transaction-state-BfXhs7D7-DhmbySW9.mjs.map +1 -0
- package/dist/transaction-state-DR3nKTmH-D29jmVE-.d.mts +115 -0
- package/dist/transaction-state-DR3nKTmH-D29jmVE-.d.mts.map +1 -0
- package/dist/types-B9wSEUsV.d.mts +1 -0
- package/dist/{types-CUsJrvEl.mjs → types-CTdSkl0s.mjs} +13 -6
- package/dist/types-CTdSkl0s.mjs.map +1 -0
- package/dist/types-CkAd8SWm.d.mts +57 -0
- package/dist/types-CkAd8SWm.d.mts.map +1 -0
- package/dist/{types-IqZMLrFC-DcH8v_u3.d.mts → types-Cq6ImLAB-RlU4jJAX.d.mts} +27 -41
- package/dist/types-Cq6ImLAB-RlU4jJAX.d.mts.map +1 -0
- package/dist/{types-YStFFkKs-D9UAmnON.d.mts → types-CuCxAQat-Dz8P4xyt.d.mts} +141 -86
- package/dist/types-CuCxAQat-Dz8P4xyt.d.mts.map +1 -0
- package/dist/types-DfKvtJwS-CrpWTGBJ.d.mts +273 -0
- package/dist/types-DfKvtJwS-CrpWTGBJ.d.mts.map +1 -0
- package/dist/{types-4YenawkP-CwaaZSid.mjs → types-DoyiTsjg-2YMhMJDA.mjs} +181 -80
- package/dist/types-DoyiTsjg-2YMhMJDA.mjs.map +1 -0
- package/dist/{types-v3qxLLxo-DCeKv7yY.d.mts → types-DriMIMNQ-BkbsW7w3.d.mts} +68 -34
- package/dist/types-DriMIMNQ-BkbsW7w3.d.mts.map +1 -0
- package/dist/{types-Dt4e_jC--COeP8xzN.mjs → types-NTQsD2MS-xcLtvKO9.mjs} +83 -17
- package/dist/types-NTQsD2MS-xcLtvKO9.mjs.map +1 -0
- package/dist/{types-CyxGtOOh-BggSa6Fe.d.mts → types-TXO7x1BA-CYYIY8NI.d.mts} +14 -14
- package/dist/types-TXO7x1BA-CYYIY8NI.d.mts.map +1 -0
- package/dist/types-ljUNyiWe.d.mts +1 -0
- package/dist/{unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts → unique-constraint-M5TlQnJQ-qX-maNUV.d.mts} +3 -3
- package/dist/unique-constraint-M5TlQnJQ-qX-maNUV.d.mts.map +1 -0
- package/dist/{util-DQQgv2j1-D6INZaRG.mjs → util-BBgcP3gI-CpL-0VuC.mjs} +12 -3
- package/dist/util-BBgcP3gI-CpL-0VuC.mjs.map +1 -0
- package/dist/{validators-CrWD6bSP.mjs → validators-BwA7ttZM.mjs} +0 -0
- package/dist/validators-BwA7ttZM.mjs.map +1 -0
- package/dist/{validators-Belo8QqM.d.mts → validators-FJs8HvFr.d.mts} +54 -16
- package/dist/validators-FJs8HvFr.d.mts.map +1 -0
- package/dist/{value-set-derivation-hook-BhgGVtw0.d.mts → value-set-derivation-hook-3E437jPU.d.mts} +3 -3
- package/dist/value-set-derivation-hook-3E437jPU.d.mts.map +1 -0
- package/dist/{value-set-derivation-hook-Di9JZ0X7.mjs → value-set-derivation-hook-HVaxhALD.mjs} +2 -2
- package/dist/value-set-derivation-hook-HVaxhALD.mjs.map +1 -0
- package/dist/{verify-u0UTdZgD-DSAaz9rW.mjs → verify-BVk5bjdH-DhKm6hB3.mjs} +8 -7
- package/dist/verify-BVk5bjdH-DhKm6hB3.mjs.map +1 -0
- package/dist/{verify-zDRnw0Rn.d.mts → verify-DHXbuZPB.d.mts} +2 -2
- package/dist/verify-DHXbuZPB.d.mts.map +1 -0
- package/package.json +33 -22
- package/dist/aggregate-descriptor-registry-C7hel5O7.mjs.map +0 -1
- package/dist/ast-HFcfQZr-.d.mts +0 -206
- package/dist/ast-HFcfQZr-.d.mts.map +0 -1
- package/dist/ast-Lbl4VwqP.mjs +0 -325
- package/dist/ast-Lbl4VwqP.mjs.map +0 -1
- package/dist/authored-check-naming-BWBe-PVE.d.mts.map +0 -1
- package/dist/authored-check-naming-Hf9990DV.mjs.map +0 -1
- package/dist/authoring-type-constructors-Blqoa2Ua-DqvNCOb2.mjs +0 -316
- package/dist/authoring-type-constructors-Blqoa2Ua-DqvNCOb2.mjs.map +0 -1
- package/dist/canonicalization-hooks-CYnW_sGn.d.mts.map +0 -1
- package/dist/canonicalization-hooks-dmXkOR4a.mjs.map +0 -1
- package/dist/check-constraint-B7qGu6rc-HvQjjX82.d.mts.map +0 -1
- package/dist/codec-descriptor-registry-N0dhtKaH.mjs.map +0 -1
- package/dist/config-types-D9fdKG3g.d.mts.map +0 -1
- package/dist/config-types-gAm54C_v.mjs.map +0 -1
- package/dist/contract-builder-CG_tGDbB.d.mts +0 -1360
- package/dist/contract-builder-CG_tGDbB.d.mts.map +0 -1
- package/dist/contract-builder-D4a5dT7j.mjs.map +0 -1
- package/dist/contract-errors-BCN6RVI5-5IHBF_lg.mjs.map +0 -1
- package/dist/contract-view-BMR5IWk4.mjs.map +0 -1
- package/dist/contract-view-CPHxoAEX.d.mts.map +0 -1
- package/dist/contract__pack-types.d.mts +0 -2
- package/dist/control-D3cB5YQp.mjs +0 -1267
- package/dist/control-D3cB5YQp.mjs.map +0 -1
- package/dist/control-DTLJ1WtZ.d.mts +0 -945
- package/dist/control-DTLJ1WtZ.d.mts.map +0 -1
- package/dist/control-adapter-C99J7aEF-B7eQd7vD.d.mts.map +0 -1
- package/dist/control-adapter-MZJQiwcE.d.mts +0 -1
- package/dist/db-D18PrXKW-DvTv4JFn.d.mts.map +0 -1
- package/dist/ddl-types-BGdnAbXo-DKPHPUGx.mjs.map +0 -1
- package/dist/ddl-types-CXx4vPz6-BsgrnSUY.d.mts.map +0 -1
- package/dist/derived-checks-DFMRmiAu-DGfB8aS4.mjs +0 -1057
- package/dist/derived-checks-DFMRmiAu-DGfB8aS4.mjs.map +0 -1
- package/dist/derived-checks-DPdD01O0-DGqOFjs6.d.mts.map +0 -1
- package/dist/diff-B16bL_IR.mjs +0 -13
- package/dist/diff-B16bL_IR.mjs.map +0 -1
- package/dist/diff-DbTNVm2f.d.mts.map +0 -1
- package/dist/dist-C_q1_QR9.mjs.map +0 -1
- package/dist/dist-ZK6oeI5e.mjs.map +0 -1
- package/dist/dist-x6jvtkKM.mjs.map +0 -1
- package/dist/driver-types-BQtRkOJ0-Bv2RPSfr.d.mts.map +0 -1
- package/dist/entity-handle-lowering-hook-CIvRKBfa.d.mts.map +0 -1
- package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs +0 -11
- package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs.map +0 -1
- package/dist/entity-kinds-B5cUFU22.d.mts.map +0 -1
- package/dist/entity-kinds-D7vwoN_T-CCBwFJy0.mjs.map +0 -1
- package/dist/errors-B5g0xWro-mWH2C07F.mjs.map +0 -1
- package/dist/expression-CX5mTA-z.mjs.map +0 -1
- package/dist/expression-FJK6Ar-d.d.mts.map +0 -1
- package/dist/factories-P3qBQhO-.d.mts.map +0 -1
- package/dist/factories-SVor5xIT.mjs.map +0 -1
- package/dist/family__pack.d.mts.map +0 -1
- package/dist/family__pack.mjs.map +0 -1
- package/dist/foreign-key-C-iTPuRT-C9ip8zFx.d.mts.map +0 -1
- package/dist/foreign-key-materialization-CkvOzJWy.d.mts +0 -65
- package/dist/foreign-key-materialization-CkvOzJWy.d.mts.map +0 -1
- package/dist/foreign-key-materialization-Cu7-7LHl.mjs +0 -73
- package/dist/foreign-key-materialization-Cu7-7LHl.mjs.map +0 -1
- package/dist/index-C-vQOMY_.d.mts +0 -84
- package/dist/index-C-vQOMY_.d.mts.map +0 -1
- package/dist/index-C5I8D-MB.d.mts.map +0 -1
- package/dist/index-naming-Ct65z5Xk.d.mts.map +0 -1
- package/dist/index-naming-DREt6js7-CRH27yUv.mjs.map +0 -1
- package/dist/index-type-validation-COH4d78M.mjs +0 -17
- package/dist/index-type-validation-COH4d78M.mjs.map +0 -1
- package/dist/index-type-validation-CZ5L2lli.d.mts +0 -10
- package/dist/index-type-validation-CZ5L2lli.d.mts.map +0 -1
- package/dist/index-types-CNhHgKHi.d.mts +0 -1
- package/dist/index-types-DJQ_xwaE.mjs +0 -40
- package/dist/index-types-DJQ_xwaE.mjs.map +0 -1
- package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts +0 -31
- package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts.map +0 -1
- package/dist/interpreter-DyiUUAWh-DYdjIpiE.mjs +0 -3680
- package/dist/interpreter-DyiUUAWh-DYdjIpiE.mjs.map +0 -1
- package/dist/ir-Bghjt-FG.d.mts.map +0 -1
- package/dist/ir-I-xciGUH.mjs.map +0 -1
- package/dist/lane-query-builder.d.mts +0 -236
- package/dist/lane-query-builder.d.mts.map +0 -1
- package/dist/lane-query-builder.mjs +0 -67
- package/dist/lane-query-builder.mjs.map +0 -1
- package/dist/middleware--TtoxUiW.d.mts +0 -1
- package/dist/middleware-AhTz1BOW-th-Suxuf.d.mts.map +0 -1
- package/dist/middleware-CMr4CHNz-DHIUdxlm.mjs.map +0 -1
- package/dist/migration-CK4oePIo.mjs.map +0 -1
- package/dist/migration-CjDRZNep.d.mts.map +0 -1
- package/dist/naming-CV9j2pXl-KARaDReS.d.mts.map +0 -1
- package/dist/naming-DKr4TJd7-Cszhq9RV.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-BHLdb0Z7.d.mts +0 -2
- package/dist/plan-CDxduYaN-pLIyyJaB.d.mts.map +0 -1
- package/dist/plan-Dh0LbYIv-Crx5-ThG.mjs.map +0 -1
- package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs +0 -22
- package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs.map +0 -1
- package/dist/prepared-statement-9QpkE6JG-C430V3MO.d.mts +0 -529
- package/dist/prepared-statement-9QpkE6JG-C430V3MO.d.mts.map +0 -1
- package/dist/psl-infer-CCAD6FWA.d.mts +0 -119
- package/dist/psl-infer-CCAD6FWA.d.mts.map +0 -1
- package/dist/psl-infer-Dk5kgKre.mjs +0 -362
- package/dist/psl-infer-Dk5kgKre.mjs.map +0 -1
- package/dist/query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts.map +0 -1
- package/dist/query-lane-context-XMvk7fmY.d.mts +0 -1
- package/dist/referential-action-sql-DJ9ps6-S.d.mts.map +0 -1
- package/dist/referential-action-sql-DSqkrySN.mjs.map +0 -1
- package/dist/resolve-storage-table-DZsfnzeW.mjs.map +0 -1
- package/dist/resolve-storage-table-Nyrgk4h8.d.mts.map +0 -1
- package/dist/runtime-DpKF2Yu2.d.mts.map +0 -1
- package/dist/runtime-tIHpGCcG.mjs.map +0 -1
- package/dist/runtime.mjs.map +0 -1
- package/dist/schema-differ-DpG_gnur-DFAtGezx.d.mts.map +0 -1
- package/dist/schema-verify-C_PEdlAr-Dxxjm6EM.mjs.map +0 -1
- package/dist/serialized-index-CrgG8ct1-DG3JpHc7.d.mts.map +0 -1
- package/dist/serialized-index-nBTwanKy-_ddEK4tk.mjs.map +0 -1
- package/dist/sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs.map +0 -1
- package/dist/sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts.map +0 -1
- package/dist/sql-index-ByAAE7K8-DKj2V86p.d.mts.map +0 -1
- package/dist/sql-node-kEz6YFZo-v2F7delx.d.mts.map +0 -1
- package/dist/sql-storage-8LqxeLAY-DH4DdUXx.d.mts.map +0 -1
- package/dist/storage-table-DSeWszOL-CI-cItEK.d.mts.map +0 -1
- package/dist/storage-table-ZzbR-xzQ-BRoTQE_2.mjs.map +0 -1
- package/dist/storage-value-set-BGlj5Uus-CvZD--GG.d.mts.map +0 -1
- package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs +0 -173
- package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs.map +0 -1
- package/dist/types-4YenawkP-CwaaZSid.mjs.map +0 -1
- package/dist/types-B0msOnBM.d.mts +0 -1
- package/dist/types-BDUG29Df-LE85dIXP.d.mts +0 -161
- package/dist/types-BDUG29Df-LE85dIXP.d.mts.map +0 -1
- package/dist/types-CUsJrvEl.mjs.map +0 -1
- package/dist/types-CyxGtOOh-BggSa6Fe.d.mts.map +0 -1
- package/dist/types-Dt4e_jC--COeP8xzN.mjs.map +0 -1
- package/dist/types-Dwcw0F8X.d.mts +0 -1
- package/dist/types-IqZMLrFC-DcH8v_u3.d.mts.map +0 -1
- package/dist/types-UcHa2cTe.d.mts +0 -17
- package/dist/types-UcHa2cTe.d.mts.map +0 -1
- package/dist/types-YStFFkKs-D9UAmnON.d.mts.map +0 -1
- package/dist/types-v3qxLLxo-DCeKv7yY.d.mts.map +0 -1
- package/dist/unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts.map +0 -1
- package/dist/util-DQQgv2j1-D6INZaRG.mjs.map +0 -1
- package/dist/validators-Belo8QqM.d.mts.map +0 -1
- package/dist/validators-CrWD6bSP.mjs.map +0 -1
- package/dist/value-set-derivation-hook-BhgGVtw0.d.mts.map +0 -1
- package/dist/value-set-derivation-hook-Di9JZ0X7.mjs.map +0 -1
- package/dist/verify-u0UTdZgD-DSAaz9rW.mjs.map +0 -1
- package/dist/verify-zDRnw0Rn.d.mts.map +0 -1
- /package/dist/{contract__pack-types.mjs → relational-core__collection-methods.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validators-FJs8HvFr.d.mts","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/validators.d.mts"],"mappings":";;;;;;;;;;;iBAUiB,oBAAoB;;;;iBAIpB,uBAAuB;;;KAGnC;;;;;WAKM;;WAEA;aACE;aACA;;;;;;;iBAOI,+BAA+B,UAAU,SAAS,aAAa,cAAc,iBAAiB,UAAU,wBAAwB;;;KAG5I;WACM;WACA,mCAAmC;;KAEzC;WACM;WACA;;cAEG,0EAA0E,WAAW;cACrF,2EAA2E,WAAW;cACtF,mEAAmE,WAAW,uBAAuB;;;;;;cAMrG,qEAAqE;EACjF;EACA,8CAA8C;;cAElC,2DAA2D;EACvE;EACA;EACA;EACA;EACA;EACA;EACA;EACA,UAAU;;cAEE,yEAAyE;EACrF;EACA;EACA;EACA;;cAEY,sEAAsE;EAClF;EACA;EACA;;cAEY,uEAAuE,WAAW;cAClF,gEAAgE,WAAW;cAC3E,qEAAqE;EACjF;EACA;EACA;;cAEY,kEAAkE;EAC9E;KACG;MACC;MACA;MACA;MACA;QACE;;MAEF,aAAa;MACb,UAAU,uBAAuB;MACjC;MACA;QACE;QACA;QACA;QACA;QACA;;;;EAIN,kBAAkB;EAClB;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA,UAAU;;EAEZ,sBAAsB;EACtB,aAAa;EACb;EACA;IACE;IACA;IACA;;;;;;;;;cASU,kEAAkE;EAC9E;EACA;IACE;IACA,+CAA+C;;;;;;;;;;;iBAWlC,2BAA2B,OAAO,oBAAoB,2BAA2B;;;;;;;iBAOjF,uBAAuB,OAAO,oBAAoB,2BAA2B;;iBAE7E,qCAAqC;;;;;;iBAMrC,wBAAwB,OAAO,oBAAoB,2BAA2B;;;;;;;;;;iBAU9E,gBAAgB;iBAChB,cAAc;;;;;;;;;;;;;;;iBAed,yBAAyB,SAAS;;;;iBAIlC,+BAA+B,UAAU,SAAS;;;;iBAIlD,2BAA2B,UAAU,SAAS;;;;iBAI9C,6CAA6C,UAAU,SAAS;;;;;;;iBAOhE,8BAA8B,UAAU,SAAS;UACxD;;;;;;;;;WASC,iBAAiB;;WAEjB,YAAY,KAAK;;;;;;;;;;iBAUX,yBAAyB,UAAU,SAAS,aAAa,gBAAgB,UAAU,kCAAkC"}
|
package/dist/{value-set-derivation-hook-BhgGVtw0.d.mts → value-set-derivation-hook-3E437jPU.d.mts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as StorageValueSetInput } from "./storage-value-set-BGlj5Uus-
|
|
2
|
-
//#region ../../../2-sql/1-core/contract/dist/value-set-derivation-hook.d.mts
|
|
1
|
+
import { n as StorageValueSetInput } from "./storage-value-set-BGlj5Uus-ny2k-0PA.mjs";
|
|
2
|
+
//#region ../../../2-sql-family/1-core/contract/dist/value-set-derivation-hook.d.mts
|
|
3
3
|
//#region src/value-set-derivation-hook.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* SQL-family extension to the framework entity-type authoring registry: a pack's entity-type
|
|
@@ -32,4 +32,4 @@ declare function providesValueSetDerivation(output: unknown): output is SqlValue
|
|
|
32
32
|
declare function deriveValueSetFromEntity(output: unknown, entity: unknown): StorageValueSetInput | undefined;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { deriveValueSetFromEntity as n, providesValueSetDerivation as r, SqlValueSetDerivingEntityTypeOutput as t };
|
|
35
|
-
//# sourceMappingURL=value-set-derivation-hook-
|
|
35
|
+
//# sourceMappingURL=value-set-derivation-hook-3E437jPU.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-set-derivation-hook-3E437jPU.d.mts","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/value-set-derivation-hook.d.mts"],"mappings":";;;;;;;;;;;;;;UAaU;;;;;;EAMR,eAAe,kBAAkB;;;iBAGlB,2BAA2B,kBAAkB,UAAU;;;;;;;;iBAQvD,yBAAyB,iBAAiB,kBAAkB"}
|
package/dist/{value-set-derivation-hook-Di9JZ0X7.mjs → value-set-derivation-hook-HVaxhALD.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../../2-sql/1-core/contract/dist/value-set-derivation-hook.mjs
|
|
1
|
+
//#region ../../../2-sql-family/1-core/contract/dist/value-set-derivation-hook.mjs
|
|
2
2
|
/** Structural check for {@link SqlValueSetDerivingEntityTypeOutput}: no casts. */
|
|
3
3
|
function providesValueSetDerivation(output) {
|
|
4
4
|
if (typeof output !== "object" || output === null || !("deriveValueSet" in output)) return false;
|
|
@@ -19,4 +19,4 @@ function deriveValueSetFromEntity(output, entity) {
|
|
|
19
19
|
//#endregion
|
|
20
20
|
export { providesValueSetDerivation as n, deriveValueSetFromEntity as t };
|
|
21
21
|
|
|
22
|
-
//# sourceMappingURL=value-set-derivation-hook-
|
|
22
|
+
//# sourceMappingURL=value-set-derivation-hook-HVaxhALD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-set-derivation-hook-HVaxhALD.mjs","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/value-set-derivation-hook.mjs"],"sourcesContent":["//#region src/value-set-derivation-hook.ts\n/** Structural check for {@link SqlValueSetDerivingEntityTypeOutput}: no casts. */\nfunction providesValueSetDerivation(output) {\n\tif (typeof output !== \"object\" || output === null || !(\"deriveValueSet\" in output)) return false;\n\tconst { deriveValueSet } = output;\n\treturn typeof deriveValueSet === \"function\";\n}\n/**\n* If `output` (an entity-type descriptor's factory output) provides\n* {@link SqlValueSetDerivingEntityTypeOutput.deriveValueSet}, invoke it on `entity` and return the\n* derived value-set; otherwise return `undefined`. `contract-psl`'s generic extension-block\n* lowering pass calls this after building each entity so a value-set-carrying pack entity can\n* contribute its value-set without the pass naming any target discriminator.\n*/\nfunction deriveValueSetFromEntity(output, entity) {\n\tif (!providesValueSetDerivation(output)) return void 0;\n\treturn output.deriveValueSet(entity);\n}\n//#endregion\nexport { deriveValueSetFromEntity, providesValueSetDerivation };\n\n//# sourceMappingURL=value-set-derivation-hook.mjs.map"],"mappings":";;AAEA,SAAS,2BAA2B,QAAQ;CAC3C,IAAI,OAAO,WAAW,YAAY,WAAW,QAAQ,EAAE,oBAAoB,SAAS,OAAO;CAC3F,MAAM,EAAE,mBAAmB;CAC3B,OAAO,OAAO,mBAAmB;AAClC;;;;;;;;AAQA,SAAS,yBAAyB,QAAQ,QAAQ;CACjD,IAAI,CAAC,2BAA2B,MAAM,GAAG,OAAO,KAAK;CACrD,OAAO,OAAO,eAAe,MAAM;AACpC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { t as sqlFamilyError } from "./errors-B5g0xWro-
|
|
1
|
+
import { t as sqlFamilyError } from "./errors-B5g0xWro-C8plbqga.mjs";
|
|
2
|
+
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
2
3
|
import { type } from "arktype";
|
|
3
|
-
//#region ../../../2-sql/9-family/dist/verify-
|
|
4
|
+
//#region ../../../2-sql-family/9-family/dist/verify-BVk5bjdH.mjs
|
|
4
5
|
const MetaSchema = type({ "[string]": "unknown" });
|
|
5
6
|
function parseMeta(meta) {
|
|
6
7
|
if (meta === null || meta === void 0) return {};
|
|
@@ -13,7 +14,7 @@ function parseMeta(meta) {
|
|
|
13
14
|
else parsed = meta;
|
|
14
15
|
const result = MetaSchema(parsed);
|
|
15
16
|
if (result instanceof type.errors) return {};
|
|
16
|
-
return result;
|
|
17
|
+
return blindCast(result);
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* SQLite stores `contract_json` as TEXT, so the wire shape is a JSON string;
|
|
@@ -22,9 +23,9 @@ function parseMeta(meta) {
|
|
|
22
23
|
*/
|
|
23
24
|
function parseContractJson(value) {
|
|
24
25
|
if (value === null || value === void 0) return null;
|
|
25
|
-
if (typeof value !== "string") return value;
|
|
26
|
+
if (typeof value !== "string") return blindCast(value);
|
|
26
27
|
try {
|
|
27
|
-
return JSON.parse(value);
|
|
28
|
+
return blindCast(JSON.parse(value));
|
|
28
29
|
} catch {
|
|
29
30
|
return null;
|
|
30
31
|
}
|
|
@@ -49,7 +50,7 @@ function parseContractMarkerRow(row) {
|
|
|
49
50
|
const messages = result.map((p) => p.message).join("; ");
|
|
50
51
|
throw sqlFamilyError("CONTRACT.MARKER_ROW_CORRUPT", `Invalid contract marker row: ${messages}`, {
|
|
51
52
|
why: "The contract marker row read from the database does not match the expected marker shape.",
|
|
52
|
-
fix: "Re-sign the database with `prisma
|
|
53
|
+
fix: "Re-sign the database with `prisma db sign`, or repair the marker table.",
|
|
53
54
|
nextActions: [{
|
|
54
55
|
kind: "run-command",
|
|
55
56
|
label: "Re-sign the database",
|
|
@@ -92,4 +93,4 @@ function collectSupportedCodecTypeIds(descriptors) {
|
|
|
92
93
|
//#endregion
|
|
93
94
|
export { parseContractMarkerRow as n, collectSupportedCodecTypeIds as t };
|
|
94
95
|
|
|
95
|
-
//# sourceMappingURL=verify-
|
|
96
|
+
//# sourceMappingURL=verify-BVk5bjdH-DhKm6hB3.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify-BVk5bjdH-DhKm6hB3.mjs","names":[],"sources":["../../../../2-sql-family/9-family/dist/verify-BVk5bjdH.mjs"],"sourcesContent":["import { t as sqlFamilyError } from \"./errors-B5g0xWro.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { type } from \"arktype\";\n//#region src/core/verify.ts\nconst MetaSchema = type({ \"[string]\": \"unknown\" });\nfunction parseMeta(meta) {\n\tif (meta === null || meta === void 0) return {};\n\tlet parsed;\n\tif (typeof meta === \"string\") try {\n\t\tparsed = JSON.parse(meta);\n\t} catch {\n\t\treturn {};\n\t}\n\telse parsed = meta;\n\tconst result = MetaSchema(parsed);\n\tif (result instanceof type.errors) return {};\n\treturn blindCast(result);\n}\n/**\n* SQLite stores `contract_json` as TEXT, so the wire shape is a JSON string;\n* Postgres uses `jsonb` and returns an already-parsed value. Normalize both\n* here so `ContractMarkerRecord.contractJson` is always the structured form.\n*/\nfunction parseContractJson(value) {\n\tif (value === null || value === void 0) return null;\n\tif (typeof value !== \"string\") return blindCast(value);\n\ttry {\n\t\treturn blindCast(JSON.parse(value));\n\t} catch {\n\t\treturn null;\n\t}\n}\nconst ContractMarkerRowSchema = type({\n\tcore_hash: \"string\",\n\tprofile_hash: \"string\",\n\t\"contract_json?\": \"unknown | null\",\n\t\"canonical_version?\": \"number | null\",\n\t\"updated_at?\": \"Date | string\",\n\t\"app_tag?\": \"string | null\",\n\t\"meta?\": \"unknown | null\",\n\tinvariants: type(\"string\").array()\n});\n/**\n* Parses a contract marker row from database query result.\n* This is SQL-specific parsing logic (handles SQL row structure with snake_case columns).\n*/\nfunction parseContractMarkerRow(row) {\n\tconst result = ContractMarkerRowSchema(row);\n\tif (result instanceof type.errors) {\n\t\tconst messages = result.map((p) => p.message).join(\"; \");\n\t\tthrow sqlFamilyError(\"CONTRACT.MARKER_ROW_CORRUPT\", `Invalid contract marker row: ${messages}`, {\n\t\t\twhy: \"The contract marker row read from the database does not match the expected marker shape.\",\n\t\t\tfix: \"Re-sign the database with `prisma db sign`, or repair the marker table.\",\n\t\t\tnextActions: [{\n\t\t\t\tkind: \"run-command\",\n\t\t\t\tlabel: \"Re-sign the database\",\n\t\t\t\tcommand: \"{bin} db sign\"\n\t\t\t}, {\n\t\t\t\tkind: \"user-choice\",\n\t\t\t\tlabel: \"Repair the marker table by hand\",\n\t\t\t\treason: messages\n\t\t\t}],\n\t\t\tmeta: { issues: messages }\n\t\t});\n\t}\n\tconst updatedAt = result.updated_at ? result.updated_at instanceof Date ? result.updated_at : new Date(result.updated_at) : /* @__PURE__ */ new Date();\n\treturn {\n\t\tstorageHash: result.core_hash,\n\t\tprofileHash: result.profile_hash,\n\t\tcontractJson: parseContractJson(result.contract_json),\n\t\tcanonicalVersion: result.canonical_version ?? null,\n\t\tupdatedAt,\n\t\tappTag: result.app_tag ?? null,\n\t\tmeta: parseMeta(result.meta),\n\t\tinvariants: result.invariants\n\t};\n}\n/**\n* Collects supported codec type IDs from adapter and extension manifests.\n* Returns a sorted, unique array of type IDs that are declared in the manifests.\n* This enables coverage checks by comparing contract column types against supported types.\n*\n* Note: This extracts type IDs from manifest type imports, not from runtime codec registries.\n* The manifests declare which codec types are available, but the actual type IDs\n* are defined in the codec-types TypeScript modules that are imported.\n*\n* For MVP, we return an empty array since extracting type IDs from TypeScript modules\n* would require runtime evaluation or static analysis. This can be enhanced later.\n*/\nfunction collectSupportedCodecTypeIds(descriptors) {\n\treturn [];\n}\n//#endregion\nexport { parseContractMarkerRow as n, collectSupportedCodecTypeIds as t };\n\n//# sourceMappingURL=verify-BVk5bjdH.mjs.map"],"mappings":";;;;AAIA,MAAM,aAAa,KAAK,EAAE,YAAY,UAAU,CAAC;AACjD,SAAS,UAAU,MAAM;CACxB,IAAI,SAAS,QAAQ,SAAS,KAAK,GAAG,OAAO,CAAC;CAC9C,IAAI;CACJ,IAAI,OAAO,SAAS,UAAU,IAAI;EACjC,SAAS,KAAK,MAAM,IAAI;CACzB,QAAQ;EACP,OAAO,CAAC;CACT;MACK,SAAS;CACd,MAAM,SAAS,WAAW,MAAM;CAChC,IAAI,kBAAkB,KAAK,QAAQ,OAAO,CAAC;CAC3C,OAAO,UAAU,MAAM;AACxB;;;;;;AAMA,SAAS,kBAAkB,OAAO;CACjC,IAAI,UAAU,QAAQ,UAAU,KAAK,GAAG,OAAO;CAC/C,IAAI,OAAO,UAAU,UAAU,OAAO,UAAU,KAAK;CACrD,IAAI;EACH,OAAO,UAAU,KAAK,MAAM,KAAK,CAAC;CACnC,QAAQ;EACP,OAAO;CACR;AACD;AACA,MAAM,0BAA0B,KAAK;CACpC,WAAW;CACX,cAAc;CACd,kBAAkB;CAClB,sBAAsB;CACtB,eAAe;CACf,YAAY;CACZ,SAAS;CACT,YAAY,KAAK,QAAQ,CAAC,CAAC,MAAM;AAClC,CAAC;;;;;AAKD,SAAS,uBAAuB,KAAK;CACpC,MAAM,SAAS,wBAAwB,GAAG;CAC1C,IAAI,kBAAkB,KAAK,QAAQ;EAClC,MAAM,WAAW,OAAO,KAAK,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,IAAI;EACvD,MAAM,eAAe,+BAA+B,gCAAgC,YAAY;GAC/F,KAAK;GACL,KAAK;GACL,aAAa,CAAC;IACb,MAAM;IACN,OAAO;IACP,SAAS;GACV,GAAG;IACF,MAAM;IACN,OAAO;IACP,QAAQ;GACT,CAAC;GACD,MAAM,EAAE,QAAQ,SAAS;EAC1B,CAAC;CACF;CACA,MAAM,YAAY,OAAO,aAAa,OAAO,sBAAsB,OAAO,OAAO,aAAa,IAAI,KAAK,OAAO,UAAU,oBAAoB,IAAI,KAAK;CACrJ,OAAO;EACN,aAAa,OAAO;EACpB,aAAa,OAAO;EACpB,cAAc,kBAAkB,OAAO,aAAa;EACpD,kBAAkB,OAAO,qBAAqB;EAC9C;EACA,QAAQ,OAAO,WAAW;EAC1B,MAAM,UAAU,OAAO,IAAI;EAC3B,YAAY,OAAO;CACpB;AACD;;;;;;;;;;;;;AAaA,SAAS,6BAA6B,aAAa;CAClD,OAAO,CAAC;AACT"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContractMarkerRecord } from "@prisma/orm-framework/contract/types";
|
|
2
|
-
//#region ../../../2-sql/9-family/dist/verify.d.mts
|
|
2
|
+
//#region ../../../2-sql-family/9-family/dist/verify.d.mts
|
|
3
3
|
//#region src/core/verify.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Wire shape of a `prisma_contract.marker` row as it comes out of a SQL
|
|
@@ -23,4 +23,4 @@ type ContractMarkerRow = {
|
|
|
23
23
|
declare function parseContractMarkerRow(row: unknown): ContractMarkerRecord;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { parseContractMarkerRow as n, ContractMarkerRow as t };
|
|
26
|
-
//# sourceMappingURL=verify-
|
|
26
|
+
//# sourceMappingURL=verify-DHXbuZPB.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify-DHXbuZPB.d.mts","names":[],"sources":["../../../../2-sql-family/9-family/dist/verify.d.mts"],"mappings":";;;;;;;;KAOK;EACH;EACA;EACA;EACA;EACA,YAAY;EACZ;EACA;EACA;;;;;;iBAMe,uBAAuB,eAAe"}
|
package/package.json
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-family-sql",
|
|
3
|
-
"version": "8.0.0-rc.
|
|
3
|
+
"version": "8.0.0-rc.20",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"description": "Prisma
|
|
7
|
+
"description": "Prisma 8 SQL family domain: contract, authoring, lanes, runtime",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-framework": "8.0.0-rc.
|
|
13
|
-
"@prisma/orm-toolchain": "8.0.0-rc.
|
|
12
|
+
"@prisma/orm-framework": "8.0.0-rc.20",
|
|
13
|
+
"@prisma/orm-toolchain": "8.0.0-rc.20",
|
|
14
14
|
"@standard-schema/spec": "^1.1.0",
|
|
15
15
|
"arktype": "^2.2.2",
|
|
16
16
|
"pathe": "^2.0.3",
|
|
17
17
|
"pluralize": "^8.0.0",
|
|
18
|
+
"tinyglobby": "^0.2.17",
|
|
18
19
|
"ts-toolbelt": "^9.6.0"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
|
-
"@internal/family-sql": "8.0.0-rc.
|
|
22
|
-
"@internal/sql-builder": "8.0.0-rc.
|
|
23
|
-
"@internal/sql-contract": "8.0.0-rc.
|
|
24
|
-
"@internal/sql-contract-emitter": "8.0.0-rc.
|
|
25
|
-
"@internal/sql-contract-
|
|
26
|
-
"@internal/sql-contract-
|
|
27
|
-
"@internal/sql-
|
|
28
|
-
"@internal/sql-
|
|
29
|
-
"@internal/sql-operations": "8.0.0-rc.
|
|
30
|
-
"@internal/sql-orm-client": "8.0.0-rc.
|
|
31
|
-
"@internal/sql-relational-core": "8.0.0-rc.
|
|
32
|
-
"@internal/sql-runtime": "8.0.0-rc.
|
|
33
|
-
"@internal/sql-schema-ir": "8.0.0-rc.
|
|
34
|
-
"@repo/tsconfig": "8.0.0-rc.
|
|
35
|
-
"@repo/tsdown": "8.0.0-rc.
|
|
22
|
+
"@internal/family-sql": "8.0.0-rc.20",
|
|
23
|
+
"@internal/sql-builder": "8.0.0-rc.20",
|
|
24
|
+
"@internal/sql-contract": "8.0.0-rc.20",
|
|
25
|
+
"@internal/sql-contract-emitter": "8.0.0-rc.20",
|
|
26
|
+
"@internal/sql-contract-prisma7": "8.0.0-rc.20",
|
|
27
|
+
"@internal/sql-contract-psl": "8.0.0-rc.20",
|
|
28
|
+
"@internal/sql-contract-ts": "8.0.0-rc.20",
|
|
29
|
+
"@internal/sql-errors": "8.0.0-rc.20",
|
|
30
|
+
"@internal/sql-operations": "8.0.0-rc.20",
|
|
31
|
+
"@internal/sql-orm-client": "8.0.0-rc.20",
|
|
32
|
+
"@internal/sql-relational-core": "8.0.0-rc.20",
|
|
33
|
+
"@internal/sql-runtime": "8.0.0-rc.20",
|
|
34
|
+
"@internal/sql-schema-ir": "8.0.0-rc.20",
|
|
35
|
+
"@repo/tsconfig": "8.0.0-rc.20",
|
|
36
|
+
"@repo/tsdown": "8.0.0-rc.20",
|
|
36
37
|
"tsdown": "0.22.14",
|
|
37
38
|
"typescript": "5.9.3"
|
|
38
39
|
},
|
|
@@ -52,6 +53,8 @@
|
|
|
52
53
|
"./contract/authored-check-naming": "./dist/contract__authored-check-naming.mjs",
|
|
53
54
|
"./contract/canonicalization-hooks": "./dist/contract__canonicalization-hooks.mjs",
|
|
54
55
|
"./contract/contract-view": "./dist/contract__contract-view.mjs",
|
|
56
|
+
"./contract/data-type": "./dist/contract__data-type.mjs",
|
|
57
|
+
"./contract/data-type-support": "./dist/contract__data-type-support.mjs",
|
|
55
58
|
"./contract/entity-handle-lowering-hook": "./dist/contract__entity-handle-lowering-hook.mjs",
|
|
56
59
|
"./contract/entity-kinds": "./dist/contract__entity-kinds.mjs",
|
|
57
60
|
"./contract/factories": "./dist/contract__factories.mjs",
|
|
@@ -59,14 +62,19 @@
|
|
|
59
62
|
"./contract/index-naming": "./dist/contract__index-naming.mjs",
|
|
60
63
|
"./contract/index-type-validation": "./dist/contract__index-type-validation.mjs",
|
|
61
64
|
"./contract/index-types": "./dist/contract__index-types.mjs",
|
|
62
|
-
"./contract/pack-types": "./dist/contract__pack-types.mjs",
|
|
63
65
|
"./contract/referential-action-sql": "./dist/contract__referential-action-sql.mjs",
|
|
64
66
|
"./contract/resolve-storage-table": "./dist/contract__resolve-storage-table.mjs",
|
|
67
|
+
"./contract/sql-expression": "./dist/contract__sql-expression.mjs",
|
|
65
68
|
"./contract/types": "./dist/contract__types.mjs",
|
|
66
69
|
"./contract/validators": "./dist/contract__validators.mjs",
|
|
67
70
|
"./contract/value-set-derivation-hook": "./dist/contract__value-set-derivation-hook.mjs",
|
|
68
71
|
"./contract-emitter": "./dist/contract-emitter.mjs",
|
|
72
|
+
"./contract-prisma7/provider": "./dist/contract-prisma7__provider.mjs",
|
|
69
73
|
"./contract-psl": "./dist/contract-psl.mjs",
|
|
74
|
+
"./contract-psl/attribute-specs": "./dist/contract-psl__attribute-specs.mjs",
|
|
75
|
+
"./contract-psl/default-table-name": "./dist/contract-psl__default-table-name.mjs",
|
|
76
|
+
"./contract-psl/diagnostics": "./dist/contract-psl__diagnostics.mjs",
|
|
77
|
+
"./contract-psl/map-names": "./dist/contract-psl__map-names.mjs",
|
|
70
78
|
"./contract-psl/provider": "./dist/contract-psl__provider.mjs",
|
|
71
79
|
"./contract-ts": "./dist/contract-ts.mjs",
|
|
72
80
|
"./contract-ts/config-types": "./dist/contract-ts__config-types.mjs",
|
|
@@ -79,18 +87,21 @@
|
|
|
79
87
|
"./family/ir": "./dist/family__ir.mjs",
|
|
80
88
|
"./family/migration": "./dist/family__migration.mjs",
|
|
81
89
|
"./family/pack": "./dist/family__pack.mjs",
|
|
90
|
+
"./family/psl-build": "./dist/family__psl-build.mjs",
|
|
82
91
|
"./family/psl-infer": "./dist/family__psl-infer.mjs",
|
|
83
92
|
"./family/runtime": "./dist/family__runtime.mjs",
|
|
84
93
|
"./family/verify": "./dist/family__verify.mjs",
|
|
85
|
-
"./lane-query-builder": "./dist/lane-query-builder.mjs",
|
|
86
94
|
"./operations": "./dist/operations.mjs",
|
|
87
95
|
"./orm-client": "./dist/orm-client.mjs",
|
|
88
96
|
"./relational-core": "./dist/relational-core.mjs",
|
|
89
97
|
"./relational-core/aggregate-descriptor-registry": "./dist/relational-core__aggregate-descriptor-registry.mjs",
|
|
90
98
|
"./relational-core/ast": "./dist/relational-core__ast.mjs",
|
|
91
99
|
"./relational-core/codec-descriptor-registry": "./dist/relational-core__codec-descriptor-registry.mjs",
|
|
100
|
+
"./relational-core/collection-methods": "./dist/relational-core__collection-methods.mjs",
|
|
92
101
|
"./relational-core/contract-free": "./dist/relational-core__contract-free.mjs",
|
|
93
102
|
"./relational-core/expression": "./dist/relational-core__expression.mjs",
|
|
103
|
+
"./relational-core/functions": "./dist/relational-core__functions.mjs",
|
|
104
|
+
"./relational-core/index-reference": "./dist/relational-core__index-reference.mjs",
|
|
94
105
|
"./relational-core/middleware": "./dist/relational-core__middleware.mjs",
|
|
95
106
|
"./relational-core/plan": "./dist/relational-core__plan.mjs",
|
|
96
107
|
"./relational-core/query-lane-context": "./dist/relational-core__query-lane-context.mjs",
|
|
@@ -104,7 +115,7 @@
|
|
|
104
115
|
},
|
|
105
116
|
"repository": {
|
|
106
117
|
"type": "git",
|
|
107
|
-
"url": "https://github.com/prisma/
|
|
118
|
+
"url": "https://github.com/prisma/orm.git",
|
|
108
119
|
"directory": "packages/9-public/@prisma/orm-family-sql"
|
|
109
120
|
},
|
|
110
121
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aggregate-descriptor-registry-C7hel5O7.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/aggregate-descriptor-registry.mjs"],"sourcesContent":["import { B as isAggregateFn, G as frozenCodecRef, z as aggregateFnNames } from \"../types-Dt4e_jC-.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { aggregateDescriptorKey, isAggregateDescriptor, isAnyInputAggregateDescriptor, isNoInputAggregateDescriptor, settleAggregateOverloads } from \"@internal/framework-components/components\";\n//#region src/aggregate-descriptor.ts\n/** Structural validation of a contributed SQL aggregate descriptor: the declarative shape plus a callable lowering hook where one is declared. */\nfunction isSqlAggregateDescriptor(value) {\n\tif (!isAggregateDescriptor(value)) return false;\n\treturn !(\"lower\" in value) || value.lower === void 0 || typeof value.lower === \"function\";\n}\n//#endregion\n//#region src/aggregate-descriptor-registry.ts\nfunction namedOutputRef(output, input) {\n\treturn frozenCodecRef({\n\t\tcodecId: output.codecId,\n\t\t...ifDefined(\"typeParams\", output.typeParams?.(input))\n\t});\n}\n/** The descriptor's own answer for a result set carrying no row, carried into resolution unchanged. */\nfunction resultNullability(descriptor) {\n\treturn descriptor.nullable ? { nullable: true } : {\n\t\tnullable: false,\n\t\temptyResultJson: descriptor.emptyResultJson\n\t};\n}\n/**\n* Validate every contributed aggregate descriptor and settle its matches against the composed codec set.\n*\n* Validation covers the descriptor's own shape, the lowering rule — an operation outside the closed SQL aggregate alphabet must carry a `lower` hook, there being no plain `AggregateExpr` form for it — a second claim on one `(operation, input)` pair, and two trait descriptors that both claim a registered codec for one operation — the last of which only a composed stack can detect, which is why it is settled here rather than at contribution.\n*/\nfunction buildSqlAggregateDescriptorRegistry(descriptors, codecDescriptors) {\n\tconst validated = [];\n\tconst claimedKeys = /* @__PURE__ */ new Set();\n\tfor (const candidate of descriptors) {\n\t\tif (!isSqlAggregateDescriptor(candidate)) throw structuredError(\"RUNTIME.AGGREGATE_DESCRIPTOR_INVALID\", `Contributed value ${describeCandidate(candidate)} is not a valid SQL aggregate descriptor.`, {\n\t\t\twhy: \"Aggregate resolution reads a declared operation, input match, result codec, and nullability — plus, for a non-nullable result, the empty-result value; a lowering hook, where present, must be callable.\",\n\t\t\tfix: \"Declare `operation`, `input` (`none` / `any` / `codec` / `trait`), `output` (`self` / `codec`), and `nullable` on the descriptor, adding `emptyResultJson` where `nullable` is false.\",\n\t\t\tmeta: { descriptor: describeCandidate(candidate) }\n\t\t});\n\t\tconst key = aggregateDescriptorKey(candidate);\n\t\tif (!isAggregateFn(candidate.operation) && candidate.lower === void 0) throw structuredError(\"RUNTIME.AGGREGATE_LOWERING_MISSING\", `Aggregate descriptor '${key}' declares operation '${candidate.operation}', which is outside the SQL aggregate alphabet (${[...aggregateFnNames].join(\", \")}) and carries no lowering hook.`, {\n\t\t\twhy: \"An operation in the alphabet lowers to a plain aggregate call; renderers know no other operation, so any other name must build its expression through a `lower` hook from existing nodes.\",\n\t\t\tfix: \"Declare a `lower` hook on the descriptor, or use an operation name from the SQL aggregate alphabet.\",\n\t\t\tmeta: {\n\t\t\t\toperation: candidate.operation,\n\t\t\t\tkey\n\t\t\t}\n\t\t});\n\t\tif (claimedKeys.has(key)) throw structuredError(\"RUNTIME.DUPLICATE_AGGREGATE_DESCRIPTOR\", `Duplicate aggregate descriptor for '${key}'.`, {\n\t\t\twhy: \"Each operation/input pair resolves to exactly one result codec, so exactly one component may claim it.\",\n\t\t\tfix: \"Remove the duplicate target, adapter, or extension contribution.\",\n\t\t\tmeta: { key }\n\t\t});\n\t\tclaimedKeys.add(key);\n\t\tvalidated.push(candidate);\n\t}\n\tconst settled = settleAggregateOverloads(validated, codecDescriptors.values());\n\tconst ambiguity = settled.ambiguities[0];\n\tif (ambiguity !== void 0) throw structuredError(\"RUNTIME.AMBIGUOUS_AGGREGATE_DESCRIPTOR\", `Ambiguous aggregate descriptors for '${ambiguity.operation}' over codec '${ambiguity.codecId}': traits ${ambiguity.traits.join(\", \")} all claim it.`, {\n\t\twhy: \"A codec advertising several claimed traits leaves the result codec undetermined.\",\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\tfor (const descriptor of validated) {\n\t\tconst outputCodecId = descriptor.output.kind === \"codec\" ? descriptor.output.codecId : descriptor.input.kind === \"codec\" ? descriptor.input.codecId : void 0;\n\t\tif (outputCodecId !== void 0 && codecDescriptors.descriptorFor(outputCodecId) === void 0) {\n\t\t\tconst key = aggregateDescriptorKey(descriptor);\n\t\t\tthrow structuredError(\"RUNTIME.AGGREGATE_OUTPUT_CODEC_MISSING\", `Aggregate descriptor '${key}' names result codec '${outputCodecId}', which the composed stack does not register.`, {\n\t\t\t\twhy: \"A resolved aggregate decodes its result through the declared codec; a codec the stack does not compose cannot decode anything.\",\n\t\t\t\tfix: \"Register the codec on the composed stack, or declare a result codec the stack composes.\",\n\t\t\t\tmeta: {\n\t\t\t\t\toperation: descriptor.operation,\n\t\t\t\t\tkey,\n\t\t\t\t\toutputCodecId\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\tconst tables = /* @__PURE__ */ new Map();\n\tfor (const [operation, entry] of settled.operations) tables.set(operation, {\n\t\twithoutInput: resolveWithoutInput(operation, entry.noInput) ?? resolveWithoutInput(operation, entry.anyInput),\n\t\tbyCodecId: entry.byCodecId,\n\t\tanyInput: entry.anyInput\n\t});\n\treturn {\n\t\tresolve(operation, input) {\n\t\t\tconst table = tables.get(operation);\n\t\t\tif (table === void 0) return void 0;\n\t\t\tif (input === void 0) return table.withoutInput;\n\t\t\tconst descriptor = table.byCodecId.get(input.codecId) ?? table.anyInput;\n\t\t\tif (descriptor === void 0) return void 0;\n\t\t\treturn {\n\t\t\t\toperation,\n\t\t\t\toutput: descriptor.output.kind === \"self\" ? frozenCodecRef(input) : namedOutputRef(descriptor.output, input),\n\t\t\t\t...resultNullability(descriptor),\n\t\t\t\tlower: descriptor.lower\n\t\t\t};\n\t\t},\n\t\t*values() {\n\t\t\tyield* validated;\n\t\t}\n\t};\n}\n/**\n* Resolve the overload that answers a call carrying no input. Both kinds that qualify name their result codec outright, there being no input codec to reuse.\n*/\nfunction resolveWithoutInput(operation, descriptor) {\n\tif (descriptor === void 0) return void 0;\n\tif (!isNoInputAggregateDescriptor(descriptor) && !isAnyInputAggregateDescriptor(descriptor)) return;\n\treturn {\n\t\toperation,\n\t\toutput: namedOutputRef(descriptor.output, void 0),\n\t\t...resultNullability(descriptor),\n\t\tlower: descriptor.lower\n\t};\n}\nfunction describeCandidate(value) {\n\tif (typeof value === \"object\" && value !== null && \"operation\" in value) return `'${String(value.operation)}'`;\n\treturn `of type ${typeof value}`;\n}\n//#endregion\nexport { buildSqlAggregateDescriptorRegistry, isSqlAggregateDescriptor };\n\n//# sourceMappingURL=aggregate-descriptor-registry.mjs.map"],"mappings":"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"}
|
package/dist/ast-HFcfQZr-.d.mts
DELETED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { m as AnyQueryAst, p as AnyParamRef, ut as LoweredStatement } from "./types-v3qxLLxo-DCeKv7yY.mjs";
|
|
2
|
-
import { c as SqlQueryable } from "./driver-types-BQtRkOJ0-Bv2RPSfr.mjs";
|
|
3
|
-
import "./ddl-types-CXx4vPz6-BsgrnSUY.mjs";
|
|
4
|
-
import { ContractMarkerRecord, JsonValue } from "@prisma/orm-framework/contract/types";
|
|
5
|
-
import { CodecCallContext, CodecDescriptorImpl, CodecImpl, CodecInstanceContext } from "@prisma/orm-framework/components/codec";
|
|
6
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
|
-
//#region ../../../2-sql/4-lanes/relational-core/dist/exports/ast.d.mts
|
|
8
|
-
//#region src/ast/adapter-types.d.ts
|
|
9
|
-
type AdapterTarget = string;
|
|
10
|
-
/**
|
|
11
|
-
* Outcome of an adapter's marker read. `no-table` means the marker storage itself is absent
|
|
12
|
-
* (e.g. attaching to a database that was never `db init`'d); `absent` means the storage exists
|
|
13
|
-
* but holds no row for the requested space; `present` carries the parsed record. Callers
|
|
14
|
-
* distinguish these to produce appropriate log diagnostics for each case.
|
|
15
|
-
*/
|
|
16
|
-
type MarkerReadResult = {
|
|
17
|
-
readonly kind: 'present';
|
|
18
|
-
readonly record: ContractMarkerRecord;
|
|
19
|
-
} | {
|
|
20
|
-
readonly kind: 'absent';
|
|
21
|
-
} | {
|
|
22
|
-
readonly kind: 'no-table';
|
|
23
|
-
};
|
|
24
|
-
interface AdapterProfile<TTarget extends AdapterTarget = AdapterTarget> {
|
|
25
|
-
readonly id: string;
|
|
26
|
-
readonly target: TTarget;
|
|
27
|
-
readonly capabilities: Record<string, unknown>;
|
|
28
|
-
/**
|
|
29
|
-
* Reads the contract marker via the supplied queryable. The adapter owns the full flow — probing for the marker storage, issuing the read, and decoding the row — so callers receive a tagged result rather than a raw driver error when the marker storage is absent.
|
|
30
|
-
*/
|
|
31
|
-
readMarker(queryable: SqlQueryable): Promise<MarkerReadResult>;
|
|
32
|
-
}
|
|
33
|
-
interface LowererContext<TContract = unknown> {
|
|
34
|
-
readonly contract: TContract;
|
|
35
|
-
readonly params?: readonly unknown[];
|
|
36
|
-
}
|
|
37
|
-
type Lowerer<Ast = unknown, TContract = unknown, TBody = LoweredStatement> = (ast: Ast, context: LowererContext<TContract>) => TBody;
|
|
38
|
-
/**
|
|
39
|
-
* Lowers a query AST into a target-specific executable body (typically `LoweredStatement` for SQL adapters). The `lower` method returns the body directly; per-statement metadata, when needed, lives on the body itself (e.g. `LoweredStatement.annotations`). Adapter-level metadata such as the profile id is reachable via `profile.id` for callers that genuinely need it.
|
|
40
|
-
*/
|
|
41
|
-
interface Adapter<Ast = unknown, TContract = unknown, TBody = LoweredStatement> {
|
|
42
|
-
readonly profile: AdapterProfile;
|
|
43
|
-
lower(ast: Ast, context: LowererContext<TContract>): TBody;
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/ast/sql-codec-helpers.d.ts
|
|
47
|
-
declare const SQL_CHAR_CODEC_ID: "sql/char@1";
|
|
48
|
-
declare const SQL_VARCHAR_CODEC_ID: "sql/varchar@1";
|
|
49
|
-
declare const SQL_INT_CODEC_ID: "sql/int@1";
|
|
50
|
-
declare const SQL_FLOAT_CODEC_ID: "sql/float@1";
|
|
51
|
-
declare const SQL_TEXT_CODEC_ID: "sql/text@1";
|
|
52
|
-
declare const SQL_TIMESTAMP_CODEC_ID: "sql/timestamp@1";
|
|
53
|
-
declare const sqlCharEncode: (value: string) => string;
|
|
54
|
-
declare const sqlCharDecode: (wire: string) => string;
|
|
55
|
-
declare const sqlCharRenderOutputType: (typeParams: {
|
|
56
|
-
readonly length?: number;
|
|
57
|
-
}) => string | undefined;
|
|
58
|
-
declare const sqlVarcharEncode: (value: string) => string;
|
|
59
|
-
declare const sqlVarcharDecode: (wire: string) => string;
|
|
60
|
-
declare const sqlVarcharRenderOutputType: (typeParams: {
|
|
61
|
-
readonly length?: number;
|
|
62
|
-
}) => string | undefined;
|
|
63
|
-
declare const sqlIntEncode: (value: number) => number;
|
|
64
|
-
declare const sqlIntDecode: (wire: number) => number;
|
|
65
|
-
declare const sqlFloatEncode: (value: number) => number;
|
|
66
|
-
declare const sqlFloatDecode: (wire: number) => number;
|
|
67
|
-
/**
|
|
68
|
-
* JSON has no spelling for a non-finite number, and a database that holds one
|
|
69
|
-
* emits it as a string — PostgreSQL writes `"NaN"` and `"Infinity"`. This
|
|
70
|
-
* codec's application type is `number`, so both directions reject rather than
|
|
71
|
-
* carry a value that type cannot hold.
|
|
72
|
-
*/
|
|
73
|
-
declare const sqlFloatEncodeJson: (value: number) => JsonValue;
|
|
74
|
-
declare const sqlFloatDecodeJson: (json: JsonValue) => number;
|
|
75
|
-
declare const sqlTextEncode: (value: string) => string;
|
|
76
|
-
declare const sqlTextDecode: (wire: string) => string;
|
|
77
|
-
declare const sqlTimestampEncode: (value: Date) => Date;
|
|
78
|
-
declare const sqlTimestampDecode: (wire: Date) => Date;
|
|
79
|
-
/**
|
|
80
|
-
* A `timestamp` carries no zone, so its JSON form is the ISO rendering without a
|
|
81
|
-
* trailing `Z` — `2026-01-02T03:04:05.678` — and {@link sqlTimestampDecodeJson}
|
|
82
|
-
* reads that form back as UTC.
|
|
83
|
-
*/
|
|
84
|
-
declare const sqlTimestampEncodeJson: (value: Date) => JsonValue;
|
|
85
|
-
declare const sqlTimestampDecodeJson: (json: JsonValue) => Date;
|
|
86
|
-
declare const sqlTimestampRenderOutputType: (typeParams: {
|
|
87
|
-
readonly precision?: number;
|
|
88
|
-
}) => string;
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region src/ast/sql-codecs.d.ts
|
|
91
|
-
type LengthParams = {
|
|
92
|
-
readonly length?: number;
|
|
93
|
-
};
|
|
94
|
-
type PrecisionParams = {
|
|
95
|
-
readonly precision?: number;
|
|
96
|
-
};
|
|
97
|
-
declare class SqlTextCodec extends CodecImpl<typeof SQL_TEXT_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
|
|
98
|
-
encode(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
99
|
-
decode(wire: string, _ctx: CodecCallContext): Promise<string>;
|
|
100
|
-
encodeJson(value: string): JsonValue;
|
|
101
|
-
decodeJson(json: JsonValue): string;
|
|
102
|
-
}
|
|
103
|
-
declare class SqlTextDescriptor extends CodecDescriptorImpl<void> {
|
|
104
|
-
readonly codecId: "sql/text@1";
|
|
105
|
-
readonly traits: readonly ["equality", "order", "textual"];
|
|
106
|
-
readonly targetTypes: readonly ["text"];
|
|
107
|
-
readonly paramsSchema: StandardSchemaV1<void>;
|
|
108
|
-
factory(): (ctx: CodecInstanceContext) => SqlTextCodec;
|
|
109
|
-
}
|
|
110
|
-
declare const sqlTextDescriptor: SqlTextDescriptor;
|
|
111
|
-
declare const sqlTextColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlTextCodec, undefined>;
|
|
112
|
-
declare class SqlIntCodec extends CodecImpl<typeof SQL_INT_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
|
|
113
|
-
encode(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
114
|
-
decode(wire: number, _ctx: CodecCallContext): Promise<number>;
|
|
115
|
-
encodeJson(value: number): JsonValue;
|
|
116
|
-
decodeJson(json: JsonValue): number;
|
|
117
|
-
}
|
|
118
|
-
declare class SqlIntDescriptor extends CodecDescriptorImpl<void> {
|
|
119
|
-
readonly codecId: "sql/int@1";
|
|
120
|
-
readonly traits: readonly ["equality", "order", "numeric"];
|
|
121
|
-
readonly targetTypes: readonly ["int"];
|
|
122
|
-
readonly paramsSchema: StandardSchemaV1<void>;
|
|
123
|
-
factory(): (ctx: CodecInstanceContext) => SqlIntCodec;
|
|
124
|
-
}
|
|
125
|
-
declare const sqlIntDescriptor: SqlIntDescriptor;
|
|
126
|
-
declare const sqlIntColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlIntCodec, undefined>;
|
|
127
|
-
declare class SqlFloatCodec extends CodecImpl<typeof SQL_FLOAT_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
|
|
128
|
-
encode(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
129
|
-
decode(wire: number, _ctx: CodecCallContext): Promise<number>;
|
|
130
|
-
encodeJson(value: number): JsonValue;
|
|
131
|
-
decodeJson(json: JsonValue): number;
|
|
132
|
-
}
|
|
133
|
-
declare class SqlFloatDescriptor extends CodecDescriptorImpl<void> {
|
|
134
|
-
readonly codecId: "sql/float@1";
|
|
135
|
-
readonly traits: readonly ["equality", "order", "numeric"];
|
|
136
|
-
readonly targetTypes: readonly ["float"];
|
|
137
|
-
readonly paramsSchema: StandardSchemaV1<void>;
|
|
138
|
-
factory(): (ctx: CodecInstanceContext) => SqlFloatCodec;
|
|
139
|
-
}
|
|
140
|
-
declare const sqlFloatDescriptor: SqlFloatDescriptor;
|
|
141
|
-
declare const sqlFloatColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlFloatCodec, undefined>;
|
|
142
|
-
declare class SqlCharCodec extends CodecImpl<typeof SQL_CHAR_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
|
|
143
|
-
encode(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
144
|
-
decode(wire: string, _ctx: CodecCallContext): Promise<string>;
|
|
145
|
-
encodeJson(value: string): JsonValue;
|
|
146
|
-
decodeJson(json: JsonValue): string;
|
|
147
|
-
}
|
|
148
|
-
declare class SqlCharDescriptor extends CodecDescriptorImpl<LengthParams> {
|
|
149
|
-
readonly codecId: "sql/char@1";
|
|
150
|
-
readonly traits: readonly ["equality", "order", "textual"];
|
|
151
|
-
readonly targetTypes: readonly ["char"];
|
|
152
|
-
readonly paramsSchema: StandardSchemaV1<LengthParams>;
|
|
153
|
-
renderOutputType(params: LengthParams): string | undefined;
|
|
154
|
-
factory(_params: LengthParams): (ctx: CodecInstanceContext) => SqlCharCodec;
|
|
155
|
-
}
|
|
156
|
-
declare const sqlCharDescriptor: SqlCharDescriptor;
|
|
157
|
-
declare const sqlCharColumn: (params?: LengthParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlCharCodec, LengthParams>;
|
|
158
|
-
declare class SqlVarcharCodec extends CodecImpl<typeof SQL_VARCHAR_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
|
|
159
|
-
encode(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
160
|
-
decode(wire: string, _ctx: CodecCallContext): Promise<string>;
|
|
161
|
-
encodeJson(value: string): JsonValue;
|
|
162
|
-
decodeJson(json: JsonValue): string;
|
|
163
|
-
}
|
|
164
|
-
declare class SqlVarcharDescriptor extends CodecDescriptorImpl<LengthParams> {
|
|
165
|
-
readonly codecId: "sql/varchar@1";
|
|
166
|
-
readonly traits: readonly ["equality", "order", "textual"];
|
|
167
|
-
readonly targetTypes: readonly ["varchar"];
|
|
168
|
-
readonly paramsSchema: StandardSchemaV1<LengthParams>;
|
|
169
|
-
renderOutputType(params: LengthParams): string | undefined;
|
|
170
|
-
factory(_params: LengthParams): (ctx: CodecInstanceContext) => SqlVarcharCodec;
|
|
171
|
-
}
|
|
172
|
-
declare const sqlVarcharDescriptor: SqlVarcharDescriptor;
|
|
173
|
-
declare const sqlVarcharColumn: (params?: LengthParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlVarcharCodec, LengthParams>;
|
|
174
|
-
declare class SqlTimestampCodec extends CodecImpl<typeof SQL_TIMESTAMP_CODEC_ID, readonly ['equality', 'order'], Date, Date> {
|
|
175
|
-
encode(value: Date, _ctx: CodecCallContext): Promise<Date>;
|
|
176
|
-
decode(wire: Date, _ctx: CodecCallContext): Promise<Date>;
|
|
177
|
-
encodeJson(value: Date): JsonValue;
|
|
178
|
-
decodeJson(json: JsonValue): Date;
|
|
179
|
-
}
|
|
180
|
-
declare class SqlTimestampDescriptor extends CodecDescriptorImpl<PrecisionParams> {
|
|
181
|
-
readonly codecId: "sql/timestamp@1";
|
|
182
|
-
readonly traits: readonly ["equality", "order"];
|
|
183
|
-
readonly targetTypes: readonly ["timestamp"];
|
|
184
|
-
readonly paramsSchema: StandardSchemaV1<PrecisionParams>;
|
|
185
|
-
renderOutputType(params: PrecisionParams): string | undefined;
|
|
186
|
-
factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => SqlTimestampCodec;
|
|
187
|
-
}
|
|
188
|
-
declare const sqlTimestampDescriptor: SqlTimestampDescriptor;
|
|
189
|
-
declare const sqlTimestampColumn: (params?: PrecisionParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlTimestampCodec, PrecisionParams>;
|
|
190
|
-
//#endregion
|
|
191
|
-
//#region src/ast/util.d.ts
|
|
192
|
-
declare function compact<T extends Record<string, unknown>>(o: T): T;
|
|
193
|
-
/**
|
|
194
|
-
* Walks an AST's parameter references in first-encounter order and dedupes
|
|
195
|
-
* by ParamRef identity. The single canonical helper used by every consumer
|
|
196
|
-
* that aligns `plan.params` with metadata-by-index — the SQL builder lane,
|
|
197
|
-
* the SQL ORM client, the SQL runtime encoder, and the Postgres renderer's
|
|
198
|
-
* `$N` index map — so the four walks cannot drift in dedupe semantics.
|
|
199
|
-
*
|
|
200
|
-
* SQLite's `?`-placeholder renderer intentionally does NOT use this helper
|
|
201
|
-
* because it needs one params entry per occurrence in the SQL.
|
|
202
|
-
*/
|
|
203
|
-
declare function collectOrderedParamRefs(ast: AnyQueryAst): ReadonlyArray<AnyParamRef>;
|
|
204
|
-
//#endregion
|
|
205
|
-
export { sqlVarcharColumn as $, sqlCharEncode as A, sqlIntDescriptor as B, SqlVarcharCodec as C, sqlCharColumn as D, compact as E, sqlFloatDescriptor as F, sqlTextEncode as G, sqlTextColumn as H, sqlFloatEncode as I, sqlTimestampDecodeJson as J, sqlTimestampColumn as K, sqlFloatEncodeJson as L, sqlFloatColumn as M, sqlFloatDecode as N, sqlCharDecode as O, sqlFloatDecodeJson as P, sqlTimestampRenderOutputType as Q, sqlIntColumn as R, SqlTimestampDescriptor as S, collectOrderedParamRefs as T, sqlTextDecode as U, sqlIntEncode as V, sqlTextDescriptor as W, sqlTimestampEncode as X, sqlTimestampDescriptor as Y, sqlTimestampEncodeJson as Z, SqlIntCodec as _, LowererContext as a, SqlTextDescriptor as b, SQL_FLOAT_CODEC_ID as c, SQL_TIMESTAMP_CODEC_ID as d, sqlVarcharDecode as et, SQL_VARCHAR_CODEC_ID as f, SqlFloatDescriptor as g, SqlFloatCodec as h, Lowerer as i, sqlCharRenderOutputType as j, sqlCharDescriptor as k, SQL_INT_CODEC_ID as l, SqlCharDescriptor as m, AdapterProfile as n, sqlVarcharEncode as nt, MarkerReadResult as o, SqlCharCodec as p, sqlTimestampDecode as q, AdapterTarget as r, sqlVarcharRenderOutputType as rt, SQL_CHAR_CODEC_ID as s, Adapter as t, sqlVarcharDescriptor as tt, SQL_TEXT_CODEC_ID as u, SqlIntDescriptor as v, SqlVarcharDescriptor as w, SqlTimestampCodec as x, SqlTextCodec as y, sqlIntDecode as z };
|
|
206
|
-
//# sourceMappingURL=ast-HFcfQZr-.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ast-HFcfQZr-.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/ast.d.mts"],"mappings":"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"}
|