@prisma/orm-family-sql 8.0.0-rc.2-dev.3 → 8.0.0-rc.20-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -6
- package/dist/{aggregate-descriptor-registry-C7hel5O7.mjs → aggregate-descriptor-registry-ZrKjxwQe.mjs} +5 -5
- package/dist/aggregate-descriptor-registry-ZrKjxwQe.mjs.map +1 -0
- package/dist/ast-D0miQ1B6.mjs +372 -0
- package/dist/ast-D0miQ1B6.mjs.map +1 -0
- package/dist/ast-YEMe_B8z.d.mts +292 -0
- package/dist/ast-YEMe_B8z.d.mts.map +1 -0
- package/dist/attribute-specs-DA_RwQFB.d.mts +114 -0
- package/dist/attribute-specs-DA_RwQFB.d.mts.map +1 -0
- package/dist/{authored-check-naming-Hf9990DV.mjs → authored-check-naming-BHGJhjqn.mjs} +5 -5
- package/dist/authored-check-naming-BHGJhjqn.mjs.map +1 -0
- package/dist/{authored-check-naming-BWBe-PVE.d.mts → authored-check-naming-D-o196ry.d.mts} +3 -3
- package/dist/authored-check-naming-D-o196ry.d.mts.map +1 -0
- package/dist/authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts +9 -0
- package/dist/authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts.map +1 -0
- package/dist/builder.d.mts +4 -3
- package/dist/builder__runtime.d.mts +29 -31
- package/dist/builder__runtime.d.mts.map +1 -1
- package/dist/builder__runtime.mjs +261 -191
- package/dist/builder__runtime.mjs.map +1 -1
- package/dist/builder__types.d.mts +6 -3
- package/dist/{canonicalization-hooks-dmXkOR4a.mjs → canonicalization-hooks-Ce1v_TDl.mjs} +2 -2
- package/dist/canonicalization-hooks-Ce1v_TDl.mjs.map +1 -0
- package/dist/{canonicalization-hooks-CYnW_sGn.d.mts → canonicalization-hooks-DyapQ0my.d.mts} +2 -2
- package/dist/canonicalization-hooks-DyapQ0my.d.mts.map +1 -0
- package/dist/{check-constraint-B7qGu6rc-HvQjjX82.d.mts → check-constraint-B7qGu6rc-Bk2ezWXu.d.mts} +4 -4
- package/dist/check-constraint-B7qGu6rc-Bk2ezWXu.d.mts.map +1 -0
- package/dist/{codec-descriptor-registry-N0dhtKaH.mjs → codec-descriptor-registry-CiiFzMtb.mjs} +13 -40
- package/dist/codec-descriptor-registry-CiiFzMtb.mjs.map +1 -0
- package/dist/collection-methods-BB8YH69u.d.mts +1 -0
- package/dist/collection-methods-D2UnCS0S-DOy2qHYS.d.mts +77 -0
- package/dist/collection-methods-D2UnCS0S-DOy2qHYS.d.mts.map +1 -0
- package/dist/{config-types-D9fdKG3g.d.mts → config-types-C-1mIiJO.d.mts} +5 -5
- package/dist/config-types-C-1mIiJO.d.mts.map +1 -0
- package/dist/{config-types-gAm54C_v.mjs → config-types-DkEeq_qq.mjs} +10 -6
- package/dist/config-types-DkEeq_qq.mjs.map +1 -0
- package/dist/{contract-builder-D4a5dT7j.mjs → contract-builder-50lF0kz1.mjs} +431 -226
- package/dist/contract-builder-50lF0kz1.mjs.map +1 -0
- package/dist/contract-builder-C_Zi57iD.d.mts +1967 -0
- package/dist/contract-builder-C_Zi57iD.d.mts.map +1 -0
- package/dist/contract-emitter.d.mts +4 -7
- package/dist/contract-emitter.d.mts.map +1 -1
- package/dist/contract-emitter.mjs +1 -1
- package/dist/{contract-errors-BCN6RVI5-5IHBF_lg.mjs → contract-errors-BCN6RVI5-DoH6b_KZ.mjs} +2 -2
- package/dist/contract-errors-BCN6RVI5-DoH6b_KZ.mjs.map +1 -0
- package/dist/contract-prisma7__provider.d.mts +97 -0
- package/dist/contract-prisma7__provider.d.mts.map +1 -0
- package/dist/contract-prisma7__provider.mjs +2011 -0
- package/dist/contract-prisma7__provider.mjs.map +1 -0
- package/dist/contract-psl.d.mts +18 -29
- package/dist/contract-psl.d.mts.map +1 -1
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +2 -0
- package/dist/contract-psl__attribute-specs.mjs +2 -0
- package/dist/contract-psl__default-table-name.d.mts +7 -0
- package/dist/contract-psl__default-table-name.d.mts.map +1 -0
- package/dist/contract-psl__default-table-name.mjs +2 -0
- package/dist/contract-psl__diagnostics.d.mts +12 -0
- package/dist/contract-psl__diagnostics.d.mts.map +1 -0
- package/dist/contract-psl__diagnostics.mjs +2 -0
- package/dist/contract-psl__map-names.d.mts +16 -0
- package/dist/contract-psl__map-names.d.mts.map +1 -0
- package/dist/contract-psl__map-names.mjs +21 -0
- package/dist/contract-psl__map-names.mjs.map +1 -0
- package/dist/contract-psl__provider.d.mts +3 -3
- package/dist/contract-psl__provider.d.mts.map +1 -1
- package/dist/contract-psl__provider.mjs +95 -46
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +5 -5
- package/dist/contract-ts.mjs +5 -4
- package/dist/contract-ts__config-types.d.mts +1 -1
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +4 -4
- package/dist/contract-ts__contract-builder.mjs +4 -3
- package/dist/{contract-view-BMR5IWk4.mjs → contract-view-DqpzeYeE.mjs} +2 -2
- package/dist/contract-view-DqpzeYeE.mjs.map +1 -0
- package/dist/{contract-view-CPHxoAEX.d.mts → contract-view-DuB35or0.d.mts} +3 -3
- package/dist/contract-view-DuB35or0.d.mts.map +1 -0
- package/dist/contract.d.mts +30 -28
- package/dist/contract.mjs +23 -18
- package/dist/contract__authored-check-naming.d.mts +1 -1
- package/dist/contract__authored-check-naming.mjs +1 -1
- package/dist/contract__canonicalization-hooks.d.mts +1 -1
- package/dist/contract__canonicalization-hooks.mjs +1 -1
- package/dist/contract__contract-view.d.mts +1 -1
- package/dist/contract__contract-view.mjs +1 -1
- package/dist/contract__data-type-support.d.mts +2 -0
- package/dist/contract__data-type-support.mjs +2 -0
- package/dist/contract__data-type.d.mts +2 -0
- package/dist/contract__data-type.mjs +3 -0
- package/dist/contract__entity-handle-lowering-hook.d.mts +2 -2
- package/dist/contract__entity-handle-lowering-hook.mjs +2 -2
- package/dist/contract__entity-kinds.d.mts +1 -1
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/contract__factories.d.mts +1 -1
- package/dist/contract__factories.mjs +1 -1
- package/dist/contract__foreign-key-materialization.d.mts +2 -2
- package/dist/contract__foreign-key-materialization.mjs +3 -2
- package/dist/contract__index-naming.d.mts +2 -2
- package/dist/contract__index-naming.mjs +2 -2
- package/dist/contract__index-type-validation.d.mts +2 -2
- package/dist/contract__index-type-validation.mjs +1 -1
- package/dist/contract__index-types.d.mts +3 -3
- package/dist/contract__index-types.mjs +2 -2
- package/dist/contract__referential-action-sql.d.mts +1 -1
- package/dist/contract__referential-action-sql.mjs +1 -1
- package/dist/contract__resolve-storage-table.d.mts +1 -1
- package/dist/contract__resolve-storage-table.mjs +1 -1
- package/dist/contract__sql-expression.d.mts +2 -0
- package/dist/contract__sql-expression.mjs +2 -0
- package/dist/contract__types.d.mts +12 -12
- package/dist/contract__types.mjs +4 -4
- package/dist/contract__validators.d.mts +2 -2
- package/dist/contract__validators.mjs +3 -3
- package/dist/contract__value-set-derivation-hook.d.mts +1 -1
- package/dist/contract__value-set-derivation-hook.mjs +1 -1
- package/dist/control-BK50zF6c.mjs +2721 -0
- package/dist/control-BK50zF6c.mjs.map +1 -0
- package/dist/control-ChAUdOOu.d.mts +1416 -0
- package/dist/control-ChAUdOOu.d.mts.map +1 -0
- package/dist/{control-adapter-C99J7aEF-B7eQd7vD.d.mts → control-adapter-Bn0uhplA-BzP2uPqJ.d.mts} +27 -44
- package/dist/control-adapter-Bn0uhplA-BzP2uPqJ.d.mts.map +1 -0
- package/dist/control-adapter-NZ2kKc4x.d.mts +13 -0
- package/dist/control-adapter-NZ2kKc4x.d.mts.map +1 -0
- package/dist/control-adapter-SlQkTEwT.mjs +16 -0
- package/dist/control-adapter-SlQkTEwT.mjs.map +1 -0
- package/dist/data-type-BFSpaotu.mjs +52 -0
- package/dist/data-type-BFSpaotu.mjs.map +1 -0
- package/dist/data-type-DJIvKQHf.d.mts +158 -0
- package/dist/data-type-DJIvKQHf.d.mts.map +1 -0
- package/dist/data-type-support-BhSoPUFj.mjs +9 -0
- package/dist/data-type-support-BhSoPUFj.mjs.map +1 -0
- package/dist/data-type-support-CXpA0ex-.d.mts +7 -0
- package/dist/data-type-support-CXpA0ex-.d.mts.map +1 -0
- package/dist/{db-D18PrXKW-DvTv4JFn.d.mts → db-D1d75IvM-D4mRDC6w.d.mts} +123 -128
- package/dist/db-D1d75IvM-D4mRDC6w.d.mts.map +1 -0
- package/dist/{ddl-types-CXx4vPz6-BsgrnSUY.d.mts → ddl-types-By5mT2_S-CdaaFvsX.d.mts} +24 -29
- package/dist/ddl-types-By5mT2_S-CdaaFvsX.d.mts.map +1 -0
- package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts +39 -0
- package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts.map +1 -0
- package/dist/default-table-name-BfFY8qYR-CWZFDX6v.mjs +9 -0
- package/dist/default-table-name-BfFY8qYR-CWZFDX6v.mjs.map +1 -0
- package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs +1508 -0
- package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs.map +1 -0
- package/dist/{derived-checks-DPdD01O0-DGqOFjs6.d.mts → derived-checks-DpPkO6Dt-9U9UJZOo.d.mts} +4 -4
- package/dist/derived-checks-DpPkO6Dt-9U9UJZOo.d.mts.map +1 -0
- package/dist/diagnostics-RHJxoiIk.mjs +23 -0
- package/dist/diagnostics-RHJxoiIk.mjs.map +1 -0
- package/dist/{diff-DbTNVm2f.d.mts → diff-1qHOLoUB.d.mts} +23 -10
- package/dist/diff-1qHOLoUB.d.mts.map +1 -0
- package/dist/diff-C1rFOhek.mjs +21 -0
- package/dist/diff-C1rFOhek.mjs.map +1 -0
- package/dist/{dist-ZK6oeI5e.mjs → dist-C8Y-PPuE.mjs} +36 -212
- package/dist/dist-C8Y-PPuE.mjs.map +1 -0
- package/dist/{dist-C_q1_QR9.mjs → dist-CHz1hF8M.mjs} +2 -2
- package/dist/dist-CHz1hF8M.mjs.map +1 -0
- package/dist/{dist-x6jvtkKM.mjs → dist-CMDXybwm.mjs} +2 -2
- package/dist/dist-CMDXybwm.mjs.map +1 -0
- package/dist/{driver-types-BQtRkOJ0-Bv2RPSfr.d.mts → driver-types-DRsYeq3j-BimeCnUk.d.mts} +11 -2
- package/dist/driver-types-DRsYeq3j-BimeCnUk.d.mts.map +1 -0
- package/dist/entity-handle-lowering-hook-BJZSlVVF.mjs +16 -0
- package/dist/entity-handle-lowering-hook-BJZSlVVF.mjs.map +1 -0
- package/dist/{entity-handle-lowering-hook-CIvRKBfa.d.mts → entity-handle-lowering-hook-BuvLtgFi.d.mts} +8 -11
- package/dist/entity-handle-lowering-hook-BuvLtgFi.d.mts.map +1 -0
- package/dist/{entity-kinds-B5cUFU22.d.mts → entity-kinds-BPG2xCZV.d.mts} +7 -7
- package/dist/entity-kinds-BPG2xCZV.d.mts.map +1 -0
- package/dist/{entity-kinds-D7vwoN_T-CCBwFJy0.mjs → entity-kinds-JR5SAm5h-DOH6VUtL.mjs} +31 -28
- package/dist/entity-kinds-JR5SAm5h-DOH6VUtL.mjs.map +1 -0
- package/dist/{errors-B5g0xWro-mWH2C07F.mjs → errors-B5g0xWro-C8plbqga.mjs} +2 -2
- package/dist/errors-B5g0xWro-C8plbqga.mjs.map +1 -0
- package/dist/errors.d.mts +1 -1
- package/dist/errors.d.mts.map +1 -1
- package/dist/errors.mjs +1 -1
- package/dist/exports-C3wGYtID-D65DEUTC.mjs +2389 -0
- package/dist/exports-C3wGYtID-D65DEUTC.mjs.map +1 -0
- package/dist/{expression-FJK6Ar-d.d.mts → expression-6ld_ZQL6-fOuazzzm.d.mts} +37 -16
- package/dist/expression-6ld_ZQL6-fOuazzzm.d.mts.map +1 -0
- package/dist/expression-CieaNuRM-B1uVqxwd.d.mts +22 -0
- package/dist/expression-CieaNuRM-B1uVqxwd.d.mts.map +1 -0
- package/dist/expression-D8HstQiB.d.mts +2 -0
- package/dist/{expression-CX5mTA-z.mjs → expression-impl-B-XNINxr-BhN2sysZ.mjs} +41 -18
- package/dist/expression-impl-B-XNINxr-BhN2sysZ.mjs.map +1 -0
- package/dist/{factories-SVor5xIT.mjs → factories-Crobuxwn.mjs} +27 -20
- package/dist/factories-Crobuxwn.mjs.map +1 -0
- package/dist/{factories-P3qBQhO-.d.mts → factories-DbNP9qfs.d.mts} +16 -10
- package/dist/factories-DbNP9qfs.d.mts.map +1 -0
- package/dist/family.d.mts +17 -13
- package/dist/family.mjs +17 -12
- package/dist/family__control-adapter.d.mts +3 -3
- package/dist/family__control-adapter.mjs +2 -1
- package/dist/family__control.d.mts +5 -4
- package/dist/family__control.mjs +4 -4
- package/dist/family__diff.d.mts +2 -3
- package/dist/family__diff.mjs +2 -2
- package/dist/family__ir.d.mts +1 -1
- package/dist/family__ir.mjs +2 -2
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__migration.mjs +1 -1
- package/dist/family__pack.d.mts +2 -249
- package/dist/family__pack.mjs +3 -18
- package/dist/family__psl-build.d.mts +3 -0
- package/dist/family__psl-build.mjs +3 -0
- package/dist/family__psl-infer.d.mts +2 -2
- package/dist/family__psl-infer.mjs +2 -2
- package/dist/family__runtime.d.mts +2 -2
- package/dist/family__runtime.mjs +2 -2
- package/dist/family__verify.d.mts +1 -1
- package/dist/family__verify.mjs +1 -1
- package/dist/foreign-key-materialization-48P2V8on.d.mts +98 -0
- package/dist/foreign-key-materialization-48P2V8on.d.mts.map +1 -0
- package/dist/foreign-key-materialization-BM59w_Xg.mjs +287 -0
- package/dist/foreign-key-materialization-BM59w_Xg.mjs.map +1 -0
- package/dist/{foreign-key-C-iTPuRT-C9ip8zFx.d.mts → foreign-key-qkDFfG8t-TaK_GYWR.d.mts} +21 -5
- package/dist/foreign-key-qkDFfG8t-TaK_GYWR.d.mts.map +1 -0
- package/dist/functions-CsOoN7I3.mjs +88 -0
- package/dist/functions-CsOoN7I3.mjs.map +1 -0
- package/dist/functions-EW-RrRn3.d.mts +73 -0
- package/dist/functions-EW-RrRn3.d.mts.map +1 -0
- package/dist/generator-functions-D_qdqBV--Bq296cED.mjs +544 -0
- package/dist/generator-functions-D_qdqBV--Bq296cED.mjs.map +1 -0
- package/dist/index-7nHHQsAj.d.mts +606 -0
- package/dist/index-7nHHQsAj.d.mts.map +1 -0
- package/dist/{index-C5I8D-MB.d.mts → index-Nqc3OHR_.d.mts} +4 -5
- package/dist/index-Nqc3OHR_.d.mts.map +1 -0
- package/dist/index-equivalence-DswCiq5l-CGsyPP9B.mjs +109 -0
- package/dist/index-equivalence-DswCiq5l-CGsyPP9B.mjs.map +1 -0
- package/dist/{index-naming-DREt6js7-CRH27yUv.mjs → index-naming-BOcJT1B3-mG8Fd6KN.mjs} +35 -9
- package/dist/index-naming-BOcJT1B3-mG8Fd6KN.mjs.map +1 -0
- package/dist/{index-naming-Ct65z5Xk.d.mts → index-naming-Cs6wwia3.d.mts} +15 -5
- package/dist/index-naming-Cs6wwia3.d.mts.map +1 -0
- package/dist/index-reference-4wsdeB7v-DCwswK-q.d.mts +67 -0
- package/dist/index-reference-4wsdeB7v-DCwswK-q.d.mts.map +1 -0
- package/dist/index-reference-BQSrkRfT.mjs +55 -0
- package/dist/index-reference-BQSrkRfT.mjs.map +1 -0
- package/dist/index-reference-D8ewQRJr.d.mts +1 -0
- package/dist/index-type-validation-DJEMmmw0.mjs +42 -0
- package/dist/index-type-validation-DJEMmmw0.mjs.map +1 -0
- package/dist/index-type-validation-fGGwAHWc.d.mts +16 -0
- package/dist/index-type-validation-fGGwAHWc.d.mts.map +1 -0
- package/dist/index-types-H1O43iYT-BD0VwPqV.d.mts +66 -0
- package/dist/index-types-H1O43iYT-BD0VwPqV.d.mts.map +1 -0
- package/dist/index-types-pC_5vADQ-BOOBi14R.mjs +95 -0
- package/dist/index-types-pC_5vADQ-BOOBi14R.mjs.map +1 -0
- package/dist/index-types-snhtt_Fo.d.mts +1 -0
- package/dist/interpreter-D5qk4B---CG0C7kdx.mjs +2280 -0
- package/dist/interpreter-D5qk4B---CG0C7kdx.mjs.map +1 -0
- package/dist/{ir-Bghjt-FG.d.mts → ir-BvptQsFW.d.mts} +11 -5
- package/dist/ir-BvptQsFW.d.mts.map +1 -0
- package/dist/{ir-I-xciGUH.mjs → ir-DzsUDO8e.mjs} +2 -2
- package/dist/ir-DzsUDO8e.mjs.map +1 -0
- package/dist/{middleware-AhTz1BOW-th-Suxuf.d.mts → middleware-DHkW6pRr-DM6hd9iZ.d.mts} +5 -5
- package/dist/middleware-DHkW6pRr-DM6hd9iZ.d.mts.map +1 -0
- package/dist/middleware-gqy3l13N.d.mts +1 -0
- package/dist/{middleware-CMr4CHNz-DHIUdxlm.mjs → middleware-yBAfiVWn-DZO0vCRQ.mjs} +3 -3
- package/dist/middleware-yBAfiVWn-DZO0vCRQ.mjs.map +1 -0
- package/dist/{migration-CK4oePIo.mjs → migration-BJQjkqFz.mjs} +4 -4
- package/dist/migration-BJQjkqFz.mjs.map +1 -0
- package/dist/{migration-CjDRZNep.d.mts → migration-Cxmpzaz0.d.mts} +6 -6
- package/dist/migration-Cxmpzaz0.d.mts.map +1 -0
- package/dist/{naming-CV9j2pXl-KARaDReS.d.mts → naming-BcD36g9T-Mfe_xGGL.d.mts} +9 -14
- package/dist/naming-BcD36g9T-Mfe_xGGL.d.mts.map +1 -0
- package/dist/{naming-DKr4TJd7-Cszhq9RV.mjs → naming-bM5qm5PY-jOg3JFMb.mjs} +20 -31
- package/dist/naming-bM5qm5PY-jOg3JFMb.mjs.map +1 -0
- package/dist/{ddl-types-BGdnAbXo-DKPHPUGx.mjs → opaque-sql-Dset3kln-CtsPDTXn.mjs} +24 -11
- package/dist/opaque-sql-Dset3kln-CtsPDTXn.mjs.map +1 -0
- package/dist/operations.d.mts +1 -1
- package/dist/operations.mjs +1 -1
- package/dist/orm-client.d.mts +817 -267
- package/dist/orm-client.d.mts.map +1 -1
- package/dist/orm-client.mjs +4719 -2942
- package/dist/orm-client.mjs.map +1 -1
- package/dist/pack-DA8HZ2mo.d.mts +535 -0
- package/dist/pack-DA8HZ2mo.d.mts.map +1 -0
- package/dist/pack-gSvGQWqs.mjs +80 -0
- package/dist/pack-gSvGQWqs.mjs.map +1 -0
- package/dist/{plan-CDxduYaN-pLIyyJaB.d.mts → plan-Cr4azjnG-CuL8FqXC.d.mts} +12 -8
- package/dist/plan-Cr4azjnG-CuL8FqXC.d.mts.map +1 -0
- package/dist/{plan-Dh0LbYIv-Crx5-ThG.mjs → plan-Dh0LbYIv-ubBSdUgl.mjs} +2 -2
- package/dist/plan-Dh0LbYIv-ubBSdUgl.mjs.map +1 -0
- package/dist/plan-Di6Gs2JD.d.mts +2 -0
- package/dist/psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs +42 -0
- package/dist/psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs.map +1 -0
- package/dist/psl-build-DFBG6vhz.mjs +426 -0
- package/dist/psl-build-DFBG6vhz.mjs.map +1 -0
- package/dist/psl-build-RelubU2E.d.mts +112 -0
- package/dist/psl-build-RelubU2E.d.mts.map +1 -0
- package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts +24 -0
- package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts.map +1 -0
- package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs +1960 -0
- package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs.map +1 -0
- package/dist/psl-infer--g4i84Go.mjs +201 -0
- package/dist/psl-infer--g4i84Go.mjs.map +1 -0
- package/dist/psl-infer-DzoxPZGd.d.mts +80 -0
- package/dist/psl-infer-DzoxPZGd.d.mts.map +1 -0
- package/dist/psl-names-C3cwe0rg-D1CTmC3a.mjs +66 -0
- package/dist/psl-names-C3cwe0rg-D1CTmC3a.mjs.map +1 -0
- package/dist/{query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts → query-lane-context-BCEoKy0_-CzmyavC9.d.mts} +20 -49
- package/dist/query-lane-context-BCEoKy0_-CzmyavC9.d.mts.map +1 -0
- package/dist/query-lane-context-VqH0mS9B.d.mts +1 -0
- package/dist/{referential-action-sql-DJ9ps6-S.d.mts → referential-action-sql-B2vKoUK6.d.mts} +3 -3
- package/dist/referential-action-sql-B2vKoUK6.d.mts.map +1 -0
- package/dist/{referential-action-sql-DSqkrySN.mjs → referential-action-sql-BLzCtTi8.mjs} +2 -2
- package/dist/referential-action-sql-BLzCtTi8.mjs.map +1 -0
- package/dist/relational-core.d.mts +14 -13
- package/dist/relational-core.mjs +8 -8
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +2 -2
- package/dist/relational-core__aggregate-descriptor-registry.d.mts.map +1 -1
- package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
- package/dist/relational-core__ast.d.mts +5 -5
- package/dist/relational-core__ast.mjs +5 -5
- package/dist/relational-core__codec-descriptor-registry.d.mts +7 -8
- package/dist/relational-core__codec-descriptor-registry.d.mts.map +1 -1
- package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
- package/dist/relational-core__collection-methods.d.mts +3 -0
- package/dist/relational-core__contract-free.d.mts +18 -8
- package/dist/relational-core__contract-free.d.mts.map +1 -1
- package/dist/relational-core__contract-free.mjs +26 -10
- package/dist/relational-core__contract-free.mjs.map +1 -1
- package/dist/relational-core__expression.d.mts +4 -2
- package/dist/relational-core__expression.mjs +2 -2
- package/dist/relational-core__functions.d.mts +2 -0
- package/dist/relational-core__functions.mjs +2 -0
- package/dist/relational-core__index-reference.d.mts +3 -0
- package/dist/relational-core__index-reference.mjs +2 -0
- package/dist/relational-core__middleware.d.mts +2 -2
- package/dist/relational-core__middleware.mjs +1 -1
- package/dist/relational-core__plan.d.mts +4 -4
- package/dist/relational-core__plan.mjs +1 -1
- package/dist/relational-core__query-lane-context.d.mts +3 -3
- package/dist/relational-core__types.d.mts +2 -2
- package/dist/{resolve-storage-table-DZsfnzeW.mjs → resolve-storage-table-BHLQsOza.mjs} +3 -3
- package/dist/resolve-storage-table-BHLQsOza.mjs.map +1 -0
- package/dist/{resolve-storage-table-Nyrgk4h8.d.mts → resolve-storage-table-DCqtmnSU.d.mts} +4 -4
- package/dist/resolve-storage-table-DCqtmnSU.d.mts.map +1 -0
- package/dist/{runtime-tIHpGCcG.mjs → runtime-6tH1yOxK.mjs} +6 -6
- package/dist/runtime-6tH1yOxK.mjs.map +1 -0
- package/dist/{runtime-DpKF2Yu2.d.mts → runtime-CF6rAlE5.d.mts} +7 -8
- package/dist/runtime-CF6rAlE5.d.mts.map +1 -0
- package/dist/runtime.d.mts +5 -5
- package/dist/runtime.mjs +2 -1799
- package/dist/runtime__internal__prepared-query.d.mts +2 -2
- package/dist/runtime__internal__prepared-query.mjs +2 -2
- package/dist/{schema-differ-DpG_gnur-DFAtGezx.d.mts → schema-differ-DmP74bB8-tqHKiJ88.d.mts} +6 -6
- package/dist/schema-differ-DmP74bB8-tqHKiJ88.d.mts.map +1 -0
- package/dist/schema-ir.d.mts +2 -2
- package/dist/schema-ir.mjs +2 -2
- package/dist/schema-ir__naming.d.mts +1 -1
- package/dist/schema-ir__naming.mjs +1 -1
- package/dist/schema-ir__types.d.mts +3 -3
- package/dist/schema-ir__types.mjs +2 -2
- package/dist/{schema-verify-C_PEdlAr-Dxxjm6EM.mjs → schema-verify-C3wbdviw-DMjIubOr.mjs} +50 -8
- package/dist/schema-verify-C3wbdviw-DMjIubOr.mjs.map +1 -0
- package/dist/{serialized-index-CrgG8ct1-DG3JpHc7.d.mts → serialized-index-CrgG8ct1-DKVJ7TDX.d.mts} +4 -4
- package/dist/serialized-index-CrgG8ct1-DKVJ7TDX.d.mts.map +1 -0
- package/dist/{serialized-index-nBTwanKy-_ddEK4tk.mjs → serialized-index-DjCCnXB1-DMA7BtO2.mjs} +4 -4
- package/dist/serialized-index-DjCCnXB1-DMA7BtO2.mjs.map +1 -0
- package/dist/{sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs → sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs} +41 -16
- package/dist/sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs.map +1 -0
- package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs +400 -0
- package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs.map +1 -0
- package/dist/{sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts → sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts} +3 -3
- package/dist/sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts.map +1 -0
- package/dist/sql-expression-B4BrhGPi.d.mts +62 -0
- package/dist/sql-expression-B4BrhGPi.d.mts.map +1 -0
- package/dist/sql-expression-CKgKznXS.mjs +137 -0
- package/dist/sql-expression-CKgKznXS.mjs.map +1 -0
- package/dist/{sql-index-ByAAE7K8-DKj2V86p.d.mts → sql-index-ByAAE7K8-Dqtn_vUL.d.mts} +4 -4
- package/dist/sql-index-ByAAE7K8-Dqtn_vUL.d.mts.map +1 -0
- package/dist/{sql-node-kEz6YFZo-v2F7delx.d.mts → sql-node-kEz6YFZo-1ogT6Cxt.d.mts} +2 -2
- package/dist/sql-node-kEz6YFZo-1ogT6Cxt.d.mts.map +1 -0
- package/dist/{sql-storage-8LqxeLAY-DH4DdUXx.d.mts → sql-storage-DeCAh5Hi-CEM-m8cs.d.mts} +19 -22
- package/dist/sql-storage-DeCAh5Hi-CEM-m8cs.d.mts.map +1 -0
- package/dist/{storage-table-DSeWszOL-CI-cItEK.d.mts → storage-table-Bf1ZjnxO-pUj6pyP0.d.mts} +17 -24
- package/dist/storage-table-Bf1ZjnxO-pUj6pyP0.d.mts.map +1 -0
- package/dist/{storage-table-ZzbR-xzQ-BRoTQE_2.mjs → storage-table-DDvN83mw-DkbBFmK9.mjs} +12 -9
- package/dist/storage-table-DDvN83mw-DkbBFmK9.mjs.map +1 -0
- package/dist/{storage-value-set-BGlj5Uus-CvZD--GG.d.mts → storage-value-set-BGlj5Uus-ny2k-0PA.d.mts} +3 -3
- package/dist/storage-value-set-BGlj5Uus-ny2k-0PA.d.mts.map +1 -0
- package/dist/transaction-state-BfXhs7D7-DhmbySW9.mjs +45 -0
- package/dist/transaction-state-BfXhs7D7-DhmbySW9.mjs.map +1 -0
- package/dist/transaction-state-DR3nKTmH-D29jmVE-.d.mts +115 -0
- package/dist/transaction-state-DR3nKTmH-D29jmVE-.d.mts.map +1 -0
- package/dist/types-B9wSEUsV.d.mts +1 -0
- package/dist/{types-CUsJrvEl.mjs → types-CTdSkl0s.mjs} +13 -6
- package/dist/types-CTdSkl0s.mjs.map +1 -0
- package/dist/types-CkAd8SWm.d.mts +57 -0
- package/dist/types-CkAd8SWm.d.mts.map +1 -0
- package/dist/{types-IqZMLrFC-DcH8v_u3.d.mts → types-Cq6ImLAB-RlU4jJAX.d.mts} +27 -41
- package/dist/types-Cq6ImLAB-RlU4jJAX.d.mts.map +1 -0
- package/dist/{types-YStFFkKs-D9UAmnON.d.mts → types-CuCxAQat-Dz8P4xyt.d.mts} +141 -86
- package/dist/types-CuCxAQat-Dz8P4xyt.d.mts.map +1 -0
- package/dist/types-DfKvtJwS-CrpWTGBJ.d.mts +273 -0
- package/dist/types-DfKvtJwS-CrpWTGBJ.d.mts.map +1 -0
- package/dist/{types-4YenawkP-CwaaZSid.mjs → types-DoyiTsjg-2YMhMJDA.mjs} +181 -80
- package/dist/types-DoyiTsjg-2YMhMJDA.mjs.map +1 -0
- package/dist/{types-v3qxLLxo-DCeKv7yY.d.mts → types-DriMIMNQ-BkbsW7w3.d.mts} +68 -34
- package/dist/types-DriMIMNQ-BkbsW7w3.d.mts.map +1 -0
- package/dist/{types-Dt4e_jC--COeP8xzN.mjs → types-NTQsD2MS-xcLtvKO9.mjs} +83 -17
- package/dist/types-NTQsD2MS-xcLtvKO9.mjs.map +1 -0
- package/dist/{types-CyxGtOOh-BggSa6Fe.d.mts → types-TXO7x1BA-CYYIY8NI.d.mts} +14 -14
- package/dist/types-TXO7x1BA-CYYIY8NI.d.mts.map +1 -0
- package/dist/types-ljUNyiWe.d.mts +1 -0
- package/dist/{unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts → unique-constraint-M5TlQnJQ-qX-maNUV.d.mts} +3 -3
- package/dist/unique-constraint-M5TlQnJQ-qX-maNUV.d.mts.map +1 -0
- package/dist/{util-DQQgv2j1-D6INZaRG.mjs → util-BBgcP3gI-CpL-0VuC.mjs} +12 -3
- package/dist/util-BBgcP3gI-CpL-0VuC.mjs.map +1 -0
- package/dist/{validators-CrWD6bSP.mjs → validators-BwA7ttZM.mjs} +0 -0
- package/dist/validators-BwA7ttZM.mjs.map +1 -0
- package/dist/{validators-Belo8QqM.d.mts → validators-FJs8HvFr.d.mts} +54 -16
- package/dist/validators-FJs8HvFr.d.mts.map +1 -0
- package/dist/{value-set-derivation-hook-BhgGVtw0.d.mts → value-set-derivation-hook-3E437jPU.d.mts} +3 -3
- package/dist/value-set-derivation-hook-3E437jPU.d.mts.map +1 -0
- package/dist/{value-set-derivation-hook-Di9JZ0X7.mjs → value-set-derivation-hook-HVaxhALD.mjs} +2 -2
- package/dist/value-set-derivation-hook-HVaxhALD.mjs.map +1 -0
- package/dist/{verify-u0UTdZgD-DSAaz9rW.mjs → verify-BVk5bjdH-DhKm6hB3.mjs} +8 -7
- package/dist/verify-BVk5bjdH-DhKm6hB3.mjs.map +1 -0
- package/dist/{verify-zDRnw0Rn.d.mts → verify-DHXbuZPB.d.mts} +2 -2
- package/dist/verify-DHXbuZPB.d.mts.map +1 -0
- package/package.json +33 -22
- package/dist/aggregate-descriptor-registry-C7hel5O7.mjs.map +0 -1
- package/dist/ast-HFcfQZr-.d.mts +0 -206
- package/dist/ast-HFcfQZr-.d.mts.map +0 -1
- package/dist/ast-Lbl4VwqP.mjs +0 -325
- package/dist/ast-Lbl4VwqP.mjs.map +0 -1
- package/dist/authored-check-naming-BWBe-PVE.d.mts.map +0 -1
- package/dist/authored-check-naming-Hf9990DV.mjs.map +0 -1
- package/dist/authoring-type-constructors-Blqoa2Ua-DqvNCOb2.mjs +0 -316
- package/dist/authoring-type-constructors-Blqoa2Ua-DqvNCOb2.mjs.map +0 -1
- package/dist/canonicalization-hooks-CYnW_sGn.d.mts.map +0 -1
- package/dist/canonicalization-hooks-dmXkOR4a.mjs.map +0 -1
- package/dist/check-constraint-B7qGu6rc-HvQjjX82.d.mts.map +0 -1
- package/dist/codec-descriptor-registry-N0dhtKaH.mjs.map +0 -1
- package/dist/config-types-D9fdKG3g.d.mts.map +0 -1
- package/dist/config-types-gAm54C_v.mjs.map +0 -1
- package/dist/contract-builder-CG_tGDbB.d.mts +0 -1360
- package/dist/contract-builder-CG_tGDbB.d.mts.map +0 -1
- package/dist/contract-builder-D4a5dT7j.mjs.map +0 -1
- package/dist/contract-errors-BCN6RVI5-5IHBF_lg.mjs.map +0 -1
- package/dist/contract-view-BMR5IWk4.mjs.map +0 -1
- package/dist/contract-view-CPHxoAEX.d.mts.map +0 -1
- package/dist/contract__pack-types.d.mts +0 -2
- package/dist/control-D3cB5YQp.mjs +0 -1267
- package/dist/control-D3cB5YQp.mjs.map +0 -1
- package/dist/control-DTLJ1WtZ.d.mts +0 -945
- package/dist/control-DTLJ1WtZ.d.mts.map +0 -1
- package/dist/control-adapter-C99J7aEF-B7eQd7vD.d.mts.map +0 -1
- package/dist/control-adapter-MZJQiwcE.d.mts +0 -1
- package/dist/db-D18PrXKW-DvTv4JFn.d.mts.map +0 -1
- package/dist/ddl-types-BGdnAbXo-DKPHPUGx.mjs.map +0 -1
- package/dist/ddl-types-CXx4vPz6-BsgrnSUY.d.mts.map +0 -1
- package/dist/derived-checks-DFMRmiAu-DGfB8aS4.mjs +0 -1057
- package/dist/derived-checks-DFMRmiAu-DGfB8aS4.mjs.map +0 -1
- package/dist/derived-checks-DPdD01O0-DGqOFjs6.d.mts.map +0 -1
- package/dist/diff-B16bL_IR.mjs +0 -13
- package/dist/diff-B16bL_IR.mjs.map +0 -1
- package/dist/diff-DbTNVm2f.d.mts.map +0 -1
- package/dist/dist-C_q1_QR9.mjs.map +0 -1
- package/dist/dist-ZK6oeI5e.mjs.map +0 -1
- package/dist/dist-x6jvtkKM.mjs.map +0 -1
- package/dist/driver-types-BQtRkOJ0-Bv2RPSfr.d.mts.map +0 -1
- package/dist/entity-handle-lowering-hook-CIvRKBfa.d.mts.map +0 -1
- package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs +0 -11
- package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs.map +0 -1
- package/dist/entity-kinds-B5cUFU22.d.mts.map +0 -1
- package/dist/entity-kinds-D7vwoN_T-CCBwFJy0.mjs.map +0 -1
- package/dist/errors-B5g0xWro-mWH2C07F.mjs.map +0 -1
- package/dist/expression-CX5mTA-z.mjs.map +0 -1
- package/dist/expression-FJK6Ar-d.d.mts.map +0 -1
- package/dist/factories-P3qBQhO-.d.mts.map +0 -1
- package/dist/factories-SVor5xIT.mjs.map +0 -1
- package/dist/family__pack.d.mts.map +0 -1
- package/dist/family__pack.mjs.map +0 -1
- package/dist/foreign-key-C-iTPuRT-C9ip8zFx.d.mts.map +0 -1
- package/dist/foreign-key-materialization-CkvOzJWy.d.mts +0 -65
- package/dist/foreign-key-materialization-CkvOzJWy.d.mts.map +0 -1
- package/dist/foreign-key-materialization-Cu7-7LHl.mjs +0 -73
- package/dist/foreign-key-materialization-Cu7-7LHl.mjs.map +0 -1
- package/dist/index-C-vQOMY_.d.mts +0 -84
- package/dist/index-C-vQOMY_.d.mts.map +0 -1
- package/dist/index-C5I8D-MB.d.mts.map +0 -1
- package/dist/index-naming-Ct65z5Xk.d.mts.map +0 -1
- package/dist/index-naming-DREt6js7-CRH27yUv.mjs.map +0 -1
- package/dist/index-type-validation-COH4d78M.mjs +0 -17
- package/dist/index-type-validation-COH4d78M.mjs.map +0 -1
- package/dist/index-type-validation-CZ5L2lli.d.mts +0 -10
- package/dist/index-type-validation-CZ5L2lli.d.mts.map +0 -1
- package/dist/index-types-CNhHgKHi.d.mts +0 -1
- package/dist/index-types-DJQ_xwaE.mjs +0 -40
- package/dist/index-types-DJQ_xwaE.mjs.map +0 -1
- package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts +0 -31
- package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts.map +0 -1
- package/dist/interpreter-DyiUUAWh-DYdjIpiE.mjs +0 -3680
- package/dist/interpreter-DyiUUAWh-DYdjIpiE.mjs.map +0 -1
- package/dist/ir-Bghjt-FG.d.mts.map +0 -1
- package/dist/ir-I-xciGUH.mjs.map +0 -1
- package/dist/lane-query-builder.d.mts +0 -236
- package/dist/lane-query-builder.d.mts.map +0 -1
- package/dist/lane-query-builder.mjs +0 -67
- package/dist/lane-query-builder.mjs.map +0 -1
- package/dist/middleware--TtoxUiW.d.mts +0 -1
- package/dist/middleware-AhTz1BOW-th-Suxuf.d.mts.map +0 -1
- package/dist/middleware-CMr4CHNz-DHIUdxlm.mjs.map +0 -1
- package/dist/migration-CK4oePIo.mjs.map +0 -1
- package/dist/migration-CjDRZNep.d.mts.map +0 -1
- package/dist/naming-CV9j2pXl-KARaDReS.d.mts.map +0 -1
- package/dist/naming-DKr4TJd7-Cszhq9RV.mjs.map +0 -1
- package/dist/pack-types-BcLTpwbv.d.mts +0 -14
- package/dist/pack-types-BcLTpwbv.d.mts.map +0 -1
- package/dist/plan-BHLdb0Z7.d.mts +0 -2
- package/dist/plan-CDxduYaN-pLIyyJaB.d.mts.map +0 -1
- package/dist/plan-Dh0LbYIv-Crx5-ThG.mjs.map +0 -1
- package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs +0 -22
- package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs.map +0 -1
- package/dist/prepared-statement-9QpkE6JG-C430V3MO.d.mts +0 -529
- package/dist/prepared-statement-9QpkE6JG-C430V3MO.d.mts.map +0 -1
- package/dist/psl-infer-CCAD6FWA.d.mts +0 -119
- package/dist/psl-infer-CCAD6FWA.d.mts.map +0 -1
- package/dist/psl-infer-Dk5kgKre.mjs +0 -362
- package/dist/psl-infer-Dk5kgKre.mjs.map +0 -1
- package/dist/query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts.map +0 -1
- package/dist/query-lane-context-XMvk7fmY.d.mts +0 -1
- package/dist/referential-action-sql-DJ9ps6-S.d.mts.map +0 -1
- package/dist/referential-action-sql-DSqkrySN.mjs.map +0 -1
- package/dist/resolve-storage-table-DZsfnzeW.mjs.map +0 -1
- package/dist/resolve-storage-table-Nyrgk4h8.d.mts.map +0 -1
- package/dist/runtime-DpKF2Yu2.d.mts.map +0 -1
- package/dist/runtime-tIHpGCcG.mjs.map +0 -1
- package/dist/runtime.mjs.map +0 -1
- package/dist/schema-differ-DpG_gnur-DFAtGezx.d.mts.map +0 -1
- package/dist/schema-verify-C_PEdlAr-Dxxjm6EM.mjs.map +0 -1
- package/dist/serialized-index-CrgG8ct1-DG3JpHc7.d.mts.map +0 -1
- package/dist/serialized-index-nBTwanKy-_ddEK4tk.mjs.map +0 -1
- package/dist/sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs.map +0 -1
- package/dist/sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts.map +0 -1
- package/dist/sql-index-ByAAE7K8-DKj2V86p.d.mts.map +0 -1
- package/dist/sql-node-kEz6YFZo-v2F7delx.d.mts.map +0 -1
- package/dist/sql-storage-8LqxeLAY-DH4DdUXx.d.mts.map +0 -1
- package/dist/storage-table-DSeWszOL-CI-cItEK.d.mts.map +0 -1
- package/dist/storage-table-ZzbR-xzQ-BRoTQE_2.mjs.map +0 -1
- package/dist/storage-value-set-BGlj5Uus-CvZD--GG.d.mts.map +0 -1
- package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs +0 -173
- package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs.map +0 -1
- package/dist/types-4YenawkP-CwaaZSid.mjs.map +0 -1
- package/dist/types-B0msOnBM.d.mts +0 -1
- package/dist/types-BDUG29Df-LE85dIXP.d.mts +0 -161
- package/dist/types-BDUG29Df-LE85dIXP.d.mts.map +0 -1
- package/dist/types-CUsJrvEl.mjs.map +0 -1
- package/dist/types-CyxGtOOh-BggSa6Fe.d.mts.map +0 -1
- package/dist/types-Dt4e_jC--COeP8xzN.mjs.map +0 -1
- package/dist/types-Dwcw0F8X.d.mts +0 -1
- package/dist/types-IqZMLrFC-DcH8v_u3.d.mts.map +0 -1
- package/dist/types-UcHa2cTe.d.mts +0 -17
- package/dist/types-UcHa2cTe.d.mts.map +0 -1
- package/dist/types-YStFFkKs-D9UAmnON.d.mts.map +0 -1
- package/dist/types-v3qxLLxo-DCeKv7yY.d.mts.map +0 -1
- package/dist/unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts.map +0 -1
- package/dist/util-DQQgv2j1-D6INZaRG.mjs.map +0 -1
- package/dist/validators-Belo8QqM.d.mts.map +0 -1
- package/dist/validators-CrWD6bSP.mjs.map +0 -1
- package/dist/value-set-derivation-hook-BhgGVtw0.d.mts.map +0 -1
- package/dist/value-set-derivation-hook-Di9JZ0X7.mjs.map +0 -1
- package/dist/verify-u0UTdZgD-DSAaz9rW.mjs.map +0 -1
- package/dist/verify-zDRnw0Rn.d.mts.map +0 -1
- /package/dist/{contract__pack-types.mjs → relational-core__collection-methods.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-ChAUdOOu.d.mts","names":[],"sources":["../../../../2-sql-family/9-family/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;UAmBU;WACC,kBAAkB,cAAc;WAChC,cAAc;;UAEf,iCAAiC,6BAA6B,kBAAkB,kBAAkB,kBAAkB,wBAAwB,kBAAkB,wBAAwB,SAAS,cAAc,yBAAyB;;;;;;;;;EAS9O,oBAAoB,wBAAwB;EAC5C,OAAO;aACI,QAAQ;aACR;aACA;aACA;aACA;MACP,QAAQ;;;;;;;;;;EAUZ,aAAa;aACF;aACA,QAAQ;aACR;aACA,qBAAqB,cAAc;MAC1C;;;;;;;;;;EAUJ,2BAA2B,OAAO,kBAAkB;;;;;;;;EAQpD,mBAAmB,OAAO;EAC1B,WAAW;aACA,QAAQ;aACR;MACP,QAAQ;EACZ,iBAAiB,UAAU,kBAAkB,QAAQ;EACrD,SAAS,KAAK,cAAc,SAAS,SAAS,0BAA0B,QAAQ;;;;;;EAMhF,WAAW;aACA,QAAQ;aACR;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,aAAa;aACF,QAAQ;aACR;aACA;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,iBAAiB;aACN,QAAQ;aACR;aACA;eACE;eACA;eACA;eACA;eACA;eACA;eACA;;MAET;EACJ,yCAAyC;EACzC,mBAAmB,qBAAqB,2BAA6B;EACrE,cAAc,WAAW;;;;cAIb,+BAA+B,+BAA+B;WACjE;WACA;WACA;WACA;WACA,UAAU;WACV,oBAAoB;WACpB;aACE;eACE;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;uBACA;;;;iBAIN;mBACE;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;;;;;eAKR;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;yBACA;;;;mBAIN;qBACE;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;;;qBAGJ;uBACE;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;6BAC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AS,wBAAwB,cAAc,QAAQ;;KAErG,oBAAoB;WACd,yBAAyB;;;;;iBAKnB,kBAAkB,OAAO,OAAO;WACtC,SAAS;WACT;GACR;WACQ,SAAS;WACT;gBACK,QAAQ;;UAEd;WACC,UAAU;WACV;;;UAGD;;EAER,SAAS,6CAA6C,eAAe,iBAAiB;;;;;iBAKvE,gBAAgB,oBAAoB;;;cAGvC,UAAU"}
|
package/dist/{control-adapter-C99J7aEF-B7eQd7vD.d.mts → control-adapter-Bn0uhplA-BzP2uPqJ.d.mts}
RENAMED
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./types-
|
|
3
|
-
import {
|
|
4
|
-
import { o as SqlExecuteRequest } from "./driver-types-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import "./types-
|
|
9
|
-
import {
|
|
1
|
+
import { j as SqlControlDriverInstance } from "./types-DfKvtJwS-CrpWTGBJ.mjs";
|
|
2
|
+
import "./types-CkAd8SWm.mjs";
|
|
3
|
+
import { gt as LoweredStatement, h as AnyQueryAst } from "./types-DriMIMNQ-BkbsW7w3.mjs";
|
|
4
|
+
import { o as SqlExecuteRequest } from "./driver-types-DRsYeq3j-BimeCnUk.mjs";
|
|
5
|
+
import { a as DdlNode, r as DdlColumn } from "./ddl-types-By5mT2_S-CdaaFvsX.mjs";
|
|
6
|
+
import { p as LowererContext } from "./ast-YEMe_B8z.mjs";
|
|
7
|
+
import { S as SqlSchemaIRNode } from "./types-CuCxAQat-Dz8P4xyt.mjs";
|
|
8
|
+
import "./types-ljUNyiWe.mjs";
|
|
9
|
+
import { ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
|
|
10
10
|
import { ControlAdapterInstance, ControlStack } from "@prisma/orm-framework/components/control";
|
|
11
|
-
//#region ../../../2-sql/9-family/dist/control-adapter-
|
|
12
|
-
//#region src/core/diff/sql-schema-diff.d.ts
|
|
13
|
-
/**
|
|
14
|
-
* Function type for normalizing raw database default expressions into ColumnDefault.
|
|
15
|
-
* Target-specific implementations handle database dialect differences.
|
|
16
|
-
*/
|
|
17
|
-
type DefaultNormalizer = (rawDefault: string, nativeType: string) => ColumnDefault | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Function type for normalizing schema native types to canonical form for comparison.
|
|
20
|
-
* Target-specific implementations handle dialect-specific type name variations
|
|
21
|
-
* (e.g., Postgres 'varchar' → 'character varying', 'timestamptz' normalization).
|
|
22
|
-
*/
|
|
23
|
-
type NativeTypeNormalizer = (nativeType: string) => string;
|
|
24
|
-
/**
|
|
25
|
-
* Compares two arrays of strings for equality (order-sensitive).
|
|
26
|
-
*/
|
|
27
|
-
declare function arraysEqual(a: readonly string[], b: readonly string[]): boolean;
|
|
28
|
-
//#endregion
|
|
11
|
+
//#region ../../../2-sql-family/9-family/dist/control-adapter-Bn0uhplA.d.mts
|
|
29
12
|
//#region src/core/control-adapter.d.ts
|
|
30
13
|
/**
|
|
31
14
|
* Structural interface for anything that can lower a SQL/DDL AST node to a
|
|
@@ -45,6 +28,10 @@ interface Lowerer {
|
|
|
45
28
|
*/
|
|
46
29
|
interface ExecuteRequestLowerer extends Lowerer {
|
|
47
30
|
lowerToExecuteRequest(ast: AnyQueryAst | DdlNode, context?: LowererContext<unknown>): Promise<SqlExecuteRequest>;
|
|
31
|
+
/**
|
|
32
|
+
* The `DEFAULT …` clause DDL writes for `column`'s default, or `''` when it has none or writes it another way, as an autoincrement column does. A literal default, and each element of a list default, is read by the column's codec first, so a value the codec refuses is `CONTRACT.DEFAULT_INVALID` naming `table` and the column. Every DDL statement that writes a column default writes this clause.
|
|
33
|
+
*/
|
|
34
|
+
renderColumnDefault(column: DdlColumn, table: string): Promise<string>;
|
|
48
35
|
}
|
|
49
36
|
/**
|
|
50
37
|
* SQL control adapter interface for control-plane operations.
|
|
@@ -84,9 +71,9 @@ interface SqlControlAdapter<TTarget extends string = string> extends ControlAdap
|
|
|
84
71
|
readLedger(driver: SqlControlDriverInstance<TTarget>, space?: string): Promise<readonly LedgerEntryRecord[]>;
|
|
85
72
|
/**
|
|
86
73
|
* Inserts the initial marker row for `space` (`INSERT` only). Fails when a
|
|
87
|
-
* row for that space already exists. Used by `
|
|
74
|
+
* row for that space already exists. Used by `signSpaces()` so concurrent first-time
|
|
88
75
|
* stamps cannot silently overwrite each other. `updated_at` is DB-side
|
|
89
|
-
* (`now()` / `
|
|
76
|
+
* (`now()` / `strftime('%Y-%m-%dT%H:%M:%fZ','now')`). Mirrors `MongoControlAdapter.initMarker`.
|
|
90
77
|
*/
|
|
91
78
|
insertMarker(driver: SqlControlDriverInstance<TTarget>, space: string, destination: {
|
|
92
79
|
readonly storageHash: string;
|
|
@@ -97,7 +84,7 @@ interface SqlControlAdapter<TTarget extends string = string> extends ControlAdap
|
|
|
97
84
|
* Writes the initial marker row for `space` as an upsert (`INSERT … ON
|
|
98
85
|
* CONFLICT (space) DO UPDATE SET …`), so re-stamping a space overwrites the
|
|
99
86
|
* existing row rather than failing. `updated_at` is stamped with a DB-side
|
|
100
|
-
* time expression (`now()` / `
|
|
87
|
+
* time expression (`now()` / `strftime('%Y-%m-%dT%H:%M:%fZ','now')`), never an app-side clock.
|
|
101
88
|
*/
|
|
102
89
|
initMarker(driver: SqlControlDriverInstance<TTarget>, space: string, destination: {
|
|
103
90
|
readonly storageHash: string;
|
|
@@ -131,6 +118,14 @@ interface SqlControlAdapter<TTarget extends string = string> extends ControlAdap
|
|
|
131
118
|
readonly operations: readonly unknown[];
|
|
132
119
|
readonly destinationContractJson?: unknown;
|
|
133
120
|
}): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* Runs `fn` in one transaction on `driver`: `BEGIN`, then `COMMIT` when `fn` resolves, or `ROLLBACK` and the error rethrown when it throws. The driver must send `BEGIN`, every statement `fn` sends through it and the final `COMMIT` or `ROLLBACK` over one database session; the Postgres and SQLite control drivers each hold one connection.
|
|
123
|
+
*/
|
|
124
|
+
withTransaction<T>(driver: SqlControlDriverInstance<TTarget>, fn: () => Promise<T>): Promise<T>;
|
|
125
|
+
/**
|
|
126
|
+
* Inside a transaction `withTransaction` opened, takes the one lock the migration runner holds while it reads and writes markers, and holds it until the transaction ends. The lock covers the marker table, so it is the same for every space. A target whose `withTransaction` already takes a lock that excludes the runner does nothing here.
|
|
127
|
+
*/
|
|
128
|
+
lockMarker(driver: SqlControlDriverInstance<TTarget>): Promise<void>;
|
|
134
129
|
/**
|
|
135
130
|
* Introspects a database schema and returns the target's schema-IR node.
|
|
136
131
|
*
|
|
@@ -149,18 +144,6 @@ interface SqlControlAdapter<TTarget extends string = string> extends ControlAdap
|
|
|
149
144
|
* @returns Promise resolving to the live database schema node
|
|
150
145
|
*/
|
|
151
146
|
introspect(driver: SqlControlDriverInstance<TTarget>, contract?: unknown, schema?: string): Promise<SqlSchemaIRNode>;
|
|
152
|
-
/**
|
|
153
|
-
* Optional target-specific normalizer for raw database default expressions.
|
|
154
|
-
* When provided, schema defaults (raw strings) are normalized before comparison
|
|
155
|
-
* with contract defaults (ColumnDefault objects) during schema verification.
|
|
156
|
-
*/
|
|
157
|
-
readonly normalizeDefault?: DefaultNormalizer;
|
|
158
|
-
/**
|
|
159
|
-
* Optional target-specific normalizer for schema native type names.
|
|
160
|
-
* When provided, schema native types (from introspection) are normalized
|
|
161
|
-
* before comparison with contract native types during schema verification.
|
|
162
|
-
*/
|
|
163
|
-
readonly normalizeNativeType?: NativeTypeNormalizer;
|
|
164
147
|
/**
|
|
165
148
|
* Ordered DDL queries that bootstrap marker/ledger control tables for migration
|
|
166
149
|
* runners. Postgres includes `CREATE SCHEMA`; SQLite does not.
|
|
@@ -188,5 +171,5 @@ interface SqlControlAdapterDescriptor<TTarget extends string = string> {
|
|
|
188
171
|
create(stack: ControlStack<'sql', TTarget>): SqlControlAdapter<TTarget>;
|
|
189
172
|
}
|
|
190
173
|
//#endregion
|
|
191
|
-
export { SqlControlAdapterDescriptor as
|
|
192
|
-
//# sourceMappingURL=control-adapter-
|
|
174
|
+
export { SqlControlAdapterDescriptor as i, Lowerer as n, SqlControlAdapter as r, ExecuteRequestLowerer as t };
|
|
175
|
+
//# sourceMappingURL=control-adapter-Bn0uhplA-BzP2uPqJ.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-adapter-Bn0uhplA-BzP2uPqJ.d.mts","names":[],"sources":["../../../../2-sql-family/9-family/dist/control-adapter-Bn0uhplA.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;UAaU;EACR,MAAM,KAAK,cAAc,SAAS,SAAS,0BAA0B;;;;;;;;UAQ7D,8BAA8B;EACtC,sBAAsB,KAAK,cAAc,SAAS,UAAU,0BAA0B,QAAQ;;;;EAI9F,oBAAoB,QAAQ,WAAW,gBAAgB;;;;;;;;UAQ/C,kBAAkB,yCAAyC,8BAA8B,UAAU;;;;;;;;;;;;;;;;EAgB3G,WAAW,QAAQ,yBAAyB,UAAU,gBAAgB,QAAQ;;;;;;;;EAQ9E,eAAe,QAAQ,yBAAyB,WAAW,QAAQ,oBAAoB;;;;;EAKvF,WAAW,QAAQ,yBAAyB,UAAU,iBAAiB,iBAAiB;;;;;;;EAOxF,aAAa,QAAQ,yBAAyB,UAAU,eAAe;aAC5D;aACA;aACA;MACP;;;;;;;EAOJ,WAAW,QAAQ,yBAAyB,UAAU,eAAe;aAC1D;aACA;aACA;MACP;;;;;;;;EAQJ,aAAa,QAAQ,yBAAyB,UAAU,eAAe,sBAAsB;aAClF;aACA;aACA;MACP;;;;;;;EAOJ,iBAAiB,QAAQ,yBAAyB,UAAU,eAAe;aAChE;aACA;aACA;aACA;aACA;aACA;aACA;MACP;;;;EAIJ,gBAAgB,GAAG,QAAQ,yBAAyB,UAAU,UAAU,QAAQ,KAAK,QAAQ;;;;EAI7F,WAAW,QAAQ,yBAAyB,WAAW;;;;;;;;;;;;;;;;;;EAkBvD,WAAW,QAAQ,yBAAyB,UAAU,oBAAoB,kBAAkB,QAAQ;;;;;EAKpG,yCAAyC;;;;;EAKzC,uCAAuC;;;;;;;;UAQ/B,4BAA4B;;;;;;;EAOpC,OAAO,OAAO,oBAAoB,WAAW,kBAAkB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { d as SqlColumnIRInput, i as ReportedSqlType } from "./types-CuCxAQat-Dz8P4xyt.mjs";
|
|
2
|
+
import "./types-ljUNyiWe.mjs";
|
|
3
|
+
import "./control-adapter-Bn0uhplA-BzP2uPqJ.mjs";
|
|
4
|
+
import { DataType } from "@prisma/orm-framework/components/codec";
|
|
5
|
+
//#region ../../../2-sql-family/9-family/dist/control-adapter.d.mts
|
|
6
|
+
//#region src/core/resolve-introspected-types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* The type an introspected column is stored as: the data type that claims its reported type, with its parameters in normal form, over `dataTypes`, the stack's declared data types in assembly order. Empty when no data type claims it. Each adapter spreads it into the column it builds. ADR 254.
|
|
9
|
+
*/
|
|
10
|
+
declare function resolveIntrospectedColumnType(reported: ReportedSqlType, dataTypes: readonly DataType[]): Pick<SqlColumnIRInput, 'storedType' | 'storedTypeParams'>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { resolveIntrospectedColumnType as t };
|
|
13
|
+
//# sourceMappingURL=control-adapter-NZ2kKc4x.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-adapter-NZ2kKc4x.d.mts","names":[],"sources":["../../../../2-sql-family/9-family/dist/control-adapter.d.mts"],"mappings":";;;;;;;;;iBAOiB,8BAA8B,UAAU,iBAAiB,oBAAoB,aAAa,KAAK"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { o as resolveReportedSqlType } from "./sql-data-type-D7M-YTTY-D2vRqDxn.mjs";
|
|
2
|
+
//#region ../../../2-sql-family/9-family/dist/control-adapter.mjs
|
|
3
|
+
/**
|
|
4
|
+
* The type an introspected column is stored as: the data type that claims its reported type, with its parameters in normal form, over `dataTypes`, the stack's declared data types in assembly order. Empty when no data type claims it. Each adapter spreads it into the column it builds. ADR 254.
|
|
5
|
+
*/
|
|
6
|
+
function resolveIntrospectedColumnType(reported, dataTypes) {
|
|
7
|
+
const resolved = resolveReportedSqlType(reported, dataTypes);
|
|
8
|
+
return resolved === void 0 ? {} : {
|
|
9
|
+
storedType: resolved.dataType,
|
|
10
|
+
storedTypeParams: resolved.typeParams
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { resolveIntrospectedColumnType as t };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=control-adapter-SlQkTEwT.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-adapter-SlQkTEwT.mjs","names":[],"sources":["../../../../2-sql-family/9-family/dist/control-adapter.mjs"],"sourcesContent":["import { resolveReportedSqlType } from \"@internal/sql-contract/data-type\";\n//#region src/core/resolve-introspected-types.ts\n/**\n* The type an introspected column is stored as: the data type that claims its reported type, with its parameters in normal form, over `dataTypes`, the stack's declared data types in assembly order. Empty when no data type claims it. Each adapter spreads it into the column it builds. ADR 254.\n*/\nfunction resolveIntrospectedColumnType(reported, dataTypes) {\n\tconst resolved = resolveReportedSqlType(reported, dataTypes);\n\treturn resolved === void 0 ? {} : {\n\t\tstoredType: resolved.dataType,\n\t\tstoredTypeParams: resolved.typeParams\n\t};\n}\n//#endregion\nexport { resolveIntrospectedColumnType };\n\n//# sourceMappingURL=control-adapter.mjs.map"],"mappings":";;;;;AAKA,SAAS,8BAA8B,UAAU,WAAW;CAC3D,MAAM,WAAW,uBAAuB,UAAU,SAAS;CAC3D,OAAO,aAAa,KAAK,IAAI,CAAC,IAAI;EACjC,YAAY,SAAS;EACrB,kBAAkB,SAAS;CAC5B;AACD"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { f as sqlDataType } from "./sql-data-type-D7M-YTTY-D2vRqDxn.mjs";
|
|
2
|
+
import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
3
|
+
import { dataTypeId } from "@prisma/orm-framework/components/codec";
|
|
4
|
+
import { type } from "arktype";
|
|
5
|
+
//#region ../../../2-sql-family/1-core/contract/dist/data-type.mjs
|
|
6
|
+
const SQL_RAW_DATA_TYPE_ID = dataTypeId("sql/raw");
|
|
7
|
+
const NAME = `(?:[A-Za-z0-9_]+|"(?:[^"]|"")+")`;
|
|
8
|
+
const TOKEN = `${NAME}(?:\\((?:[A-Za-z0-9_, ]|-(?=[0-9]))*\\))?`;
|
|
9
|
+
/**
|
|
10
|
+
* The texts a raw type may be: words and double-quoted names, with each double quote inside doubled, separated by single spaces, the first
|
|
11
|
+
* optionally after one schema name and a dot, each optionally followed by parentheses holding only
|
|
12
|
+
* letters, digits, underscores, commas, spaces and a minus sign before a digit, then at most one
|
|
13
|
+
* `[]`. Postgres prints a schema only for a type off the `search_path` that is not a base type.
|
|
14
|
+
*/
|
|
15
|
+
const RAW_TYPE_TEXT = new RegExp(`^(?:${NAME}\\.)?${TOKEN}(?: ${TOKEN})*(?:\\[\\])?$`);
|
|
16
|
+
/** Returns undefined when `text` may be written as a column's type, else the reason. */
|
|
17
|
+
function checkRawTypeText(text) {
|
|
18
|
+
return RAW_TYPE_TEXT.test(text) ? void 0 : "A raw type is one type name as the database catalog prints it, such as tsvector, double precision, geometry(Point,4326), app.email or \"MyType\"[]: words of letters, digits and underscores separated by single spaces, or double-quoted names with each double quote inside doubled; the first optionally after one schema name and a dot; each optionally followed by parentheses holding only letters, digits, underscores, commas, spaces and a minus sign before a digit; and at most one trailing [].";
|
|
19
|
+
}
|
|
20
|
+
const sqlRawParams = type({ sql: "string" }).narrow((params, ctx) => {
|
|
21
|
+
const refused = checkRawTypeText(params.sql);
|
|
22
|
+
return refused === void 0 || ctx.reject({
|
|
23
|
+
path: ["sql"],
|
|
24
|
+
message: refused
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* The refusal of a literal value of a raw column, which has none: Prisma does not interpret a raw
|
|
29
|
+
* column's values. Every literal reaches it through the data type's reader.
|
|
30
|
+
*/
|
|
31
|
+
function refuseLiteralValue() {
|
|
32
|
+
throw structuredError("CONTRACT.LITERAL_VALUES_ABSENT", "A raw column has no literal values, so its default cannot be a literal. Write the default as a SQL expression: sql`...`.", {
|
|
33
|
+
why: "Prisma does not interpret the values of a raw column, so it cannot write or compare a literal of its type.",
|
|
34
|
+
fix: "Write the default as a sql expression, such as @default(sql`...`) in a schema or .default(sql`...`) in TypeScript."
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The data type of a column whose type no other data type claims. Its `sql` parameter is the type
|
|
39
|
+
* exactly as the database catalog prints it, which migrations write and verify compares. It claims
|
|
40
|
+
* no reported type, so introspection never reads a column as raw. It has no literal values: it
|
|
41
|
+
* declares no casts, and its reader refuses every value. ADR 273.
|
|
42
|
+
*/
|
|
43
|
+
const sqlRawDataType = sqlDataType(SQL_RAW_DATA_TYPE_ID, {
|
|
44
|
+
params: sqlRawParams,
|
|
45
|
+
nameIsCatalogText: true,
|
|
46
|
+
render: ({ sql }) => sql,
|
|
47
|
+
read: refuseLiteralValue
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
export { checkRawTypeText as n, sqlRawDataType as r, SQL_RAW_DATA_TYPE_ID as t };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=data-type-BFSpaotu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-type-BFSpaotu.mjs","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/data-type.mjs"],"sourcesContent":["import { _ as unquotedSqlBaseName, a as renderSqlTypeName, c as sameSqlColumnType, d as sqlColumnLength, f as sqlDataType, g as sqlStorageTypeOfCodec, h as sqlStorageTypeId, i as renderSqlCatalogText, l as sqlBaseName, m as sqlStorageType, n as isSqlDataType, o as resolveReportedSqlType, p as sqlDataTypeOfCodec, r as nameIsCatalogText, s as resolveWrittenSqlTypes, t as findSqlDataTypeCollision, u as sqlCodecColumnLength, v as unquotedSqlBaseNameOfCodec, y as validateSqlTypeParams } from \"./sql-data-type-D7M-YTTY.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { dataTypeId } from \"@internal/framework-components/codec\";\nimport { type } from \"arktype\";\n//#region src/sql-raw.ts\nconst SQL_RAW_DATA_TYPE_ID = dataTypeId(\"sql/raw\");\nconst NAME = `(?:[A-Za-z0-9_]+|\"(?:[^\"]|\"\")+\")`;\nconst TOKEN = `${NAME}(?:\\\\((?:[A-Za-z0-9_, ]|-(?=[0-9]))*\\\\))?`;\n/**\n* The texts a raw type may be: words and double-quoted names, with each double quote inside doubled, separated by single spaces, the first\n* optionally after one schema name and a dot, each optionally followed by parentheses holding only\n* letters, digits, underscores, commas, spaces and a minus sign before a digit, then at most one\n* `[]`. Postgres prints a schema only for a type off the `search_path` that is not a base type.\n*/\nconst RAW_TYPE_TEXT = new RegExp(`^(?:${NAME}\\\\.)?${TOKEN}(?: ${TOKEN})*(?:\\\\[\\\\])?$`);\n/** Returns undefined when `text` may be written as a column's type, else the reason. */\nfunction checkRawTypeText(text) {\n\treturn RAW_TYPE_TEXT.test(text) ? void 0 : \"A raw type is one type name as the database catalog prints it, such as tsvector, double precision, geometry(Point,4326), app.email or \\\"MyType\\\"[]: words of letters, digits and underscores separated by single spaces, or double-quoted names with each double quote inside doubled; the first optionally after one schema name and a dot; each optionally followed by parentheses holding only letters, digits, underscores, commas, spaces and a minus sign before a digit; and at most one trailing [].\";\n}\nconst sqlRawParams = type({ sql: \"string\" }).narrow((params, ctx) => {\n\tconst refused = checkRawTypeText(params.sql);\n\treturn refused === void 0 || ctx.reject({\n\t\tpath: [\"sql\"],\n\t\tmessage: refused\n\t});\n});\n/**\n* The refusal of a literal value of a raw column, which has none: Prisma does not interpret a raw\n* column's values. Every literal reaches it through the data type's reader.\n*/\nfunction refuseLiteralValue() {\n\tthrow structuredError(\"CONTRACT.LITERAL_VALUES_ABSENT\", \"A raw column has no literal values, so its default cannot be a literal. Write the default as a SQL expression: sql`...`.\", {\n\t\twhy: \"Prisma does not interpret the values of a raw column, so it cannot write or compare a literal of its type.\",\n\t\tfix: \"Write the default as a sql expression, such as @default(sql`...`) in a schema or .default(sql`...`) in TypeScript.\"\n\t});\n}\n/**\n* The data type of a column whose type no other data type claims. Its `sql` parameter is the type\n* exactly as the database catalog prints it, which migrations write and verify compares. It claims\n* no reported type, so introspection never reads a column as raw. It has no literal values: it\n* declares no casts, and its reader refuses every value. ADR 273.\n*/\nconst sqlRawDataType = sqlDataType(SQL_RAW_DATA_TYPE_ID, {\n\tparams: sqlRawParams,\n\tnameIsCatalogText: true,\n\trender: ({ sql }) => sql,\n\tread: refuseLiteralValue\n});\n//#endregion\nexport { SQL_RAW_DATA_TYPE_ID, checkRawTypeText, findSqlDataTypeCollision, isSqlDataType, nameIsCatalogText, renderSqlCatalogText, renderSqlTypeName, resolveReportedSqlType, resolveWrittenSqlTypes, sameSqlColumnType, sqlBaseName, sqlCodecColumnLength, sqlColumnLength, sqlDataType, sqlDataTypeOfCodec, sqlRawDataType, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateSqlTypeParams };\n\n//# sourceMappingURL=data-type.mjs.map"],"mappings":";;;;;AAKA,MAAM,uBAAuB,WAAW,SAAS;AACjD,MAAM,OAAO;AACb,MAAM,QAAQ,GAAG,KAAK;;;;;;;AAOtB,MAAM,gBAAgB,IAAI,OAAO,OAAO,KAAK,OAAO,MAAM,MAAM,MAAM,eAAe;;AAErF,SAAS,iBAAiB,MAAM;CAC/B,OAAO,cAAc,KAAK,IAAI,IAAI,KAAK,IAAI;AAC5C;AACA,MAAM,eAAe,KAAK,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,QAAQ,QAAQ;CACpE,MAAM,UAAU,iBAAiB,OAAO,GAAG;CAC3C,OAAO,YAAY,KAAK,KAAK,IAAI,OAAO;EACvC,MAAM,CAAC,KAAK;EACZ,SAAS;CACV,CAAC;AACF,CAAC;;;;;AAKD,SAAS,qBAAqB;CAC7B,MAAM,gBAAgB,kCAAkC,4HAA4H;EACnL,KAAK;EACL,KAAK;CACN,CAAC;AACF;;;;;;;AAOA,MAAM,iBAAiB,YAAY,sBAAsB;CACxD,QAAQ;CACR,mBAAmB;CACnB,SAAS,EAAE,UAAU;CACrB,MAAM;AACP,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { i as ReportedSqlType } from "./types-CuCxAQat-Dz8P4xyt.mjs";
|
|
2
|
+
import "./types-ljUNyiWe.mjs";
|
|
3
|
+
import { DataType, DataTypeId, DataTypeLookup, DataTypeSpec, TypeLookups } from "@prisma/orm-framework/components/codec";
|
|
4
|
+
import { Type } from "arktype";
|
|
5
|
+
//#region ../../../2-sql-family/1-core/contract/dist/data-type.d.mts
|
|
6
|
+
//#region src/sql-data-type.d.ts
|
|
7
|
+
/** One way a database type is written or reported. */
|
|
8
|
+
interface SqlTypeText {
|
|
9
|
+
/** Lower case with single spaces; `{name}` stands for the parameter `name`. */
|
|
10
|
+
readonly text: string;
|
|
11
|
+
/** A migration writes this text. */
|
|
12
|
+
readonly written?: true;
|
|
13
|
+
/** The database catalog prints this text. */
|
|
14
|
+
readonly catalog?: true;
|
|
15
|
+
/** The exact characters written and printed, when they differ from `text` in letter case only. */
|
|
16
|
+
readonly display?: string;
|
|
17
|
+
}
|
|
18
|
+
type SqlTypeParams = Readonly<Record<string, unknown>>;
|
|
19
|
+
interface SqlDataTypeSpec<Params extends SqlTypeParams = SqlTypeParams> extends Omit<DataTypeSpec, 'normalize'> {
|
|
20
|
+
readonly params?: Type<Params>;
|
|
21
|
+
readonly texts?: readonly SqlTypeText[];
|
|
22
|
+
/** The kind of reported type this data type claims, instead of any text. */
|
|
23
|
+
readonly claimsKind?: string;
|
|
24
|
+
/** The id of the type a column of this type is stored as, with the same parameters. A type stored as another declares no texts. */
|
|
25
|
+
readonly storedAs?: DataTypeId;
|
|
26
|
+
readonly normalize?: (params: Params) => Params;
|
|
27
|
+
/** The type's name from its parameters, for a type that claims a kind or whose name is its catalog text. */
|
|
28
|
+
readonly render?: (params: Params) => string;
|
|
29
|
+
readonly fromReported?: (reported: ReportedSqlType) => Params;
|
|
30
|
+
/**
|
|
31
|
+
* The name `render` writes is the text the database catalog prints, exactly. Such a type has no
|
|
32
|
+
* texts and claims no kind; it has no base name; verify compares its name with the reported text
|
|
33
|
+
* unchanged; and a target writes and sends it as given. ADR 273.
|
|
34
|
+
*/
|
|
35
|
+
readonly nameIsCatalogText?: true;
|
|
36
|
+
}
|
|
37
|
+
interface SqlDataTypeFacts<Params extends SqlTypeParams = SqlTypeParams> {
|
|
38
|
+
readonly texts: readonly SqlTypeText[];
|
|
39
|
+
readonly claimsKind: string | undefined;
|
|
40
|
+
readonly storedAs: DataTypeId | undefined;
|
|
41
|
+
/** The normal form of `params`; parameters the type's schema refuses are returned as written. */
|
|
42
|
+
readonly normalize: (params: Params) => Params;
|
|
43
|
+
readonly render: ((params: Params) => string) | undefined;
|
|
44
|
+
readonly fromReported: ((reported: ReportedSqlType) => Params) | undefined;
|
|
45
|
+
readonly nameIsCatalogText: boolean;
|
|
46
|
+
}
|
|
47
|
+
interface SqlDataType<Params extends SqlTypeParams = SqlTypeParams> extends DataType {
|
|
48
|
+
readonly params?: Type<Params>;
|
|
49
|
+
readonly sql: SqlDataTypeFacts<Params>;
|
|
50
|
+
}
|
|
51
|
+
/** A data type that claims a type text, with the parameters the text gives in their normal form. */
|
|
52
|
+
interface ResolvedSqlType {
|
|
53
|
+
readonly dataType: SqlDataType;
|
|
54
|
+
readonly typeParams: SqlTypeParams;
|
|
55
|
+
}
|
|
56
|
+
/** Declare a SQL data type, refusing a declaration that breaks a rule of the module. */
|
|
57
|
+
declare function sqlDataType<Params extends SqlTypeParams = SqlTypeParams>(id: string, spec: SqlDataTypeSpec<Params>): SqlDataType<Params>;
|
|
58
|
+
/** Whether the name of `type` is the text the database catalog prints, as declared by {@link SqlDataTypeSpec.nameIsCatalogText}. */
|
|
59
|
+
declare function nameIsCatalogText<Params extends SqlTypeParams>(type: SqlDataType<Params>): boolean;
|
|
60
|
+
/** Whether `type` is a data type a SQL column can have. `sql/expression` is the one data type no column has. */
|
|
61
|
+
declare function isSqlDataType(type: DataType): type is SqlDataType;
|
|
62
|
+
/** The parameters, when `type` accepts them; otherwise `CONTRACT.TYPE_PARAMS_INVALID` naming each parameter it refuses. */
|
|
63
|
+
declare function validateSqlTypeParams<Params extends SqlTypeParams>(type: SqlDataType<Params>, params: SqlTypeParams): Params;
|
|
64
|
+
/**
|
|
65
|
+
* The name of `type` with no parameters, for places where parameters must not appear, such as a
|
|
66
|
+
* cast. A type whose name is its catalog text has none: its parameters cannot be separated from its
|
|
67
|
+
* name, so it is refused.
|
|
68
|
+
*/
|
|
69
|
+
declare function sqlBaseName<Params extends SqlTypeParams>(type: SqlDataType<Params>, params: SqlTypeParams): string;
|
|
70
|
+
/**
|
|
71
|
+
* The base name of `type` with `params`, unquoted, for display. It differs from {@link sqlBaseName}
|
|
72
|
+
* for a type that claims a kind, where it is the `typeName` parameter as written (`app.status`)
|
|
73
|
+
* while `sqlBaseName` gives the quoted name `render` writes into SQL (`"app"."status"`), and for a
|
|
74
|
+
* type whose name is its catalog text, where it is that whole text.
|
|
75
|
+
*/
|
|
76
|
+
declare function unquotedSqlBaseName<Params extends SqlTypeParams>(type: SqlDataType<Params>, params: SqlTypeParams): string;
|
|
77
|
+
/** The SQL data type the codec `codecId` represents. */
|
|
78
|
+
declare function sqlDataTypeOfCodec(codecId: string, lookups: TypeLookups): SqlDataType;
|
|
79
|
+
/**
|
|
80
|
+
* The length of a column of data type `type` with `typeParams`, in the type's normal form, as verify compares it: a bare Postgres `character` holds 1. `undefined` when the column has no length, or when its data type drops the length because the database does not limit it, as SQLite's text types do.
|
|
81
|
+
*/
|
|
82
|
+
declare function sqlColumnLength(type: DataType | undefined, typeParams: Readonly<Record<string, unknown>> | undefined): number | undefined;
|
|
83
|
+
/** The length of a column of `codecId` in its data type's normal form, or `undefined` for a column with no length or one whose database does not limit it. */
|
|
84
|
+
declare function sqlCodecColumnLength(dataTypes: {
|
|
85
|
+
readonly lookup: Pick<DataTypeLookup, 'get'>;
|
|
86
|
+
readonly dataTypeOfCodec: (codecId: string) => DataTypeId | undefined;
|
|
87
|
+
}, codecId: string, typeParams: Readonly<Record<string, unknown>> | undefined): number | undefined;
|
|
88
|
+
/** The type a column of `type` is stored as, whose name DDL writes and the database reports: `type` itself unless it names another. */
|
|
89
|
+
declare function sqlStorageType(type: SqlDataType, lookup: Pick<DataTypeLookup, 'get'>): SqlDataType;
|
|
90
|
+
/** The id of the type a column of the data type `dataTypeId` is stored as: {@link sqlStorageType} of it, which refuses a storage type the lookup does not register, or `dataTypeId` itself when the lookup does not know it as a SQL data type. */
|
|
91
|
+
declare function sqlStorageTypeId(dataTypeId: string, lookup: Pick<DataTypeLookup, 'get'>): string;
|
|
92
|
+
/** The parts of a contract column that make its type. */
|
|
93
|
+
interface SqlColumnTypeFields {
|
|
94
|
+
readonly dataType: string;
|
|
95
|
+
readonly typeParams?: Readonly<Record<string, unknown>>;
|
|
96
|
+
readonly many?: unknown;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Whether two contract columns have the same type: the types their data types are stored as are one type, those types' parameters are equal in normal form, and both or neither are lists. ADR 254.
|
|
100
|
+
*/
|
|
101
|
+
declare function sameSqlColumnType(a: SqlColumnTypeFields, b: SqlColumnTypeFields, lookup: Pick<DataTypeLookup, 'get'>): boolean;
|
|
102
|
+
/** The type a column of the codec `codecId` is stored as: {@link sqlStorageType} of the data type it represents. */
|
|
103
|
+
declare function sqlStorageTypeOfCodec(codecId: string, lookups: TypeLookups): SqlDataType;
|
|
104
|
+
/** {@link unquotedSqlBaseName} of the type a column of the codec `codecId` is stored as. */
|
|
105
|
+
declare function unquotedSqlBaseNameOfCodec(codecId: string, typeParams: SqlTypeParams | undefined, lookups: TypeLookups): string;
|
|
106
|
+
/** The text a migration writes for `type` with the raw `params`. */
|
|
107
|
+
declare function renderSqlTypeName<Params extends SqlTypeParams>(type: SqlDataType<Params>, params: SqlTypeParams): string;
|
|
108
|
+
/** The text the database catalog prints for `type` with `params`, in their normal form. */
|
|
109
|
+
declare function renderSqlCatalogText<Params extends SqlTypeParams>(type: SqlDataType<Params>, params: SqlTypeParams): string;
|
|
110
|
+
/** Two SQL data types that would both recognise one reported type, and what each claims. */
|
|
111
|
+
interface SqlDataTypeCollision {
|
|
112
|
+
readonly first: SqlDataType;
|
|
113
|
+
readonly second: SqlDataType;
|
|
114
|
+
readonly claims: {
|
|
115
|
+
readonly by: 'text';
|
|
116
|
+
readonly first: string;
|
|
117
|
+
readonly second: string;
|
|
118
|
+
} | {
|
|
119
|
+
readonly by: 'kind';
|
|
120
|
+
readonly kind: string;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The first two SQL data types in `types` that would both recognise one reported type: a claiming
|
|
125
|
+
* text of each collides, or both claim the same kind. Two texts collide when either one's pattern
|
|
126
|
+
* matches the other with each placeholder written as 1.
|
|
127
|
+
*/
|
|
128
|
+
declare function findSqlDataTypeCollision(types: readonly DataType[]): SqlDataTypeCollision | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* The data type that claims a reported type, with its parameters in normal form, or undefined when
|
|
131
|
+
* no type in `dataTypes` claims it or its parameters fail the type's schema.
|
|
132
|
+
*/
|
|
133
|
+
declare function resolveReportedSqlType(reported: ReportedSqlType, dataTypes: readonly DataType[]): ResolvedSqlType | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Every data type in `dataTypes` that reads `text` as a migration may write it, with its parameters
|
|
136
|
+
* in normal form: any of a type's texts counts, whether written, printed by the catalog or only
|
|
137
|
+
* claimed. Empty when no type reads it or its parameters fail the type's schema. A type that claims
|
|
138
|
+
* a kind has no texts, so it never reads one.
|
|
139
|
+
*/
|
|
140
|
+
declare function resolveWrittenSqlTypes(text: string, dataTypes: readonly DataType[]): readonly ResolvedSqlType[];
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/sql-raw.d.ts
|
|
143
|
+
declare const SQL_RAW_DATA_TYPE_ID: DataTypeId;
|
|
144
|
+
type SqlRawTypeParams = {
|
|
145
|
+
readonly sql: string;
|
|
146
|
+
};
|
|
147
|
+
/** Returns undefined when `text` may be written as a column's type, else the reason. */
|
|
148
|
+
declare function checkRawTypeText(text: string): string | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* The data type of a column whose type no other data type claims. Its `sql` parameter is the type
|
|
151
|
+
* exactly as the database catalog prints it, which migrations write and verify compares. It claims
|
|
152
|
+
* no reported type, so introspection never reads a column as raw. It has no literal values: it
|
|
153
|
+
* declares no casts, and its reader refuses every value. ADR 273.
|
|
154
|
+
*/
|
|
155
|
+
declare const sqlRawDataType: SqlDataType<SqlRawTypeParams>;
|
|
156
|
+
//#endregion
|
|
157
|
+
export { unquotedSqlBaseNameOfCodec as A, sqlDataType as C, sqlStorageTypeId as D, sqlStorageType as E, sqlStorageTypeOfCodec as O, sqlColumnLength as S, sqlRawDataType as T, resolveReportedSqlType as _, SqlDataTypeCollision as a, sqlBaseName as b, SqlRawTypeParams as c, checkRawTypeText as d, findSqlDataTypeCollision as f, renderSqlTypeName as g, renderSqlCatalogText as h, SqlDataType as i, validateSqlTypeParams as j, unquotedSqlBaseName as k, SqlTypeParams as l, nameIsCatalogText as m, SQL_RAW_DATA_TYPE_ID as n, SqlDataTypeFacts as o, isSqlDataType as p, SqlColumnTypeFields as r, SqlDataTypeSpec as s, ResolvedSqlType as t, SqlTypeText as u, resolveWrittenSqlTypes as v, sqlDataTypeOfCodec as w, sqlCodecColumnLength as x, sameSqlColumnType as y };
|
|
158
|
+
//# sourceMappingURL=data-type-DJIvKQHf.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-type-DJIvKQHf.d.mts","names":[],"sources":["../../../../2-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sB,iBAAiB,SAAS,cAAc;;iBAE9D,2BAA2B,iBAAiB,YAAY,2BAA2B,SAAS;;iBAE5F,kBAAkB,eAAe,eAAe,MAAM,YAAY,SAAS,QAAQ;;iBAEnF,qBAAqB,eAAe,eAAe,MAAM,YAAY,SAAS,QAAQ;;UAE7F;WACC,OAAO;WACP,QAAQ;WACR;aACE;aACA;aACA;;aAEA;aACA;;;;;;;;iBAQI,yBAAyB,gBAAgB,aAAa;;;;;iBAKtD,uBAAuB,UAAU,iBAAiB,oBAAoB,aAAa;;;;;;;iBAOnF,uBAAuB,cAAc,oBAAoB,sBAAsB;;;cAGlF,sBAAsB;KAC/B;WACM;;;iBAGM,iBAAiB;;;;;;;cAOpB,gBAAgB,YAAY"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region ../../../2-sql-family/1-core/contract/dist/data-type-support.mjs
|
|
2
|
+
/** A string as a contract source writes it, with the escapes its string reader resolves. */
|
|
3
|
+
function escapePslString(value) {
|
|
4
|
+
return value.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\n/g, "\\n").replace(/\r/g, "\\r");
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { escapePslString as t };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=data-type-support-BhSoPUFj.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-type-support-BhSoPUFj.mjs","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/data-type-support.mjs"],"sourcesContent":["//#region src/data-type-support.ts\n/** A string as a contract source writes it, with the escapes its string reader resolves. */\nfunction escapePslString(value) {\n\treturn value.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, \"\\\\\\\"\").replace(/\\n/g, \"\\\\n\").replace(/\\r/g, \"\\\\r\");\n}\n//#endregion\nexport { escapePslString };\n\n//# sourceMappingURL=data-type-support.mjs.map"],"mappings":";;AAEA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,MAAM,QAAQ,OAAO,MAAM,CAAC,CAAC,QAAQ,MAAM,MAAM,CAAC,CAAC,QAAQ,OAAO,KAAK,CAAC,CAAC,QAAQ,OAAO,KAAK;AACrG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region ../../../2-sql-family/1-core/contract/dist/data-type-support.d.mts
|
|
2
|
+
//#region src/data-type-support.d.ts
|
|
3
|
+
/** A string as a contract source writes it, with the escapes its string reader resolves. */
|
|
4
|
+
declare function escapePslString(value: string): string;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { escapePslString as t };
|
|
7
|
+
//# sourceMappingURL=data-type-support-CXpA0ex-.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-type-support-CXpA0ex-.d.mts","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/data-type-support.d.mts"],"mappings":";;;iBAEiB,gBAAgB"}
|