@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,66 @@
|
|
|
1
|
+
//#region ../../../2-sql-family/9-family/dist/psl-names-C3cwe0rg.mjs
|
|
2
|
+
const PSL_RESERVED_WORDS = /* @__PURE__ */ new Set([
|
|
3
|
+
"model",
|
|
4
|
+
"enum",
|
|
5
|
+
"types",
|
|
6
|
+
"type",
|
|
7
|
+
"generator",
|
|
8
|
+
"datasource"
|
|
9
|
+
]);
|
|
10
|
+
const IDENTIFIER_PART_PATTERN = /[A-Za-z0-9]+/g;
|
|
11
|
+
function hasSeparators(input) {
|
|
12
|
+
return /[^A-Za-z0-9]/.test(input);
|
|
13
|
+
}
|
|
14
|
+
function extractIdentifierParts(input) {
|
|
15
|
+
return input.match(IDENTIFIER_PART_PATTERN) ?? [];
|
|
16
|
+
}
|
|
17
|
+
function createSyntheticIdentifier(input) {
|
|
18
|
+
let hash = 2166136261;
|
|
19
|
+
for (const char of input) {
|
|
20
|
+
hash ^= char.codePointAt(0) ?? 0;
|
|
21
|
+
hash = Math.imul(hash, 16777619);
|
|
22
|
+
}
|
|
23
|
+
return `x${(hash >>> 0).toString(16)}`;
|
|
24
|
+
}
|
|
25
|
+
function sanitizeIdentifierCharacters(input) {
|
|
26
|
+
const sanitized = input.replace(/[^\w]/g, "");
|
|
27
|
+
return sanitized.length > 0 ? sanitized : createSyntheticIdentifier(input);
|
|
28
|
+
}
|
|
29
|
+
function capitalize(word) {
|
|
30
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
31
|
+
}
|
|
32
|
+
function snakeToPascalCase(input) {
|
|
33
|
+
const parts = extractIdentifierParts(input);
|
|
34
|
+
if (parts.length === 0) return capitalize(sanitizeIdentifierCharacters(input));
|
|
35
|
+
return parts.map(capitalize).join("");
|
|
36
|
+
}
|
|
37
|
+
function snakeToCamelCase(input) {
|
|
38
|
+
const parts = extractIdentifierParts(input);
|
|
39
|
+
if (parts.length === 0) return sanitizeIdentifierCharacters(input);
|
|
40
|
+
const [firstPart = input, ...rest] = parts;
|
|
41
|
+
return firstPart.charAt(0).toLowerCase() + firstPart.slice(1) + rest.map(capitalize).join("");
|
|
42
|
+
}
|
|
43
|
+
function needsEscaping(name) {
|
|
44
|
+
return PSL_RESERVED_WORDS.has(name.toLowerCase()) || /^\d/.test(name);
|
|
45
|
+
}
|
|
46
|
+
function escapeName(name) {
|
|
47
|
+
return `_${name}`;
|
|
48
|
+
}
|
|
49
|
+
function escapeIfNeeded(name) {
|
|
50
|
+
return needsEscaping(name) ? escapeName(name) : name;
|
|
51
|
+
}
|
|
52
|
+
const VALID_IDENTIFIER_PATTERN = /^[A-Za-z_]\w*$/;
|
|
53
|
+
/**
|
|
54
|
+
* PSL member name for a native-enum value. The value itself always prints
|
|
55
|
+
* explicitly (`member = "value"`), so the returned name never needs a map:
|
|
56
|
+
* a value that already is a valid, non-reserved identifier is kept verbatim
|
|
57
|
+
* (case included); anything else is camelCased/escaped like a field name.
|
|
58
|
+
*/
|
|
59
|
+
function toEnumMemberName(value) {
|
|
60
|
+
if (VALID_IDENTIFIER_PATTERN.test(value) && !needsEscaping(value)) return value;
|
|
61
|
+
return escapeIfNeeded(snakeToCamelCase(value));
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { snakeToCamelCase as a, needsEscaping as i, escapeName as n, snakeToPascalCase as o, hasSeparators as r, toEnumMemberName as s, escapeIfNeeded as t };
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=psl-names-C3cwe0rg-D1CTmC3a.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"psl-names-C3cwe0rg-D1CTmC3a.mjs","names":[],"sources":["../../../../2-sql-family/9-family/dist/psl-names-C3cwe0rg.mjs"],"sourcesContent":["//#region src/core/psl-build/psl-names.ts\nconst PSL_RESERVED_WORDS = /* @__PURE__ */ new Set([\n\t\"model\",\n\t\"enum\",\n\t\"types\",\n\t\"type\",\n\t\"generator\",\n\t\"datasource\"\n]);\nconst IDENTIFIER_PART_PATTERN = /[A-Za-z0-9]+/g;\nfunction hasSeparators(input) {\n\treturn /[^A-Za-z0-9]/.test(input);\n}\nfunction extractIdentifierParts(input) {\n\treturn input.match(IDENTIFIER_PART_PATTERN) ?? [];\n}\nfunction createSyntheticIdentifier(input) {\n\tlet hash = 2166136261;\n\tfor (const char of input) {\n\t\thash ^= char.codePointAt(0) ?? 0;\n\t\thash = Math.imul(hash, 16777619);\n\t}\n\treturn `x${(hash >>> 0).toString(16)}`;\n}\nfunction sanitizeIdentifierCharacters(input) {\n\tconst sanitized = input.replace(/[^\\w]/g, \"\");\n\treturn sanitized.length > 0 ? sanitized : createSyntheticIdentifier(input);\n}\nfunction capitalize(word) {\n\treturn word.charAt(0).toUpperCase() + word.slice(1);\n}\nfunction snakeToPascalCase(input) {\n\tconst parts = extractIdentifierParts(input);\n\tif (parts.length === 0) return capitalize(sanitizeIdentifierCharacters(input));\n\treturn parts.map(capitalize).join(\"\");\n}\nfunction snakeToCamelCase(input) {\n\tconst parts = extractIdentifierParts(input);\n\tif (parts.length === 0) return sanitizeIdentifierCharacters(input);\n\tconst [firstPart = input, ...rest] = parts;\n\treturn firstPart.charAt(0).toLowerCase() + firstPart.slice(1) + rest.map(capitalize).join(\"\");\n}\nfunction needsEscaping(name) {\n\treturn PSL_RESERVED_WORDS.has(name.toLowerCase()) || /^\\d/.test(name);\n}\nfunction escapeName(name) {\n\treturn `_${name}`;\n}\nfunction escapeIfNeeded(name) {\n\treturn needsEscaping(name) ? escapeName(name) : name;\n}\nconst VALID_IDENTIFIER_PATTERN = /^[A-Za-z_]\\w*$/;\n/**\n* PSL member name for a native-enum value. The value itself always prints\n* explicitly (`member = \"value\"`), so the returned name never needs a map:\n* a value that already is a valid, non-reserved identifier is kept verbatim\n* (case included); anything else is camelCased/escaped like a field name.\n*/\nfunction toEnumMemberName(value) {\n\tif (VALID_IDENTIFIER_PATTERN.test(value) && !needsEscaping(value)) return value;\n\treturn escapeIfNeeded(snakeToCamelCase(value));\n}\n//#endregion\nexport { snakeToCamelCase as a, needsEscaping as i, escapeName as n, snakeToPascalCase as o, hasSeparators as r, toEnumMemberName as s, escapeIfNeeded as t };\n\n//# sourceMappingURL=psl-names-C3cwe0rg.mjs.map"],"mappings":";AACA,MAAM,qCAAqC,IAAI,IAAI;CAClD;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,0BAA0B;AAChC,SAAS,cAAc,OAAO;CAC7B,OAAO,eAAe,KAAK,KAAK;AACjC;AACA,SAAS,uBAAuB,OAAO;CACtC,OAAO,MAAM,MAAM,uBAAuB,KAAK,CAAC;AACjD;AACA,SAAS,0BAA0B,OAAO;CACzC,IAAI,OAAO;CACX,KAAK,MAAM,QAAQ,OAAO;EACzB,QAAQ,KAAK,YAAY,CAAC,KAAK;EAC/B,OAAO,KAAK,KAAK,MAAM,QAAQ;CAChC;CACA,OAAO,KAAK,SAAS,EAAA,CAAG,SAAS,EAAE;AACpC;AACA,SAAS,6BAA6B,OAAO;CAC5C,MAAM,YAAY,MAAM,QAAQ,UAAU,EAAE;CAC5C,OAAO,UAAU,SAAS,IAAI,YAAY,0BAA0B,KAAK;AAC1E;AACA,SAAS,WAAW,MAAM;CACzB,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,KAAK,MAAM,CAAC;AACnD;AACA,SAAS,kBAAkB,OAAO;CACjC,MAAM,QAAQ,uBAAuB,KAAK;CAC1C,IAAI,MAAM,WAAW,GAAG,OAAO,WAAW,6BAA6B,KAAK,CAAC;CAC7E,OAAO,MAAM,IAAI,UAAU,CAAC,CAAC,KAAK,EAAE;AACrC;AACA,SAAS,iBAAiB,OAAO;CAChC,MAAM,QAAQ,uBAAuB,KAAK;CAC1C,IAAI,MAAM,WAAW,GAAG,OAAO,6BAA6B,KAAK;CACjE,MAAM,CAAC,YAAY,OAAO,GAAG,QAAQ;CACrC,OAAO,UAAU,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,UAAU,MAAM,CAAC,IAAI,KAAK,IAAI,UAAU,CAAC,CAAC,KAAK,EAAE;AAC7F;AACA,SAAS,cAAc,MAAM;CAC5B,OAAO,mBAAmB,IAAI,KAAK,YAAY,CAAC,KAAK,MAAM,KAAK,IAAI;AACrE;AACA,SAAS,WAAW,MAAM;CACzB,OAAO,IAAI;AACZ;AACA,SAAS,eAAe,MAAM;CAC7B,OAAO,cAAc,IAAI,IAAI,WAAW,IAAI,IAAI;AACjD;AACA,MAAM,2BAA2B;;;;;;;AAOjC,SAAS,iBAAiB,OAAO;CAChC,IAAI,yBAAyB,KAAK,KAAK,KAAK,CAAC,cAAc,KAAK,GAAG,OAAO;CAC1E,OAAO,eAAe,iBAAiB,KAAK,CAAC;AAC9C"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./types-
|
|
3
|
-
import { a as SqlOperationRegistry } from "./index-
|
|
4
|
-
import {
|
|
1
|
+
import { l as SqlStorage } from "./sql-storage-DeCAh5Hi-CEM-m8cs.mjs";
|
|
2
|
+
import "./types-CkAd8SWm.mjs";
|
|
3
|
+
import { a as SqlOperationRegistry } from "./index-Nqc3OHR_.mjs";
|
|
4
|
+
import { c as AnyExpression, k as ContractCodecRegistry } from "./types-DriMIMNQ-BkbsW7w3.mjs";
|
|
5
|
+
import { l as RawCodecInferer } from "./expression-6ld_ZQL6-fOuazzzm.mjs";
|
|
6
|
+
import { n as CollectionMethodContribution } from "./collection-methods-D2UnCS0S-DOy2qHYS.mjs";
|
|
7
|
+
import { CodecDescriptor, CodecRef } from "@prisma/orm-framework/components/codec";
|
|
5
8
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
6
9
|
import { AggregateDescriptor, AggregateResultNullability } from "@prisma/orm-framework/components/components";
|
|
7
|
-
import {
|
|
8
|
-
//#region ../../../2-sql/4-lanes/relational-core/dist/query-lane-context-
|
|
10
|
+
import { MutationDefaults } from "@prisma/orm-framework/components/runtime";
|
|
11
|
+
//#region ../../../2-sql-family/4-lanes/relational-core/dist/query-lane-context-BCEoKy0_.d.mts
|
|
9
12
|
//#region src/aggregate-descriptor.d.ts
|
|
10
13
|
/**
|
|
11
14
|
* What a lowering hook is handed: the expression being aggregated (absent for operations that consume no value) and the codec of that expression.
|
|
@@ -35,7 +38,7 @@ declare function isSqlAggregateDescriptor(value: unknown): value is SqlAggregate
|
|
|
35
38
|
//#endregion
|
|
36
39
|
//#region src/query-lane-context.d.ts
|
|
37
40
|
/**
|
|
38
|
-
* Codec-id-keyed accessor for descriptor metadata. The unified read API for codec-id-keyed metadata (`traits
|
|
41
|
+
* Codec-id-keyed accessor for descriptor metadata. The unified read API for codec-id-keyed metadata (`traits`) — non-branching for parameterized vs. non-parameterized codecs. Every codec ships natively as a `CodecDescriptor` through the unified `codecs:` contributor slot (see ADR 208).
|
|
39
42
|
*/
|
|
40
43
|
interface CodecDescriptorRegistry {
|
|
41
44
|
/**
|
|
@@ -47,23 +50,18 @@ interface CodecDescriptorRegistry {
|
|
|
47
50
|
*
|
|
48
51
|
* Resolution rules over `storage.namespaces[namespaceId].tables[table].columns[column]`:
|
|
49
52
|
*
|
|
50
|
-
* - `
|
|
51
|
-
* - inline `typeParams` column → emit `{codecId, typeParams}` from the column itself.
|
|
53
|
+
* - `typeParams` column → emit `{codecId, typeParams}` from the column itself.
|
|
52
54
|
* - non-parameterized column → emit `{codecId}` with `typeParams` undefined (keys as `${codecId}:undefined` → one shared codec).
|
|
53
55
|
*
|
|
54
56
|
* The `namespaceId` coordinate leads and is always supplied — the table is resolved strictly within that namespace, so two same-bare-named tables in different namespaces resolve to their own per-namespace columns/codecs without colliding.
|
|
55
57
|
*
|
|
56
|
-
* Returns `undefined` when the registry was built without contract storage (package-scoped registries used purely as descriptor lookups), when the table or column is unknown in the namespace
|
|
58
|
+
* Returns `undefined` when the registry was built without contract storage (package-scoped registries used purely as descriptor lookups), or when the table or column is unknown in the namespace.
|
|
57
59
|
*/
|
|
58
60
|
codecRefForColumn(namespaceId: string, table: string, column: string): CodecRef | undefined;
|
|
59
61
|
/**
|
|
60
62
|
* All registered descriptors. Used by `validateCodecRegistryCompleteness` and other startup-time consumers that enumerate descriptors.
|
|
61
63
|
*/
|
|
62
64
|
values(): IterableIterator<CodecDescriptor<unknown>>;
|
|
63
|
-
/**
|
|
64
|
-
* Descriptors indexed by `targetTypes[i]` (each scalar type the codec advertises). Multiple descriptors may map to the same scalar type; ordering reflects registration order.
|
|
65
|
-
*/
|
|
66
|
-
byTargetType(targetType: string): readonly CodecDescriptor<unknown>[];
|
|
67
65
|
}
|
|
68
66
|
/**
|
|
69
67
|
* What one aggregate resolves to: the codec its result carries, how that result reads where no row carries it, and the optional hook that builds the expression.
|
|
@@ -90,46 +88,19 @@ interface SqlAggregateDescriptorRegistry {
|
|
|
90
88
|
/** Every validated descriptor, in contribution order. */
|
|
91
89
|
values(): IterableIterator<SqlAggregateDescriptor>;
|
|
92
90
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Registry of initialized type helpers from storage.types. Each key is a type name from storage.types, and the value is the resolved codec materialized once for that named instance via `descriptor.factory(typeParams)(ctx)` (or the raw `StorageTypeInstance` metadata for codec ids whose descriptor isn't registered).
|
|
95
|
-
*/
|
|
96
|
-
type TypeHelperRegistry = Record<string, unknown>;
|
|
97
|
-
type MutationDefaultsOp = 'create' | 'update';
|
|
98
|
-
type AppliedMutationDefault = {
|
|
99
|
-
readonly column: string;
|
|
100
|
-
readonly value: unknown;
|
|
101
|
-
};
|
|
102
|
-
type MutationDefaultsOptions = {
|
|
103
|
-
readonly op: MutationDefaultsOp;
|
|
104
|
-
readonly table: string;
|
|
105
|
-
/**
|
|
106
|
-
* Namespace of the target table. Execution-default refs are namespace-scoped,
|
|
107
|
-
* so only defaults declared for `(namespace, table)` are applied — this is what
|
|
108
|
-
* disambiguates same-named tables across namespaces. Required so the coordinate
|
|
109
|
-
* is always part of the match; a missing namespace is a caller bug, not a
|
|
110
|
-
* silent degrade to table-name-only matching.
|
|
111
|
-
*/
|
|
112
|
-
readonly namespace: string;
|
|
113
|
-
readonly values: Record<string, unknown>;
|
|
114
|
-
/**
|
|
115
|
-
* Per-ORM-operation cache for generators that declare `stability: 'query'`. The caller passes the same `Map` across every `applyMutationDefaults` invocation in one bulk operation; the framework keys by `generatorId` so the same value is reused across all rows and columns. Generators with `stability: 'row'` use a fresh per-call cache the framework manages internally; generators with `stability: 'field'` skip caching
|
|
116
|
-
* entirely. Omit to make every call independent (degrades `'query'` to per-call behavior).
|
|
117
|
-
*/
|
|
118
|
-
readonly defaultValueCache?: Map<string, unknown>;
|
|
119
|
-
};
|
|
120
91
|
/**
|
|
121
92
|
* Minimal context interface for SQL query lanes.
|
|
122
93
|
*
|
|
123
94
|
* Lanes only need contract, operations, and codecs to build typed ASTs and attach operation builders. This interface explicitly excludes runtime concerns like adapters, connection management, and transaction state.
|
|
124
95
|
*/
|
|
125
|
-
interface ExecutionContext<TContract extends Contract<SqlStorage> = Contract<SqlStorage>> {
|
|
96
|
+
interface ExecutionContext<TContract extends Contract<SqlStorage> = Contract<SqlStorage>> extends MutationDefaults {
|
|
126
97
|
readonly contract: TContract;
|
|
127
98
|
/**
|
|
128
99
|
* Contract-bound codec registry built once at context-construction time by walking the contract's columns and resolving each through its descriptor's factory. Runtime dispatch (`encodeParam` / `decodeRow`) resolves codecs via `forCodecRef(ref)` — the single dispatch shape for AST-bound codec resolution.
|
|
129
100
|
*/
|
|
130
101
|
readonly contractCodecs: ContractCodecRegistry;
|
|
131
102
|
/**
|
|
132
|
-
* Codec-id-keyed descriptor map. Single source of truth for codec-id-keyed metadata (`traits
|
|
103
|
+
* Codec-id-keyed descriptor map. Single source of truth for codec-id-keyed metadata (`traits`) — every codec, parameterized or not, resolves through this map without branching.
|
|
133
104
|
*/
|
|
134
105
|
readonly codecDescriptors: CodecDescriptorRegistry;
|
|
135
106
|
/**
|
|
@@ -138,14 +109,14 @@ interface ExecutionContext<TContract extends Contract<SqlStorage> = Contract<Sql
|
|
|
138
109
|
readonly aggregateDescriptors: SqlAggregateDescriptorRegistry;
|
|
139
110
|
readonly queryOperations: SqlOperationRegistry;
|
|
140
111
|
/**
|
|
141
|
-
*
|
|
112
|
+
* The adapter's codec inferer, which `fns.raw` uses for a bare value interpolated into a template. An execution context built from an execution stack carries it.
|
|
142
113
|
*/
|
|
143
|
-
readonly
|
|
114
|
+
readonly rawCodecInferer?: RawCodecInferer;
|
|
144
115
|
/**
|
|
145
|
-
*
|
|
116
|
+
* The collection methods the target and extensions contribute. The ORM client offers them under `using` on every collection.
|
|
146
117
|
*/
|
|
147
|
-
|
|
118
|
+
readonly collectionMethods?: ReadonlyArray<CollectionMethodContribution>;
|
|
148
119
|
}
|
|
149
120
|
//#endregion
|
|
150
|
-
export {
|
|
151
|
-
//# sourceMappingURL=query-lane-context-
|
|
121
|
+
export { SqlAggregateDescriptorRegistry as a, isSqlAggregateDescriptor as c, SqlAggregateDescriptor as i, ExecutionContext as n, SqlAggregateLowering as o, ResolvedSqlAggregate as r, SqlAggregateLoweringContext as s, CodecDescriptorRegistry as t };
|
|
122
|
+
//# sourceMappingURL=query-lane-context-BCEoKy0_-CzmyavC9.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-lane-context-BCEoKy0_-CzmyavC9.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/query-lane-context-BCEoKy0_.d.mts"],"mappings":";;;;;;;;;;;;;;;UAaU;WACC,MAAM;WACN,YAAY;;;;;;;KAOlB,wBAAwB,SAAS,gCAAgC;;;;;;;;KAQjE,yBAAyB;WACnB,QAAQ;;;iBAGF,yBAAyB,iBAAiB,SAAS;;;;;;UAM1D;;;;EAIR,cAAc,kBAAkB;;;;;;;;;;;;;EAahC,kBAAkB,qBAAqB,eAAe,iBAAiB;;;;EAIvE,UAAU,iBAAiB;;;;;;;KAOxB,uBAAuB;WACjB;WACA,QAAQ;WACR,OAAO;;;;;;;UAOR;;;;;;EAMR,QAAQ,mBAAmB,QAAQ,WAAW;;EAE9C,UAAU,iBAAiB;;;;;;;UAOnB,iBAAiB,kBAAkB,SAAS,cAAc,SAAS,qBAAqB;WACvF,UAAU;;;;WAIV,gBAAgB;;;;WAIhB,kBAAkB;;;;WAIlB,sBAAsB;WACtB,iBAAiB;;;;WAIjB,kBAAkB;;;;WAIlB,oBAAoB,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./query-lane-context-BCEoKy0_-CzmyavC9.mjs";
|
package/dist/{referential-action-sql-DJ9ps6-S.d.mts → referential-action-sql-B2vKoUK6.d.mts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../../2-sql/1-core/contract/dist/referential-action-sql.d.mts
|
|
1
|
+
import { o as ReferentialAction } from "./foreign-key-qkDFfG8t-TaK_GYWR.mjs";
|
|
2
|
+
//#region ../../../2-sql-family/1-core/contract/dist/referential-action-sql.d.mts
|
|
3
3
|
//#region src/referential-action-sql.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Maps each `ReferentialAction` value to the SQL keyword used in ON DELETE /
|
|
@@ -9,4 +9,4 @@ import { a as ReferentialAction } from "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
|
|
|
9
9
|
declare const REFERENTIAL_ACTION_SQL: Record<ReferentialAction, string>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { REFERENTIAL_ACTION_SQL as t };
|
|
12
|
-
//# sourceMappingURL=referential-action-sql-
|
|
12
|
+
//# sourceMappingURL=referential-action-sql-B2vKoUK6.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referential-action-sql-B2vKoUK6.d.mts","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/referential-action-sql.d.mts"],"mappings":";;;;;;;;cAOc,wBAAwB,OAAO"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../../2-sql/1-core/contract/dist/referential-action-sql.mjs
|
|
1
|
+
//#region ../../../2-sql-family/1-core/contract/dist/referential-action-sql.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Maps each `ReferentialAction` value to the SQL keyword used in ON DELETE /
|
|
4
4
|
* ON UPDATE clauses. Shared across the migration planner and adapter DDL
|
|
@@ -14,4 +14,4 @@ const REFERENTIAL_ACTION_SQL = {
|
|
|
14
14
|
//#endregion
|
|
15
15
|
export { REFERENTIAL_ACTION_SQL as t };
|
|
16
16
|
|
|
17
|
-
//# sourceMappingURL=referential-action-sql-
|
|
17
|
+
//# sourceMappingURL=referential-action-sql-BLzCtTi8.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referential-action-sql-BLzCtTi8.mjs","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/referential-action-sql.mjs"],"sourcesContent":["//#region src/referential-action-sql.ts\n/**\n* Maps each `ReferentialAction` value to the SQL keyword used in ON DELETE /\n* ON UPDATE clauses. Shared across the migration planner and adapter DDL\n* renderers — single source of truth for the action → SQL mapping.\n*/\nconst REFERENTIAL_ACTION_SQL = {\n\tnoAction: \"NO ACTION\",\n\trestrict: \"RESTRICT\",\n\tcascade: \"CASCADE\",\n\tsetNull: \"SET NULL\",\n\tsetDefault: \"SET DEFAULT\"\n};\n//#endregion\nexport { REFERENTIAL_ACTION_SQL };\n\n//# sourceMappingURL=referential-action-sql.mjs.map"],"mappings":";;;;;;AAMA,MAAM,yBAAyB;CAC9B,UAAU;CACV,UAAU;CACV,SAAS;CACT,SAAS;CACT,YAAY;AACb"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as SqlDriverState, c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, n as PreparedStatementHandle, o as SqlExecuteRequest, r as SqlConnection, s as SqlExplainResult, t as PreparedExecuteRequest, u as SqlTransaction } from "./driver-types-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import "./plan-
|
|
9
|
-
import
|
|
10
|
-
import "./query-lane-context-
|
|
11
|
-
import
|
|
12
|
-
import { S as TablesOf, _ as SqlOrmPlan, a as ColumnsOf, b as TableKey, c as META, d as ModelMetadata, f as OperationTypeSignature, g as SqlBuilderOptions, h as RuntimeScope, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as SqlPlan, x as TableMetadata, y as TableDef } from "./types-
|
|
13
|
-
|
|
1
|
+
import { $ as InsertOnConflict, $t as isWhereExpr, A as DefaultValueExpr, At as RawQueryColumn, B as DoUpdateSetConflictAction, Bt as TableSource, C as CodecCallContext$1, Ct as OrderByNulls, D as CodecTrait$1, Dt as ProjectionItem, E as CodecRef$1, Et as ProjectionExpr, F as DescriptorCodecJson, Ft as SqlCodecCallContext, G as ExpressionRewriter, Gt as WindowFuncExpr, H as ExistsExpr, Ht as UpdateAst, I as DescriptorCodecTraits, It as SqlCodecInstanceContext, J as FunctionCallExpr, Jt as frozenCodecRef, K as ExpressionSource, Kt as aggregateFnNames, L as DescriptorKeepsWrittenFormFlag, Lt as SqlColumnRef, M as DerivedTableSource, Mt as RawSqlLiteral, N as DescriptorCodecId, Nt as SelectAst, O as ColumnRef, Ot as RawExpr, P as DescriptorCodecInput, Pt as SelectAstOptions, Q as InsertAst, Qt as isQueryAst, R as Direction, Rt as SubqueryExpr, S as Codec$1, St as OrderByItem, T as CodecJsonValueProjection, Tt as PreparedParamRef, U as ExprVisitor, Ut as WhereArg, V as EqColJoinOn, Vt as ToWhereExpr, W as ExpressionFolder, Wt as WindowFn, X as FunctionSourceAlias, Xt as isOrderByDirection, Y as FunctionSource, Yt as isAggregateFn, Z as IdentifierRef, Zt as isOrderByNulls, _ as BinaryExpr, _t as NativeJsonValueProjection, a as AndExpr, at as JsonObjectEntry, b as CaseExpr, bt as OperationExpr, c as AnyExpression, ct as LimitOffsetValue, d as AnyInsertValue, dt as LockStrength, en as queryAstKinds, et as InsertValue, f as AnyJsonValueProjection, ft as LockWaitPolicy, g as AstRewriter, gt as LoweredStatement, h as AnyQueryAst, ht as LoweredParam, i as AggregateOpFn, it as JsonDocumentProjection, j as DeleteAst, jt as RawQueryResult, k as ContractCodecRegistry, kt as RawQueryAst, l as AnyFromSource, lt as ListExpression, m as AnyParamRef, mt as LockingClauseOptions, n as AggregateExpr, nt as JoinOnExpr, o as AnyCodecDescriptor, ot as JsonObjectExpr, p as AnyOperationArg, pt as LockingClause, q as ExtractCodecTypes, qt as checkLimitOffset, r as AggregateFn, rt as JsonArrayAggExpr, s as AnyCodecDescriptorTemplate, st as JsonValueProjectionVisitor, t as AggregateCountFn, tn as whereExprKinds, tt as JoinAst, u as AnyInsertOnConflictAction, ut as LiteralExpr, v as BinaryOp, vt as NotExpr, w as CodecDescriptor$1, wt as ParamRef, x as CastExpr, xt as OrExpr, y as CaseBranch, yt as NullCheckExpr, z as DoNothingConflictAction, zt as TableRef } from "./types-DriMIMNQ-BkbsW7w3.mjs";
|
|
2
|
+
import { a as SqlDriverState, c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, n as PreparedStatementHandle, o as SqlExecuteRequest, r as SqlConnection, s as SqlExplainResult, t as PreparedExecuteRequest, u as SqlTransaction } from "./driver-types-DRsYeq3j-BimeCnUk.mjs";
|
|
3
|
+
import { n as SqlQueryPlan, r as planFromAst, t as Preparable } from "./plan-Cr4azjnG-CuL8FqXC.mjs";
|
|
4
|
+
import { C as TraitExpression, D as isExpression, E as createRawSql, O as param, S as StorageColumnScopeField, T as codecOf, _ as RawSqlStatementBuilder, a as CodecValue, b as ScalarListExpression, c as RawAffectedCountQuery, d as RawRow, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, k as toExpr, l as RawCodecInferer, m as RawRowSpecEntry, n as BuildOperationSpec, o as Expression, p as RawRowSpec, r as CodecExpression, s as NoReservedRowColumn, t as AffectedCount, u as RawPlanContext, v as RawSqlStatementTag, w as buildOperation, x as ScopeField, y as RawSqlTag } from "./expression-6ld_ZQL6-fOuazzzm.mjs";
|
|
5
|
+
import { t as ExpressionImpl } from "./expression-CieaNuRM-B1uVqxwd.mjs";
|
|
6
|
+
import { a as DdlNode, c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, h as renderOpaqueSql, i as DdlColumnDefault, l as LiteralColumnDefault, m as opaqueSql, n as CheckExpressionConstraint, o as DdlTableConstraint, p as isDdlNode, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault, u as OpaqueSql } from "./ddl-types-By5mT2_S-CdaaFvsX.mjs";
|
|
7
|
+
import { $ as sqlIntDescriptor, A as SqlTextDescriptor, B as lockStrengthCapabilities, C as SqlFloatCodec, D as SqlRawCodec, E as SqlIntDescriptor, F as encodeListLiteralDefault, G as sqlCharDescriptor, H as missingCapability, I as encodeLiteralDefault, J as sqlFloatDecode, K as sqlCharEncode, L as isAggregateProjection, M as SqlVarcharDescriptor, N as collectOrderedParamRefs, O as SqlRawDescriptor, P as compact, Q as sqlIntDecode, R as lockIncompatible, S as SqlCharDescriptor, T as SqlIntCodec, U as sqlCharColumn, V as lockWaitPolicyOf, W as sqlCharDecode, X as sqlFloatEncode, Y as sqlFloatDescriptor, Z as sqlIntColumn, _ as SQL_INT_CODEC_ID, a as EncodedLiteralDefault, at as sqlTextDescriptor, b as SQL_VARCHAR_CODEC_ID, c as LockOptionCapabilities, ct as sqlVarcharDecode, d as LockWaitRequest, et as sqlIntEncode, f as Lowerer, g as SQL_FLOAT_CODEC_ID, h as SQL_CHAR_CODEC_ID, i as CapabilityRequirement, it as sqlTextDecode, j as SqlVarcharCodec, k as SqlTextCodec, l as LockStrengthCapabilities, lt as sqlVarcharDescriptor, m as MarkerReadResult, n as AdapterProfile, nt as sqlRawDescriptor, o as LiteralDefaultColumn, ot as sqlTextEncode, p as LowererContext, q as sqlFloatColumn, r as AdapterTarget, rt as sqlTextColumn, s as LockConflict, st as sqlVarcharColumn, t as Adapter, tt as sqlRawColumn, u as LockWaitOptions, ut as sqlVarcharEncode, v as SQL_RAW_CODEC_ID, w as SqlFloatDescriptor, x as SqlCharCodec, y as SQL_TEXT_CODEC_ID, z as lockOptionCapabilities } from "./ast-YEMe_B8z.mjs";
|
|
8
|
+
import { t as SqlExecutionPlan } from "./sql-execution-plan-3uxYjHyu-DLknM-Pj.mjs";
|
|
9
|
+
import "./plan-Di6Gs2JD.mjs";
|
|
10
|
+
import { a as SqlAggregateDescriptorRegistry, n as ExecutionContext, r as ResolvedSqlAggregate, t as CodecDescriptorRegistry } from "./query-lane-context-BCEoKy0_-CzmyavC9.mjs";
|
|
11
|
+
import "./query-lane-context-VqH0mS9B.mjs";
|
|
12
|
+
import { S as TablesOf, _ as SqlOrmPlan, a as ColumnsOf, b as TableKey, c as META, d as ModelMetadata, f as OperationTypeSignature, g as SqlBuilderOptions, h as RuntimeScope, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as SqlPlan, x as TableMetadata, y as TableDef } from "./types-TXO7x1BA-CYYIY8NI.mjs";
|
|
13
|
+
import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-DHkW6pRr-DM6hd9iZ.mjs";
|
|
14
|
+
export { Adapter, AdapterProfile, AdapterTarget, AffectedCount, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyCodecDescriptorTemplate, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AstRewriter, BinaryExpr, BinaryOp, BuildOperationSpec, BuildOptions, BuildParamsMap, CapabilityRequirement, CaseBranch, CaseExpr, CastExpr, CheckExpressionConstraint, Codec$1 as Codec, type CodecCallContext$1 as CodecCallContext, type CodecDescriptor$1 as CodecDescriptor, CodecDescriptorRegistry, CodecExpression, CodecJsonValueProjection, type CodecRef$1 as CodecRef, type CodecTrait$1 as CodecTrait, CodecTypes, CodecTypesBase, CodecValue, ColumnRef, ColumnResolutionContract, ColumnsOf, ComputeColumnJsType, ContractCodecRegistry, DdlColumn, DdlColumnDefault, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, DescriptorKeepsWrittenFormFlag, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EncodedLiteralDefault, EqColJoinOn, ExecutionContext, ExistsExpr, Expr, ExprVisitor, Expression, ExpressionFolder, ExpressionImpl, ExpressionRewriter, ExpressionSource, ExtractCodecTypes, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, FunctionSourceAlias, IdentifierRef, InsertAst, InsertOnConflict, InsertValue, JoinAst, JoinOnExpr, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectEntry, JsonObjectExpr, JsonValueProjectionVisitor, LimitOffsetValue, ListExpression, LiteralColumnDefault, LiteralDefaultColumn, LiteralExpr, LockConflict, LockOptionCapabilities, LockStrength, LockStrengthCapabilities, LockWaitOptions, LockWaitPolicy, LockWaitRequest, LockingClause, LockingClauseOptions, LoweredParam, LoweredStatement, Lowerer, LowererContext, META, MarkerReadResult, Meta, ModelDef, ModelMetadata, NativeJsonValueProjection, NoReservedRowColumn, NotExpr, NullCheckExpr, OpaqueSql, OperationExpr, OperationTypeSignature, OperationTypes, OperationsForTypeId, OrExpr, OrderByItem, OrderByNulls, ParamRef, type ParamRefEntry, type ParamRefEntryUnion, type ParamRefHandle, Preparable, PreparedExecuteRequest, PreparedParamRef, PreparedStatementHandle, PrimaryKeyConstraint, ProjectionExpr, ProjectionItem, RawAffectedCountQuery, RawCodecInferer, RawExpr, RawPlanContext, RawQueryAst, RawQueryColumn, RawQueryResult, RawRow, RawRowQuery, RawRowSpec, RawRowSpecEntry, RawSqlBuilder, RawSqlInterpolation, RawSqlLiteral, RawSqlStatementBuilder, RawSqlStatementTag, RawSqlTag, ResolvedSqlAggregate, type RuntimeScope, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, ScalarListExpression, ScopeField, SelectAst, SelectAstOptions, SqlAggregateDescriptorRegistry, SqlBuilderOptions, SqlCharCodec, SqlCharDescriptor, SqlCodecCallContext, SqlCodecInstanceContext, SqlColumnRef, SqlConnection, SqlDriver, SqlDriverState, SqlExecuteRequest, type SqlExecutionPlan, SqlExplainResult, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, type SqlOrmPlan, type SqlParamRefMutator, type SqlParamRefMutatorInternal, SqlPlan, SqlQueryPlan, SqlQueryable, SqlRawCodec, SqlRawDescriptor, SqlStatementStats, SqlTextCodec, SqlTextDescriptor, SqlTransaction, SqlVarcharCodec, SqlVarcharDescriptor, StorageColumnScopeField, SubqueryExpr, TableDef, TableKey, TableMetadata, TableRef, TableSource, TablesOf, ToWhereExpr, TraitExpression, UniqueConstraint, UpdateAst, WhereArg, WindowFn, WindowFuncExpr, aggregateFnNames, buildOperation, checkLimitOffset, codecOf, collectOrderedParamRefs, compact, createRawSql, createSqlParamRefMutator, encodeListLiteralDefault, encodeLiteralDefault, frozenCodecRef, isAggregateFn, isAggregateProjection, isDdlNode, isExpression, isOrderByDirection, isOrderByNulls, isQueryAst, isWhereExpr, lockIncompatible, lockOptionCapabilities, lockStrengthCapabilities, lockWaitPolicyOf, missingCapability, opaqueSql, param, planFromAst, queryAstKinds, renderOpaqueSql, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlFloatColumn, sqlFloatDecode, sqlFloatDescriptor, sqlFloatEncode, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlRawColumn, sqlRawDescriptor, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, toExpr, whereExprKinds };
|
package/dist/relational-core.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as ForeignKeyConstraint, c as
|
|
3
|
-
import { n as compact, t as collectOrderedParamRefs } from "./util-
|
|
4
|
-
import { A as
|
|
5
|
-
import { t as planFromAst } from "./plan-Dh0LbYIv-
|
|
6
|
-
import { a as
|
|
7
|
-
import { t as createSqlParamRefMutator } from "./middleware-
|
|
8
|
-
export { AggregateExpr, AndExpr, BinaryExpr, CaseExpr, CastExpr, CheckExpressionConstraint, CodecJsonValueProjection, ColumnRef, DdlColumn, DdlColumnDefault, DdlNode, DefaultValueExpr, DeleteAst, DerivedTableSource, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, IdentifierRef, InsertAst, InsertOnConflict, JoinAst, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectExpr, ListExpression, LiteralColumnDefault, LiteralExpr, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedParamRef, PrimaryKeyConstraint, ProjectionItem, RawExpr, RawQueryAst, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID,
|
|
1
|
+
import { A as ParamRef, B as aggregateFnNames, C as LiteralExpr, D as OperationExpr, E as NullCheckExpr, F as SelectAst, G as isOrderByNulls, H as frozenCodecRef, I as SubqueryExpr, J as queryAstKinds, K as isQueryAst, L as TableSource, M as ProjectionItem, N as RawExpr, O as OrExpr, P as RawQueryAst, R as UpdateAst, S as ListExpression, T as NotExpr, U as isAggregateFn, V as checkLimitOffset, W as isOrderByDirection, Y as whereExprKinds, _ as InsertAst, a as CastExpr, b as JsonArrayAggExpr, c as DeleteAst, d as DoUpdateSetConflictAction, f as EqColJoinOn, g as IdentifierRef, h as FunctionSource, i as CaseExpr, j as PreparedParamRef, k as OrderByItem, l as DerivedTableSource, m as FunctionCallExpr, n as AndExpr, o as ColumnRef, p as ExistsExpr, q as isWhereExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, u as DoNothingConflictAction, v as InsertOnConflict, w as LockingClause, x as JsonObjectExpr, y as JoinAst, z as WindowFuncExpr } from "./types-NTQsD2MS-xcLtvKO9.mjs";
|
|
2
|
+
import { a as ForeignKeyConstraint, c as OpaqueSql, d as isDdlNode, f as opaqueSql, i as DdlNode, l as PrimaryKeyConstraint, n as DdlColumn, o as FunctionColumnDefault, p as renderOpaqueSql, r as DdlColumnDefault, s as LiteralColumnDefault, t as CheckExpressionConstraint, u as UniqueConstraint } from "./opaque-sql-Dset3kln-CtsPDTXn.mjs";
|
|
3
|
+
import { n as compact, r as isAggregateProjection, t as collectOrderedParamRefs } from "./util-BBgcP3gI-CpL-0VuC.mjs";
|
|
4
|
+
import { A as sqlCharDecode, B as sqlIntEncode, C as encodeLiteralDefault, D as lockWaitPolicyOf, E as lockStrengthCapabilities, F as sqlFloatDescriptor, G as sqlTextDescriptor, H as sqlRawDescriptor, I as sqlFloatEncode, J as sqlVarcharDecode, K as sqlTextEncode, L as sqlIntColumn, M as sqlCharEncode, N as sqlFloatColumn, O as missingCapability, P as sqlFloatDecode, R as sqlIntDecode, S as encodeListLiteralDefault, T as lockOptionCapabilities, U as sqlTextColumn, V as sqlRawColumn, W as sqlTextDecode, X as sqlVarcharEncode, Y as sqlVarcharDescriptor, _ as SqlRawDescriptor, a as SQL_FLOAT_CODEC_ID, b as SqlVarcharCodec, c as SQL_TEXT_CODEC_ID, d as SqlCharDescriptor, f as SqlFloatCodec, g as SqlRawCodec, h as SqlIntDescriptor, i as SQL_CHAR_CODEC_ID, j as sqlCharDescriptor, k as sqlCharColumn, l as SQL_VARCHAR_CODEC_ID, m as SqlIntCodec, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlFloatDescriptor, q as sqlVarcharColumn, r as NativeJsonValueProjection, s as SQL_RAW_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharCodec, v as SqlTextCodec, w as lockIncompatible, x as SqlVarcharDescriptor, y as SqlTextDescriptor, z as sqlIntDescriptor } from "./ast-D0miQ1B6.mjs";
|
|
5
|
+
import { t as planFromAst } from "./plan-Dh0LbYIv-ubBSdUgl.mjs";
|
|
6
|
+
import { a as isExpression, i as createRawSql, n as buildOperation, o as param, r as codecOf, s as toExpr, t as ExpressionImpl } from "./expression-impl-B-XNINxr-BhN2sysZ.mjs";
|
|
7
|
+
import { t as createSqlParamRefMutator } from "./middleware-yBAfiVWn-DZO0vCRQ.mjs";
|
|
8
|
+
export { AggregateExpr, AndExpr, BinaryExpr, CaseExpr, CastExpr, CheckExpressionConstraint, CodecJsonValueProjection, ColumnRef, DdlColumn, DdlColumnDefault, DdlNode, DefaultValueExpr, DeleteAst, DerivedTableSource, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ExpressionImpl, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, IdentifierRef, InsertAst, InsertOnConflict, JoinAst, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectExpr, ListExpression, LiteralColumnDefault, LiteralExpr, LockingClause, NativeJsonValueProjection, NotExpr, NullCheckExpr, OpaqueSql, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedParamRef, PrimaryKeyConstraint, ProjectionItem, RawExpr, RawQueryAst, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SqlCharCodec, SqlCharDescriptor, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlRawCodec, SqlRawDescriptor, SqlTextCodec, SqlTextDescriptor, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableSource, UniqueConstraint, UpdateAst, WindowFuncExpr, aggregateFnNames, buildOperation, checkLimitOffset, codecOf, collectOrderedParamRefs, compact, createRawSql, createSqlParamRefMutator, encodeListLiteralDefault, encodeLiteralDefault, frozenCodecRef, isAggregateFn, isAggregateProjection, isDdlNode, isExpression, isOrderByDirection, isOrderByNulls, isQueryAst, isWhereExpr, lockIncompatible, lockOptionCapabilities, lockStrengthCapabilities, lockWaitPolicyOf, missingCapability, opaqueSql, param, planFromAst, queryAstKinds, renderOpaqueSql, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlFloatColumn, sqlFloatDecode, sqlFloatDescriptor, sqlFloatEncode, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlRawColumn, sqlRawDescriptor, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, toExpr, whereExprKinds };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../../2-sql/4-lanes/relational-core/dist/exports/aggregate-descriptor-registry.d.mts
|
|
1
|
+
import { a as SqlAggregateDescriptorRegistry, c as isSqlAggregateDescriptor, i as SqlAggregateDescriptor, o as SqlAggregateLowering, s as SqlAggregateLoweringContext, t as CodecDescriptorRegistry } from "./query-lane-context-BCEoKy0_-CzmyavC9.mjs";
|
|
2
|
+
//#region ../../../2-sql-family/4-lanes/relational-core/dist/exports/aggregate-descriptor-registry.d.mts
|
|
3
3
|
//#region src/aggregate-descriptor-registry.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Validate every contributed aggregate descriptor and settle its matches against the composed codec set.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relational-core__aggregate-descriptor-registry.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/aggregate-descriptor-registry.d.mts"],"mappings":";;;;;;;;iBAOiB,oCAAoC,aAAa,wBAAwB,kBAAkB,0BAA0B"}
|
|
1
|
+
{"version":3,"file":"relational-core__aggregate-descriptor-registry.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/exports/aggregate-descriptor-registry.d.mts"],"mappings":";;;;;;;;iBAOiB,oCAAoC,aAAa,wBAAwB,kBAAkB,0BAA0B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as isSqlAggregateDescriptor, t as buildSqlAggregateDescriptorRegistry } from "./aggregate-descriptor-registry-
|
|
1
|
+
import { n as isSqlAggregateDescriptor, t as buildSqlAggregateDescriptorRegistry } from "./aggregate-descriptor-registry-ZrKjxwQe.mjs";
|
|
2
2
|
export { buildSqlAggregateDescriptorRegistry, isSqlAggregateDescriptor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as SqlDriverState, c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, n as PreparedStatementHandle, o as SqlExecuteRequest, r as SqlConnection, s as SqlExplainResult, t as PreparedExecuteRequest, u as SqlTransaction } from "./driver-types-
|
|
3
|
-
import { a as
|
|
4
|
-
import { $ as
|
|
5
|
-
export { Adapter, AdapterProfile, AdapterTarget, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AstRewriter, BinaryExpr, BinaryOp, CaseBranch, CaseExpr, CastExpr, CheckExpressionConstraint, Codec$1 as Codec, type CodecCallContext$1 as CodecCallContext, type CodecDescriptor$1 as CodecDescriptor, CodecJsonValueProjection, type CodecRef$1 as CodecRef, type CodecTrait$1 as CodecTrait, ColumnRef, ContractCodecRegistry, DdlColumn, DdlColumnDefault,
|
|
1
|
+
import { $ as InsertOnConflict, $t as isWhereExpr, A as DefaultValueExpr, At as RawQueryColumn, B as DoUpdateSetConflictAction, Bt as TableSource, C as CodecCallContext$1, Ct as OrderByNulls, D as CodecTrait$1, Dt as ProjectionItem, E as CodecRef$1, Et as ProjectionExpr, F as DescriptorCodecJson, Ft as SqlCodecCallContext, G as ExpressionRewriter, Gt as WindowFuncExpr, H as ExistsExpr, Ht as UpdateAst, I as DescriptorCodecTraits, It as SqlCodecInstanceContext, J as FunctionCallExpr, Jt as frozenCodecRef, K as ExpressionSource, Kt as aggregateFnNames, L as DescriptorKeepsWrittenFormFlag, Lt as SqlColumnRef, M as DerivedTableSource, Mt as RawSqlLiteral, N as DescriptorCodecId, Nt as SelectAst, O as ColumnRef, Ot as RawExpr, P as DescriptorCodecInput, Pt as SelectAstOptions, Q as InsertAst, Qt as isQueryAst, R as Direction, Rt as SubqueryExpr, S as Codec$1, St as OrderByItem, T as CodecJsonValueProjection, Tt as PreparedParamRef, U as ExprVisitor, Ut as WhereArg, V as EqColJoinOn, Vt as ToWhereExpr, W as ExpressionFolder, Wt as WindowFn, X as FunctionSourceAlias, Xt as isOrderByDirection, Y as FunctionSource, Yt as isAggregateFn, Z as IdentifierRef, Zt as isOrderByNulls, _ as BinaryExpr, _t as NativeJsonValueProjection, a as AndExpr, at as JsonObjectEntry, b as CaseExpr, bt as OperationExpr, c as AnyExpression, ct as LimitOffsetValue, d as AnyInsertValue, dt as LockStrength, en as queryAstKinds, et as InsertValue, f as AnyJsonValueProjection, ft as LockWaitPolicy, g as AstRewriter, gt as LoweredStatement, h as AnyQueryAst, ht as LoweredParam, i as AggregateOpFn, it as JsonDocumentProjection, j as DeleteAst, jt as RawQueryResult, k as ContractCodecRegistry, kt as RawQueryAst, l as AnyFromSource, lt as ListExpression, m as AnyParamRef, mt as LockingClauseOptions, n as AggregateExpr, nt as JoinOnExpr, o as AnyCodecDescriptor, ot as JsonObjectExpr, p as AnyOperationArg, pt as LockingClause, q as ExtractCodecTypes, qt as checkLimitOffset, r as AggregateFn, rt as JsonArrayAggExpr, s as AnyCodecDescriptorTemplate, st as JsonValueProjectionVisitor, t as AggregateCountFn, tn as whereExprKinds, tt as JoinAst, u as AnyInsertOnConflictAction, ut as LiteralExpr, v as BinaryOp, vt as NotExpr, w as CodecDescriptor$1, wt as ParamRef, x as CastExpr, xt as OrExpr, y as CaseBranch, yt as NullCheckExpr, z as DoNothingConflictAction, zt as TableRef } from "./types-DriMIMNQ-BkbsW7w3.mjs";
|
|
2
|
+
import { a as SqlDriverState, c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, n as PreparedStatementHandle, o as SqlExecuteRequest, r as SqlConnection, s as SqlExplainResult, t as PreparedExecuteRequest, u as SqlTransaction } from "./driver-types-DRsYeq3j-BimeCnUk.mjs";
|
|
3
|
+
import { a as DdlNode, c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, h as renderOpaqueSql, i as DdlColumnDefault, l as LiteralColumnDefault, m as opaqueSql, n as CheckExpressionConstraint, o as DdlTableConstraint, p as isDdlNode, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault, u as OpaqueSql } from "./ddl-types-By5mT2_S-CdaaFvsX.mjs";
|
|
4
|
+
import { $ as sqlIntDescriptor, A as SqlTextDescriptor, B as lockStrengthCapabilities, C as SqlFloatCodec, D as SqlRawCodec, E as SqlIntDescriptor, F as encodeListLiteralDefault, G as sqlCharDescriptor, H as missingCapability, I as encodeLiteralDefault, J as sqlFloatDecode, K as sqlCharEncode, L as isAggregateProjection, M as SqlVarcharDescriptor, N as collectOrderedParamRefs, O as SqlRawDescriptor, P as compact, Q as sqlIntDecode, R as lockIncompatible, S as SqlCharDescriptor, T as SqlIntCodec, U as sqlCharColumn, V as lockWaitPolicyOf, W as sqlCharDecode, X as sqlFloatEncode, Y as sqlFloatDescriptor, Z as sqlIntColumn, _ as SQL_INT_CODEC_ID, a as EncodedLiteralDefault, at as sqlTextDescriptor, b as SQL_VARCHAR_CODEC_ID, c as LockOptionCapabilities, ct as sqlVarcharDecode, d as LockWaitRequest, et as sqlIntEncode, f as Lowerer, g as SQL_FLOAT_CODEC_ID, h as SQL_CHAR_CODEC_ID, i as CapabilityRequirement, it as sqlTextDecode, j as SqlVarcharCodec, k as SqlTextCodec, l as LockStrengthCapabilities, lt as sqlVarcharDescriptor, m as MarkerReadResult, n as AdapterProfile, nt as sqlRawDescriptor, o as LiteralDefaultColumn, ot as sqlTextEncode, p as LowererContext, q as sqlFloatColumn, r as AdapterTarget, rt as sqlTextColumn, s as LockConflict, st as sqlVarcharColumn, t as Adapter, tt as sqlRawColumn, u as LockWaitOptions, ut as sqlVarcharEncode, v as SQL_RAW_CODEC_ID, w as SqlFloatDescriptor, x as SqlCharCodec, y as SQL_TEXT_CODEC_ID, z as lockOptionCapabilities } from "./ast-YEMe_B8z.mjs";
|
|
5
|
+
export { Adapter, AdapterProfile, AdapterTarget, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyCodecDescriptorTemplate, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AstRewriter, BinaryExpr, BinaryOp, CapabilityRequirement, CaseBranch, CaseExpr, CastExpr, CheckExpressionConstraint, Codec$1 as Codec, type CodecCallContext$1 as CodecCallContext, type CodecDescriptor$1 as CodecDescriptor, CodecJsonValueProjection, type CodecRef$1 as CodecRef, type CodecTrait$1 as CodecTrait, ColumnRef, ContractCodecRegistry, DdlColumn, DdlColumnDefault, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, DescriptorKeepsWrittenFormFlag, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EncodedLiteralDefault, EqColJoinOn, ExistsExpr, ExprVisitor, ExpressionFolder, ExpressionRewriter, ExpressionSource, ExtractCodecTypes, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, FunctionSourceAlias, IdentifierRef, InsertAst, InsertOnConflict, InsertValue, JoinAst, JoinOnExpr, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectEntry, JsonObjectExpr, JsonValueProjectionVisitor, LimitOffsetValue, ListExpression, LiteralColumnDefault, LiteralDefaultColumn, LiteralExpr, LockConflict, LockOptionCapabilities, LockStrength, LockStrengthCapabilities, LockWaitOptions, LockWaitPolicy, LockWaitRequest, LockingClause, LockingClauseOptions, LoweredParam, LoweredStatement, Lowerer, LowererContext, MarkerReadResult, NativeJsonValueProjection, NotExpr, NullCheckExpr, OpaqueSql, OperationExpr, OrExpr, OrderByItem, OrderByNulls, ParamRef, PreparedExecuteRequest, PreparedParamRef, PreparedStatementHandle, PrimaryKeyConstraint, ProjectionExpr, ProjectionItem, RawExpr, RawQueryAst, RawQueryColumn, RawQueryResult, RawSqlLiteral, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SelectAstOptions, SqlCharCodec, SqlCharDescriptor, SqlCodecCallContext, SqlCodecInstanceContext, SqlColumnRef, SqlConnection, SqlDriver, SqlDriverState, SqlExecuteRequest, SqlExplainResult, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlQueryable, SqlRawCodec, SqlRawDescriptor, SqlStatementStats, SqlTextCodec, SqlTextDescriptor, SqlTransaction, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableRef, TableSource, ToWhereExpr, UniqueConstraint, UpdateAst, WhereArg, WindowFn, WindowFuncExpr, aggregateFnNames, checkLimitOffset, collectOrderedParamRefs, compact, encodeListLiteralDefault, encodeLiteralDefault, frozenCodecRef, isAggregateFn, isAggregateProjection, isDdlNode, isOrderByDirection, isOrderByNulls, isQueryAst, isWhereExpr, lockIncompatible, lockOptionCapabilities, lockStrengthCapabilities, lockWaitPolicyOf, missingCapability, opaqueSql, queryAstKinds, renderOpaqueSql, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlFloatColumn, sqlFloatDecode, sqlFloatDescriptor, sqlFloatEncode, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlRawColumn, sqlRawDescriptor, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, whereExprKinds };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as ForeignKeyConstraint, c as
|
|
3
|
-
import { n as compact, t as collectOrderedParamRefs } from "./util-
|
|
4
|
-
import { A as
|
|
5
|
-
export { AggregateExpr, AndExpr, BinaryExpr, CaseExpr, CastExpr, CheckExpressionConstraint, CodecJsonValueProjection, ColumnRef, DdlColumn, DdlColumnDefault, DdlNode, DefaultValueExpr, DeleteAst, DerivedTableSource, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, IdentifierRef, InsertAst, InsertOnConflict, JoinAst, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectExpr, ListExpression, LiteralColumnDefault, LiteralExpr, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedParamRef, PrimaryKeyConstraint, ProjectionItem, RawExpr, RawQueryAst, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID,
|
|
1
|
+
import { A as ParamRef, B as aggregateFnNames, C as LiteralExpr, D as OperationExpr, E as NullCheckExpr, F as SelectAst, G as isOrderByNulls, H as frozenCodecRef, I as SubqueryExpr, J as queryAstKinds, K as isQueryAst, L as TableSource, M as ProjectionItem, N as RawExpr, O as OrExpr, P as RawQueryAst, R as UpdateAst, S as ListExpression, T as NotExpr, U as isAggregateFn, V as checkLimitOffset, W as isOrderByDirection, Y as whereExprKinds, _ as InsertAst, a as CastExpr, b as JsonArrayAggExpr, c as DeleteAst, d as DoUpdateSetConflictAction, f as EqColJoinOn, g as IdentifierRef, h as FunctionSource, i as CaseExpr, j as PreparedParamRef, k as OrderByItem, l as DerivedTableSource, m as FunctionCallExpr, n as AndExpr, o as ColumnRef, p as ExistsExpr, q as isWhereExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, u as DoNothingConflictAction, v as InsertOnConflict, w as LockingClause, x as JsonObjectExpr, y as JoinAst, z as WindowFuncExpr } from "./types-NTQsD2MS-xcLtvKO9.mjs";
|
|
2
|
+
import { a as ForeignKeyConstraint, c as OpaqueSql, d as isDdlNode, f as opaqueSql, i as DdlNode, l as PrimaryKeyConstraint, n as DdlColumn, o as FunctionColumnDefault, p as renderOpaqueSql, r as DdlColumnDefault, s as LiteralColumnDefault, t as CheckExpressionConstraint, u as UniqueConstraint } from "./opaque-sql-Dset3kln-CtsPDTXn.mjs";
|
|
3
|
+
import { n as compact, r as isAggregateProjection, t as collectOrderedParamRefs } from "./util-BBgcP3gI-CpL-0VuC.mjs";
|
|
4
|
+
import { A as sqlCharDecode, B as sqlIntEncode, C as encodeLiteralDefault, D as lockWaitPolicyOf, E as lockStrengthCapabilities, F as sqlFloatDescriptor, G as sqlTextDescriptor, H as sqlRawDescriptor, I as sqlFloatEncode, J as sqlVarcharDecode, K as sqlTextEncode, L as sqlIntColumn, M as sqlCharEncode, N as sqlFloatColumn, O as missingCapability, P as sqlFloatDecode, R as sqlIntDecode, S as encodeListLiteralDefault, T as lockOptionCapabilities, U as sqlTextColumn, V as sqlRawColumn, W as sqlTextDecode, X as sqlVarcharEncode, Y as sqlVarcharDescriptor, _ as SqlRawDescriptor, a as SQL_FLOAT_CODEC_ID, b as SqlVarcharCodec, c as SQL_TEXT_CODEC_ID, d as SqlCharDescriptor, f as SqlFloatCodec, g as SqlRawCodec, h as SqlIntDescriptor, i as SQL_CHAR_CODEC_ID, j as sqlCharDescriptor, k as sqlCharColumn, l as SQL_VARCHAR_CODEC_ID, m as SqlIntCodec, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlFloatDescriptor, q as sqlVarcharColumn, r as NativeJsonValueProjection, s as SQL_RAW_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharCodec, v as SqlTextCodec, w as lockIncompatible, x as SqlVarcharDescriptor, y as SqlTextDescriptor, z as sqlIntDescriptor } from "./ast-D0miQ1B6.mjs";
|
|
5
|
+
export { AggregateExpr, AndExpr, BinaryExpr, CaseExpr, CastExpr, CheckExpressionConstraint, CodecJsonValueProjection, ColumnRef, DdlColumn, DdlColumnDefault, DdlNode, DefaultValueExpr, DeleteAst, DerivedTableSource, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, IdentifierRef, InsertAst, InsertOnConflict, JoinAst, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectExpr, ListExpression, LiteralColumnDefault, LiteralExpr, LockingClause, NativeJsonValueProjection, NotExpr, NullCheckExpr, OpaqueSql, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedParamRef, PrimaryKeyConstraint, ProjectionItem, RawExpr, RawQueryAst, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SqlCharCodec, SqlCharDescriptor, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlRawCodec, SqlRawDescriptor, SqlTextCodec, SqlTextDescriptor, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableSource, UniqueConstraint, UpdateAst, WindowFuncExpr, aggregateFnNames, checkLimitOffset, collectOrderedParamRefs, compact, encodeListLiteralDefault, encodeLiteralDefault, frozenCodecRef, isAggregateFn, isAggregateProjection, isDdlNode, isOrderByDirection, isOrderByNulls, isQueryAst, isWhereExpr, lockIncompatible, lockOptionCapabilities, lockStrengthCapabilities, lockWaitPolicyOf, missingCapability, opaqueSql, queryAstKinds, renderOpaqueSql, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlFloatColumn, sqlFloatDecode, sqlFloatDescriptor, sqlFloatEncode, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlRawColumn, sqlRawDescriptor, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, whereExprKinds };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./types-
|
|
3
|
-
import { o as AnyCodecDescriptor$1 } from "./types-
|
|
4
|
-
import {
|
|
1
|
+
import { l as SqlStorage } from "./sql-storage-DeCAh5Hi-CEM-m8cs.mjs";
|
|
2
|
+
import "./types-CkAd8SWm.mjs";
|
|
3
|
+
import { o as AnyCodecDescriptor$1 } from "./types-DriMIMNQ-BkbsW7w3.mjs";
|
|
4
|
+
import { t as CodecDescriptorRegistry } from "./query-lane-context-BCEoKy0_-CzmyavC9.mjs";
|
|
5
5
|
import { CodecRef } from "@prisma/orm-framework/components/codec";
|
|
6
|
-
//#region ../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.d.mts
|
|
6
|
+
//#region ../../../2-sql-family/4-lanes/relational-core/dist/exports/codec-descriptor-registry.d.mts
|
|
7
7
|
//#region src/codec-descriptor-registry.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Build a {@link CodecDescriptorRegistry} from a flat descriptor list.
|
|
@@ -23,11 +23,10 @@ declare function buildCodecDescriptorRegistry(allDescriptors: ReadonlyArray<AnyC
|
|
|
23
23
|
*
|
|
24
24
|
* Resolution rules over namespace `entries.table[table].columns[column]`:
|
|
25
25
|
*
|
|
26
|
-
* - `
|
|
27
|
-
* - inline `typeParams` column → `{codecId, typeParams}` from the column itself.
|
|
26
|
+
* - `typeParams` column → `{codecId, typeParams}` from the column itself.
|
|
28
27
|
* - non-parameterized column → `{codecId}` with `typeParams` undefined.
|
|
29
28
|
*
|
|
30
|
-
* Returns `undefined` when the table or column is unknown
|
|
29
|
+
* Returns `undefined` when the table or column is unknown.
|
|
31
30
|
*
|
|
32
31
|
* `namespaceId` leads the coordinate args and is always supplied: every
|
|
33
32
|
* model/table sits in an explicit namespace, so the table is resolved strictly
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relational-core__codec-descriptor-registry.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.d.mts"],"mappings":";;;;;;;;;;;;;;;;;iBAeiB,6BAA6B,gBAAgB,cAAc,uBAAqB,UAAU,aAAa
|
|
1
|
+
{"version":3,"file":"relational-core__codec-descriptor-registry.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/exports/codec-descriptor-registry.d.mts"],"mappings":";;;;;;;;;;;;;;;;;iBAeiB,6BAA6B,gBAAgB,cAAc,uBAAqB,UAAU,aAAa;;;;;;;;;;;;;;;;;iBAiBvG,yBAAyB,SAAS,YAAY,qBAAqB,mBAAmB,qBAAqB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as codecRefForStorageColumn, t as buildCodecDescriptorRegistry } from "./codec-descriptor-registry-
|
|
1
|
+
import { n as codecRefForStorageColumn, t as buildCodecDescriptorRegistry } from "./codec-descriptor-registry-CiiFzMtb.mjs";
|
|
2
2
|
export { buildCodecDescriptorRegistry, codecRefForStorageColumn };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as CollectionMethodModel, c as CollectionMethodRegistry, i as CollectionMethodContributionType, l as CollectionMethodTools, n as CollectionMethodContribution, o as CollectionMethodModelType, r as CollectionMethodContributionId, s as CollectionMethodReceiver, t as CollectionMethodBody, u as ContributedMethodSignature } from "./collection-methods-D2UnCS0S-DOy2qHYS.mjs";
|
|
2
|
+
import "./collection-methods-BB8YH69u.mjs";
|
|
3
|
+
export { CollectionMethodBody, CollectionMethodContribution, CollectionMethodContributionId, CollectionMethodContributionType, CollectionMethodModel, CollectionMethodModelType, CollectionMethodReceiver, CollectionMethodRegistry, CollectionMethodTools, ContributedMethodSignature };
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./types-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { o as ReferentialAction } from "./foreign-key-qkDFfG8t-TaK_GYWR.mjs";
|
|
2
|
+
import "./types-CkAd8SWm.mjs";
|
|
3
|
+
import { Bt as TableSource, Dt as ProjectionItem, E as CodecRef$1, Ht as UpdateAst, Nt as SelectAst, O as ColumnRef, Q as InsertAst, St as OrderByItem, c as AnyExpression, l as AnyFromSource, tt as JoinAst } from "./types-DriMIMNQ-BkbsW7w3.mjs";
|
|
4
|
+
import { c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, l as LiteralColumnDefault, n as CheckExpressionConstraint, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault } from "./ddl-types-By5mT2_S-CdaaFvsX.mjs";
|
|
5
|
+
import { r as SqlExpression } from "./sql-expression-B4BrhGPi.mjs";
|
|
5
6
|
import { ColumnDefaultLiteralInputValue } from "@prisma/orm-framework/contract/types";
|
|
6
7
|
import { ParamSpec } from "@prisma/orm-framework/operations";
|
|
7
|
-
//#region ../../../2-sql/4-lanes/relational-core/dist/exports/contract-free.d.mts
|
|
8
|
+
//#region ../../../2-sql-family/4-lanes/relational-core/dist/exports/contract-free.d.mts
|
|
8
9
|
//#region src/contract-free/column.d.ts
|
|
10
|
+
/** Raw SQL given as a `sql` value or as a string, before it is read. The string form is permanent. */
|
|
11
|
+
type SqlTextInput = string | SqlExpression;
|
|
12
|
+
/**
|
|
13
|
+
* The SQL text of `value`. A `sql` value from another installed copy is canonicalized. Anything that is neither a
|
|
14
|
+
* string nor a `sql` value throws CONTRACT.ARGUMENT_INVALID naming the argument `what`.
|
|
15
|
+
*/
|
|
16
|
+
declare function sqlTextOf(value: SqlTextInput, what: string): string;
|
|
9
17
|
interface DdlColumnOptions {
|
|
10
18
|
readonly notNull?: boolean;
|
|
11
19
|
readonly primaryKey?: boolean;
|
|
@@ -13,7 +21,7 @@ interface DdlColumnOptions {
|
|
|
13
21
|
readonly codecRef?: CodecRef$1;
|
|
14
22
|
}
|
|
15
23
|
declare function lit(value: ColumnDefaultLiteralInputValue): LiteralColumnDefault;
|
|
16
|
-
declare function fn(expression:
|
|
24
|
+
declare function fn(expression: SqlTextInput): FunctionColumnDefault;
|
|
17
25
|
declare function col(name: string, type: string, options?: DdlColumnOptions): DdlColumn;
|
|
18
26
|
declare function primaryKey(columns: readonly string[], options?: {
|
|
19
27
|
readonly name?: string;
|
|
@@ -26,12 +34,14 @@ declare function foreignKey(columns: readonly string[], refTable: string, refCol
|
|
|
26
34
|
declare function unique(columns: readonly string[], options?: {
|
|
27
35
|
readonly name?: string;
|
|
28
36
|
}): UniqueConstraint;
|
|
29
|
-
declare function checkExpression(name: string, expression:
|
|
37
|
+
declare function checkExpression(name: string, expression: SqlTextInput): CheckExpressionConstraint;
|
|
30
38
|
//#endregion
|
|
31
39
|
//#region src/contract-free/table.d.ts
|
|
32
40
|
interface ColumnDescriptor {
|
|
33
41
|
readonly codecId: string;
|
|
34
42
|
readonly nullable: boolean;
|
|
43
|
+
/** The column holds a list of the codec's values. */
|
|
44
|
+
readonly many?: true;
|
|
35
45
|
}
|
|
36
46
|
type ColumnSchema = Record<string, ColumnDescriptor>;
|
|
37
47
|
/**
|
|
@@ -215,5 +225,5 @@ declare class CfSelectQuery {
|
|
|
215
225
|
*/
|
|
216
226
|
declare function table<Schema extends ColumnSchema>(source: TableSource, schema: Schema): TableHandle<Schema>;
|
|
217
227
|
//#endregion
|
|
218
|
-
export { CfConflictClause, CfExpr, CfExprSelectQuery, type CfFnOptions, CfInsertQuery, CfSelectQuery, CfUpdateQuery, CfUpsertBuilder, CfUpsertQuery, type ColumnDescriptor, type ColumnProxy, type ColumnSchema, type DdlColumnOptions, type ExcludedProxy, type TableHandle, type TableInsertRow, type TableSetValues, cfExpr, cfTable, checkExpression, col, exprSelect, fn, foreignKey, lit, primaryKey, table, unique };
|
|
228
|
+
export { CfConflictClause, CfExpr, CfExprSelectQuery, type CfFnOptions, CfInsertQuery, CfSelectQuery, CfUpdateQuery, CfUpsertBuilder, CfUpsertQuery, type ColumnDescriptor, type ColumnProxy, type ColumnSchema, type DdlColumnOptions, type ExcludedProxy, type SqlTextInput, type TableHandle, type TableInsertRow, type TableSetValues, cfExpr, cfTable, checkExpression, col, exprSelect, fn, foreignKey, lit, primaryKey, sqlTextOf, table, unique };
|
|
219
229
|
//# sourceMappingURL=relational-core__contract-free.d.mts.map
|