@prisma/orm-family-sql 8.0.0-rc.2-dev.3 → 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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as SqlObjectNaming } from "./naming-
|
|
1
|
+
import { r as SqlObjectNaming } from "./naming-BcD36g9T-Mfe_xGGL.mjs";
|
|
2
2
|
import { IRNodeBase } from "@prisma/orm-framework/components/ir";
|
|
3
|
+
import { CodecRef, DataType, DataTypeParams, DataTypeValue } from "@prisma/orm-framework/components/codec";
|
|
3
4
|
import { ColumnDefault } from "@prisma/orm-framework/contract/types";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
//#region ../../../2-sql/1-core/schema-ir/dist/types-YStFFkKs.d.mts
|
|
5
|
+
import { DiffSubjectGranularity, DiffableNode, MismatchExplanation, SchemaNodeRef } from "@prisma/orm-framework/components/control";
|
|
6
|
+
//#region ../../../2-sql-family/1-core/schema-ir/dist/types-CuCxAQat.d.mts
|
|
7
7
|
//#region src/ir/sql-schema-ir-node.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* SQL Schema IR node base. Carries the family-level
|
|
@@ -175,17 +175,30 @@ declare class SqlCheckConstraintIR extends SqlSchemaIRNode implements DiffableNo
|
|
|
175
175
|
isEqualTo(other: DiffableNode): boolean;
|
|
176
176
|
}
|
|
177
177
|
//#endregion
|
|
178
|
+
//#region src/ir/sql-default-value.d.ts
|
|
179
|
+
/**
|
|
180
|
+
* A literal default as a value of its column's data type: one value, or for a list column its elements, with `null` for an element that is SQL NULL. ADR 254.
|
|
181
|
+
*/
|
|
182
|
+
type SqlDefaultValue = DataTypeValue | readonly (DataTypeValue | null)[];
|
|
183
|
+
/** Whether two defaults are one value: the same type, parameters and value, element by element for a list. */
|
|
184
|
+
declare function sqlDefaultValuesEqual(a: SqlDefaultValue, b: SqlDefaultValue): boolean;
|
|
185
|
+
//#endregion
|
|
178
186
|
//#region src/ir/sql-column-default-ir.d.ts
|
|
187
|
+
/** The `sql` literal that writes a SQL text, or `undefined` when no literal reads back as that text. */
|
|
188
|
+
type SqlExpressionLiteralFor = (text: string) => string | undefined;
|
|
179
189
|
interface SqlColumnDefaultIRInput {
|
|
180
|
-
/** Structured
|
|
190
|
+
/** Structured default: the contract's, or what introspection read from the database. */
|
|
181
191
|
readonly resolved?: ColumnDefault;
|
|
182
192
|
/** Raw database default expression, when known (introspected side). */
|
|
183
193
|
readonly raw?: string;
|
|
184
|
-
/**
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
194
|
+
/** See {@link import('./sql-column-ir').SqlColumnIRInput.authoredDefault}. */
|
|
195
|
+
readonly authored?: ColumnDefault;
|
|
196
|
+
/** See {@link import('./sql-column-ir').SqlColumnIRInput.defaultValue}. */
|
|
197
|
+
readonly value?: SqlDefaultValue;
|
|
198
|
+
/** See {@link import('./sql-column-ir').SqlColumnIRInput.defaultUnreadable}. */
|
|
199
|
+
readonly unreadable?: string;
|
|
200
|
+
/** See {@link import('./sql-column-ir').SqlColumnIRInput.defaultExpressionValue}. */
|
|
201
|
+
readonly expressionValue?: SqlDefaultValue;
|
|
189
202
|
/**
|
|
190
203
|
* The owning column's array-ness, threaded through so the planner's
|
|
191
204
|
* set-default op-builder can render an array-literal default (e.g.
|
|
@@ -193,6 +206,14 @@ interface SqlColumnDefaultIRInput {
|
|
|
193
206
|
* {@link import('./sql-column-ir').SqlColumnIRInput.many}.
|
|
194
207
|
*/
|
|
195
208
|
readonly many?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* The owning column's codec identity, threaded through so the set-default op-builder renders a
|
|
211
|
+
* list default's cast to the column type the way the column's DDL writes it. See
|
|
212
|
+
* {@link import('./sql-column-ir').SqlColumnIRInput.codecRef}.
|
|
213
|
+
*/
|
|
214
|
+
readonly codecRef?: CodecRef;
|
|
215
|
+
/** See {@link import('./sql-column-ir').SqlColumnIRInput.sqlExpressionLiteralFor}. */
|
|
216
|
+
readonly sqlExpressionLiteralFor?: SqlExpressionLiteralFor;
|
|
196
217
|
}
|
|
197
218
|
/**
|
|
198
219
|
* Schema-diff node for a column's default value. The default is the one
|
|
@@ -211,21 +232,41 @@ declare class SqlColumnDefaultIR extends SqlSchemaIRNode implements DiffableNode
|
|
|
211
232
|
readonly nodeKind: "sql-column-default";
|
|
212
233
|
readonly resolved?: ColumnDefault;
|
|
213
234
|
readonly raw?: string;
|
|
214
|
-
|
|
235
|
+
/** See {@link SqlColumnDefaultIRInput.authored}. Non-enumerable, same reason as {@link many}. */
|
|
236
|
+
readonly authored?: ColumnDefault;
|
|
237
|
+
/** See {@link SqlColumnDefaultIRInput.value}. Non-enumerable, same reason as {@link many}. */
|
|
238
|
+
readonly value?: SqlDefaultValue;
|
|
239
|
+
/** See {@link SqlColumnDefaultIRInput.unreadable}. Non-enumerable, same reason as {@link many}. */
|
|
240
|
+
readonly unreadable?: string;
|
|
241
|
+
/** See {@link SqlColumnDefaultIRInput.expressionValue}. Non-enumerable, same reason as {@link many}. */
|
|
242
|
+
readonly expressionValue?: SqlDefaultValue;
|
|
215
243
|
/** See {@link SqlColumnDefaultIRInput.many}. Non-enumerable so it stays out of JSON and structural equality. */
|
|
216
244
|
readonly many?: boolean;
|
|
245
|
+
/** See {@link SqlColumnDefaultIRInput.codecRef}. Non-enumerable, same reason as {@link many}. */
|
|
246
|
+
readonly codecRef?: CodecRef;
|
|
247
|
+
/** See {@link SqlColumnDefaultIRInput.sqlExpressionLiteralFor}. Non-enumerable, same reason as {@link many}. */
|
|
248
|
+
readonly sqlExpressionLiteralFor?: SqlExpressionLiteralFor;
|
|
217
249
|
constructor(input: SqlColumnDefaultIRInput);
|
|
218
250
|
get id(): string;
|
|
219
251
|
children(): readonly DiffableNode[];
|
|
220
252
|
static is(node: SqlSchemaIRNode): node is SqlColumnDefaultIR;
|
|
221
253
|
/**
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
254
|
+
* Compares with `this` as the expected side. Two literals compare as values of the column's type
|
|
255
|
+
* when both sides hold one, and as canonical JSON otherwise; a `Date` the column's codec could not
|
|
256
|
+
* read into a value equals nothing. Two expressions compare as text, with
|
|
257
|
+
* case and whitespace ignored outside quotes. An expected expression that writes a literal, read by
|
|
258
|
+
* the column's codec during introspection, matches a reported literal when the two values are
|
|
259
|
+
* equal; when the codec could not read one of them, it compares with the reported text. A resolved
|
|
260
|
+
* side against a raw-only side is a mismatch; two raw-only nodes compare their text.
|
|
227
261
|
*/
|
|
228
262
|
isEqualTo(other: DiffableNode): boolean;
|
|
263
|
+
/**
|
|
264
|
+
* For two default expressions, the text the database reads back, since it may store an expression
|
|
265
|
+
* in a form of its own. Otherwise why the column's codec could not read the database's default, or
|
|
266
|
+
* the value each side holds.
|
|
267
|
+
*/
|
|
268
|
+
explainMismatch(actual: DiffableNode | undefined): MismatchExplanation | undefined;
|
|
269
|
+
private storedExpressionForm;
|
|
229
270
|
}
|
|
230
271
|
//#endregion
|
|
231
272
|
//#region src/ir/sql-column-ir.d.ts
|
|
@@ -236,24 +277,28 @@ declare class SqlColumnDefaultIR extends SqlSchemaIRNode implements DiffableNode
|
|
|
236
277
|
type SqlAnnotations = {
|
|
237
278
|
readonly [namespace: string]: unknown;
|
|
238
279
|
};
|
|
280
|
+
/** What introspection hands over about the element type of one column. */
|
|
281
|
+
interface ReportedSqlType {
|
|
282
|
+
/** The element type's text as the database reports it: on Postgres its catalog text (`format_type`), on SQLite the declared type from `PRAGMA table_info`. */
|
|
283
|
+
readonly text: string;
|
|
284
|
+
/** The target's word for the type's kind, such as `enum`; undefined for a base type. */
|
|
285
|
+
readonly kind: string | undefined;
|
|
286
|
+
readonly schema: string | undefined;
|
|
287
|
+
/** The type's name, unquoted. */
|
|
288
|
+
readonly name: string | undefined;
|
|
289
|
+
}
|
|
239
290
|
interface SqlColumnIRInput {
|
|
240
291
|
readonly name: string;
|
|
241
|
-
|
|
292
|
+
/**
|
|
293
|
+
* The column's element type as text; nothing compares it. On the contract-derived side, the name a migration writes for the type the column is stored as, with an enum named as the contract names it. On the introspected side, the type as introspection reads it: on Postgres the `format_type` text, which keeps the schema of a type off the search path, except that an enum is named as a contract names it; on SQLite the declared type, lower-cased. Mismatch messages and the schema tree show it, and default parsing reads it: the target's `resolveDefault` hook on the contract side, and SQLite's default reader on the introspected side. Columns are compared by {@link storedType} and {@link storedTypeParams}.
|
|
294
|
+
*/
|
|
295
|
+
readonly typeText: string;
|
|
242
296
|
readonly nullable: boolean;
|
|
243
297
|
/** Raw database default expression (e.g. `'hello'::text`, `nextval('seq')`). */
|
|
244
298
|
readonly default?: string;
|
|
245
299
|
readonly annotations?: SqlAnnotations;
|
|
246
|
-
/** True when the column is a native array (e.g. `text[]`, `int4[]`). The `
|
|
300
|
+
/** True when the column is a native array (e.g. `text[]`, `int4[]`). The `typeText` carries the element type only (e.g. `text`, `int4`). */
|
|
247
301
|
readonly many?: boolean;
|
|
248
|
-
/**
|
|
249
|
-
* Fully resolved native type, comparable across the two diff sides:
|
|
250
|
-
* the contract-derived side stamps the codec-expanded type (typeRef
|
|
251
|
-
* resolved, parameterized types expanded, `[]` appended for arrays);
|
|
252
|
-
* the introspected side stamps the target-normalized type with the same
|
|
253
|
-
* `[]` convention. Stamped at construction by derivation/introspection;
|
|
254
|
-
* absent on raw hand-built nodes.
|
|
255
|
-
*/
|
|
256
|
-
readonly resolvedNativeType?: string;
|
|
257
302
|
/**
|
|
258
303
|
* Structured default, comparable across the two diff sides: the
|
|
259
304
|
* contract-derived side stamps the contract's `ColumnDefault`; the
|
|
@@ -262,6 +307,12 @@ interface SqlColumnIRInput {
|
|
|
262
307
|
* the introspected raw default could not be parsed.
|
|
263
308
|
*/
|
|
264
309
|
readonly resolvedDefault?: ColumnDefault;
|
|
310
|
+
/**
|
|
311
|
+
* The contract's default exactly as authored, before the target's `resolveDefault` hook. The
|
|
312
|
+
* planner's DDL builders render this one, so the DDL carries the authored expression while
|
|
313
|
+
* `resolvedDefault` is what the diff compares. Absent on the introspected side.
|
|
314
|
+
*/
|
|
315
|
+
readonly authoredDefault?: ColumnDefault;
|
|
265
316
|
/**
|
|
266
317
|
* The column's resolved codec reference — the identity the migration
|
|
267
318
|
* planner's op-builders resolve DDL type rendering against at plan time
|
|
@@ -270,29 +321,39 @@ interface SqlColumnIRInput {
|
|
|
270
321
|
* end)` op-path called. Carried the same way the query AST carries
|
|
271
322
|
* `CodecRef` (TML-2456) and the migration DDL renderer (TML-2918).
|
|
272
323
|
* Stamped on the EXPECTED (contract-derived) column at derivation,
|
|
273
|
-
*
|
|
274
|
-
* codec/params, not the column's `typeRef` pointer). Absent on
|
|
324
|
+
* from the column's own codec and params. Absent on
|
|
275
325
|
* introspected/hand-built nodes — the actual side never renders DDL —
|
|
276
326
|
* and never compared by `isEqualTo`.
|
|
277
327
|
*/
|
|
278
328
|
readonly codecRef?: CodecRef;
|
|
279
329
|
/**
|
|
280
|
-
* The column's
|
|
281
|
-
* pre-array-suffix (e.g. `character`, not `character(36)` or
|
|
282
|
-
* `character[]`). Distinct from {@link resolvedNativeType} (the EXPANDED
|
|
283
|
-
* comparison value) — DDL rendering re-expands a parameterized type at
|
|
284
|
-
* plan time from this base, so it must not already carry the expansion.
|
|
285
|
-
* Stamped alongside {@link codecRef}.
|
|
330
|
+
* The type the column is stored as, whose name DDL writes and the database reports (ADR 254): on the contract-derived side the type its codec's data type is stored as, on the introspected side the type that claims the reported type. Absent on an introspected column no data type claims.
|
|
286
331
|
*/
|
|
287
|
-
readonly
|
|
332
|
+
readonly storedType?: DataType;
|
|
333
|
+
/** The parameters of {@link storedType} in its normal form, for comparing; empty for a type without parameters. Present exactly when `storedType` is. DDL writes the parameters as written, from {@link codecRef}. */
|
|
334
|
+
readonly storedTypeParams?: DataTypeParams;
|
|
288
335
|
/**
|
|
289
|
-
*
|
|
290
|
-
* `storage.types` reference (`typeRef`) rather than inline fields — the
|
|
291
|
-
* migration planner quotes the base native type as an identifier in this
|
|
292
|
-
* case (e.g. a native enum's type name), matching the pre-`plan(start,
|
|
293
|
-
* end)` rendering exactly.
|
|
336
|
+
* A literal default as a value of the column's data type (ADR 254): on the contract-derived side read from the contract by the column's type, on the introspected side read from the database by the column's codec. The diff compares defaults by it. Absent when no type or codec read one.
|
|
294
337
|
*/
|
|
295
|
-
readonly
|
|
338
|
+
readonly defaultValue?: SqlDefaultValue;
|
|
339
|
+
/** Why the column's codec could not read the literal default the database reports. Introspected side only. */
|
|
340
|
+
readonly defaultUnreadable?: string;
|
|
341
|
+
/**
|
|
342
|
+
* When the contract's default is an expression that writes a literal, such as `` sql`'hello'::bytea` ``, the value the column's codec reads from that literal. Introspection reads it, beside the reported default, because only introspection reads with a codec; the diff compares it with the reported default's value. Introspected side only.
|
|
343
|
+
*/
|
|
344
|
+
readonly defaultExpressionValue?: SqlDefaultValue;
|
|
345
|
+
/**
|
|
346
|
+
* The `sql` literal that writes a SQL text, or `undefined` when no literal reads back as that
|
|
347
|
+
* text. The SQL family supplies it, so a mismatch can show a default as the user would write it.
|
|
348
|
+
* Stamped on the contract-derived column; absent on introspected nodes.
|
|
349
|
+
*/
|
|
350
|
+
readonly sqlExpressionLiteralFor?: SqlExpressionLiteralFor;
|
|
351
|
+
/** The element type as the database reports it. Set by introspection; absent on contract-derived nodes. */
|
|
352
|
+
readonly reportedType?: ReportedSqlType;
|
|
353
|
+
/**
|
|
354
|
+
* The element type exactly as the database catalog prints it, on a contract-derived column whose data type's name is its catalog text (ADR 273). Such a column's type is compared by this text, not by {@link storedType}: see {@link sqlColumnTypesEqual}.
|
|
355
|
+
*/
|
|
356
|
+
readonly catalogText?: string;
|
|
296
357
|
}
|
|
297
358
|
/**
|
|
298
359
|
* Schema IR node for a single column on a table, as observed by
|
|
@@ -303,30 +364,40 @@ interface SqlColumnIRInput {
|
|
|
303
364
|
*
|
|
304
365
|
* Implements `DiffableNode` so a column is directly a table's diff-tree
|
|
305
366
|
* child: `id` is the column name (unique among a table's columns); `isEqualTo`
|
|
306
|
-
* compares this column's own attributes only
|
|
307
|
-
*
|
|
308
|
-
* derivation/introspection), the comparison uses the resolved values —
|
|
309
|
-
* resolved native type, nullability, and structured default equality per
|
|
310
|
-
* the relational walk's `columnDefaultsEqual` semantics, with `this` as the
|
|
311
|
-
* expected side. Otherwise it falls back to comparing raw fields.
|
|
367
|
+
* compares this column's own attributes only, never its default, which is a
|
|
368
|
+
* child node: the type by {@link sqlColumnTypesEqual}, and nullability.
|
|
312
369
|
*/
|
|
313
370
|
declare class SqlColumnIR extends SqlSchemaIRNode implements DiffableNode {
|
|
314
371
|
readonly nodeKind: "sql-column";
|
|
315
372
|
readonly name: string;
|
|
316
|
-
|
|
373
|
+
/** See {@link SqlColumnIRInput.typeText}. */
|
|
374
|
+
readonly typeText: string;
|
|
317
375
|
readonly nullable: boolean;
|
|
318
376
|
readonly default?: string;
|
|
319
377
|
readonly annotations?: SqlAnnotations;
|
|
320
|
-
/** True when the column is a native array (e.g. `text[]`, `int4[]`). The `
|
|
378
|
+
/** True when the column is a native array (e.g. `text[]`, `int4[]`). The `typeText` carries the element type only (e.g. `text`, `int4`). */
|
|
321
379
|
readonly many?: boolean;
|
|
322
|
-
readonly resolvedNativeType?: string;
|
|
323
380
|
readonly resolvedDefault?: ColumnDefault;
|
|
381
|
+
/** See {@link SqlColumnIRInput.authoredDefault}. Non-enumerable so it stays out of JSON and structural equality. */
|
|
382
|
+
readonly authoredDefault?: ColumnDefault;
|
|
324
383
|
/** See {@link SqlColumnIRInput.codecRef}. Non-enumerable so it stays out of JSON and structural equality. */
|
|
325
384
|
readonly codecRef?: CodecRef;
|
|
326
|
-
/** See {@link SqlColumnIRInput.
|
|
327
|
-
readonly
|
|
328
|
-
/** See {@link SqlColumnIRInput.
|
|
329
|
-
readonly
|
|
385
|
+
/** See {@link SqlColumnIRInput.storedType}. Non-enumerable, same reason as {@link codecRef}. */
|
|
386
|
+
readonly storedType?: DataType;
|
|
387
|
+
/** See {@link SqlColumnIRInput.storedTypeParams}. Non-enumerable, same reason as {@link codecRef}. */
|
|
388
|
+
readonly storedTypeParams?: DataTypeParams;
|
|
389
|
+
/** See {@link SqlColumnIRInput.defaultValue}. Non-enumerable, same reason as {@link codecRef}. */
|
|
390
|
+
readonly defaultValue?: SqlDefaultValue;
|
|
391
|
+
/** See {@link SqlColumnIRInput.defaultUnreadable}. Non-enumerable, same reason as {@link codecRef}. */
|
|
392
|
+
readonly defaultUnreadable?: string;
|
|
393
|
+
/** See {@link SqlColumnIRInput.defaultExpressionValue}. Non-enumerable, same reason as {@link codecRef}. */
|
|
394
|
+
readonly defaultExpressionValue?: SqlDefaultValue;
|
|
395
|
+
/** See {@link SqlColumnIRInput.sqlExpressionLiteralFor}. Non-enumerable, same reason as {@link codecRef}. */
|
|
396
|
+
readonly sqlExpressionLiteralFor?: SqlExpressionLiteralFor;
|
|
397
|
+
/** See {@link SqlColumnIRInput.reportedType}. Non-enumerable, same reason as {@link codecRef}. */
|
|
398
|
+
readonly reportedType?: ReportedSqlType;
|
|
399
|
+
/** See {@link SqlColumnIRInput.catalogText}. Non-enumerable, same reason as {@link codecRef}. */
|
|
400
|
+
readonly catalogText?: string;
|
|
330
401
|
constructor(input: SqlColumnIRInput);
|
|
331
402
|
get id(): string;
|
|
332
403
|
/**
|
|
@@ -336,15 +407,24 @@ declare class SqlColumnIR extends SqlSchemaIRNode implements DiffableNode {
|
|
|
336
407
|
* from this column's own fields.
|
|
337
408
|
*/
|
|
338
409
|
children(): readonly DiffableNode[];
|
|
410
|
+
/** This column under another name, with every other field as it is. */
|
|
411
|
+
withName(name: string): SqlColumnIR;
|
|
339
412
|
static is(node: SqlSchemaIRNode): node is SqlColumnIR;
|
|
340
413
|
/**
|
|
341
|
-
* Compares the column's own attributes only — the default lives on the
|
|
342
|
-
* child node. When both sides carry `resolvedNativeType`, the resolved
|
|
343
|
-
* value governs (array-ness rides on its `[]` suffix); otherwise raw
|
|
344
|
-
* fields compare.
|
|
414
|
+
* Compares the column's own attributes only — the default lives on the child node: the type, by {@link sqlColumnTypesEqual}, and nullability.
|
|
345
415
|
*/
|
|
346
416
|
isEqualTo(other: DiffableNode): boolean;
|
|
417
|
+
/** Why `actual` is not this column: the two types as written and reported, or the nullability of each. The two sides always hold different values. */
|
|
418
|
+
explainMismatch(actual: DiffableNode | undefined): MismatchExplanation | undefined;
|
|
347
419
|
}
|
|
420
|
+
/** The parts of a column that make its type. */
|
|
421
|
+
type SqlColumnType = Pick<SqlColumnIR, 'storedType' | 'storedTypeParams' | 'many' | 'catalogText' | 'reportedType'>;
|
|
422
|
+
/**
|
|
423
|
+
* Whether two columns have the same type: both have a stored type, the two are one data type, their parameters are equal as canonical JSON, and both or neither are lists. A column no data type claims has no stored type and never has the same type as another. ADR 254.
|
|
424
|
+
*
|
|
425
|
+
* When either column carries a {@link SqlColumnIR.catalogText}, the two compare by text instead, exactly, with `[]` for a list: that text against the other column's catalog text or reported text. ADR 273.
|
|
426
|
+
*/
|
|
427
|
+
declare function sqlColumnTypesEqual(a: SqlColumnType, b: SqlColumnType): boolean;
|
|
348
428
|
//#endregion
|
|
349
429
|
//#region src/ir/sql-foreign-key-ir.d.ts
|
|
350
430
|
type SqlReferentialAction = 'noAction' | 'restrict' | 'cascade' | 'setNull' | 'setDefault';
|
|
@@ -665,30 +745,5 @@ declare class SqlSchemaIR extends SqlSchemaIRNode implements DiffableNode {
|
|
|
665
745
|
children(): readonly DiffableNode[];
|
|
666
746
|
}
|
|
667
747
|
//#endregion
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
* SQL type metadata for control-plane and execution-plane type
|
|
671
|
-
* availability and mapping. Read-only view of type information
|
|
672
|
-
* without encode/decode behavior.
|
|
673
|
-
*/
|
|
674
|
-
interface SqlTypeMetadata {
|
|
675
|
-
/** Namespaced type identifier, e.g. `pg/int4@1`, `pg/text@1`. */
|
|
676
|
-
readonly typeId: string;
|
|
677
|
-
/** Contract scalar type IDs this type can handle. */
|
|
678
|
-
readonly targetTypes: readonly string[];
|
|
679
|
-
/**
|
|
680
|
-
* Native database type name (target-specific). Optional because
|
|
681
|
-
* not all types have a native database representation.
|
|
682
|
-
*/
|
|
683
|
-
readonly nativeType?: string;
|
|
684
|
-
}
|
|
685
|
-
/**
|
|
686
|
-
* Registry interface for SQL type metadata. Provides read-only
|
|
687
|
-
* iteration over type metadata entries.
|
|
688
|
-
*/
|
|
689
|
-
interface SqlTypeMetadataRegistry {
|
|
690
|
-
values(): IterableIterator<SqlTypeMetadata>;
|
|
691
|
-
}
|
|
692
|
-
//#endregion
|
|
693
|
-
export { SqlUniqueIR as C, relationalNodeEntityKind as D, defineNonEnumerable as E, relationalNodeGranularity as O, SqlTypeMetadataRegistry as S, assertNode as T, SqlSchemaIRInput as _, SqlCheckConstraintIR as a, SqlTableIRInput as b, SqlColumnDefaultIRInput as c, SqlForeignKeyIR as d, SqlForeignKeyIRInput as f, SqlSchemaIR as g, SqlReferentialAction as h, SqlAnnotations as i, SqlColumnIR as l, SqlIndexIRInput as m, PrimaryKeyInput as n, SqlCheckConstraintIRInput as o, SqlIndexIR as p, RelationalSchemaNodeKind as r, SqlColumnDefaultIR as s, PrimaryKey as t, SqlColumnIRInput as u, SqlSchemaIRNode as v, SqlUniqueIRInput as w, SqlTypeMetadata as x, SqlTableIR as y };
|
|
694
|
-
//# sourceMappingURL=types-YStFFkKs-D9UAmnON.d.mts.map
|
|
748
|
+
export { relationalNodeGranularity as A, SqlTableIR as C, assertNode as D, SqlUniqueIRInput as E, sqlDefaultValuesEqual as M, defineNonEnumerable as O, SqlSchemaIRNode as S, SqlUniqueIR as T, SqlIndexIR as _, SqlAnnotations as a, SqlSchemaIR as b, SqlColumnDefaultIR as c, SqlColumnIRInput as d, SqlColumnType as f, SqlForeignKeyIRInput as g, SqlForeignKeyIR as h, ReportedSqlType as i, sqlColumnTypesEqual as j, relationalNodeEntityKind as k, SqlColumnDefaultIRInput as l, SqlExpressionLiteralFor as m, PrimaryKeyInput as n, SqlCheckConstraintIR as o, SqlDefaultValue as p, RelationalSchemaNodeKind as r, SqlCheckConstraintIRInput as s, PrimaryKey as t, SqlColumnIR as u, SqlIndexIRInput as v, SqlTableIRInput as w, SqlSchemaIRInput as x, SqlReferentialAction as y };
|
|
749
|
+
//# sourceMappingURL=types-CuCxAQat-Dz8P4xyt.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-CuCxAQat-Dz8P4xyt.d.mts","names":[],"sources":["../../../../2-sql-family/1-core/schema-ir/dist/types-CuCxAQat.d.mts"],"mappings":"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"}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import "./sql-node-kEz6YFZo-1ogT6Cxt.mjs";
|
|
2
|
+
import "./check-constraint-B7qGu6rc-Bk2ezWXu.mjs";
|
|
3
|
+
import { n as ForeignKeyIndex, o as ReferentialAction } from "./foreign-key-qkDFfG8t-TaK_GYWR.mjs";
|
|
4
|
+
import "./unique-constraint-M5TlQnJQ-qX-maNUV.mjs";
|
|
5
|
+
import "./sql-index-ByAAE7K8-Dqtn_vUL.mjs";
|
|
6
|
+
import "./storage-table-Bf1ZjnxO-pUj6pyP0.mjs";
|
|
7
|
+
import "./storage-value-set-BGlj5Uus-ny2k-0PA.mjs";
|
|
8
|
+
import "./sql-storage-DeCAh5Hi-CEM-m8cs.mjs";
|
|
9
|
+
import "./serialized-index-CrgG8ct1-DKVJ7TDX.mjs";
|
|
10
|
+
import { CodecTrait } from "@prisma/orm-framework/components/codec";
|
|
11
|
+
import { ControlDriverInstance } from "@prisma/orm-framework/components/control";
|
|
12
|
+
//#region ../../../2-sql-family/1-core/contract/dist/types-DfKvtJwS.d.mts
|
|
13
|
+
//#region src/types.d.ts
|
|
14
|
+
interface SqlControlDriverInstance<T extends string = string> extends ControlDriverInstance<'sql', T> {
|
|
15
|
+
query<Row = Record<string, unknown>>(sql: string, params?: readonly unknown[]): Promise<{
|
|
16
|
+
readonly rows: Row[];
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
type ForeignKeyOptions = {
|
|
20
|
+
readonly name?: string;
|
|
21
|
+
readonly onDelete?: ReferentialAction;
|
|
22
|
+
readonly onUpdate?: ReferentialAction;
|
|
23
|
+
readonly index?: ForeignKeyIndex;
|
|
24
|
+
};
|
|
25
|
+
type SqlModelFieldStorage = {
|
|
26
|
+
readonly column: string;
|
|
27
|
+
readonly codecId?: string;
|
|
28
|
+
readonly nullable?: boolean;
|
|
29
|
+
};
|
|
30
|
+
type SqlModelStorage = {
|
|
31
|
+
readonly table: string;
|
|
32
|
+
readonly namespaceId: string;
|
|
33
|
+
readonly fields: Record<string, SqlModelFieldStorage>;
|
|
34
|
+
};
|
|
35
|
+
declare const DEFAULT_FK_CONSTRAINT = true;
|
|
36
|
+
declare const DEFAULT_FK_INDEX = true;
|
|
37
|
+
declare function applyFkDefaults(fk: {
|
|
38
|
+
constraint?: boolean | undefined;
|
|
39
|
+
index?: boolean | string | undefined;
|
|
40
|
+
}, overrideDefaults?: {
|
|
41
|
+
constraint?: boolean | undefined;
|
|
42
|
+
index?: boolean | undefined;
|
|
43
|
+
}): {
|
|
44
|
+
constraint: boolean;
|
|
45
|
+
index: boolean | string;
|
|
46
|
+
};
|
|
47
|
+
type NamespacedFieldTypeMap = Record<string, Record<string, Record<string, unknown>>>;
|
|
48
|
+
type NamespacedStorageColumnTypeMap = Record<string, Record<string, Record<string, unknown>>>;
|
|
49
|
+
/**
|
|
50
|
+
* What one aggregate produces: the id of the codec its result carries, and whether that result can be null. The codec id is the whole of the result's identity — a `sum` leaves its input's type parameters behind, and a result that keeps them is one whose codec id is the input's own.
|
|
51
|
+
*/
|
|
52
|
+
type AggregateResultType = {
|
|
53
|
+
readonly output: string;
|
|
54
|
+
readonly nullable: boolean;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* One aggregate operation's settled overloads.
|
|
58
|
+
*
|
|
59
|
+
* `byCodec` answers per input codec, precedence already applied: a codec claimed by an exact overload carries that overload's result, and one served by a trait fallback carries the fallback's. `anyInput` answers an input no row claims, and `withoutInput` answers a call that carries no input at all — `count()` over rows.
|
|
60
|
+
*
|
|
61
|
+
* Only codecs the composed stack contributes appear, so an availability this map advertises is one the runtime will honour.
|
|
62
|
+
*/
|
|
63
|
+
type AggregateOperationTypes = {
|
|
64
|
+
readonly byCodec: Record<string, AggregateResultType>;
|
|
65
|
+
readonly withoutInput?: AggregateResultType;
|
|
66
|
+
readonly anyInput?: AggregateResultType;
|
|
67
|
+
};
|
|
68
|
+
/** Aggregate operations keyed by name (`count`, `sum`, …). */
|
|
69
|
+
type AggregateTypesBase = Record<string, AggregateOperationTypes>;
|
|
70
|
+
/** The parts of an aggregate descriptor its result type depends on. */
|
|
71
|
+
type AggregateOverload = {
|
|
72
|
+
readonly operation: string;
|
|
73
|
+
readonly input: {
|
|
74
|
+
readonly kind: string;
|
|
75
|
+
readonly codecId?: string;
|
|
76
|
+
readonly trait?: string;
|
|
77
|
+
};
|
|
78
|
+
readonly output: {
|
|
79
|
+
readonly kind: string;
|
|
80
|
+
readonly codecId?: string;
|
|
81
|
+
};
|
|
82
|
+
readonly nullable: boolean;
|
|
83
|
+
};
|
|
84
|
+
/** A result as an overload declares it: a named codec, or `self` for the codec of the input it serves. */
|
|
85
|
+
type OverloadResult<Descriptor> = {
|
|
86
|
+
readonly output: Descriptor extends {
|
|
87
|
+
readonly output: {
|
|
88
|
+
readonly kind: 'codec';
|
|
89
|
+
readonly codecId: infer Output;
|
|
90
|
+
};
|
|
91
|
+
} ? Output : 'self';
|
|
92
|
+
readonly nullable: Descriptor extends {
|
|
93
|
+
readonly nullable: infer Nullable;
|
|
94
|
+
} ? Nullable : never;
|
|
95
|
+
};
|
|
96
|
+
type OperationsOf<Descriptors> = Descriptors extends {
|
|
97
|
+
readonly operation: infer Name extends string;
|
|
98
|
+
} ? Name : never;
|
|
99
|
+
type ExactCodecIds<Descriptors> = Descriptors extends {
|
|
100
|
+
readonly input: {
|
|
101
|
+
readonly kind: 'codec';
|
|
102
|
+
readonly codecId: infer CodecId extends string;
|
|
103
|
+
};
|
|
104
|
+
} ? CodecId : never;
|
|
105
|
+
type ExactOverloads<Descriptors, CodecId> = Descriptors extends {
|
|
106
|
+
readonly input: {
|
|
107
|
+
readonly kind: 'codec';
|
|
108
|
+
readonly codecId: infer Claimed;
|
|
109
|
+
};
|
|
110
|
+
} ? CodecId extends Claimed ? Descriptors : never : never;
|
|
111
|
+
type ClaimedTraits<Descriptors> = Descriptors extends {
|
|
112
|
+
readonly input: {
|
|
113
|
+
readonly kind: 'trait';
|
|
114
|
+
readonly trait: infer Trait extends string;
|
|
115
|
+
};
|
|
116
|
+
} ? Trait : never;
|
|
117
|
+
type TraitOverloads<Descriptors, Trait> = Descriptors extends {
|
|
118
|
+
readonly input: {
|
|
119
|
+
readonly kind: 'trait';
|
|
120
|
+
readonly trait: infer Claimed;
|
|
121
|
+
};
|
|
122
|
+
} ? Trait extends Claimed ? Descriptors : never : never;
|
|
123
|
+
type InputlessOverload<Descriptors, Kind extends 'none' | 'any'> = Extract<Descriptors, {
|
|
124
|
+
readonly input: {
|
|
125
|
+
readonly kind: Kind;
|
|
126
|
+
};
|
|
127
|
+
}>;
|
|
128
|
+
type OperationOverloads<Descriptors> = {
|
|
129
|
+
readonly exact: { readonly [CodecId in ExactCodecIds<Descriptors>]: OverloadResult<ExactOverloads<Descriptors, CodecId>>; };
|
|
130
|
+
readonly trait: { readonly [Trait in ClaimedTraits<Descriptors>]: OverloadResult<TraitOverloads<Descriptors, Trait>>; };
|
|
131
|
+
readonly none: [InputlessOverload<Descriptors, 'none'>] extends [never] ? never : OverloadResult<InputlessOverload<Descriptors, 'none'>>;
|
|
132
|
+
readonly any: [InputlessOverload<Descriptors, 'any'>] extends [never] ? never : OverloadResult<InputlessOverload<Descriptors, 'any'>>;
|
|
133
|
+
};
|
|
134
|
+
type OverloadTable<Descriptors> = { readonly [Operation in OperationsOf<Descriptors>]: OperationOverloads<Extract<Descriptors, {
|
|
135
|
+
readonly operation: Operation;
|
|
136
|
+
}>>; };
|
|
137
|
+
type IsUnionOf<T, Whole = T> = T extends unknown ? ([Whole] extends [T] ? false : true) : never;
|
|
138
|
+
type CodecTraitsOfId<CodecTypes, CodecId> = CodecId extends keyof CodecTypes ? CodecTypes[CodecId] extends {
|
|
139
|
+
readonly traits: infer Traits;
|
|
140
|
+
} ? Traits : never : never;
|
|
141
|
+
type SettledResult<Overloads extends OperationOverloads<never>, CodecId, Traits> = CodecId extends keyof Overloads['exact'] ? Overloads['exact'][CodecId] : Extract<keyof Overloads['trait'], Traits> extends (infer Trait) ? [Trait] extends [never] ? never : true extends IsUnionOf<Trait> ? never : Overloads['trait'][Trait & keyof Overloads['trait']] : never;
|
|
142
|
+
type SettledRow<Result, CodecId> = {
|
|
143
|
+
readonly output: Result extends {
|
|
144
|
+
readonly output: infer Output;
|
|
145
|
+
} ? Output extends 'self' ? CodecId : Output : never;
|
|
146
|
+
readonly nullable: Result extends {
|
|
147
|
+
readonly nullable: infer Nullable;
|
|
148
|
+
} ? Nullable : never;
|
|
149
|
+
};
|
|
150
|
+
type InputlessRows<Overloads extends OperationOverloads<never>> = ([Overloads['none']] extends [never] ? [Overloads['any']] extends [never] ? Record<never, never> : {
|
|
151
|
+
readonly withoutInput: SettledRow<Overloads['any'], never>;
|
|
152
|
+
} : {
|
|
153
|
+
readonly withoutInput: SettledRow<Overloads['none'], never>;
|
|
154
|
+
}) & ([Overloads['any']] extends [never] ? Record<never, never> : {
|
|
155
|
+
readonly anyInput: SettledRow<Overloads['any'], never>;
|
|
156
|
+
});
|
|
157
|
+
type SettledOperation<Overloads extends OperationOverloads<never>, CodecTypes> = {
|
|
158
|
+
readonly byCodec: { readonly [CodecId in (keyof CodecTypes & string) | (keyof Overloads['exact'] & string) as [SettledResult<Overloads, CodecId, CodecTraitsOfId<CodecTypes, CodecId>>] extends [never] ? never : CodecId]: SettledRow<SettledResult<Overloads, CodecId, CodecTraitsOfId<CodecTypes, CodecId>>, CodecId>; };
|
|
159
|
+
} & InputlessRows<Overloads>;
|
|
160
|
+
type SettledAggregateTypes<Table, CodecTypes> = { readonly [Operation in keyof Table]: Table[Operation] extends (infer Overloads extends OperationOverloads<never>) ? SettledOperation<Overloads, CodecTypes> : never; };
|
|
161
|
+
/**
|
|
162
|
+
* The aggregate result types of a stack, settled from the aggregate descriptors its components contribute against the codecs it composes, as emission writes them into `AggregateTypes`: an exact overload first, then the one trait overload a codec's traits select, and the overloads that take no input or any input. The codecs a row can key are the contract's and those an exact overload names, which the stack contributes though its codec type map may not list them.
|
|
163
|
+
*/
|
|
164
|
+
type AggregateTypesFromDescriptors<Descriptors extends AggregateOverload, CodecTypes extends Record<string, unknown>> = SettledAggregateTypes<OverloadTable<Descriptors>, CodecTypes>;
|
|
165
|
+
type TypeMaps<TCodecTypes extends Record<string, {
|
|
166
|
+
output: unknown;
|
|
167
|
+
}> = Record<string, never>, TQueryOperationTypes extends Record<string, unknown> = Record<string, never>, TFieldOutputTypes extends NamespacedFieldTypeMap = Record<string, never>, TFieldInputTypes extends NamespacedFieldTypeMap = Record<string, never>, TStorageColumnTypes extends NamespacedStorageColumnTypeMap = Record<string, never>, TStorageColumnInputTypes extends NamespacedStorageColumnTypeMap = Record<string, never>, TAggregateTypes extends AggregateTypesBase = Record<string, never>> = {
|
|
168
|
+
readonly codecTypes: TCodecTypes;
|
|
169
|
+
readonly queryOperationTypes: TQueryOperationTypes;
|
|
170
|
+
readonly fieldOutputTypes: TFieldOutputTypes;
|
|
171
|
+
readonly fieldInputTypes: TFieldInputTypes;
|
|
172
|
+
readonly storageColumnTypes: TStorageColumnTypes;
|
|
173
|
+
readonly storageColumnInputTypes: TStorageColumnInputTypes;
|
|
174
|
+
readonly aggregateTypes: TAggregateTypes;
|
|
175
|
+
};
|
|
176
|
+
type AggregateTypesOf<T> = [T] extends [never] ? Record<string, never> : T extends {
|
|
177
|
+
readonly aggregateTypes: infer A;
|
|
178
|
+
} ? A extends AggregateTypesBase ? A : Record<string, never> : Record<string, never>;
|
|
179
|
+
type CodecTypesOf<T> = [T] extends [never] ? Record<string, never> : T extends {
|
|
180
|
+
readonly codecTypes: infer C;
|
|
181
|
+
} ? C extends Record<string, {
|
|
182
|
+
output: unknown;
|
|
183
|
+
}> ? C : Record<string, never> : Record<string, never>;
|
|
184
|
+
/**
|
|
185
|
+
* Dispatch hint identifying the first-argument target of an operation.
|
|
186
|
+
*
|
|
187
|
+
* Used by ORM column helpers to decide whether an operation is reachable on a
|
|
188
|
+
* field. Names a concrete codec identity, a set of capability traits the
|
|
189
|
+
* field's codec must carry, or targets list-typed (`many`) fields. Element
|
|
190
|
+
* capability gating for list ops travels in `elementTraits`.
|
|
191
|
+
*/
|
|
192
|
+
type QueryOperationSelfSpec = {
|
|
193
|
+
readonly codecId: string;
|
|
194
|
+
readonly traits?: never;
|
|
195
|
+
readonly many?: never;
|
|
196
|
+
} | {
|
|
197
|
+
readonly traits: readonly CodecTrait[];
|
|
198
|
+
readonly codecId?: never;
|
|
199
|
+
readonly many?: never;
|
|
200
|
+
} | {
|
|
201
|
+
readonly many: true;
|
|
202
|
+
readonly elementTraits?: readonly CodecTrait[];
|
|
203
|
+
readonly codecId?: never;
|
|
204
|
+
readonly traits?: never;
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* Structural shape an operation's impl must return: any value carrying a
|
|
208
|
+
* codec-exact `returnType` descriptor. `Expression<T>` (from
|
|
209
|
+
* `@internal/sql-relational-core/expression`, with `T extends ScopeField`)
|
|
210
|
+
* extends this. Trait-targeted returns are deliberately excluded — predicate
|
|
211
|
+
* detection and result decoding both depend on knowing the concrete return
|
|
212
|
+
* codec.
|
|
213
|
+
*/
|
|
214
|
+
type QueryOperationReturn = {
|
|
215
|
+
readonly returnType: {
|
|
216
|
+
readonly codecId: string;
|
|
217
|
+
readonly nullable: boolean;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
type QueryOperationTypeEntry = {
|
|
221
|
+
readonly self?: QueryOperationSelfSpec;
|
|
222
|
+
readonly impl: (...args: never[]) => QueryOperationReturn;
|
|
223
|
+
};
|
|
224
|
+
type SqlQueryOperationTypes<_CT extends Record<string, {
|
|
225
|
+
readonly input: unknown;
|
|
226
|
+
readonly output: unknown;
|
|
227
|
+
}>, T extends Record<string, QueryOperationTypeEntry>> = T;
|
|
228
|
+
type QueryOperationTypesBase = Record<string, QueryOperationTypeEntry>;
|
|
229
|
+
/**
|
|
230
|
+
* A pack's query operation types as a function of the contract's codec types. A pack declares an interface extending this one whose `queryOperationTypes` reads `this['codecTypes']`; {@link ApplyQueryOperationTypes} supplies the codec types.
|
|
231
|
+
*/
|
|
232
|
+
interface QueryOperationTypesFunction {
|
|
233
|
+
readonly codecTypes: Record<never, {
|
|
234
|
+
readonly input: unknown;
|
|
235
|
+
readonly output: unknown;
|
|
236
|
+
}>;
|
|
237
|
+
readonly queryOperationTypes: Record<string, unknown>;
|
|
238
|
+
}
|
|
239
|
+
type ApplyQueryOperationTypes<TypeFunction extends QueryOperationTypesFunction, CodecTypes extends Record<string, {
|
|
240
|
+
readonly input: unknown;
|
|
241
|
+
readonly output: unknown;
|
|
242
|
+
}>> = (TypeFunction & {
|
|
243
|
+
readonly codecTypes: CodecTypes;
|
|
244
|
+
})['queryOperationTypes'];
|
|
245
|
+
type QueryOperationTypesOf<T> = [T] extends [never] ? Record<string, never> : T extends {
|
|
246
|
+
readonly queryOperationTypes: infer Q;
|
|
247
|
+
} ? Q extends Record<string, unknown> ? Q : Record<string, never> : Record<string, never>;
|
|
248
|
+
type TypeMapsPhantomKey = '__@internal/sql-contract/typeMaps@__';
|
|
249
|
+
type ContractWithTypeMaps<TContract, TTypeMaps> = TContract & { readonly [K in TypeMapsPhantomKey]?: TTypeMaps; };
|
|
250
|
+
type ExtractTypeMapsFromContract<T> = TypeMapsPhantomKey extends keyof T ? NonNullable<T[TypeMapsPhantomKey & keyof T]> : never;
|
|
251
|
+
type FieldOutputTypesOf<T> = [T] extends [never] ? Record<string, never> : T extends {
|
|
252
|
+
readonly fieldOutputTypes: infer F;
|
|
253
|
+
} ? F extends NamespacedFieldTypeMap ? F : Record<string, never> : Record<string, never>;
|
|
254
|
+
type FieldInputTypesOf<T> = [T] extends [never] ? Record<string, never> : T extends {
|
|
255
|
+
readonly fieldInputTypes: infer F;
|
|
256
|
+
} ? F extends NamespacedFieldTypeMap ? F : Record<string, never> : Record<string, never>;
|
|
257
|
+
type StorageColumnTypesOf<T> = [T] extends [never] ? Record<string, never> : T extends {
|
|
258
|
+
readonly storageColumnTypes: infer F;
|
|
259
|
+
} ? F extends NamespacedStorageColumnTypeMap ? F : Record<string, never> : Record<string, never>;
|
|
260
|
+
type StorageColumnInputTypesOf<T> = [T] extends [never] ? Record<string, never> : T extends {
|
|
261
|
+
readonly storageColumnInputTypes: infer F;
|
|
262
|
+
} ? F extends NamespacedStorageColumnTypeMap ? F : Record<string, never> : Record<string, never>;
|
|
263
|
+
type ExtractCodecTypes<T> = CodecTypesOf<ExtractTypeMapsFromContract<T>>;
|
|
264
|
+
type ExtractQueryOperationTypes<T> = QueryOperationTypesOf<ExtractTypeMapsFromContract<T>>;
|
|
265
|
+
type ExtractFieldOutputTypes<T> = FieldOutputTypesOf<ExtractTypeMapsFromContract<T>>;
|
|
266
|
+
type ExtractFieldInputTypes<T> = FieldInputTypesOf<ExtractTypeMapsFromContract<T>>;
|
|
267
|
+
type ExtractStorageColumnTypes<T> = StorageColumnTypesOf<ExtractTypeMapsFromContract<T>>;
|
|
268
|
+
type ExtractStorageColumnInputTypes<T> = StorageColumnInputTypesOf<ExtractTypeMapsFromContract<T>>;
|
|
269
|
+
type ExtractAggregateTypes<T> = AggregateTypesOf<ExtractTypeMapsFromContract<T>>;
|
|
270
|
+
type ResolveCodecTypes<TContract, TTypeMaps> = [TTypeMaps] extends [never] ? ExtractCodecTypes<TContract> : CodecTypesOf<TTypeMaps>;
|
|
271
|
+
//#endregion
|
|
272
|
+
export { ResolveCodecTypes as A, NamespacedStorageColumnTypeMap as C, QueryOperationTypesBase as D, QueryOperationTypeEntry as E, StorageColumnInputTypesOf as F, StorageColumnTypesOf as I, TypeMaps as L, SqlModelFieldStorage as M, SqlModelStorage as N, QueryOperationTypesFunction as O, SqlQueryOperationTypes as P, TypeMapsPhantomKey as R, NamespacedFieldTypeMap as S, QueryOperationSelfSpec as T, ExtractStorageColumnTypes as _, AggregateTypesOf as a, FieldOutputTypesOf as b, ContractWithTypeMaps as c, ExtractAggregateTypes as d, ExtractCodecTypes as f, ExtractStorageColumnInputTypes as g, ExtractQueryOperationTypes as h, AggregateTypesFromDescriptors as i, SqlControlDriverInstance as j, QueryOperationTypesOf as k, DEFAULT_FK_CONSTRAINT as l, ExtractFieldOutputTypes as m, AggregateResultType as n, ApplyQueryOperationTypes as o, ExtractFieldInputTypes as p, AggregateTypesBase as r, CodecTypesOf as s, AggregateOperationTypes as t, DEFAULT_FK_INDEX as u, ExtractTypeMapsFromContract as v, QueryOperationReturn as w, ForeignKeyOptions as x, FieldInputTypesOf as y, applyFkDefaults as z };
|
|
273
|
+
//# sourceMappingURL=types-DfKvtJwS-CrpWTGBJ.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-DfKvtJwS-CrpWTGBJ.d.mts","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/types-DfKvtJwS.d.mts"],"mappings":"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"}
|