@prisma/orm-target-sqlite 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 +1 -5
- package/dist/{adapter-CUTKlFpX-CW0J0Qs4.mjs → adapter-7m8HU4rt-DN15_Cn8.mjs} +178 -107
- package/dist/adapter-7m8HU4rt-DN15_Cn8.mjs.map +1 -0
- package/dist/adapter-C3hrAasJ.d.mts +197 -0
- package/dist/adapter-C3hrAasJ.d.mts.map +1 -0
- package/dist/{adapter-DEYUC-KO-DO_abhIq.d.mts → adapter-xFPDhkod-BsdLsy9N.d.mts} +12 -9
- package/dist/adapter-xFPDhkod-BsdLsy9N.d.mts.map +1 -0
- package/dist/adapter.d.mts +14 -15
- package/dist/adapter.mjs +7 -6
- package/dist/adapter__adapter.d.mts +4 -4
- package/dist/adapter__adapter.mjs +3 -2
- package/dist/adapter__codec-types.d.mts +3 -3
- package/dist/adapter__column-types.d.mts +2 -2
- package/dist/adapter__column-types.mjs +2 -2
- package/dist/adapter__control.d.mts +5 -5
- package/dist/adapter__control.mjs +12 -247
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +11 -6
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/adapter__sql-renderer.d.mts +2 -2
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/adapter__types.d.mts +3 -2
- package/dist/{aggregates-DWyPO7t6.mjs → aggregates-D5fuFVMC.mjs} +33 -20
- package/dist/aggregates-D5fuFVMC.mjs.map +1 -0
- package/dist/aggregates-UBmpuURb.d.mts +164 -0
- package/dist/aggregates-UBmpuURb.d.mts.map +1 -0
- package/dist/codec-descriptor-3oN7rtrW-Cc_u7U5-.d.mts +1 -0
- package/dist/codec-descriptor-C16gQAdS.d.mts +2 -0
- package/dist/{codec-descriptor-B9ru99aI-DTkdKFU5.mjs → codec-descriptor-DRmF-crq-BALI5Jtz.mjs} +11 -15
- package/dist/codec-descriptor-DRmF-crq-BALI5Jtz.mjs.map +1 -0
- package/dist/codec-descriptor-DuW-d9ef-BBRBN0Ri.d.mts +45 -0
- package/dist/codec-descriptor-DuW-d9ef-BBRBN0Ri.d.mts.map +1 -0
- package/dist/codec-ids-CMbhYIsa.d.mts +1 -0
- package/dist/{codec-ids-CzeDyMWW-BZAcI50I.d.mts → codec-ids-DuJYssXV-BPKbFNRL.d.mts} +4 -4
- package/dist/codec-ids-DuJYssXV-BPKbFNRL.d.mts.map +1 -0
- package/dist/{codec-ids-KMliSCRp-BhTbmbGr.mjs → codec-ids-wgEvkCkg-WltuexMR.mjs} +4 -4
- package/dist/codec-ids-wgEvkCkg-WltuexMR.mjs.map +1 -0
- package/dist/{codec-types-D7uWRvQ1-DPnvquS8.d.mts → codec-types-COh75Bop-CUehAexc.d.mts} +6 -5
- package/dist/codec-types-COh75Bop-CUehAexc.d.mts.map +1 -0
- package/dist/codec-types-ELHfd82J.d.mts +2 -0
- package/dist/codec-types-PONhVn74.d.mts +1 -0
- package/dist/{codecs-BQWqLgCl-CdB8t7HI.d.mts → codecs-BJYruC-a-BKDGae3k.d.mts} +86 -62
- package/dist/codecs-BJYruC-a-BKDGae3k.d.mts.map +1 -0
- package/dist/codecs-Dn0xoCuf.d.mts +1 -0
- package/dist/codecs-g-YI3BtK.mjs +49 -0
- package/dist/codecs-g-YI3BtK.mjs.map +1 -0
- package/dist/codecs-yZoH21Yj-lQXtGlEq.mjs +618 -0
- package/dist/codecs-yZoH21Yj-lQXtGlEq.mjs.map +1 -0
- package/dist/column-types-DcbNOYVb.mjs +22 -0
- package/dist/column-types-DcbNOYVb.mjs.map +1 -0
- package/dist/column-types-Dxm0BpPv.d.mts +36 -0
- package/dist/column-types-Dxm0BpPv.d.mts.map +1 -0
- package/dist/contract-contributions-wweWdXMK-CN-d35Rj.mjs +24 -0
- package/dist/contract-contributions-wweWdXMK-CN-d35Rj.mjs.map +1 -0
- package/dist/{contract-free-CCLAXZV2.d.mts → contract-free-BJwIJN6x.d.mts} +3 -3
- package/dist/contract-free-BJwIJN6x.d.mts.map +1 -0
- package/dist/{contract-free-D5cZrgNl.mjs → contract-free-DetowcoS.mjs} +8 -7
- package/dist/contract-free-DetowcoS.mjs.map +1 -0
- package/dist/{control-CLirKz11.d.mts → control-BbJiKI2r.d.mts} +24 -29
- package/dist/control-BbJiKI2r.d.mts.map +1 -0
- package/dist/{control-B16T9OoX.mjs → control-BxbKU2xs.mjs} +15 -6
- package/dist/control-BxbKU2xs.mjs.map +1 -0
- package/dist/{control-D9vMRRgU.d.mts → control-C2TjacST.d.mts} +3 -3
- package/dist/control-C2TjacST.d.mts.map +1 -0
- package/dist/{control--wMueaTg.d.mts → control-CmDsxEqb.d.mts} +75 -6
- package/dist/control-CmDsxEqb.d.mts.map +1 -0
- package/dist/{control-tables-Dua-YcJL.d.mts → control-tables-DKXLHvMU.d.mts} +2 -2
- package/dist/control-tables-DKXLHvMU.d.mts.map +1 -0
- package/dist/{control-tables-D_o8dKRB-BXi43noL.mjs → control-tables-D_o8dKRB-n_QqsXcm.mjs} +2 -2
- package/dist/control-tables-D_o8dKRB-n_QqsXcm.mjs.map +1 -0
- package/dist/data-type-entries-yQ-qYugg-C_NnX5WO.mjs +76 -0
- package/dist/data-type-entries-yQ-qYugg-C_NnX5WO.mjs.map +1 -0
- package/dist/data-types-Dx3rHsbF.d.mts +40 -0
- package/dist/data-types-Dx3rHsbF.d.mts.map +1 -0
- package/dist/data-types-coQrCWfS-yMCe4F52.mjs +140 -0
- package/dist/data-types-coQrCWfS-yMCe4F52.mjs.map +1 -0
- package/dist/datetime-text-Bniwehv--BSQhnrdE.mjs +9 -0
- package/dist/datetime-text-Bniwehv--BSQhnrdE.mjs.map +1 -0
- package/dist/ddl-31OBcTco.d.mts +1 -0
- package/dist/{ddl-CXduXyOT-nlDP6DGx.mjs → ddl-CX4tAZ-y-Bng-4PWC.mjs} +42 -5
- package/dist/ddl-CX4tAZ-y-Bng-4PWC.mjs.map +1 -0
- package/dist/default-normalizer-CkHy3JYk.d.mts +25 -0
- package/dist/default-normalizer-CkHy3JYk.d.mts.map +1 -0
- package/dist/default-normalizer-DGMXypHg-CPf7oyZA.mjs +112 -0
- package/dist/default-normalizer-DGMXypHg-CPf7oyZA.mjs.map +1 -0
- package/dist/descriptor-meta-COSGM3xb-Ct_5RPcm.mjs +110 -0
- package/dist/descriptor-meta-COSGM3xb-Ct_5RPcm.mjs.map +1 -0
- package/dist/descriptor-meta-DrNwC4vO-D7vuA6QK.mjs +26 -0
- package/dist/descriptor-meta-DrNwC4vO-D7vuA6QK.mjs.map +1 -0
- package/dist/{descriptor-meta-vjJkUDsn-Hz3rnAnk.mjs → descriptor-meta-cwy5CXTT-CLOhiryX.mjs} +17 -3
- package/dist/descriptor-meta-cwy5CXTT-CLOhiryX.mjs.map +1 -0
- package/dist/descriptor-meta-runtime-DX2JfHWF-Dbsh5NP8.mjs +15 -0
- package/dist/descriptor-meta-runtime-DX2JfHWF-Dbsh5NP8.mjs.map +1 -0
- package/dist/driver.d.mts +2 -2
- package/dist/driver.mjs +1 -1
- package/dist/driver__control.d.mts +1 -1
- package/dist/driver__control.mjs +1 -1
- package/dist/driver__runtime.d.mts +1 -1
- package/dist/driver__runtime.mjs +5 -8
- package/dist/driver__runtime.mjs.map +1 -1
- package/dist/{errors-DnR-sMHS-KkMLIP2U.mjs → errors-DnR-sMHS-D_gh214a.mjs} +2 -2
- package/dist/errors-DnR-sMHS-D_gh214a.mjs.map +1 -0
- package/dist/{migration-uylRe5MP.d.mts → migration-WJlUQmsn.d.mts} +6 -5
- package/dist/migration-WJlUQmsn.d.mts.map +1 -0
- package/dist/{migration-DOKPHtxn.mjs → migration-nqIDkjRz.mjs} +6 -5
- package/dist/migration-nqIDkjRz.mjs.map +1 -0
- package/dist/{nodes-D8EC1yCx-rpfpuJ4T.d.mts → nodes-D8EC1yCx-BS-fKla6.d.mts} +2 -2
- package/dist/nodes-D8EC1yCx-BS-fKla6.d.mts.map +1 -0
- package/dist/{nodes-DUZSdX86-BBEEaxXY.mjs → nodes-DUZSdX86-DWyLY3OW.mjs} +2 -2
- package/dist/nodes-DUZSdX86-DWyLY3OW.mjs.map +1 -0
- package/dist/{op-factory-call-DoHN7Q7L.d.mts → op-factory-call-De6MX7Yp.d.mts} +83 -19
- package/dist/op-factory-call-De6MX7Yp.d.mts.map +1 -0
- package/dist/op-factory-call-emj9Xp05-BFLkxrAK.mjs +1414 -0
- package/dist/op-factory-call-emj9Xp05-BFLkxrAK.mjs.map +1 -0
- package/dist/pack-DR0n9vHJ.d.mts +1179 -0
- package/dist/pack-DR0n9vHJ.d.mts.map +1 -0
- package/dist/planner-BvwYScnt-9H9LIJFn.mjs +362 -0
- package/dist/planner-BvwYScnt-9H9LIJFn.mjs.map +1 -0
- package/dist/{planner-Bxdi7jZF.d.mts → planner-CjMq9oEt.d.mts} +21 -10
- package/dist/planner-CjMq9oEt.d.mts.map +1 -0
- package/dist/{planner-produced-sqlite-migration-C9uVDKrJ-CWbxSANn.mjs → planner-produced-sqlite-migration-D2jtaItv-ZFZhPfGE.mjs} +4 -4
- package/dist/planner-produced-sqlite-migration-D2jtaItv-ZFZhPfGE.mjs.map +1 -0
- package/dist/{planner-produced-sqlite-migration-BuJysRxx-CaDUbNVx.d.mts → planner-produced-sqlite-migration-DuM9c3YI-Dacb6zQZ.d.mts} +4 -4
- package/dist/planner-produced-sqlite-migration-DuM9c3YI-Dacb6zQZ.d.mts.map +1 -0
- package/dist/planner-produced-sqlite-migration-GDP1M36D.d.mts +1 -0
- package/dist/{planner-target-details-CIQ789Gc-C5U4yVY9.mjs → planner-target-details-CIQ789Gc-Cug2V5g5.mjs} +2 -2
- package/dist/planner-target-details-CIQ789Gc-Cug2V5g5.mjs.map +1 -0
- package/dist/{planner-target-details-xR6UfIcz-CMahymzq.d.mts → planner-target-details-xR6UfIcz-BrBPQGOS.d.mts} +2 -2
- package/dist/planner-target-details-xR6UfIcz-BrBPQGOS.d.mts.map +1 -0
- package/dist/render-ops-BPLkHR-y-CPoXG5Ap.mjs +34 -0
- package/dist/render-ops-BPLkHR-y-CPoXG5Ap.mjs.map +1 -0
- package/dist/{render-ops-B10yqmdG.d.mts → render-ops-Ntl2jBJe.d.mts} +3 -3
- package/dist/render-ops-Ntl2jBJe.d.mts.map +1 -0
- package/dist/{runtime-B1coahKC.d.mts → runtime-BvMPuBrJ.d.mts} +3 -3
- package/dist/runtime-BvMPuBrJ.d.mts.map +1 -0
- package/dist/{runtime-B99c4n56.d.mts → runtime-CjIoI3sa.d.mts} +4 -4
- package/dist/runtime-CjIoI3sa.d.mts.map +1 -0
- package/dist/{runtime-C5J9fusd.d.mts → runtime-YfPIbtO6.d.mts} +4 -4
- package/dist/runtime-YfPIbtO6.d.mts.map +1 -0
- package/dist/sql-renderer-brQ96quu.d.mts +1 -0
- package/dist/{sql-utils-0SJZOd7Q.d.mts → sql-utils-BqHka8P6.d.mts} +2 -2
- package/dist/sql-utils-BqHka8P6.d.mts.map +1 -0
- package/dist/{sql-utils-C2O4zVkP-Dz3Hb85I.mjs → sql-utils-XGT5Esi2-Zr2mqJf8.mjs} +31 -4
- package/dist/sql-utils-XGT5Esi2-Zr2mqJf8.mjs.map +1 -0
- package/dist/{sqlite-contract-view-BpNMaU2m-COMDaGaq.d.mts → sqlite-contract-view-BDw8T5Cp-BfFajhe4.d.mts} +5 -4
- package/dist/sqlite-contract-view-BDw8T5Cp-BfFajhe4.d.mts.map +1 -0
- package/dist/{sqlite-contract-view-BYR10usg-BteDAUZr.mjs → sqlite-contract-view-CGfiGvKH-CT-JjNHd.mjs} +9 -6
- package/dist/sqlite-contract-view-CGfiGvKH-CT-JjNHd.mjs.map +1 -0
- package/dist/sqlite-migration-BAdSmooi-iWFVQgGV.mjs +1295 -0
- package/dist/sqlite-migration-BAdSmooi-iWFVQgGV.mjs.map +1 -0
- package/dist/{sqlite-migration-o23JHwzY-CwNJcqwl.d.mts → sqlite-migration-CLIMaHLy-5ZjJDdDP.d.mts} +61 -13
- package/dist/sqlite-migration-CLIMaHLy-5ZjJDdDP.d.mts.map +1 -0
- package/dist/{shared-BYAX0FaQ--VvRXVRC.d.mts → tables-C6oejIsc-CzK00Kwl.d.mts} +38 -10
- package/dist/tables-C6oejIsc-CzK00Kwl.d.mts.map +1 -0
- package/dist/target.d.mts +29 -29
- package/dist/target.mjs +24 -20
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__aggregates.mjs +1 -1
- package/dist/target__codec-descriptor.d.mts +2 -2
- package/dist/target__codec-descriptor.mjs +1 -1
- package/dist/target__codec-ids.d.mts +3 -3
- package/dist/target__codec-ids.mjs +2 -2
- package/dist/target__codec-types.d.mts +3 -3
- package/dist/target__codecs.d.mts +3 -3
- package/dist/target__codecs.mjs +4 -2
- package/dist/target__contract-free.d.mts +1 -1
- package/dist/target__contract-free.mjs +2 -2
- package/dist/target__control-tables.d.mts +1 -1
- package/dist/target__control-tables.mjs +1 -1
- package/dist/target__control.d.mts +3 -3
- package/dist/target__control.mjs +168 -72
- package/dist/target__control.mjs.map +1 -1
- package/dist/target__data-types.d.mts +2 -0
- package/dist/target__data-types.mjs +3 -0
- package/dist/target__ddl.d.mts +2 -2
- package/dist/target__ddl.mjs +1 -1
- package/dist/target__default-normalizer.d.mts +2 -2
- package/dist/target__default-normalizer.mjs +2 -2
- package/dist/target__migration.d.mts +3 -3
- package/dist/target__migration.mjs +3 -3
- package/dist/target__op-factory-call.d.mts +2 -2
- package/dist/target__op-factory-call.mjs +2 -2
- package/dist/target__pack.d.mts +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-produced-sqlite-migration.d.mts +2 -2
- package/dist/target__planner-produced-sqlite-migration.mjs +1 -1
- package/dist/target__planner-target-details.d.mts +1 -1
- package/dist/target__planner-target-details.mjs +1 -1
- package/dist/target__planner.d.mts +1 -1
- package/dist/target__planner.mjs +1 -1
- package/dist/target__render-ops.d.mts +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.d.mts +2 -2
- package/dist/target__runtime.mjs +3 -3
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__sql-utils.d.mts +1 -1
- package/dist/target__sql-utils.mjs +1 -1
- package/dist/{types-C5FSREvo-CwUlKK34.d.mts → types-RJMd2PlL-BTGAJrBQ.d.mts} +5 -7
- package/dist/types-RJMd2PlL-BTGAJrBQ.d.mts.map +1 -0
- package/dist/types-y5JlAv97.d.mts +2 -0
- package/package.json +12 -12
- package/dist/adapter-CUTKlFpX-CW0J0Qs4.mjs.map +0 -1
- package/dist/adapter-D7zw14p5.d.mts +0 -2
- package/dist/adapter-DEYUC-KO-DO_abhIq.d.mts.map +0 -1
- package/dist/aggregates-BGuKJwfI.d.mts +0 -10
- package/dist/aggregates-BGuKJwfI.d.mts.map +0 -1
- package/dist/aggregates-DWyPO7t6.mjs.map +0 -1
- package/dist/codec-descriptor-B9ru99aI-DTkdKFU5.mjs.map +0 -1
- package/dist/codec-descriptor-BcgD9f3L-yDi5nh_k.d.mts +0 -31
- package/dist/codec-descriptor-BcgD9f3L-yDi5nh_k.d.mts.map +0 -1
- package/dist/codec-descriptor-rFuZ9DzY-CKRIRxah.d.mts +0 -1
- package/dist/codec-descriptor-vwfD3BMy.d.mts +0 -2
- package/dist/codec-ids-7WqtUuda.d.mts +0 -1
- package/dist/codec-ids-CzeDyMWW-BZAcI50I.d.mts.map +0 -1
- package/dist/codec-ids-KMliSCRp-BhTbmbGr.mjs.map +0 -1
- package/dist/codec-types-B-TDcvQc.d.mts +0 -1
- package/dist/codec-types-CS0bD1kX.d.mts +0 -2
- package/dist/codec-types-D7uWRvQ1-DPnvquS8.d.mts.map +0 -1
- package/dist/codecs-BDdR6FbY.mjs +0 -504
- package/dist/codecs-BDdR6FbY.mjs.map +0 -1
- package/dist/codecs-BQWqLgCl-CdB8t7HI.d.mts.map +0 -1
- package/dist/codecs-BTv6fRXv.d.mts +0 -1
- package/dist/column-types-NVxgsjFA.mjs +0 -34
- package/dist/column-types-NVxgsjFA.mjs.map +0 -1
- package/dist/column-types-iWGuW-0W.d.mts +0 -33
- package/dist/column-types-iWGuW-0W.d.mts.map +0 -1
- package/dist/contract-free-CCLAXZV2.d.mts.map +0 -1
- package/dist/contract-free-D5cZrgNl.mjs.map +0 -1
- package/dist/control--wMueaTg.d.mts.map +0 -1
- package/dist/control-B16T9OoX.mjs.map +0 -1
- package/dist/control-CLirKz11.d.mts.map +0 -1
- package/dist/control-D9vMRRgU.d.mts.map +0 -1
- package/dist/control-tables-D_o8dKRB-BXi43noL.mjs.map +0 -1
- package/dist/control-tables-Dua-YcJL.d.mts.map +0 -1
- package/dist/ddl-CXduXyOT-nlDP6DGx.mjs.map +0 -1
- package/dist/ddl-CfSqNT0M.d.mts +0 -1
- package/dist/default-normalizer-B9V7TY5u.d.mts +0 -7
- package/dist/default-normalizer-B9V7TY5u.d.mts.map +0 -1
- package/dist/default-normalizer-DuoHj9-O-DsK7lJZn.mjs +0 -69
- package/dist/default-normalizer-DuoHj9-O-DsK7lJZn.mjs.map +0 -1
- package/dist/descriptor-meta-DjKgG4z5-D_0obUB8.mjs +0 -34
- package/dist/descriptor-meta-DjKgG4z5-D_0obUB8.mjs.map +0 -1
- package/dist/descriptor-meta-nORSZfmr-Cw-pzAJr.mjs +0 -33
- package/dist/descriptor-meta-nORSZfmr-Cw-pzAJr.mjs.map +0 -1
- package/dist/descriptor-meta-runtime-BkXK3OjD-CxZdKHCw.mjs +0 -13
- package/dist/descriptor-meta-runtime-BkXK3OjD-CxZdKHCw.mjs.map +0 -1
- package/dist/descriptor-meta-vjJkUDsn-Hz3rnAnk.mjs.map +0 -1
- package/dist/errors-DnR-sMHS-KkMLIP2U.mjs.map +0 -1
- package/dist/migration-DOKPHtxn.mjs.map +0 -1
- package/dist/migration-uylRe5MP.d.mts.map +0 -1
- package/dist/native-type-normalizer-CO2wKGL6.d.mts +0 -12
- package/dist/native-type-normalizer-CO2wKGL6.d.mts.map +0 -1
- package/dist/native-type-normalizer-GpQMEyN5.mjs +0 -14
- package/dist/native-type-normalizer-GpQMEyN5.mjs.map +0 -1
- package/dist/nodes-D8EC1yCx-rpfpuJ4T.d.mts.map +0 -1
- package/dist/nodes-DUZSdX86-BBEEaxXY.mjs.map +0 -1
- package/dist/op-factory-call-DoHN7Q7L.d.mts.map +0 -1
- package/dist/op-factory-call-gc26GqyA-Db5Fasef.mjs +0 -829
- package/dist/op-factory-call-gc26GqyA-Db5Fasef.mjs.map +0 -1
- package/dist/pack-DIbefoZF.d.mts +0 -102
- package/dist/pack-DIbefoZF.d.mts.map +0 -1
- package/dist/planner-Bxdi7jZF.d.mts.map +0 -1
- package/dist/planner-Cqjr2usR-4wg3FB78.mjs +0 -824
- package/dist/planner-Cqjr2usR-4wg3FB78.mjs.map +0 -1
- package/dist/planner-produced-sqlite-migration-BuJysRxx-CaDUbNVx.d.mts.map +0 -1
- package/dist/planner-produced-sqlite-migration-C9uVDKrJ-CWbxSANn.mjs.map +0 -1
- package/dist/planner-produced-sqlite-migration-uySoqJO-.d.mts +0 -1
- package/dist/planner-target-details-CIQ789Gc-C5U4yVY9.mjs.map +0 -1
- package/dist/planner-target-details-xR6UfIcz-CMahymzq.d.mts.map +0 -1
- package/dist/render-ops-B10yqmdG.d.mts.map +0 -1
- package/dist/render-ops-KxAmAz6d-W2xyvA5y.mjs +0 -27
- package/dist/render-ops-KxAmAz6d-W2xyvA5y.mjs.map +0 -1
- package/dist/runtime-B1coahKC.d.mts.map +0 -1
- package/dist/runtime-B99c4n56.d.mts.map +0 -1
- package/dist/runtime-C5J9fusd.d.mts.map +0 -1
- package/dist/shared-BYAX0FaQ--VvRXVRC.d.mts.map +0 -1
- package/dist/sql-renderer-KX6hn_tg.d.mts +0 -1
- package/dist/sql-utils-0SJZOd7Q.d.mts.map +0 -1
- package/dist/sql-utils-C2O4zVkP-Dz3Hb85I.mjs.map +0 -1
- package/dist/sqlite-contract-view-BYR10usg-BteDAUZr.mjs.map +0 -1
- package/dist/sqlite-contract-view-BpNMaU2m-COMDaGaq.d.mts.map +0 -1
- package/dist/sqlite-migration-CjMkH4Id-c6dM9w61.mjs +0 -94
- package/dist/sqlite-migration-CjMkH4Id-c6dM9w61.mjs.map +0 -1
- package/dist/sqlite-migration-o23JHwzY-CwNJcqwl.d.mts.map +0 -1
- package/dist/target__native-type-normalizer.d.mts +0 -2
- package/dist/target__native-type-normalizer.mjs +0 -2
- package/dist/types-B7e2QVEx.d.mts +0 -1
- package/dist/types-C5FSREvo-CwUlKK34.d.mts.map +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { n as sqliteError } from "./errors-DnR-sMHS-D_gh214a.mjs";
|
|
2
|
+
import { v as isSqliteOpFactoryCall } from "./op-factory-call-emj9Xp05-BFLkxrAK.mjs";
|
|
3
|
+
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
4
|
+
import { isThenable } from "@prisma/orm-framework/utils/promise";
|
|
5
|
+
//#region ../../../3-targets/sqlite/1-target/dist/render-ops-BPLkHR-y.mjs
|
|
6
|
+
function assertSqliteOp(op, callFactoryName) {
|
|
7
|
+
const targetId = blindCast(op).target?.id;
|
|
8
|
+
if (targetId !== "sqlite") throw sqliteError("MIGRATION.TARGET_MISMATCH", `renderOps: expected sqlite op but got target.id="${String(targetId)}" for op.id="${op.id}" (factoryName="${callFactoryName}"). An OpFactoryCall produced an op for a different target on the sqlite planner path; check the call's target binding.`, { meta: {
|
|
9
|
+
opId: op.id,
|
|
10
|
+
targetId: String(targetId),
|
|
11
|
+
factoryName: callFactoryName
|
|
12
|
+
} });
|
|
13
|
+
}
|
|
14
|
+
function checkedOp(opOrPromise, callFactoryName) {
|
|
15
|
+
if (isThenable(opOrPromise)) {
|
|
16
|
+
const checked = opOrPromise.then((op) => {
|
|
17
|
+
assertSqliteOp(op, callFactoryName);
|
|
18
|
+
return op;
|
|
19
|
+
});
|
|
20
|
+
checked.catch(() => void 0);
|
|
21
|
+
return checked;
|
|
22
|
+
}
|
|
23
|
+
assertSqliteOp(opOrPromise, callFactoryName);
|
|
24
|
+
return opOrPromise;
|
|
25
|
+
}
|
|
26
|
+
function renderOps(calls, lowerer) {
|
|
27
|
+
return calls.flatMap((c) => {
|
|
28
|
+
return (isSqliteOpFactoryCall(c) ? c.toOps(lowerer) : [blindCast(c).toOp(lowerer)]).map((opOrPromise) => checkedOp(opOrPromise, c.factoryName));
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { renderOps as t };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=render-ops-BPLkHR-y-CPoXG5Ap.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-ops-BPLkHR-y-CPoXG5Ap.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/render-ops-BPLkHR-y.mjs"],"sourcesContent":["import { n as sqliteError } from \"./errors-DnR-sMHS.mjs\";\nimport { p as isSqliteOpFactoryCall } from \"./op-factory-call-emj9Xp05.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { isThenable } from \"@internal/utils/promise\";\n//#region src/core/migrations/render-ops.ts\nfunction assertSqliteOp(op, callFactoryName) {\n\tconst targetId = blindCast(op).target?.id;\n\tif (targetId !== \"sqlite\") throw sqliteError(\"MIGRATION.TARGET_MISMATCH\", `renderOps: expected sqlite op but got target.id=\"${String(targetId)}\" for op.id=\"${op.id}\" (factoryName=\"${callFactoryName}\"). An OpFactoryCall produced an op for a different target on the sqlite planner path; check the call's target binding.`, { meta: {\n\t\topId: op.id,\n\t\ttargetId: String(targetId),\n\t\tfactoryName: callFactoryName\n\t} });\n}\nfunction checkedOp(opOrPromise, callFactoryName) {\n\tif (isThenable(opOrPromise)) {\n\t\tconst checked = opOrPromise.then((op) => {\n\t\t\tassertSqliteOp(op, callFactoryName);\n\t\t\treturn op;\n\t\t});\n\t\tchecked.catch(() => void 0);\n\t\treturn checked;\n\t}\n\tassertSqliteOp(opOrPromise, callFactoryName);\n\treturn opOrPromise;\n}\nfunction renderOps(calls, lowerer) {\n\treturn calls.flatMap((c) => {\n\t\treturn (isSqliteOpFactoryCall(c) ? c.toOps(lowerer) : [blindCast(c).toOp(lowerer)]).map((opOrPromise) => checkedOp(opOrPromise, c.factoryName));\n\t});\n}\n//#endregion\nexport { renderOps as t };\n\n//# sourceMappingURL=render-ops-BPLkHR-y.mjs.map"],"mappings":";;;;;AAKA,SAAS,eAAe,IAAI,iBAAiB;CAC5C,MAAM,WAAW,UAAU,EAAE,CAAC,CAAC,QAAQ;CACvC,IAAI,aAAa,UAAU,MAAM,YAAY,6BAA6B,oDAAoD,OAAO,QAAQ,EAAE,eAAe,GAAG,GAAG,kBAAkB,gBAAgB,0HAA0H,EAAE,MAAM;EACvU,MAAM,GAAG;EACT,UAAU,OAAO,QAAQ;EACzB,aAAa;CACd,EAAE,CAAC;AACJ;AACA,SAAS,UAAU,aAAa,iBAAiB;CAChD,IAAI,WAAW,WAAW,GAAG;EAC5B,MAAM,UAAU,YAAY,MAAM,OAAO;GACxC,eAAe,IAAI,eAAe;GAClC,OAAO;EACR,CAAC;EACD,QAAQ,YAAY,KAAK,CAAC;EAC1B,OAAO;CACR;CACA,eAAe,aAAa,eAAe;CAC3C,OAAO;AACR;AACA,SAAS,UAAU,OAAO,SAAS;CAClC,OAAO,MAAM,SAAS,MAAM;EAC3B,QAAQ,sBAAsB,CAAC,IAAI,EAAE,MAAM,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,EAAA,CAAG,KAAK,gBAAgB,UAAU,aAAa,EAAE,WAAW,CAAC;CAC/I,CAAC;AACF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as SqlitePlanTargetDetails } from "./planner-target-details-xR6UfIcz-
|
|
1
|
+
import { t as SqlitePlanTargetDetails } from "./planner-target-details-xR6UfIcz-BrBPQGOS.mjs";
|
|
2
2
|
import { OpFactoryCall } from "@prisma/orm-framework/components/control";
|
|
3
3
|
import { SqlMigrationPlanOperation } from "@prisma/orm-family-sql/family/control";
|
|
4
4
|
import { ExecuteRequestLowerer } from "@prisma/orm-family-sql/family/control-adapter";
|
|
5
|
-
//#region ../../../3-targets/
|
|
5
|
+
//#region ../../../3-targets/sqlite/1-target/dist/render-ops.d.mts
|
|
6
6
|
//#region src/core/migrations/render-ops.d.ts
|
|
7
7
|
type Op = SqlMigrationPlanOperation<SqlitePlanTargetDetails>;
|
|
8
8
|
declare function renderOps(calls: readonly OpFactoryCall[], lowerer?: ExecuteRequestLowerer): (Op | Promise<Op>)[];
|
|
9
9
|
//#endregion
|
|
10
10
|
export { renderOps as t };
|
|
11
|
-
//# sourceMappingURL=render-ops-
|
|
11
|
+
//# sourceMappingURL=render-ops-Ntl2jBJe.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-ops-Ntl2jBJe.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/render-ops.d.mts"],"mappings":";;;;;;KAKK,KAAK,0BAA0B;iBACnB,UAAU,gBAAgB,iBAAiB,UAAU,yBAAyB,KAAK,QAAQ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SqlDriver } from "@prisma/orm-family-sql/relational-core/ast";
|
|
2
2
|
import { RuntimeDriverDescriptor, RuntimeDriverInstance } from "@prisma/orm-framework/components/execution";
|
|
3
|
-
//#region ../../../3-targets/
|
|
3
|
+
//#region ../../../3-targets/sqlite/3-driver/dist/runtime.d.mts
|
|
4
4
|
//#region src/sqlite-driver.d.ts
|
|
5
5
|
type SqliteBinding = {
|
|
6
6
|
readonly kind: 'path';
|
|
@@ -8,8 +8,8 @@ type SqliteBinding = {
|
|
|
8
8
|
};
|
|
9
9
|
type SqliteRuntimeDriver = RuntimeDriverInstance<'sql', 'sqlite'> & SqlDriver<SqliteBinding>;
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region src/core/runtime-driver.d.ts
|
|
11
|
+
//#region src/core/runtime/runtime-driver.d.ts
|
|
12
12
|
declare const sqliteRuntimeDriverDescriptor: RuntimeDriverDescriptor<'sql', 'sqlite', void, SqliteRuntimeDriver>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { SqliteRuntimeDriver as n, sqliteRuntimeDriverDescriptor as r, SqliteBinding as t };
|
|
15
|
-
//# sourceMappingURL=runtime-
|
|
15
|
+
//# sourceMappingURL=runtime-BvMPuBrJ.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-BvMPuBrJ.d.mts","names":[],"sources":["../../../../3-targets/sqlite/3-driver/dist/runtime.d.mts"],"mappings":";;;;KAIK;WACM;WACA;;KAEN,sBAAsB,yCAAyC,UAAU;;;cAGhE,+BAA+B,+CAA+C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./sqlite-contract-view-
|
|
1
|
+
import "./sqlite-contract-view-BDw8T5Cp-BfFajhe4.mjs";
|
|
2
2
|
import { Namespace } from "@prisma/orm-framework/components/ir";
|
|
3
3
|
import { SqlNamespaceInput, SqlStorage } from "@prisma/orm-family-sql/contract/types";
|
|
4
4
|
import { SqlContractSerializerBase } from "@prisma/orm-family-sql/family/ir";
|
|
@@ -6,8 +6,8 @@ import { SqlRuntimeTargetDescriptor } from "@prisma/orm-family-sql/runtime";
|
|
|
6
6
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
7
7
|
import { RuntimeTargetInstance } from "@prisma/orm-framework/components/execution";
|
|
8
8
|
import { JsonObject } from "@prisma/orm-framework/utils/json";
|
|
9
|
-
//#region ../../../3-targets/
|
|
10
|
-
//#region src/core/runtime-target.d.ts
|
|
9
|
+
//#region ../../../3-targets/sqlite/1-target/dist/runtime.d.mts
|
|
10
|
+
//#region src/core/runtime/runtime-target.d.ts
|
|
11
11
|
interface SqliteRuntimeTargetInstance extends RuntimeTargetInstance<'sql', 'sqlite'> {}
|
|
12
12
|
declare const sqliteRuntimeTargetDescriptor: SqlRuntimeTargetDescriptor<'sqlite', SqliteRuntimeTargetInstance>;
|
|
13
13
|
//#endregion
|
|
@@ -25,4 +25,4 @@ declare class SqliteContractSerializer extends SqlContractSerializerBase<Contrac
|
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
export { SqliteRuntimeTargetInstance as n, sqliteRuntimeTargetDescriptor as r, SqliteContractSerializer as t };
|
|
28
|
-
//# sourceMappingURL=runtime-
|
|
28
|
+
//# sourceMappingURL=runtime-CjIoI3sa.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-CjIoI3sa.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/runtime.d.mts"],"mappings":";;;;;;;;;;UASU,oCAAoC;cAChC,+BAA+B,qCAAqC;;;;;;;;;cASpE,iCAAiC,0BAA0B,SAAS;EAChF;YACU,yBAAyB,cAAc,KAAK,0BAA0B,YAAY;EAC5F,kBAAkB,UAAU,SAAS,cAAc"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as createSqliteAdapterWithCodecRegistry } from "./adapter-
|
|
1
|
+
import { n as createSqliteAdapterWithCodecRegistry } from "./adapter-xFPDhkod-BsdLsy9N.mjs";
|
|
2
2
|
import { SqlRuntimeAdapterDescriptor } from "@prisma/orm-family-sql/runtime";
|
|
3
3
|
import { RuntimeAdapterInstance } from "@prisma/orm-framework/components/execution";
|
|
4
|
-
//#region ../../../3-targets/
|
|
5
|
-
//#region src/core/runtime-adapter.d.ts
|
|
4
|
+
//#region ../../../3-targets/sqlite/2-adapter/dist/runtime.d.mts
|
|
5
|
+
//#region src/core/runtime/runtime-adapter.d.ts
|
|
6
6
|
type SqliteRuntimeAdapterInstance = RuntimeAdapterInstance<'sql', 'sqlite'> & ReturnType<typeof createSqliteAdapterWithCodecRegistry>;
|
|
7
7
|
declare const sqliteRuntimeAdapterDescriptor: SqlRuntimeAdapterDescriptor<'sqlite', SqliteRuntimeAdapterInstance>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { sqliteRuntimeAdapterDescriptor as n, SqliteRuntimeAdapterInstance as t };
|
|
10
|
-
//# sourceMappingURL=runtime-
|
|
10
|
+
//# sourceMappingURL=runtime-YfPIbtO6.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-YfPIbtO6.d.mts","names":[],"sources":["../../../../3-targets/sqlite/2-adapter/dist/runtime.d.mts"],"mappings":";;;;;KAIK,+BAA+B,0CAA0C,kBAAkB;cAClF,gCAAgC,sCAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./adapter-xFPDhkod-BsdLsy9N.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../../3-targets/
|
|
1
|
+
//#region ../../../3-targets/sqlite/1-target/dist/sql-utils.d.mts
|
|
2
2
|
//#region src/core/sql-utils.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Shared SQL utility functions for the SQLite target.
|
|
@@ -15,4 +15,4 @@ declare function quoteIdentifier(identifier: string): string;
|
|
|
15
15
|
declare function escapeLiteral(value: string): string;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { quoteIdentifier as n, escapeLiteral as t };
|
|
18
|
-
//# sourceMappingURL=sql-utils-
|
|
18
|
+
//# sourceMappingURL=sql-utils-BqHka8P6.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sql-utils-BqHka8P6.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/sql-utils.d.mts"],"mappings":";;;;;;;;;;;;;iBAYiB,gBAAgB;iBAChB,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as sqliteError } from "./errors-DnR-sMHS-
|
|
2
|
-
//#region ../../../3-targets/
|
|
1
|
+
import { n as sqliteError } from "./errors-DnR-sMHS-D_gh214a.mjs";
|
|
2
|
+
//#region ../../../3-targets/sqlite/1-target/dist/sql-utils-XGT5Esi2.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Shared SQL utility functions for the SQLite target.
|
|
5
5
|
*
|
|
@@ -29,7 +29,34 @@ function escapeLiteral(value) {
|
|
|
29
29
|
} });
|
|
30
30
|
return value.replace(/'/g, "''");
|
|
31
31
|
}
|
|
32
|
+
/** The quotes this target's SQL knows, for the check of SQL a migration writes into a statement. */
|
|
33
|
+
const SQLITE_QUOTING = [
|
|
34
|
+
{
|
|
35
|
+
open: "'",
|
|
36
|
+
close: "'",
|
|
37
|
+
doubledCloseEscapes: true,
|
|
38
|
+
backslashEscapes: false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
open: "\"",
|
|
42
|
+
close: "\"",
|
|
43
|
+
doubledCloseEscapes: true,
|
|
44
|
+
backslashEscapes: false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
open: "`",
|
|
48
|
+
close: "`",
|
|
49
|
+
doubledCloseEscapes: true,
|
|
50
|
+
backslashEscapes: false
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
open: "[",
|
|
54
|
+
close: "]",
|
|
55
|
+
doubledCloseEscapes: false,
|
|
56
|
+
backslashEscapes: false
|
|
57
|
+
}
|
|
58
|
+
];
|
|
32
59
|
//#endregion
|
|
33
|
-
export {
|
|
60
|
+
export { escapeLiteral as n, quoteIdentifier as r, SQLITE_QUOTING as t };
|
|
34
61
|
|
|
35
|
-
//# sourceMappingURL=sql-utils-
|
|
62
|
+
//# sourceMappingURL=sql-utils-XGT5Esi2-Zr2mqJf8.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sql-utils-XGT5Esi2-Zr2mqJf8.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/sql-utils-XGT5Esi2.mjs"],"sourcesContent":["import { n as sqliteError } from \"./errors-DnR-sMHS.mjs\";\n//#region src/core/sql-utils.ts\n/**\n* Shared SQL utility functions for the SQLite target.\n*\n* These functions handle safe SQL identifier and literal escaping. They\n* live in `target-sqlite` (mirroring `target-postgres/src/core/sql-utils.ts`)\n* so both the control adapter (used at emit time) and the runtime adapter\n* (used at execute time) can depend on them through a single one-way edge:\n* `adapter-sqlite → target-sqlite`. Hosting them target-side avoids the\n* cyclic workspace dependency that would arise if `target-sqlite` reached\n* back into `adapter-sqlite` for these primitives.\n*/\nfunction quoteIdentifier(identifier) {\n\tif (identifier.length === 0) throw sqliteError(\"CONTRACT.IDENTIFIER_INVALID\", \"Identifier cannot be empty\", { meta: {\n\t\tvalue: identifier,\n\t\tcontext: \"identifier\"\n\t} });\n\tif (identifier.includes(\"\\0\")) throw sqliteError(\"CONTRACT.IDENTIFIER_INVALID\", \"Identifier cannot contain null bytes\", { meta: {\n\t\tvalue: identifier.replace(/\\0/g, \"\\\\0\"),\n\t\tcontext: \"identifier\"\n\t} });\n\treturn `\"${identifier.replace(/\"/g, \"\\\"\\\"\")}\"`;\n}\nfunction escapeLiteral(value) {\n\tif (value.includes(\"\\0\")) throw sqliteError(\"CONTRACT.IDENTIFIER_INVALID\", \"Literal value cannot contain null bytes\", { meta: {\n\t\tvalue: value.replace(/\\0/g, \"\\\\0\"),\n\t\tcontext: \"literal\"\n\t} });\n\treturn value.replace(/'/g, \"''\");\n}\n/** The quotes this target's SQL knows, for the check of SQL a migration writes into a statement. */\nconst SQLITE_QUOTING = [\n\t{\n\t\topen: \"'\",\n\t\tclose: \"'\",\n\t\tdoubledCloseEscapes: true,\n\t\tbackslashEscapes: false\n\t},\n\t{\n\t\topen: \"\\\"\",\n\t\tclose: \"\\\"\",\n\t\tdoubledCloseEscapes: true,\n\t\tbackslashEscapes: false\n\t},\n\t{\n\t\topen: \"`\",\n\t\tclose: \"`\",\n\t\tdoubledCloseEscapes: true,\n\t\tbackslashEscapes: false\n\t},\n\t{\n\t\topen: \"[\",\n\t\tclose: \"]\",\n\t\tdoubledCloseEscapes: false,\n\t\tbackslashEscapes: false\n\t}\n];\n//#endregion\nexport { escapeLiteral as n, quoteIdentifier as r, SQLITE_QUOTING as t };\n\n//# sourceMappingURL=sql-utils-XGT5Esi2.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,SAAS,gBAAgB,YAAY;CACpC,IAAI,WAAW,WAAW,GAAG,MAAM,YAAY,+BAA+B,8BAA8B,EAAE,MAAM;EACnH,OAAO;EACP,SAAS;CACV,EAAE,CAAC;CACH,IAAI,WAAW,SAAS,IAAI,GAAG,MAAM,YAAY,+BAA+B,wCAAwC,EAAE,MAAM;EAC/H,OAAO,WAAW,QAAQ,OAAO,KAAK;EACtC,SAAS;CACV,EAAE,CAAC;CACH,OAAO,IAAI,WAAW,QAAQ,MAAM,MAAM,EAAE;AAC7C;AACA,SAAS,cAAc,OAAO;CAC7B,IAAI,MAAM,SAAS,IAAI,GAAG,MAAM,YAAY,+BAA+B,2CAA2C,EAAE,MAAM;EAC7H,OAAO,MAAM,QAAQ,OAAO,KAAK;EACjC,SAAS;CACV,EAAE,CAAC;CACH,OAAO,MAAM,QAAQ,MAAM,IAAI;AAChC;;AAEA,MAAM,iBAAiB;CACtB;EACC,MAAM;EACN,OAAO;EACP,qBAAqB;EACrB,kBAAkB;CACnB;CACA;EACC,MAAM;EACN,OAAO;EACP,qBAAqB;EACrB,kBAAkB;CACnB;CACA;EACC,MAAM;EACN,OAAO;EACP,qBAAqB;EACrB,kBAAkB;CACnB;CACA;EACC,MAAM;EACN,OAAO;EACP,qBAAqB;EACrB,kBAAkB;CACnB;AACD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SqlStorage } from "@prisma/orm-family-sql/contract/types";
|
|
2
2
|
import { SqlSingleNamespaceView } from "@prisma/orm-family-sql/contract/contract-view";
|
|
3
3
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
4
|
-
//#region ../../../3-targets/
|
|
4
|
+
//#region ../../../3-targets/sqlite/1-target/dist/sqlite-contract-view-BDw8T5Cp.d.mts
|
|
5
5
|
//#region src/core/sqlite-contract-view.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* A SQLite contract view: the deserialized contract intersected with by-name
|
|
@@ -16,8 +16,9 @@ import { Contract } from "@prisma/orm-framework/contract/types";
|
|
|
16
16
|
* view.storage // the full contract is still present
|
|
17
17
|
* ```
|
|
18
18
|
*
|
|
19
|
-
* SQLite has `sql.enums: false`, so it
|
|
20
|
-
* `valueSet`
|
|
19
|
+
* SQLite has `sql.enums: false`, so it has no native enum types, but an
|
|
20
|
+
* `enum` block still emits a `valueSet` entry listing the values its columns
|
|
21
|
+
* may store, and the `valueSet` slot holds those.
|
|
21
22
|
*/
|
|
22
23
|
type SqliteContractView<TContract extends Contract<SqlStorage> = Contract<SqlStorage>> = SqlSingleNamespaceView<TContract>;
|
|
23
24
|
declare const SqliteContractView: {
|
|
@@ -28,4 +29,4 @@ declare const SqliteContractView: {
|
|
|
28
29
|
};
|
|
29
30
|
//#endregion
|
|
30
31
|
export { SqliteContractView as t };
|
|
31
|
-
//# sourceMappingURL=sqlite-contract-view-
|
|
32
|
+
//# sourceMappingURL=sqlite-contract-view-BDw8T5Cp-BfFajhe4.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-contract-view-BDw8T5Cp-BfFajhe4.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/sqlite-contract-view-BDw8T5Cp.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;KAqBK,mBAAmB,kBAAkB,SAAS,cAAc,SAAS,eAAe,uBAAuB;cAClG;;EAEZ,KAAK,kBAAkB,SAAS,aAAa,UAAU,YAAY,mBAAmB;;EAEtF,SAAS,kBAAkB,SAAS,cAAc,SAAS,qBAAqB,gBAAgB,mBAAmB"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as sqliteDataTypes } from "./data-types-coQrCWfS-yMCe4F52.mjs";
|
|
2
|
+
import { n as sqliteError } from "./errors-DnR-sMHS-D_gh214a.mjs";
|
|
3
|
+
import { r as quoteIdentifier } from "./sql-utils-XGT5Esi2-Zr2mqJf8.mjs";
|
|
4
|
+
import { createDataTypeLookup } from "@prisma/orm-framework/components/codec";
|
|
2
5
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
3
6
|
import { UNBOUND_NAMESPACE_ID, freezeNode, hydrateNamespaceEntities } from "@prisma/orm-framework/components/ir";
|
|
4
7
|
import { SqlNamespaceBase } from "@prisma/orm-family-sql/contract/types";
|
|
5
|
-
import { buildSqlSingleNamespaceView } from "@prisma/orm-family-sql/contract/contract-view";
|
|
6
8
|
import { SqlContractSerializerBase } from "@prisma/orm-family-sql/family/ir";
|
|
7
9
|
import { tableEntityKind } from "@prisma/orm-family-sql/contract/entity-kinds";
|
|
8
|
-
|
|
10
|
+
import { buildSqlSingleNamespaceView } from "@prisma/orm-family-sql/contract/contract-view";
|
|
11
|
+
//#region ../../../3-targets/sqlite/1-target/dist/sqlite-contract-view-CGfiGvKH.mjs
|
|
9
12
|
const SQLITE_NAMESPACE_KIND = "sqlite-namespace";
|
|
10
13
|
/**
|
|
11
14
|
* SQLite namespace concretion carrying table metadata under
|
|
@@ -35,7 +38,7 @@ var SqliteDatabase = class extends SqlNamespaceBase {
|
|
|
35
38
|
return "";
|
|
36
39
|
}
|
|
37
40
|
qualifyTable(tableName) {
|
|
38
|
-
return
|
|
41
|
+
return quoteIdentifier(tableName);
|
|
39
42
|
}
|
|
40
43
|
};
|
|
41
44
|
/**
|
|
@@ -113,7 +116,7 @@ function sqliteCreateNamespace(input) {
|
|
|
113
116
|
*/
|
|
114
117
|
var SqliteContractSerializer = class extends SqlContractSerializerBase {
|
|
115
118
|
constructor() {
|
|
116
|
-
super(/* @__PURE__ */ new Map());
|
|
119
|
+
super(/* @__PURE__ */ new Map(), [], createDataTypeLookup(sqliteDataTypes));
|
|
117
120
|
}
|
|
118
121
|
hydrateSqlNamespaceEntry(nsId, raw) {
|
|
119
122
|
return buildSqliteNamespace(blindCast(super.hydrateSqlNamespaceEntry(nsId, raw)));
|
|
@@ -148,4 +151,4 @@ const SqliteContractView = {
|
|
|
148
151
|
//#endregion
|
|
149
152
|
export { sqliteCreateNamespace as i, SqliteContractView as n, SqliteUnboundDatabase as r, SqliteContractSerializer as t };
|
|
150
153
|
|
|
151
|
-
//# sourceMappingURL=sqlite-contract-view-
|
|
154
|
+
//# sourceMappingURL=sqlite-contract-view-CGfiGvKH-CT-JjNHd.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-contract-view-CGfiGvKH-CT-JjNHd.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/sqlite-contract-view-CGfiGvKH.mjs"],"sourcesContent":["import { o as sqliteDataTypes } from \"./data-types-coQrCWfS.mjs\";\nimport { n as sqliteError } from \"./errors-DnR-sMHS.mjs\";\nimport { r as quoteIdentifier } from \"./sql-utils-XGT5Esi2.mjs\";\nimport { createDataTypeLookup } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { SqlNamespaceBase } from \"@internal/sql-contract/types\";\nimport { UNBOUND_NAMESPACE_ID, freezeNode, hydrateNamespaceEntities } from \"@internal/framework-components/ir\";\nimport { SqlContractSerializerBase } from \"@internal/family-sql/ir\";\nimport { tableEntityKind } from \"@internal/sql-contract/entity-kinds\";\nimport { buildSqlSingleNamespaceView } from \"@internal/sql-contract/contract-view\";\n//#region src/core/sqlite-unbound-database.ts\nconst SQLITE_NAMESPACE_KIND = \"sqlite-namespace\";\n/**\n* SQLite namespace concretion carrying table metadata under\n* `entries.table` and unqualified `qualifyTable()` emission for runtime\n* SQL rendering.\n*/\nvar SqliteDatabase = class extends SqlNamespaceBase {\n\tid;\n\tentries;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.id = input.id;\n\t\tconst dispatched = hydrateNamespaceEntities(input.entries, /* @__PURE__ */ new Map([[\"table\", tableEntityKind]]), \"carry\");\n\t\tthis.entries = Object.freeze(blindCast(dispatched));\n\t\tObject.defineProperty(this, \"kind\", {\n\t\t\tvalue: SQLITE_NAMESPACE_KIND,\n\t\t\twritable: false,\n\t\t\tenumerable: false,\n\t\t\tconfigurable: true\n\t\t});\n\t\tfreezeNode(this);\n\t}\n\tget table() {\n\t\treturn this.entries.table ?? Object.freeze({});\n\t}\n\tqualifier() {\n\t\treturn \"\";\n\t}\n\tqualifyTable(tableName) {\n\t\treturn quoteIdentifier(tableName);\n\t}\n};\n/**\n* SQLite target `Namespace` concretion. SQLite has no schema or\n* database-namespacing concept at the SQL level — there is exactly one\n* effective namespace per connection, so the target ships a single\n* singleton bound to the framework's `UNBOUND_NAMESPACE_ID` slot.\n*\n* Qualifier emission elides the prefix entirely: rendered DDL and\n* queries look unqualified (`CREATE TABLE \"users\" (...)`), matching\n* SQLite's native dialect. Call sites stay polymorphic — they ask the\n* namespace for its qualifier and consume the empty/unqualified result\n* the same way Postgres consumes a `\"schema\"` prefix.\n*\n* The SQLite PSL interpreter rejects every explicit `namespace { … }`\n* block with a diagnostic naming SQLite; only the implicit\n* `__unspecified__` AST bucket reaches the SQLite interpreter, which\n* lowers it to this singleton.\n*/\nvar SqliteUnboundDatabase = class SqliteUnboundDatabase extends SqliteDatabase {\n\tstatic instance = new SqliteUnboundDatabase();\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: UNBOUND_NAMESPACE_ID,\n\t\t\tentries: { table: {} }\n\t\t});\n\t}\n};\n/**\n* The SQLite target's rejection of expression and partial indexes: the\n* family-shared authoring surfaces parse `expression:`/`where:` for every\n* SQL target, but SQLite neither renders nor introspects them (project\n* non-goal) — a contract carrying one must fail loudly at lowering instead\n* of silently producing an unverifiable index. Target-owned so no family\n* code branches on the target.\n*/\nfunction rejectSqlBodyIndexes(input) {\n\tconst tables = input.entries[\"table\"];\n\tif (tables === void 0) return;\n\tfor (const [tableName, table] of Object.entries(tables)) {\n\t\tconst indexes = blindCast(table).indexes;\n\t\tfor (const index of indexes ?? []) if (index.expression !== void 0 || index.where !== void 0) throw sqliteError(\"CONTRACT.ARGUMENT_INVALID\", `SQLite does not support expression or partial indexes: index \"${index.name ?? \"<unnamed>\"}\" on table \"${tableName}\" declares ${index.expression !== void 0 ? \"an expression\" : \"a where predicate\"}. Use a fields-only index, or author this index against a Postgres target.`);\n\t}\n}\nfunction buildSqliteNamespace(input) {\n\trejectSqlBodyIndexes(input);\n\tif (input.id !== UNBOUND_NAMESPACE_ID) throw sqliteError(\"CONTRACT.NAMESPACE_INVALID\", `buildSqliteNamespace: SQLite has no schema concept; the only valid namespace id is \"${UNBOUND_NAMESPACE_ID}\" (received \"${input.id}\").`, { meta: { received: input.id } });\n\tconst tableKind = input.entries[\"table\"];\n\tconst tableCount = tableKind !== void 0 ? Object.keys(tableKind).length : 0;\n\tconst hasUnknownKinds = Object.keys(input.entries).some((kind) => kind !== \"table\");\n\tif (tableCount === 0 && !hasUnknownKinds) return SqliteUnboundDatabase.instance;\n\treturn new SqliteDatabase({\n\t\tid: input.id,\n\t\tentries: input.entries\n\t});\n}\n/**\n* Target-supplied `Namespace` factory the SQLite target plumbs through\n* `defineContract({ createNamespace })`. SQLite has only one\n* effective namespace slot — the framework `UNBOUND_NAMESPACE_ID`\n* sentinel — so the factory always returns the singleton or a fresh\n* `SqliteDatabase` for the unbound slot with tables. The SQL family's\n* defensive validation in `defineContract` already rejects\n* user-declared SQLite namespaces, so this throw is a structural\n* safety net rather than a user-facing surface.\n*/\nfunction sqliteCreateNamespace(input) {\n\treturn buildSqliteNamespace(input);\n}\n//#endregion\n//#region src/core/sqlite-contract-serializer.ts\n/**\n* SQLite target `ContractSerializer` concretion. Mirrors the Postgres\n* shape: inherits the full SQL-family deserialization pipeline and\n* materialises namespace entries as SQLite database concretions that\n* expose `qualifyTable()` for runtime SQL rendering.\n*/\nvar SqliteContractSerializer = class extends SqlContractSerializerBase {\n\tconstructor() {\n\t\tsuper(/* @__PURE__ */ new Map(), [], createDataTypeLookup(sqliteDataTypes));\n\t}\n\thydrateSqlNamespaceEntry(nsId, raw) {\n\t\treturn buildSqliteNamespace(blindCast(super.hydrateSqlNamespaceEntry(nsId, raw)));\n\t}\n\tserializeContract(contract) {\n\t\tconst { storage, ...rest } = contract;\n\t\tconst namespacesJson = {};\n\t\tfor (const [nsId, ns] of Object.entries(storage.namespaces)) namespacesJson[nsId] = {\n\t\t\tid: ns.id,\n\t\t\tentries: this.serializeNamespaceEntries(ns.entries)\n\t\t};\n\t\treturn blindCast({\n\t\t\t...rest,\n\t\t\tstorage: {\n\t\t\t\tstorageHash: String(storage.storageHash),\n\t\t\t\tnamespaces: namespacesJson,\n\t\t\t\t...storage.types !== void 0 ? { types: this.serializeJsonObject(storage.types) } : {}\n\t\t\t}\n\t\t});\n\t}\n};\n//#endregion\n//#region src/core/sqlite-contract-view.ts\nconst SqliteContractView = {\n\t/** Wrap an already-deserialized SQLite contract in a view. */\n\tfrom(contract) {\n\t\treturn buildSqlSingleNamespaceView(contract);\n\t},\n\t/** Deserialize a SQLite contract JSON envelope and wrap it in a view. */\n\tfromJson(json) {\n\t\treturn buildSqlSingleNamespaceView(new SqliteContractSerializer().deserializeContract(json));\n\t}\n};\n//#endregion\nexport { sqliteCreateNamespace as i, SqliteContractSerializer as n, SqliteUnboundDatabase as r, SqliteContractView as t };\n\n//# sourceMappingURL=sqlite-contract-view-CGfiGvKH.mjs.map"],"mappings":"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"}
|