@prisma/orm-target-sqlite 8.0.0-rc.9-dev.12 → 8.0.1-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 +5 -1
- package/dist/adapter-CLQMz42P.d.mts +205 -0
- package/dist/adapter-CLQMz42P.d.mts.map +1 -0
- package/dist/{adapter-jwxys1MM-CmUELyBs.mjs → adapter-CxzIV2_z-DKbo2Ebu.mjs} +347 -137
- package/dist/adapter-CxzIV2_z-DKbo2Ebu.mjs.map +1 -0
- package/dist/{adapter-DEYUC-KO-DO_abhIq.d.mts → adapter-xFPDhkod-Bfb8AQQJ.d.mts} +12 -9
- package/dist/adapter-xFPDhkod-Bfb8AQQJ.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 +30 -16
- 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-CA7Idm1d.d.mts +164 -0
- package/dist/aggregates-CA7Idm1d.d.mts.map +1 -0
- package/dist/{aggregates-DWyPO7t6.mjs → aggregates-hLiHPHBG.mjs} +44 -26
- package/dist/aggregates-hLiHPHBG.mjs.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-CH8Nqk89-LNT9hksu.d.mts +23 -0
- package/dist/codec-ids-CH8Nqk89-LNT9hksu.d.mts.map +1 -0
- package/dist/codec-ids-CTshXpbg-tcdbf_VC.mjs +23 -0
- package/dist/codec-ids-CTshXpbg-tcdbf_VC.mjs.map +1 -0
- package/dist/codec-ids-Do7Ml2pg.d.mts +1 -0
- package/dist/codec-types-CBLOfyrr.d.mts +2 -0
- package/dist/codec-types-CcuzuROC.d.mts +1 -0
- package/dist/codec-types-Ci-h2uxN-41PNpdNL.d.mts +35 -0
- package/dist/codec-types-Ci-h2uxN-41PNpdNL.d.mts.map +1 -0
- package/dist/codecs-BO3frExA.mjs +49 -0
- package/dist/codecs-BO3frExA.mjs.map +1 -0
- package/dist/codecs-DBQsDiM--Cy-r45H3.d.mts +378 -0
- package/dist/codecs-DBQsDiM--Cy-r45H3.d.mts.map +1 -0
- package/dist/codecs-Dou3fR1K.d.mts +1 -0
- package/dist/codecs-izq9l1NG-Bb2RnXsx.mjs +1081 -0
- package/dist/codecs-izq9l1NG-Bb2RnXsx.mjs.map +1 -0
- package/dist/column-types-D3MMpY3X.d.mts +42 -0
- package/dist/column-types-D3MMpY3X.d.mts.map +1 -0
- package/dist/column-types-D_PjRS6w.mjs +24 -0
- package/dist/column-types-D_PjRS6w.mjs.map +1 -0
- package/dist/contract-contributions-DEePsuJb-CXE-f6pP.mjs +28 -0
- package/dist/contract-contributions-DEePsuJb-CXE-f6pP.mjs.map +1 -0
- package/dist/{contract-free-D5cZrgNl.mjs → contract-free-B5S1OSEd.mjs} +8 -7
- package/dist/contract-free-B5S1OSEd.mjs.map +1 -0
- package/dist/{contract-free-CCLAXZV2.d.mts → contract-free-IqKgq8Pk.d.mts} +6 -6
- package/dist/contract-free-IqKgq8Pk.d.mts.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-CtCvtwJx.d.mts +408 -0
- package/dist/control-CtCvtwJx.d.mts.map +1 -0
- package/dist/{control-CLirKz11.d.mts → control-DfWteXy-.d.mts} +31 -45
- package/dist/control-DfWteXy-.d.mts.map +1 -0
- package/dist/control-V3kPfMTR.mjs +61 -0
- package/dist/control-V3kPfMTR.mjs.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-DaT4D2GV-DE0V_N6k.mjs +120 -0
- package/dist/data-type-entries-DaT4D2GV-DE0V_N6k.mjs.map +1 -0
- package/dist/data-types-C1nzwKt7.d.mts +68 -0
- package/dist/data-types-C1nzwKt7.d.mts.map +1 -0
- package/dist/data-types-Djvapurb-BR-Y4NWN.mjs +239 -0
- package/dist/data-types-Djvapurb-BR-Y4NWN.mjs.map +1 -0
- package/dist/date-time-now-generators-DUb3x91B-D0keGG59.mjs +64 -0
- package/dist/date-time-now-generators-DUb3x91B-D0keGG59.mjs.map +1 -0
- package/dist/datetime-text-DPjoF6HJ-se0mLEbc.mjs +32 -0
- package/dist/datetime-text-DPjoF6HJ-se0mLEbc.mjs.map +1 -0
- package/dist/ddl-31OBcTco.d.mts +1 -0
- package/dist/{ddl-CXduXyOT-nlDP6DGx.mjs → ddl-CgkyurGo-B2o4mSIT.mjs} +45 -8
- package/dist/ddl-CgkyurGo-B2o4mSIT.mjs.map +1 -0
- package/dist/default-normalizer-BANdMVGr-BiUHyBX1.mjs +124 -0
- package/dist/default-normalizer-BANdMVGr-BiUHyBX1.mjs.map +1 -0
- package/dist/default-normalizer-CtNsZNRZ.d.mts +25 -0
- package/dist/default-normalizer-CtNsZNRZ.d.mts.map +1 -0
- package/dist/descriptor-meta-CafFMPhN-x3YQXDSX.mjs +26 -0
- package/dist/descriptor-meta-CafFMPhN-x3YQXDSX.mjs.map +1 -0
- package/dist/descriptor-meta-CkiPlqDS-n3hDP01X.mjs +137 -0
- package/dist/descriptor-meta-CkiPlqDS-n3hDP01X.mjs.map +1 -0
- package/dist/descriptor-meta-DEr1ALec-DvT6glGq.mjs +385 -0
- package/dist/descriptor-meta-DEr1ALec-DvT6glGq.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 +58 -20
- package/dist/driver__runtime.mjs.map +1 -1
- package/dist/errors-DxbvEzQp-CeTjoGtL.mjs +146 -0
- package/dist/errors-DxbvEzQp-CeTjoGtL.mjs.map +1 -0
- package/dist/{migration-DOKPHtxn.mjs → migration-BYRMZiPU.mjs} +6 -5
- package/dist/migration-BYRMZiPU.mjs.map +1 -0
- package/dist/{migration-uylRe5MP.d.mts → migration-Dekon_QC.d.mts} +6 -5
- package/dist/migration-Dekon_QC.d.mts.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-DjbjegGT-DsQBI5Ll.mjs +2044 -0
- package/dist/op-factory-call-DjbjegGT-DsQBI5Ll.mjs.map +1 -0
- package/dist/op-factory-call-gQ5ddSys.d.mts +327 -0
- package/dist/op-factory-call-gQ5ddSys.d.mts.map +1 -0
- package/dist/pack-CHESErO8.d.mts +1477 -0
- package/dist/pack-CHESErO8.d.mts.map +1 -0
- package/dist/{planner-Bxdi7jZF.d.mts → planner-Bu5XBkHm.d.mts} +21 -10
- package/dist/planner-Bu5XBkHm.d.mts.map +1 -0
- package/dist/planner-C1OMkqV5-BAv-WPw6.mjs +497 -0
- package/dist/planner-C1OMkqV5-BAv-WPw6.mjs.map +1 -0
- package/dist/{planner-produced-sqlite-migration-BuJysRxx-CaDUbNVx.d.mts → planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.d.mts} +5 -6
- package/dist/planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.d.mts.map +1 -0
- package/dist/{planner-produced-sqlite-migration-C9uVDKrJ-CWbxSANn.mjs → planner-produced-sqlite-migration-CrbMD1ch-O7Mh_aKY.mjs} +13 -23
- package/dist/planner-produced-sqlite-migration-CrbMD1ch-O7Mh_aKY.mjs.map +1 -0
- package/dist/planner-produced-sqlite-migration-DtytlAAY.d.mts +1 -0
- package/dist/{planner-target-details-xR6UfIcz-CMahymzq.d.mts → planner-target-details-B-qtfkmj-DIGpv7YQ.d.mts} +2 -3
- package/dist/planner-target-details-B-qtfkmj-DIGpv7YQ.d.mts.map +1 -0
- package/dist/{planner-target-details-CIQ789Gc-C5U4yVY9.mjs → planner-target-details-Daaeo8s9-BGAN4JVc.mjs} +2 -4
- package/dist/planner-target-details-Daaeo8s9-BGAN4JVc.mjs.map +1 -0
- package/dist/render-ops-CQ-Kf4P0-DDUU4OFY.mjs +34 -0
- package/dist/render-ops-CQ-Kf4P0-DDUU4OFY.mjs.map +1 -0
- package/dist/{render-ops-B10yqmdG.d.mts → render-ops-Wlf_Pawh.d.mts} +3 -3
- package/dist/render-ops-Wlf_Pawh.d.mts.map +1 -0
- package/dist/require-temporal-CHWqSDF3-ElFTiAh6.mjs +16 -0
- package/dist/require-temporal-CHWqSDF3-ElFTiAh6.mjs.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-C43fN_cJ.mjs +32 -0
- package/dist/runtime-C43fN_cJ.mjs.map +1 -0
- package/dist/{runtime-C5J9fusd.d.mts → runtime-CVBk_GlD.d.mts} +4 -4
- package/dist/runtime-CVBk_GlD.d.mts.map +1 -0
- package/dist/runtime-DqzT70C4.d.mts +67 -0
- package/dist/runtime-DqzT70C4.d.mts.map +1 -0
- package/dist/sql-renderer-DlZKtvVf.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-CHBxMmv--Dl7wl7n3.mjs} +31 -4
- package/dist/sql-utils-CHBxMmv--Dl7wl7n3.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-c-qO_pKt-DOCoqwrD.mjs +51 -0
- package/dist/sqlite-contract-view-c-qO_pKt-DOCoqwrD.mjs.map +1 -0
- package/dist/sqlite-migration-C_9TPlLD-DtKN8bi9.d.mts +227 -0
- package/dist/sqlite-migration-C_9TPlLD-DtKN8bi9.d.mts.map +1 -0
- package/dist/sqlite-migration-Cmzykasm--GxBXXny.mjs +1363 -0
- package/dist/sqlite-migration-Cmzykasm--GxBXXny.mjs.map +1 -0
- package/dist/{sqlite-contract-view-BYR10usg-BteDAUZr.mjs → sqlite-unbound-database-CfLXSiVo-Dy5VBXGz.mjs} +6 -47
- package/dist/sqlite-unbound-database-CfLXSiVo-Dy5VBXGz.mjs.map +1 -0
- package/dist/{shared-BYAX0FaQ--VvRXVRC.d.mts → tables-BY3u6rl_-Coqqy4JK.d.mts} +46 -10
- package/dist/tables-BY3u6rl_-Coqqy4JK.d.mts.map +1 -0
- package/dist/target.d.mts +30 -29
- package/dist/target.mjs +27 -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 +332 -114
- 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 +3 -3
- package/dist/target__runtime.mjs +4 -17
- package/dist/target__sql-utils.d.mts +1 -1
- package/dist/target__sql-utils.mjs +1 -1
- package/dist/target__types.d.mts +2 -0
- package/dist/target__types.mjs +2 -0
- package/dist/{control--wMueaTg.d.mts → types-COqCbSev.d.mts} +3 -8
- package/dist/types-COqCbSev.d.mts.map +1 -0
- package/dist/types-CexPOm8x.d.mts +2 -0
- 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/package.json +23 -14
- package/dist/adapter-D7zw14p5.d.mts +0 -2
- package/dist/adapter-DEYUC-KO-DO_abhIq.d.mts.map +0 -1
- package/dist/adapter-jwxys1MM-CmUELyBs.mjs.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 +0 -14
- package/dist/codec-ids-CzeDyMWW-BZAcI50I.d.mts.map +0 -1
- package/dist/codec-ids-KMliSCRp-BhTbmbGr.mjs +0 -14
- 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 +0 -25
- 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 +0 -193
- 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 +0 -51
- 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-C0sCVHMY-1P-YUnEW.mjs +0 -34
- package/dist/descriptor-meta-C0sCVHMY-1P-YUnEW.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-runtime-BkXK3OjD-CxZdKHCw.mjs +0 -13
- package/dist/descriptor-meta-runtime-BkXK3OjD-CxZdKHCw.mjs.map +0 -1
- package/dist/descriptor-meta-vjJkUDsn-Hz3rnAnk.mjs +0 -70
- package/dist/descriptor-meta-vjJkUDsn-Hz3rnAnk.mjs.map +0 -1
- package/dist/errors-DnR-sMHS-KkMLIP2U.mjs +0 -38
- 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 +0 -161
- 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-Cn0GAuEa.d.mts +0 -103
- package/dist/pack-Cn0GAuEa.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 +0 -28
- 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 +0 -105
- 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/target__runtime.mjs.map +0 -1
- package/dist/types-B7e2QVEx.d.mts +0 -1
- package/dist/types-C5FSREvo-CwUlKK34.d.mts.map +0 -1
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { i as SqliteCodecDescriptorRegistry, r as SqliteCodecDescriptor } from "./codec-descriptor-BcgD9f3L-yDi5nh_k.mjs";
|
|
2
|
-
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-CzeDyMWW-BZAcI50I.mjs";
|
|
3
|
-
import { ProjectionExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
4
|
-
import { CodecCallContext, CodecImpl, CodecInstanceContext } from "@prisma/orm-framework/components/codec";
|
|
5
|
-
import { JsonValue } from "@prisma/orm-framework/contract/types";
|
|
6
|
-
import { CodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/query-lane-context";
|
|
7
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codecs-BQWqLgCl.d.mts
|
|
8
|
-
//#region src/core/codec-helpers.d.ts
|
|
9
|
-
/**
|
|
10
|
-
* Local `JsonValue` alias for the SQLite target. Codec implementations live in `codecs.ts` (TML-2357); this module retains only the JSON-shape alias the surrounding adapter and tests still import.
|
|
11
|
-
*/
|
|
12
|
-
type JsonValue$1 = string | number | boolean | null | {
|
|
13
|
-
readonly [key: string]: JsonValue$1;
|
|
14
|
-
} | readonly JsonValue$1[];
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region src/core/codecs.d.ts
|
|
17
|
-
/**
|
|
18
|
-
* Re-applies SQLite's JSON subtype to a document-valued expression.
|
|
19
|
-
*
|
|
20
|
-
* SQLite carries "this text is JSON" as a subtype on the value rather than in
|
|
21
|
-
* its type, and the subtype does not survive a derived table: a document that
|
|
22
|
-
* `json_object` produced arrives one level out as plain text, so the enclosing
|
|
23
|
-
* constructor embeds it as a *string containing JSON* rather than as a
|
|
24
|
-
* document. `json()` re-applies the subtype, which is what makes the value nest
|
|
25
|
-
* as a document again.
|
|
26
|
-
*
|
|
27
|
-
* The loss happens at the first derived-table boundary and does not compound, so
|
|
28
|
-
* a retag is needed where the document is consumed rather than at every level it
|
|
29
|
-
* passes through.
|
|
30
|
-
*
|
|
31
|
-
* Applying this twice is a no-op — SQLite's `json()` is idempotent, and the
|
|
32
|
-
* wrapper collapses rather than nesting so the rendered SQL says so too. It is
|
|
33
|
-
* safe on any valid JSON text, including scalars, and on NULL; it raises
|
|
34
|
-
* `malformed JSON` on text that is not JSON, which is the correct failure for a
|
|
35
|
-
* value that was never a document.
|
|
36
|
-
*/
|
|
37
|
-
declare const jsonDocumentRetag: (expression: ProjectionExpr) => ProjectionExpr;
|
|
38
|
-
declare class SqliteTextCodec extends CodecImpl<typeof SQLITE_TEXT_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
|
|
39
|
-
encode(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
40
|
-
decode(wire: string, _ctx: CodecCallContext): Promise<string>;
|
|
41
|
-
encodeJson(value: string): JsonValue;
|
|
42
|
-
decodeJson(json: JsonValue): string;
|
|
43
|
-
}
|
|
44
|
-
declare class SqliteTextDescriptor extends SqliteCodecDescriptor<void> {
|
|
45
|
-
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
46
|
-
readonly codecId: "sqlite/text@1";
|
|
47
|
-
readonly traits: readonly ["equality", "order", "textual"];
|
|
48
|
-
readonly targetTypes: readonly ["text"];
|
|
49
|
-
readonly paramsSchema: import("@standard-schema/spec").StandardSchemaV1<void, void>;
|
|
50
|
-
factory(): (ctx: CodecInstanceContext) => SqliteTextCodec;
|
|
51
|
-
}
|
|
52
|
-
declare const sqliteTextColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteTextCodec, undefined>;
|
|
53
|
-
declare class SqliteIntegerCodec extends CodecImpl<typeof SQLITE_INTEGER_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
|
|
54
|
-
encode(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
55
|
-
decode(wire: number, _ctx: CodecCallContext): Promise<number>;
|
|
56
|
-
encodeJson(value: number): JsonValue;
|
|
57
|
-
decodeJson(json: JsonValue): number;
|
|
58
|
-
}
|
|
59
|
-
declare class SqliteIntegerDescriptor extends SqliteCodecDescriptor<void> {
|
|
60
|
-
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
61
|
-
readonly codecId: "sqlite/integer@1";
|
|
62
|
-
readonly traits: readonly ["equality", "order", "numeric"];
|
|
63
|
-
readonly targetTypes: readonly ["integer"];
|
|
64
|
-
readonly paramsSchema: import("@standard-schema/spec").StandardSchemaV1<void, void>;
|
|
65
|
-
factory(): (ctx: CodecInstanceContext) => SqliteIntegerCodec;
|
|
66
|
-
}
|
|
67
|
-
declare const sqliteIntegerColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteIntegerCodec, undefined>;
|
|
68
|
-
declare class SqliteRealCodec extends CodecImpl<typeof SQLITE_REAL_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
|
|
69
|
-
encode(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
70
|
-
decode(wire: number, _ctx: CodecCallContext): Promise<number>;
|
|
71
|
-
encodeJson(value: number): JsonValue;
|
|
72
|
-
decodeJson(json: JsonValue): number;
|
|
73
|
-
}
|
|
74
|
-
declare class SqliteRealDescriptor extends SqliteCodecDescriptor<void> {
|
|
75
|
-
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
76
|
-
readonly codecId: "sqlite/real@1";
|
|
77
|
-
readonly traits: readonly ["equality", "order", "numeric"];
|
|
78
|
-
readonly targetTypes: readonly ["real"];
|
|
79
|
-
readonly paramsSchema: import("@standard-schema/spec").StandardSchemaV1<void, void>;
|
|
80
|
-
factory(): (ctx: CodecInstanceContext) => SqliteRealCodec;
|
|
81
|
-
}
|
|
82
|
-
declare const sqliteRealColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteRealCodec, undefined>;
|
|
83
|
-
declare class SqliteBlobCodec extends CodecImpl<typeof SQLITE_BLOB_CODEC_ID, readonly ['equality'], Uint8Array, Uint8Array> {
|
|
84
|
-
encode(value: Uint8Array, _ctx: CodecCallContext): Promise<Uint8Array>;
|
|
85
|
-
decode(wire: Uint8Array, _ctx: CodecCallContext): Promise<Uint8Array>;
|
|
86
|
-
encodeJson(value: Uint8Array): JsonValue;
|
|
87
|
-
decodeJson(json: JsonValue): Uint8Array;
|
|
88
|
-
}
|
|
89
|
-
declare class SqliteBlobDescriptor extends SqliteCodecDescriptor<void> {
|
|
90
|
-
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
91
|
-
readonly codecId: "sqlite/blob@1";
|
|
92
|
-
readonly traits: readonly ["equality"];
|
|
93
|
-
readonly targetTypes: readonly ["blob"];
|
|
94
|
-
readonly paramsSchema: import("@standard-schema/spec").StandardSchemaV1<void, void>;
|
|
95
|
-
factory(): (ctx: CodecInstanceContext) => SqliteBlobCodec;
|
|
96
|
-
}
|
|
97
|
-
declare const sqliteBlobColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteBlobCodec, undefined>;
|
|
98
|
-
declare class SqliteDatetimeCodec extends CodecImpl<typeof SQLITE_DATETIME_CODEC_ID, readonly ['equality', 'order'], string, Date> {
|
|
99
|
-
private parseDate;
|
|
100
|
-
encode(value: Date, _ctx: CodecCallContext): Promise<string>;
|
|
101
|
-
decode(wire: string, _ctx: CodecCallContext): Promise<Date>;
|
|
102
|
-
encodeJson(value: Date): JsonValue;
|
|
103
|
-
decodeJson(json: JsonValue): Date;
|
|
104
|
-
}
|
|
105
|
-
declare class SqliteDatetimeDescriptor extends SqliteCodecDescriptor<void> {
|
|
106
|
-
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
107
|
-
readonly codecId: "sqlite/datetime@1";
|
|
108
|
-
readonly traits: readonly ["equality", "order"];
|
|
109
|
-
readonly targetTypes: readonly ["text"];
|
|
110
|
-
readonly paramsSchema: import("@standard-schema/spec").StandardSchemaV1<void, void>;
|
|
111
|
-
factory(): (ctx: CodecInstanceContext) => SqliteDatetimeCodec;
|
|
112
|
-
}
|
|
113
|
-
declare const sqliteDatetimeColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteDatetimeCodec, undefined>;
|
|
114
|
-
declare class SqliteJsonCodec extends CodecImpl<typeof SQLITE_JSON_CODEC_ID, readonly ['equality'], string | JsonValue, JsonValue> {
|
|
115
|
-
encode(value: JsonValue, _ctx: CodecCallContext): Promise<string>;
|
|
116
|
-
decode(wire: string | JsonValue, _ctx: CodecCallContext): Promise<JsonValue>;
|
|
117
|
-
encodeJson(value: JsonValue): JsonValue;
|
|
118
|
-
decodeJson(json: JsonValue): JsonValue;
|
|
119
|
-
}
|
|
120
|
-
declare class SqliteJsonDescriptor extends SqliteCodecDescriptor<void> {
|
|
121
|
-
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
122
|
-
readonly codecId: "sqlite/json@1";
|
|
123
|
-
readonly traits: readonly ["equality"];
|
|
124
|
-
readonly targetTypes: readonly ["text"];
|
|
125
|
-
readonly paramsSchema: import("@standard-schema/spec").StandardSchemaV1<void, void>;
|
|
126
|
-
factory(): (ctx: CodecInstanceContext) => SqliteJsonCodec;
|
|
127
|
-
}
|
|
128
|
-
declare const sqliteJsonColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteJsonCodec, undefined>;
|
|
129
|
-
declare class SqliteBigintCodec extends CodecImpl<typeof SQLITE_BIGINT_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | bigint | string, bigint> {
|
|
130
|
-
encode(value: bigint, _ctx: CodecCallContext): Promise<number | bigint>;
|
|
131
|
-
/**
|
|
132
|
-
* The wire value is text wherever the value could outrun a JS number: an
|
|
133
|
-
* aggregate SQLite computes leaves the database through the descriptor's cast
|
|
134
|
-
* to text, because the driver reads an integer no number can hold as an error
|
|
135
|
-
* rather than a value. A number-typed wire value must therefore be a safe
|
|
136
|
-
* integer — past ±(2^53 − 1) it has already rounded, and converting it would
|
|
137
|
-
* mint a spuriously-exact `bigint` that need not equal the stored value.
|
|
138
|
-
*/
|
|
139
|
-
decode(wire: number | bigint | string, _ctx: CodecCallContext): Promise<bigint>;
|
|
140
|
-
encodeJson(value: bigint): JsonValue;
|
|
141
|
-
decodeJson(json: JsonValue): bigint;
|
|
142
|
-
}
|
|
143
|
-
declare class SqliteBigintDescriptor extends SqliteCodecDescriptor<void> {
|
|
144
|
-
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
145
|
-
readonly codecId: "sqlite/bigint@1";
|
|
146
|
-
readonly traits: readonly ["equality", "order", "numeric"];
|
|
147
|
-
readonly targetTypes: readonly ["integer"];
|
|
148
|
-
readonly paramsSchema: import("@standard-schema/spec").StandardSchemaV1<void, void>;
|
|
149
|
-
factory(): (ctx: CodecInstanceContext) => SqliteBigintCodec;
|
|
150
|
-
}
|
|
151
|
-
declare const sqliteBigintColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteBigintCodec, undefined>;
|
|
152
|
-
/**
|
|
153
|
-
* A SQLite INTEGER decoded as a JS `number`, for columns whose values stay
|
|
154
|
-
* within the safe integer range ±(2^53 − 1). Both directions guard rather than
|
|
155
|
-
* round: decode (wire and JSON) and encode throw a structured error on
|
|
156
|
-
* out-of-range or non-integral input. The canonical JSON is a JSON number —
|
|
157
|
-
* the deliberate exception to the decimal-text rule for 64-bit integers, and
|
|
158
|
-
* the codec's purpose. The descriptor claims no target type, so `integer` in
|
|
159
|
-
* type position keeps its current codecs.
|
|
160
|
-
*/
|
|
161
|
-
declare class SqliteBigintNumberCodec extends CodecImpl<typeof SQLITE_BIGINT_NUMBER_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | bigint | string, number> {
|
|
162
|
-
encode(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
163
|
-
/**
|
|
164
|
-
* The driver hands an INTEGER over as a `number` or, in safe-integer mode, a
|
|
165
|
-
* `bigint`; a bigint (or decimal text) is range-checked exactly before any
|
|
166
|
-
* conversion to `number`, so an out-of-range value throws rather than rounds.
|
|
167
|
-
*/
|
|
168
|
-
decode(wire: number | bigint | string, _ctx: CodecCallContext): Promise<number>;
|
|
169
|
-
encodeJson(value: number): JsonValue;
|
|
170
|
-
decodeJson(json: JsonValue): number;
|
|
171
|
-
}
|
|
172
|
-
declare class SqliteBigintNumberDescriptor extends SqliteCodecDescriptor<void> {
|
|
173
|
-
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
174
|
-
readonly codecId: "sqlite/bigintnumber@1";
|
|
175
|
-
readonly traits: readonly ["equality", "order", "numeric"];
|
|
176
|
-
readonly targetTypes: readonly [];
|
|
177
|
-
readonly paramsSchema: import("@standard-schema/spec").StandardSchemaV1<void, void>;
|
|
178
|
-
renderValueLiteral(value: JsonValue): string | undefined;
|
|
179
|
-
factory(): (ctx: CodecInstanceContext) => SqliteBigintNumberCodec;
|
|
180
|
-
}
|
|
181
|
-
declare const sqliteBigintNumberColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteBigintNumberCodec, undefined>;
|
|
182
|
-
//#endregion
|
|
183
|
-
//#region src/core/registry.d.ts
|
|
184
|
-
/**
|
|
185
|
-
* Registry of every codec descriptor shipped by `@internal/target-sqlite`.
|
|
186
|
-
*
|
|
187
|
-
* Public consumer surface for the sqlite codec set: the sqlite adapter and any other consumer that needs to enumerate or look up a sqlite codec by id consumes this rather than the raw descriptor array. See ADR 208.
|
|
188
|
-
*/
|
|
189
|
-
declare const sqliteCodecRegistry: CodecDescriptorRegistry;
|
|
190
|
-
declare const sqliteCodecDescriptorRegistry: SqliteCodecDescriptorRegistry;
|
|
191
|
-
//#endregion
|
|
192
|
-
export { sqliteIntegerColumn as _, SqliteDatetimeDescriptor as a, sqliteTextColumn as b, SqliteRealDescriptor as c, sqliteBigintColumn as d, sqliteBigintNumberColumn as f, sqliteDatetimeColumn as g, sqliteCodecRegistry as h, SqliteBlobDescriptor as i, SqliteTextDescriptor as l, sqliteCodecDescriptorRegistry as m, SqliteBigintDescriptor as n, SqliteIntegerDescriptor as o, sqliteBlobColumn as p, SqliteBigintNumberDescriptor as r, SqliteJsonDescriptor as s, JsonValue$1 as t, jsonDocumentRetag as u, sqliteJsonColumn as v, sqliteRealColumn as y };
|
|
193
|
-
//# sourceMappingURL=codecs-BQWqLgCl-CdB8t7HI.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codecs-BQWqLgCl-CdB8t7HI.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codecs-BQWqLgCl.d.mts"],"mappings":";;;;;;;;;;;KAUK;YACO,cAAc;aACb;;;;;;;;;;;;;;;;;;;;;;;cAuBC,oBAAoB,YAAY,mBAAmB;cACnD,wBAAwB,iBAAiB;EACrD,OAAO,eAAe,MAAM,mBAAmB;EAC/C,OAAO,cAAc,MAAM,mBAAmB;EAC9C,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,6BAA6B;YAC/B,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,8CAA8C;EACvD,YAAY,KAAK,yBAAyB;;cAE9B,uEAAuE,WAAW;cAClF,2BAA2B,iBAAiB;EACxD,OAAO,eAAe,MAAM,mBAAmB;EAC/C,OAAO,cAAc,MAAM,mBAAmB;EAC9C,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,gCAAgC;YAClC,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,8CAA8C;EACvD,YAAY,KAAK,yBAAyB;;cAE9B,0EAA0E,WAAW;cACrF,wBAAwB,iBAAiB;EACrD,OAAO,eAAe,MAAM,mBAAmB;EAC/C,OAAO,cAAc,MAAM,mBAAmB;EAC9C,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,6BAA6B;YAC/B,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,8CAA8C;EACvD,YAAY,KAAK,yBAAyB;;cAE9B,uEAAuE,WAAW;cAClF,wBAAwB,iBAAiB,6CAA6C,YAAY;EAC9G,OAAO,OAAO,YAAY,MAAM,mBAAmB,QAAQ;EAC3D,OAAO,MAAM,YAAY,MAAM,mBAAmB,QAAQ;EAC1D,WAAW,OAAO,aAAa;EAC/B,WAAW,MAAM,YAAY;;cAEjB,6BAA6B;YAC/B,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,8CAA8C;EACvD,YAAY,KAAK,yBAAyB;;cAE9B,uEAAuE,WAAW;cAClF,4BAA4B,iBAAiB,kEAAkE;UACnH;EACR,OAAO,OAAO,MAAM,MAAM,mBAAmB;EAC7C,OAAO,cAAc,MAAM,mBAAmB,QAAQ;EACtD,WAAW,OAAO,OAAO;EACzB,WAAW,MAAM,YAAY;;cAEjB,iCAAiC;YACnC,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,8CAA8C;EACvD,YAAY,KAAK,yBAAyB;;cAE9B,2EAA2E,WAAW;cACtF,wBAAwB,iBAAiB,sDAAsD,WAAW;EACtH,OAAO,OAAO,WAAW,MAAM,mBAAmB;EAClD,OAAO,eAAe,WAAW,MAAM,mBAAmB,QAAQ;EAClE,WAAW,OAAO,YAAY;EAC9B,WAAW,MAAM,YAAY;;cAEjB,6BAA6B;YAC/B,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,8CAA8C;EACvD,YAAY,KAAK,yBAAyB;;cAE9B,uEAAuE,WAAW;cAClF,0BAA0B,iBAAiB;EACvD,OAAO,eAAe,MAAM,mBAAmB;;;;;;;;;EAS/C,OAAO,gCAAgC,MAAM,mBAAmB;EAChE,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,+BAA+B;YACjC,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,8CAA8C;EACvD,YAAY,KAAK,yBAAyB;;cAE9B,yEAAyE,WAAW;;;;;;;;;;cAUpF,gCAAgC,iBAAiB;EAC7D,OAAO,eAAe,MAAM,mBAAmB;;;;;;EAM/C,OAAO,gCAAgC,MAAM,mBAAmB;EAChE,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,qCAAqC;YACvC,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,8CAA8C;EACvD,mBAAmB,OAAO;EAC1B,YAAY,KAAK,yBAAyB;;cAE9B,+EAA+E,WAAW;;;;;;;;cAQ1F,qBAAqB;cACrB,+BAA+B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./codecs-BQWqLgCl-CdB8t7HI.mjs";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-KMliSCRp-BhTbmbGr.mjs";
|
|
2
|
-
//#region ../../../3-targets/6-adapters/sqlite/dist/column-types.mjs
|
|
3
|
-
const textColumn = {
|
|
4
|
-
codecId: SQLITE_TEXT_CODEC_ID,
|
|
5
|
-
nativeType: "text"
|
|
6
|
-
};
|
|
7
|
-
const integerColumn = {
|
|
8
|
-
codecId: SQLITE_INTEGER_CODEC_ID,
|
|
9
|
-
nativeType: "integer"
|
|
10
|
-
};
|
|
11
|
-
const realColumn = {
|
|
12
|
-
codecId: SQLITE_REAL_CODEC_ID,
|
|
13
|
-
nativeType: "real"
|
|
14
|
-
};
|
|
15
|
-
const blobColumn = {
|
|
16
|
-
codecId: SQLITE_BLOB_CODEC_ID,
|
|
17
|
-
nativeType: "blob"
|
|
18
|
-
};
|
|
19
|
-
const datetimeColumn = {
|
|
20
|
-
codecId: SQLITE_DATETIME_CODEC_ID,
|
|
21
|
-
nativeType: "text"
|
|
22
|
-
};
|
|
23
|
-
const jsonColumn = {
|
|
24
|
-
codecId: SQLITE_JSON_CODEC_ID,
|
|
25
|
-
nativeType: "text"
|
|
26
|
-
};
|
|
27
|
-
const bigintColumn = {
|
|
28
|
-
codecId: SQLITE_BIGINT_CODEC_ID,
|
|
29
|
-
nativeType: "integer"
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { jsonColumn as a, integerColumn as i, blobColumn as n, realColumn as o, datetimeColumn as r, textColumn as s, bigintColumn as t };
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=column-types-NVxgsjFA.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"column-types-NVxgsjFA.mjs","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/column-types.mjs"],"sourcesContent":["import { SQLITE_BIGINT_CODEC_ID, SQLITE_BLOB_CODEC_ID, SQLITE_DATETIME_CODEC_ID, SQLITE_INTEGER_CODEC_ID, SQLITE_JSON_CODEC_ID, SQLITE_REAL_CODEC_ID, SQLITE_TEXT_CODEC_ID } from \"@internal/target-sqlite/codec-ids\";\n//#region src/core/column-types.ts\nconst textColumn = {\n\tcodecId: SQLITE_TEXT_CODEC_ID,\n\tnativeType: \"text\"\n};\nconst integerColumn = {\n\tcodecId: SQLITE_INTEGER_CODEC_ID,\n\tnativeType: \"integer\"\n};\nconst realColumn = {\n\tcodecId: SQLITE_REAL_CODEC_ID,\n\tnativeType: \"real\"\n};\nconst blobColumn = {\n\tcodecId: SQLITE_BLOB_CODEC_ID,\n\tnativeType: \"blob\"\n};\nconst datetimeColumn = {\n\tcodecId: SQLITE_DATETIME_CODEC_ID,\n\tnativeType: \"text\"\n};\nconst jsonColumn = {\n\tcodecId: SQLITE_JSON_CODEC_ID,\n\tnativeType: \"text\"\n};\nconst bigintColumn = {\n\tcodecId: SQLITE_BIGINT_CODEC_ID,\n\tnativeType: \"integer\"\n};\n//#endregion\nexport { bigintColumn, blobColumn, datetimeColumn, integerColumn, jsonColumn, realColumn, textColumn };\n\n//# sourceMappingURL=column-types.mjs.map"],"mappings":";;AAEA,MAAM,aAAa;CAClB,SAAS;CACT,YAAY;AACb;AACA,MAAM,gBAAgB;CACrB,SAAS;CACT,YAAY;AACb;AACA,MAAM,aAAa;CAClB,SAAS;CACT,YAAY;AACb;AACA,MAAM,aAAa;CAClB,SAAS;CACT,YAAY;AACb;AACA,MAAM,iBAAiB;CACtB,SAAS;CACT,YAAY;AACb;AACA,MAAM,aAAa;CAClB,SAAS;CACT,YAAY;AACb;AACA,MAAM,eAAe;CACpB,SAAS;CACT,YAAY;AACb"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//#region ../../../3-targets/6-adapters/sqlite/dist/column-types.d.mts
|
|
2
|
-
//#region src/core/column-types.d.ts
|
|
3
|
-
declare const textColumn: {
|
|
4
|
-
readonly codecId: "sqlite/text@1";
|
|
5
|
-
readonly nativeType: "text";
|
|
6
|
-
};
|
|
7
|
-
declare const integerColumn: {
|
|
8
|
-
readonly codecId: "sqlite/integer@1";
|
|
9
|
-
readonly nativeType: "integer";
|
|
10
|
-
};
|
|
11
|
-
declare const realColumn: {
|
|
12
|
-
readonly codecId: "sqlite/real@1";
|
|
13
|
-
readonly nativeType: "real";
|
|
14
|
-
};
|
|
15
|
-
declare const blobColumn: {
|
|
16
|
-
readonly codecId: "sqlite/blob@1";
|
|
17
|
-
readonly nativeType: "blob";
|
|
18
|
-
};
|
|
19
|
-
declare const datetimeColumn: {
|
|
20
|
-
readonly codecId: "sqlite/datetime@1";
|
|
21
|
-
readonly nativeType: "text";
|
|
22
|
-
};
|
|
23
|
-
declare const jsonColumn: {
|
|
24
|
-
readonly codecId: "sqlite/json@1";
|
|
25
|
-
readonly nativeType: "text";
|
|
26
|
-
};
|
|
27
|
-
declare const bigintColumn: {
|
|
28
|
-
readonly codecId: "sqlite/bigint@1";
|
|
29
|
-
readonly nativeType: "integer";
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { jsonColumn as a, integerColumn as i, blobColumn as n, realColumn as o, datetimeColumn as r, textColumn as s, bigintColumn as t };
|
|
33
|
-
//# sourceMappingURL=column-types-iWGuW-0W.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"column-types-iWGuW-0W.d.mts","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/column-types.d.mts"],"mappings":";;cACc;WACH;WACA;;cAEG;WACH;WACA;;cAEG;WACH;WACA;;cAEG;WACH;WACA;;cAEG;WACH;WACA;;cAEG;WACH;WACA;;cAEG;WACH;WACA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contract-free-CCLAXZV2.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/contract-free.d.mts"],"mappings":";;;;;UAIU;EACR,gBAAgB;EAChB,iBAAiB;;;;;;;;iBAQF,gBAAgB,eAAe,iBAAiB;UACvD;EACR,eAAe;EACf,gBAAgB;;;;;;;iBAOD,eAAe,oBAAoB;UAC1C;EACR,eAAe;EACf,gBAAgB;;;;;;;iBAOD,eAAe,oBAAoB;;;KAG/C;WACM;;cAEG,OAAO,OAAO,YAAY;cAC1B,UAAU,OAAO,YAAY;cAC7B,WAAW,OAAO,YAAY;cAC9B,WAAW,OAAO,YAAY;;;;;;;;;;;;;iBAa3B,YAAY,eAAe,cAAc,cAAc,SAAS,SAAS,YAAY;;;iBAGrF,4CAA4C;iBAC5C,8CAA8C;;;;;;;;;;;;;;;;;iBAiB9C,YAAY;WAClB;WACA;WACA;WACA,kBAAkB;WAClB,uBAAuB;IAC9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contract-free-D5cZrgNl.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/contract-free.mjs"],"sourcesContent":["import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, o as SQLITE_JSON_CODEC_ID } from \"./codec-ids-KMliSCRp.mjs\";\nimport { i as tableExistsAst, n as columnExistsAst, r as indexExistsAst, t as createTable } from \"./ddl-CXduXyOT.mjs\";\nimport { TableSource } from \"@internal/sql-relational-core/ast\";\nimport { APP_SPACE_ID } from \"@internal/framework-components/control\";\nimport { col, fn, lit, table } from \"@internal/sql-relational-core/contract-free\";\n//#region src/contract-free/columns.ts\nconst desc = (codecId, opts) => ({\n\tcodecId,\n\tnullable: opts?.nullable ?? false\n});\nconst text = (opts) => desc(SQLITE_TEXT_CODEC_ID, opts);\nconst integer = (opts) => desc(SQLITE_INTEGER_CODEC_ID, opts);\nconst jsonText = (opts) => desc(SQLITE_JSON_CODEC_ID, opts);\nconst datetime = (opts) => desc(SQLITE_DATETIME_CODEC_ID, opts);\n/**\n* Declare a SQLite control-plane table with a typed column schema. SQLite tables\n* are addressed by a flat name (no schema prefix).\n*\n* ```ts\n* const marker = sqliteTable('_prisma_marker', {\n* space: text(),\n* core_hash: text(),\n* updated_at: datetime(),\n* });\n* ```\n*/\nfunction sqliteTable(name, columns) {\n\treturn table(TableSource.named(name), columns);\n}\n//#endregion\n//#region src/contract-free/control-bootstrap.ts\nconst markerColumns = [\n\tcol(\"space\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tprimaryKey: true,\n\t\tdefault: lit(APP_SPACE_ID)\n\t}),\n\tcol(\"core_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"profile_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"contract_json\", \"TEXT\"),\n\tcol(\"canonical_version\", \"INTEGER\"),\n\tcol(\"updated_at\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: fn(\"datetime('now')\")\n\t}),\n\tcol(\"app_tag\", \"TEXT\"),\n\tcol(\"meta\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: lit(\"{}\")\n\t}),\n\tcol(\"invariants\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: lit(\"[]\")\n\t})\n];\nconst ledgerColumns = [\n\tcol(\"id\", \"INTEGER PRIMARY KEY AUTOINCREMENT\"),\n\tcol(\"created_at\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: fn(\"strftime('%Y-%m-%dT%H:%M:%fZ','now')\")\n\t}),\n\tcol(\"space\", \"TEXT\", { notNull: true }),\n\tcol(\"migration_name\", \"TEXT\", { notNull: true }),\n\tcol(\"migration_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"origin_core_hash\", \"TEXT\"),\n\tcol(\"origin_profile_hash\", \"TEXT\"),\n\tcol(\"destination_core_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"destination_profile_hash\", \"TEXT\"),\n\tcol(\"contract_json_before\", \"TEXT\"),\n\tcol(\"contract_json_after\", \"TEXT\"),\n\tcol(\"operations\", \"TEXT\", { notNull: true })\n];\nconst markerTable = createTable({\n\ttable: \"_prisma_marker\",\n\tifNotExists: true,\n\tcolumns: markerColumns\n});\nconst ledgerTable = createTable({\n\ttable: \"_prisma_ledger\",\n\tifNotExists: true,\n\tcolumns: ledgerColumns\n});\nfunction buildSignMarkerBootstrapQueries() {\n\treturn [markerTable];\n}\nfunction buildControlTableBootstrapQueries() {\n\treturn [markerTable, ledgerTable];\n}\n//#endregion\nexport { buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, columnExistsAst, createTable, datetime, indexExistsAst, integer, jsonText, sqliteTable, tableExistsAst, text };\n\n//# sourceMappingURL=contract-free.mjs.map"],"mappings":";;;;;;AAMA,MAAM,QAAQ,SAAS,UAAU;CAChC;CACA,UAAU,MAAM,YAAY;AAC7B;AACA,MAAM,QAAQ,SAAS,KAAK,sBAAsB,IAAI;AACtD,MAAM,WAAW,SAAS,KAAK,yBAAyB,IAAI;AAC5D,MAAM,YAAY,SAAS,KAAK,sBAAsB,IAAI;AAC1D,MAAM,YAAY,SAAS,KAAK,0BAA0B,IAAI;;;;;;;;;;;;;AAa9D,SAAS,YAAY,MAAM,SAAS;CACnC,OAAO,MAAM,YAAY,MAAM,IAAI,GAAG,OAAO;AAC9C;AAGA,MAAM,gBAAgB;CACrB,IAAI,SAAS,QAAQ;EACpB,SAAS;EACT,YAAY;EACZ,SAAS,IAAI,YAAY;CAC1B,CAAC;CACD,IAAI,aAAa,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC1C,IAAI,gBAAgB,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC7C,IAAI,iBAAiB,MAAM;CAC3B,IAAI,qBAAqB,SAAS;CAClC,IAAI,cAAc,QAAQ;EACzB,SAAS;EACT,SAAS,GAAG,iBAAiB;CAC9B,CAAC;CACD,IAAI,WAAW,MAAM;CACrB,IAAI,QAAQ,QAAQ;EACnB,SAAS;EACT,SAAS,IAAI,IAAI;CAClB,CAAC;CACD,IAAI,cAAc,QAAQ;EACzB,SAAS;EACT,SAAS,IAAI,IAAI;CAClB,CAAC;AACF;AACA,MAAM,gBAAgB;CACrB,IAAI,MAAM,mCAAmC;CAC7C,IAAI,cAAc,QAAQ;EACzB,SAAS;EACT,SAAS,GAAG,sCAAsC;CACnD,CAAC;CACD,IAAI,SAAS,QAAQ,EAAE,SAAS,KAAK,CAAC;CACtC,IAAI,kBAAkB,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC/C,IAAI,kBAAkB,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC/C,IAAI,oBAAoB,MAAM;CAC9B,IAAI,uBAAuB,MAAM;CACjC,IAAI,yBAAyB,QAAQ,EAAE,SAAS,KAAK,CAAC;CACtD,IAAI,4BAA4B,MAAM;CACtC,IAAI,wBAAwB,MAAM;CAClC,IAAI,uBAAuB,MAAM;CACjC,IAAI,cAAc,QAAQ,EAAE,SAAS,KAAK,CAAC;AAC5C;AACA,MAAM,cAAc,YAAY;CAC/B,OAAO;CACP,aAAa;CACb,SAAS;AACV,CAAC;AACD,MAAM,cAAc,YAAY;CAC/B,OAAO;CACP,aAAa;CACb,SAAS;AACV,CAAC;AACD,SAAS,kCAAkC;CAC1C,OAAO,CAAC,WAAW;AACpB;AACA,SAAS,oCAAoC;CAC5C,OAAO,CAAC,aAAa,WAAW;AACjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"control--wMueaTg.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/control.d.mts"],"mappings":";;;;;cAIc,+BAA+B,qCAAqC;;;KAG7E;WACM;WACA,SAAS;;;;;;;cAON,uBAAuB;WAC1B;WACA;WACA,SAAS;EAClB,YAAY,OAAO;MACf,SAAS,SAAS,eAAe;EACrC;EACA,aAAa;;;;;;;;;;;;;;;;;;;cAmBD,8BAA8B;kBAC1B,UAAU;UAClB;;;;;;;;;;;;iBAYO,sBAAsB,OAAO,oBAAoB,iBAAiB"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { n as sqliteDriverDescriptorMeta, t as normalizeSqliteError } from "./descriptor-meta-vjJkUDsn-Hz3rnAnk.mjs";
|
|
2
|
-
import { errorRuntime } from "@prisma/orm-framework/errors/execution";
|
|
3
|
-
import { DatabaseSync } from "node:sqlite";
|
|
4
|
-
import { basename } from "pathe";
|
|
5
|
-
//#region ../../../3-targets/7-drivers/sqlite/dist/control.mjs
|
|
6
|
-
var SqliteControlDriver = class {
|
|
7
|
-
db;
|
|
8
|
-
location;
|
|
9
|
-
familyId = "sql";
|
|
10
|
-
targetId = "sqlite";
|
|
11
|
-
constructor(db, location) {
|
|
12
|
-
this.db = db;
|
|
13
|
-
this.location = location;
|
|
14
|
-
}
|
|
15
|
-
async query(sql, params) {
|
|
16
|
-
try {
|
|
17
|
-
return { rows: this.db.prepare(sql).all(...params ?? []) };
|
|
18
|
-
} catch (error) {
|
|
19
|
-
throw normalizeSqliteError(error);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
async databaseName() {
|
|
23
|
-
if (this.location === ":memory:" || this.location.length === 0) return;
|
|
24
|
-
const name = basename(this.location);
|
|
25
|
-
return name.length > 0 ? name : void 0;
|
|
26
|
-
}
|
|
27
|
-
async close() {
|
|
28
|
-
this.db.close();
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
const sqliteDriverDescriptor = {
|
|
32
|
-
...sqliteDriverDescriptorMeta,
|
|
33
|
-
async create(pathOrMemory) {
|
|
34
|
-
try {
|
|
35
|
-
const db = new DatabaseSync(pathOrMemory);
|
|
36
|
-
db.exec("PRAGMA foreign_keys = ON");
|
|
37
|
-
return new SqliteControlDriver(db, pathOrMemory);
|
|
38
|
-
} catch (error) {
|
|
39
|
-
throw errorRuntime("DRIVER.CONNECTION_FAILED", "Database connection failed", {
|
|
40
|
-
why: error instanceof Error ? error.message : String(error),
|
|
41
|
-
fix: "Verify the database file path exists and is accessible",
|
|
42
|
-
meta: { path: pathOrMemory },
|
|
43
|
-
cause: error
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
//#endregion
|
|
49
|
-
export { sqliteDriverDescriptor as n, SqliteControlDriver as t };
|
|
50
|
-
|
|
51
|
-
//# sourceMappingURL=control-B16T9OoX.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"control-B16T9OoX.mjs","names":[],"sources":["../../../../3-targets/7-drivers/sqlite/dist/control.mjs"],"sourcesContent":["import { n as normalizeSqliteError, t as sqliteDriverDescriptorMeta } from \"./descriptor-meta-vjJkUDsn.mjs\";\nimport { DatabaseSync } from \"node:sqlite\";\nimport { errorRuntime } from \"@internal/errors/execution\";\nimport { basename } from \"pathe\";\n//#region src/core/control-driver.ts\nvar SqliteControlDriver = class {\n\tdb;\n\tlocation;\n\tfamilyId = \"sql\";\n\ttargetId = \"sqlite\";\n\tconstructor(db, location) {\n\t\tthis.db = db;\n\t\tthis.location = location;\n\t}\n\tasync query(sql, params) {\n\t\ttry {\n\t\t\treturn { rows: this.db.prepare(sql).all(...params ?? []) };\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync databaseName() {\n\t\tif (this.location === \":memory:\" || this.location.length === 0) return;\n\t\tconst name = basename(this.location);\n\t\treturn name.length > 0 ? name : void 0;\n\t}\n\tasync close() {\n\t\tthis.db.close();\n\t}\n};\nconst sqliteDriverDescriptor = {\n\t...sqliteDriverDescriptorMeta,\n\tasync create(pathOrMemory) {\n\t\ttry {\n\t\t\tconst db = new DatabaseSync(pathOrMemory);\n\t\t\tdb.exec(\"PRAGMA foreign_keys = ON\");\n\t\t\treturn new SqliteControlDriver(db, pathOrMemory);\n\t\t} catch (error) {\n\t\t\tthrow errorRuntime(\"DRIVER.CONNECTION_FAILED\", \"Database connection failed\", {\n\t\t\t\twhy: error instanceof Error ? error.message : String(error),\n\t\t\t\tfix: \"Verify the database file path exists and is accessible\",\n\t\t\t\tmeta: { path: pathOrMemory },\n\t\t\t\tcause: error\n\t\t\t});\n\t\t}\n\t}\n};\n//#endregion\nexport { SqliteControlDriver, sqliteDriverDescriptor as default };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;AAKA,IAAI,sBAAsB,MAAM;CAC/B;CACA;CACA,WAAW;CACX,WAAW;CACX,YAAY,IAAI,UAAU;EACzB,KAAK,KAAK;EACV,KAAK,WAAW;CACjB;CACA,MAAM,MAAM,KAAK,QAAQ;EACxB,IAAI;GACH,OAAO,EAAE,MAAM,KAAK,GAAG,QAAQ,GAAG,CAAC,CAAC,IAAI,GAAG,UAAU,CAAC,CAAC,EAAE;EAC1D,SAAS,OAAO;GACf,MAAM,qBAAqB,KAAK;EACjC;CACD;CACA,MAAM,eAAe;EACpB,IAAI,KAAK,aAAa,cAAc,KAAK,SAAS,WAAW,GAAG;EAChE,MAAM,OAAO,SAAS,KAAK,QAAQ;EACnC,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK;CACtC;CACA,MAAM,QAAQ;EACb,KAAK,GAAG,MAAM;CACf;AACD;AACA,MAAM,yBAAyB;CAC9B,GAAG;CACH,MAAM,OAAO,cAAc;EAC1B,IAAI;GACH,MAAM,KAAK,IAAI,aAAa,YAAY;GACxC,GAAG,KAAK,0BAA0B;GAClC,OAAO,IAAI,oBAAoB,IAAI,YAAY;EAChD,SAAS,OAAO;GACf,MAAM,aAAa,4BAA4B,8BAA8B;IAC5E,KAAK,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;IAC1D,KAAK;IACL,MAAM,EAAE,MAAM,aAAa;IAC3B,OAAO;GACR,CAAC;EACF;CACD;AACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"control-CLirKz11.d.mts","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;iBAciB,sCAAsC,4BAA4B,6BAA6B;;;;;;iBAM/F,kCAAkC;;;cAGrC,gCAAgC;WACnC;WACA;mBACQ;EACjB,YAAY,eAAe;WAClB,yBAAyB;WACzB,4BAA4B;EACrC,yCAAyC;EACzC,uCAAuC;;;;;;;;;EASvC,MAAM,KAAK,cAAc,eAAe,SAAS,0BAA0B;;;;;;;;EAQ3E,sBAAsB,KAAK,cAAc,eAAe,UAAU,0BAA0B,QAAQ;;;;;;EAMpG,WAAW,QAAQ,oCAAoC,gBAAgB,QAAQ;EAC/E,wBAAwB,QAAQ,oCAAoC,gBAAgB,QAAQ;;;;;;EAM5F,eAAe,QAAQ,qCAAqC,QAAQ,oBAAoB;UAChF;;;;;;EAMR,WAAW,QAAQ,oCAAoC,iBAAiB,iBAAiB;UACjF;;;;;;EAMR,aAAa,QAAQ,oCAAoC,eAAe;aAC7D;aACA;aACA;MACP;EACJ,WAAW,QAAQ,oCAAoC,eAAe;aAC3D;aACA;aACA;MACP;;;;;EAKJ,aAAa,QAAQ,oCAAoC,eAAe,sBAAsB;aACnF;aACA;aACA;MACP;;;;;EAKJ,iBAAiB,QAAQ,oCAAoC,eAAe;aACjE;aACA;aACA;aACA;aACA;aACA;MACP;UACI;EACR,WAAW,QAAQ,oCAAoC,sBAAsB,QAAQ;;;;cAIzE,yBAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"control-D9vMRRgU.d.mts","names":[],"sources":["../../../../3-targets/7-drivers/sqlite/dist/control.d.mts"],"mappings":";;;;;cAIc,+BAA+B;mBAC1B;mBACA;WACR;WACA;EACT,YAAY,IAAI,cAAc;EAC9B,MAAM,MAAM,yBAAyB,aAAa,8BAA8B;aACrE,MAAM;;EAEjB,gBAAgB;EAChB,SAAS;;cAEG,wBAAwB,yCAAyC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"control-tables-D_o8dKRB-BXi43noL.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/control-tables-D_o8dKRB.mjs"],"sourcesContent":["//#region src/core/control-tables.ts\nconst MARKER_TABLE_NAME = \"_prisma_marker\";\nconst LEDGER_TABLE_NAME = \"_prisma_ledger\";\n/**\n* Control tables the runner creates/manages. The planner must not drop these\n* when reconciling \"extra\" tables against the contract.\n*/\nconst CONTROL_TABLE_NAMES = /* @__PURE__ */ new Set([MARKER_TABLE_NAME, LEDGER_TABLE_NAME]);\n//#endregion\nexport { LEDGER_TABLE_NAME as n, MARKER_TABLE_NAME as r, CONTROL_TABLE_NAMES as t };\n\n//# sourceMappingURL=control-tables-D_o8dKRB.mjs.map"],"mappings":";AACA,MAAM,oBAAoB;AAC1B,MAAM,oBAAoB;;;;;AAK1B,MAAM,sCAAsC,IAAI,IAAI,CAAC,mBAAmB,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"control-tables-Dua-YcJL.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/control-tables.d.mts"],"mappings":";;cACc;cACA;;;;;cAKA,qBAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ddl-CXduXyOT-nlDP6DGx.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/ddl-CXduXyOT.mjs"],"sourcesContent":["import { c as SQLITE_TEXT_CODEC_ID } from \"./codec-ids-KMliSCRp.mjs\";\nimport { t as SqliteCreateTable } from \"./nodes-DUZSdX86.mjs\";\nimport { FunctionSource } from \"@internal/sql-relational-core/ast\";\nimport { cfExpr, cfTable, exprSelect } from \"@internal/sql-relational-core/contract-free\";\n//#region src/contract-free/checks.ts\n/**\n* Typed builder for the migration planner's column-existence checks. Produces\n* `SELECT COUNT(*) {=|>} 0 AS \"result\" FROM pragma_table_info(?) WHERE \"name\" = ?`\n* ASTs with the table and column names bound as text parameters — never\n* inlined into the SQL.\n*/\nfunction columnExistsAst(table, column) {\n\tconst source = FunctionSource.of(\"pragma_table_info\", [cfExpr.param(table, SQLITE_TEXT_CODEC_ID).ast]);\n\tconst where = cfExpr.identifierRef(\"name\").eqParam(column, SQLITE_TEXT_CODEC_ID);\n\treturn {\n\t\tcolumnAbsent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build(),\n\t\tcolumnPresent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().gtLit(0)).where(where).build()\n\t};\n}\n/**\n* Typed builder for table-existence checks over `sqlite_master`.\n* Produces `SELECT COUNT(*) {=|>} 0 AS \"result\" FROM \"sqlite_master\" WHERE \"type\" = ? AND \"name\" = ?`\n* with the table name and the literal `'table'` bound as text parameters.\n*/\nfunction tableExistsAst(tableName) {\n\tconst source = cfTable(\"sqlite_master\");\n\tconst where = cfExpr.allOf([cfExpr.identifierRef(\"type\").eqParam(\"table\", SQLITE_TEXT_CODEC_ID), cfExpr.identifierRef(\"name\").eqParam(tableName, SQLITE_TEXT_CODEC_ID)]);\n\treturn {\n\t\ttableAbsent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build(),\n\t\ttablePresent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().gtLit(0)).where(where).build()\n\t};\n}\n/**\n* Typed builder for index-existence checks over `sqlite_master`.\n* Produces `SELECT COUNT(*) {=|>} 0 AS \"result\" FROM \"sqlite_master\" WHERE \"type\" = ? AND \"name\" = ?`\n* with the index name and the literal `'index'` bound as text parameters.\n*/\nfunction indexExistsAst(indexName) {\n\tconst source = cfTable(\"sqlite_master\");\n\tconst where = cfExpr.allOf([cfExpr.identifierRef(\"type\").eqParam(\"index\", SQLITE_TEXT_CODEC_ID), cfExpr.identifierRef(\"name\").eqParam(indexName, SQLITE_TEXT_CODEC_ID)]);\n\treturn {\n\t\tindexAbsent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build(),\n\t\tindexPresent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().gtLit(0)).where(where).build()\n\t};\n}\n//#endregion\n//#region src/contract-free/ddl.ts\n/**\n* Build a SQLite `CREATE TABLE` query node.\n*\n* Pass `constraints` for table-level composite primary keys, foreign keys, and\n* unique constraints — use the {@link PrimaryKeyConstraint}, {@link ForeignKeyConstraint},\n* and {@link UniqueConstraint} classes from `@internal/sql-relational-core/ast`.\n*\n* Precondition: identifiers (`table`, column names/types) are emitted to SQL\n* verbatim — they are not quoted or escaped, so callers must pass pre-trusted\n* values (e.g. fixed control-plane identifiers). String-literal default values,\n* by contrast, are single-quote-escaped (embedded `'` doubled) by the renderer.\n* Identifier quoting for untrusted identifiers is added when the migration\n* planner adopts this lowering path.\n*/\nfunction createTable(options) {\n\treturn new SqliteCreateTable(options);\n}\n//#endregion\nexport { tableExistsAst as i, columnExistsAst as n, indexExistsAst as r, createTable as t };\n\n//# sourceMappingURL=ddl-CXduXyOT.mjs.map"],"mappings":";;;;;;;;;;;AAWA,SAAS,gBAAgB,OAAO,QAAQ;CACvC,MAAM,SAAS,eAAe,GAAG,qBAAqB,CAAC,OAAO,MAAM,OAAO,oBAAoB,CAAC,CAAC,GAAG,CAAC;CACrG,MAAM,QAAQ,OAAO,cAAc,MAAM,CAAC,CAAC,QAAQ,QAAQ,oBAAoB;CAC/E,OAAO;EACN,oBAAoB,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,QAAQ,UAAU,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;EAChH,qBAAqB,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,QAAQ,UAAU,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;CAClH;AACD;;;;;;AAMA,SAAS,eAAe,WAAW;CAClC,MAAM,SAAS,QAAQ,eAAe;CACtC,MAAM,QAAQ,OAAO,MAAM,CAAC,OAAO,cAAc,MAAM,CAAC,CAAC,QAAQ,SAAS,oBAAoB,GAAG,OAAO,cAAc,MAAM,CAAC,CAAC,QAAQ,WAAW,oBAAoB,CAAC,CAAC;CACvK,OAAO;EACN,mBAAmB,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,QAAQ,UAAU,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;EAC/G,oBAAoB,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,QAAQ,UAAU,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;CACjH;AACD;;;;;;AAMA,SAAS,eAAe,WAAW;CAClC,MAAM,SAAS,QAAQ,eAAe;CACtC,MAAM,QAAQ,OAAO,MAAM,CAAC,OAAO,cAAc,MAAM,CAAC,CAAC,QAAQ,SAAS,oBAAoB,GAAG,OAAO,cAAc,MAAM,CAAC,CAAC,QAAQ,WAAW,oBAAoB,CAAC,CAAC;CACvK,OAAO;EACN,mBAAmB,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,QAAQ,UAAU,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;EAC/G,oBAAoB,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,QAAQ,UAAU,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;CACjH;AACD;;;;;;;;;;;;;;;AAiBA,SAAS,YAAY,SAAS;CAC7B,OAAO,IAAI,kBAAkB,OAAO;AACrC"}
|
package/dist/ddl-CfSqNT0M.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./nodes-D8EC1yCx-rpfpuJ4T.mjs";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ColumnDefault } from "@prisma/orm-framework/contract/types";
|
|
2
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/default-normalizer.d.mts
|
|
3
|
-
//#region src/core/default-normalizer.d.ts
|
|
4
|
-
declare function parseSqliteDefault(rawDefault: string, nativeType?: string): ColumnDefault | undefined;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { parseSqliteDefault as t };
|
|
7
|
-
//# sourceMappingURL=default-normalizer-B9V7TY5u.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-normalizer-B9V7TY5u.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/default-normalizer.d.mts"],"mappings":";;;iBAEiB,mBAAmB,oBAAoB,sBAAsB"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/default-normalizer-DuoHj9-O.mjs
|
|
2
|
-
const NULL_PATTERN = /^NULL$/i;
|
|
3
|
-
const INTEGER_PATTERN = /^-?\d+$/;
|
|
4
|
-
const REAL_PATTERN = /^-?\d+\.\d+(?:[eE][+-]?\d+)?$/;
|
|
5
|
-
const HEX_PATTERN = /^0[xX][\dA-Fa-f]+$/;
|
|
6
|
-
const STRING_LITERAL_PATTERN = /^'((?:[^']|'')*)'$/;
|
|
7
|
-
function isNumericLiteral(value) {
|
|
8
|
-
return INTEGER_PATTERN.test(value) || REAL_PATTERN.test(value) || HEX_PATTERN.test(value);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Strips a single matched wrapping pair of outer parens from `s`. Conservative:
|
|
12
|
-
* only strips when the leading `(` is matched by the trailing `)` (so
|
|
13
|
-
* `(a) + (b)` is returned unchanged). Mirrors SQLite's own
|
|
14
|
-
* `pragma_table_info.dflt_value` normalization for expression defaults, and
|
|
15
|
-
* is shared with the recreate-table postcheck builder so both sides agree
|
|
16
|
-
* on the canonical form.
|
|
17
|
-
*/
|
|
18
|
-
function stripOuterParens(s) {
|
|
19
|
-
if (!s.startsWith("(") || !s.endsWith(")")) return s;
|
|
20
|
-
let depth = 0;
|
|
21
|
-
for (let i = 0; i < s.length; i++) if (s[i] === "(") depth += 1;
|
|
22
|
-
else if (s[i] === ")") {
|
|
23
|
-
depth -= 1;
|
|
24
|
-
if (depth === 0 && i < s.length - 1) return s;
|
|
25
|
-
}
|
|
26
|
-
return s.slice(1, -1);
|
|
27
|
-
}
|
|
28
|
-
function parseSqliteDefault(rawDefault, nativeType) {
|
|
29
|
-
let trimmed = rawDefault.trim();
|
|
30
|
-
while (true) {
|
|
31
|
-
const stripped = stripOuterParens(trimmed).trim();
|
|
32
|
-
if (stripped === trimmed) break;
|
|
33
|
-
trimmed = stripped;
|
|
34
|
-
}
|
|
35
|
-
const lower = trimmed.toLowerCase();
|
|
36
|
-
if (lower === "current_timestamp" || lower === "datetime('now')" || lower === "datetime(\"now\")") return {
|
|
37
|
-
kind: "function",
|
|
38
|
-
expression: "now()"
|
|
39
|
-
};
|
|
40
|
-
if (NULL_PATTERN.test(trimmed)) return {
|
|
41
|
-
kind: "literal",
|
|
42
|
-
value: null
|
|
43
|
-
};
|
|
44
|
-
if (isNumericLiteral(trimmed)) {
|
|
45
|
-
const num = Number(trimmed);
|
|
46
|
-
if (!Number.isFinite(num)) return void 0;
|
|
47
|
-
if (nativeType?.toLowerCase() === "integer" && !Number.isSafeInteger(num)) return {
|
|
48
|
-
kind: "literal",
|
|
49
|
-
value: trimmed
|
|
50
|
-
};
|
|
51
|
-
return {
|
|
52
|
-
kind: "literal",
|
|
53
|
-
value: num
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
const stringMatch = trimmed.match(STRING_LITERAL_PATTERN);
|
|
57
|
-
if (stringMatch?.[1] !== void 0) return {
|
|
58
|
-
kind: "literal",
|
|
59
|
-
value: stringMatch[1].replace(/''/g, "'")
|
|
60
|
-
};
|
|
61
|
-
return {
|
|
62
|
-
kind: "function",
|
|
63
|
-
expression: trimmed
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
export { stripOuterParens as n, parseSqliteDefault as t };
|
|
68
|
-
|
|
69
|
-
//# sourceMappingURL=default-normalizer-DuoHj9-O-DsK7lJZn.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-normalizer-DuoHj9-O-DsK7lJZn.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/default-normalizer-DuoHj9-O.mjs"],"sourcesContent":["//#region src/core/default-normalizer.ts\nconst NULL_PATTERN = /^NULL$/i;\nconst INTEGER_PATTERN = /^-?\\d+$/;\nconst REAL_PATTERN = /^-?\\d+\\.\\d+(?:[eE][+-]?\\d+)?$/;\nconst HEX_PATTERN = /^0[xX][\\dA-Fa-f]+$/;\nconst STRING_LITERAL_PATTERN = /^'((?:[^']|'')*)'$/;\nfunction isNumericLiteral(value) {\n\treturn INTEGER_PATTERN.test(value) || REAL_PATTERN.test(value) || HEX_PATTERN.test(value);\n}\n/**\n* Strips a single matched wrapping pair of outer parens from `s`. Conservative:\n* only strips when the leading `(` is matched by the trailing `)` (so\n* `(a) + (b)` is returned unchanged). Mirrors SQLite's own\n* `pragma_table_info.dflt_value` normalization for expression defaults, and\n* is shared with the recreate-table postcheck builder so both sides agree\n* on the canonical form.\n*/\nfunction stripOuterParens(s) {\n\tif (!s.startsWith(\"(\") || !s.endsWith(\")\")) return s;\n\tlet depth = 0;\n\tfor (let i = 0; i < s.length; i++) if (s[i] === \"(\") depth += 1;\n\telse if (s[i] === \")\") {\n\t\tdepth -= 1;\n\t\tif (depth === 0 && i < s.length - 1) return s;\n\t}\n\treturn s.slice(1, -1);\n}\nfunction parseSqliteDefault(rawDefault, nativeType) {\n\tlet trimmed = rawDefault.trim();\n\twhile (true) {\n\t\tconst stripped = stripOuterParens(trimmed).trim();\n\t\tif (stripped === trimmed) break;\n\t\ttrimmed = stripped;\n\t}\n\tconst lower = trimmed.toLowerCase();\n\tif (lower === \"current_timestamp\" || lower === \"datetime('now')\" || lower === \"datetime(\\\"now\\\")\") return {\n\t\tkind: \"function\",\n\t\texpression: \"now()\"\n\t};\n\tif (NULL_PATTERN.test(trimmed)) return {\n\t\tkind: \"literal\",\n\t\tvalue: null\n\t};\n\tif (isNumericLiteral(trimmed)) {\n\t\tconst num = Number(trimmed);\n\t\tif (!Number.isFinite(num)) return void 0;\n\t\tif (nativeType?.toLowerCase() === \"integer\" && !Number.isSafeInteger(num)) return {\n\t\t\tkind: \"literal\",\n\t\t\tvalue: trimmed\n\t\t};\n\t\treturn {\n\t\t\tkind: \"literal\",\n\t\t\tvalue: num\n\t\t};\n\t}\n\tconst stringMatch = trimmed.match(STRING_LITERAL_PATTERN);\n\tif (stringMatch?.[1] !== void 0) return {\n\t\tkind: \"literal\",\n\t\tvalue: stringMatch[1].replace(/''/g, \"'\")\n\t};\n\treturn {\n\t\tkind: \"function\",\n\t\texpression: trimmed\n\t};\n}\n//#endregion\nexport { stripOuterParens as n, parseSqliteDefault as t };\n\n//# sourceMappingURL=default-normalizer-DuoHj9-O.mjs.map"],"mappings":";AACA,MAAM,eAAe;AACrB,MAAM,kBAAkB;AACxB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,yBAAyB;AAC/B,SAAS,iBAAiB,OAAO;CAChC,OAAO,gBAAgB,KAAK,KAAK,KAAK,aAAa,KAAK,KAAK,KAAK,YAAY,KAAK,KAAK;AACzF;;;;;;;;;AASA,SAAS,iBAAiB,GAAG;CAC5B,IAAI,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,EAAE,SAAS,GAAG,GAAG,OAAO;CACnD,IAAI,QAAQ;CACZ,KAAK,IAAI,IAAI,GAAG,IAAI,EAAE,QAAQ,KAAK,IAAI,EAAE,OAAO,KAAK,SAAS;MACzD,IAAI,EAAE,OAAO,KAAK;EACtB,SAAS;EACT,IAAI,UAAU,KAAK,IAAI,EAAE,SAAS,GAAG,OAAO;CAC7C;CACA,OAAO,EAAE,MAAM,GAAG,EAAE;AACrB;AACA,SAAS,mBAAmB,YAAY,YAAY;CACnD,IAAI,UAAU,WAAW,KAAK;CAC9B,OAAO,MAAM;EACZ,MAAM,WAAW,iBAAiB,OAAO,CAAC,CAAC,KAAK;EAChD,IAAI,aAAa,SAAS;EAC1B,UAAU;CACX;CACA,MAAM,QAAQ,QAAQ,YAAY;CAClC,IAAI,UAAU,uBAAuB,UAAU,qBAAqB,UAAU,qBAAqB,OAAO;EACzG,MAAM;EACN,YAAY;CACb;CACA,IAAI,aAAa,KAAK,OAAO,GAAG,OAAO;EACtC,MAAM;EACN,OAAO;CACR;CACA,IAAI,iBAAiB,OAAO,GAAG;EAC9B,MAAM,MAAM,OAAO,OAAO;EAC1B,IAAI,CAAC,OAAO,SAAS,GAAG,GAAG,OAAO,KAAK;EACvC,IAAI,YAAY,YAAY,MAAM,aAAa,CAAC,OAAO,cAAc,GAAG,GAAG,OAAO;GACjF,MAAM;GACN,OAAO;EACR;EACA,OAAO;GACN,MAAM;GACN,OAAO;EACR;CACD;CACA,MAAM,cAAc,QAAQ,MAAM,sBAAsB;CACxD,IAAI,cAAc,OAAO,KAAK,GAAG,OAAO;EACvC,MAAM;EACN,OAAO,YAAY,EAAE,CAAC,QAAQ,OAAO,GAAG;CACzC;CACA,OAAO;EACN,MAAM;EACN,YAAY;CACb;AACD"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { t as sqliteTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-BkXK3OjD-CxZdKHCw.mjs";
|
|
2
|
-
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
3
|
-
import { temporalAuthoringPresets, temporalCodecPreset } from "@prisma/orm-family-sql/family/control";
|
|
4
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/descriptor-meta-C0sCVHMY.mjs
|
|
5
|
-
const sqliteAuthoringTypes = { BigIntNumber: {
|
|
6
|
-
kind: "typeConstructor",
|
|
7
|
-
output: {
|
|
8
|
-
codecId: "sqlite/bigintnumber@1",
|
|
9
|
-
nativeType: "integer"
|
|
10
|
-
}
|
|
11
|
-
} };
|
|
12
|
-
const sqliteAuthoringFieldPresets = { temporal: {
|
|
13
|
-
.../* @__PURE__ */ temporalAuthoringPresets({
|
|
14
|
-
codecId: "sqlite/datetime@1",
|
|
15
|
-
nativeType: "text"
|
|
16
|
-
}),
|
|
17
|
-
datetime: /* @__PURE__ */ temporalCodecPreset({
|
|
18
|
-
codecId: "sqlite/datetime@1",
|
|
19
|
-
nativeType: "text"
|
|
20
|
-
})
|
|
21
|
-
} };
|
|
22
|
-
const sqliteTargetDescriptorMeta = {
|
|
23
|
-
...sqliteTargetDescriptorMetaRuntime,
|
|
24
|
-
defaultNamespaceId: UNBOUND_NAMESPACE_ID,
|
|
25
|
-
supportsNamespaces: false,
|
|
26
|
-
authoring: {
|
|
27
|
-
type: sqliteAuthoringTypes,
|
|
28
|
-
field: sqliteAuthoringFieldPresets
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { sqliteTargetDescriptorMeta as t };
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=descriptor-meta-C0sCVHMY-1P-YUnEW.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor-meta-C0sCVHMY-1P-YUnEW.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/descriptor-meta-C0sCVHMY.mjs"],"sourcesContent":["import { t as sqliteTargetDescriptorMetaRuntime } from \"./descriptor-meta-runtime-BkXK3OjD.mjs\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { temporalAuthoringPresets, temporalCodecPreset } from \"@internal/family-sql/control\";\n//#region src/core/authoring.ts\nconst sqliteAuthoringTypes = { BigIntNumber: {\n\tkind: \"typeConstructor\",\n\toutput: {\n\t\tcodecId: \"sqlite/bigintnumber@1\",\n\t\tnativeType: \"integer\"\n\t}\n} };\nconst sqliteAuthoringFieldPresets = { temporal: {\n\t.../* @__PURE__ */ temporalAuthoringPresets({\n\t\tcodecId: \"sqlite/datetime@1\",\n\t\tnativeType: \"text\"\n\t}),\n\tdatetime: /* @__PURE__ */ temporalCodecPreset({\n\t\tcodecId: \"sqlite/datetime@1\",\n\t\tnativeType: \"text\"\n\t})\n} };\nconst sqliteTargetDescriptorMeta = {\n\t...sqliteTargetDescriptorMetaRuntime,\n\tdefaultNamespaceId: UNBOUND_NAMESPACE_ID,\n\tsupportsNamespaces: false,\n\tauthoring: {\n\t\ttype: sqliteAuthoringTypes,\n\t\tfield: sqliteAuthoringFieldPresets\n\t}\n};\n//#endregion\nexport { sqliteTargetDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-C0sCVHMY.mjs.map"],"mappings":";;;;AAIA,MAAM,uBAAuB,EAAE,cAAc;CAC5C,MAAM;CACN,QAAQ;EACP,SAAS;EACT,YAAY;CACb;AACD,EAAE;AACF,MAAM,8BAA8B,EAAE,UAAU;CAC/C,GAAmB,yCAAyB;EAC3C,SAAS;EACT,YAAY;CACb,CAAC;CACD,UAA0B,oCAAoB;EAC7C,SAAS;EACT,YAAY;CACb,CAAC;AACF,EAAE;AACF,MAAM,6BAA6B;CAClC,GAAG;CACH,oBAAoB;CACpB,oBAAoB;CACpB,WAAW;EACV,MAAM;EACN,OAAO;CACR;AACD"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { t as sqliteAggregateDescriptors } from "./aggregates-DWyPO7t6.mjs";
|
|
2
|
-
import { o as sqliteCodecRegistry } from "./codecs-BDdR6FbY.mjs";
|
|
3
|
-
//#region ../../../3-targets/6-adapters/sqlite/dist/descriptor-meta-DjKgG4z5.mjs
|
|
4
|
-
const sqliteAdapterDescriptorMeta = {
|
|
5
|
-
kind: "adapter",
|
|
6
|
-
familyId: "sql",
|
|
7
|
-
targetId: "sqlite",
|
|
8
|
-
id: "sqlite",
|
|
9
|
-
version: "0.0.1",
|
|
10
|
-
capabilities: { sql: {
|
|
11
|
-
orderBy: true,
|
|
12
|
-
limit: true,
|
|
13
|
-
lateral: false,
|
|
14
|
-
jsonAgg: true,
|
|
15
|
-
returning: true,
|
|
16
|
-
foreignKeys: true,
|
|
17
|
-
enums: false
|
|
18
|
-
} },
|
|
19
|
-
types: {
|
|
20
|
-
aggregateDescriptors: sqliteAggregateDescriptors,
|
|
21
|
-
codecTypes: {
|
|
22
|
-
codecDescriptors: Array.from(sqliteCodecRegistry.values()).filter((d) => d.renderOutputType === void 0),
|
|
23
|
-
import: {
|
|
24
|
-
package: "@internal/adapter-sqlite/codec-types",
|
|
25
|
-
named: "CodecTypes",
|
|
26
|
-
alias: "SqliteTypes"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { sqliteAdapterDescriptorMeta as t };
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=descriptor-meta-DjKgG4z5-D_0obUB8.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor-meta-DjKgG4z5-D_0obUB8.mjs","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/descriptor-meta-DjKgG4z5.mjs"],"sourcesContent":["import { sqliteCodecRegistry } from \"@internal/target-sqlite/codecs\";\nimport { sqliteAggregateDescriptors } from \"@internal/target-sqlite/aggregates\";\nconst sqliteAdapterDescriptorMeta = {\n\tkind: \"adapter\",\n\tfamilyId: \"sql\",\n\ttargetId: \"sqlite\",\n\tid: \"sqlite\",\n\tversion: \"0.0.1\",\n\tcapabilities: { sql: {\n\t\torderBy: true,\n\t\tlimit: true,\n\t\tlateral: false,\n\t\tjsonAgg: true,\n\t\treturning: true,\n\t\tforeignKeys: true,\n\t\tenums: false\n\t} },\n\ttypes: {\n\t\taggregateDescriptors: sqliteAggregateDescriptors,\n\t\tcodecTypes: {\n\t\t\tcodecDescriptors: Array.from(sqliteCodecRegistry.values()).filter((d) => d.renderOutputType === void 0),\n\t\t\timport: {\n\t\t\t\tpackage: \"@internal/adapter-sqlite/codec-types\",\n\t\t\t\tnamed: \"CodecTypes\",\n\t\t\t\talias: \"SqliteTypes\"\n\t\t\t}\n\t\t}\n\t}\n};\n//#endregion\nexport { sqliteAdapterDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-DjKgG4z5.mjs.map"],"mappings":";;;AAEA,MAAM,8BAA8B;CACnC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,EAAE,KAAK;EACpB,SAAS;EACT,OAAO;EACP,SAAS;EACT,SAAS;EACT,WAAW;EACX,aAAa;EACb,OAAO;CACR,EAAE;CACF,OAAO;EACN,sBAAsB;EACtB,YAAY;GACX,kBAAkB,MAAM,KAAK,oBAAoB,OAAO,CAAC,CAAC,CAAC,QAAQ,MAAM,EAAE,qBAAqB,KAAK,CAAC;GACtG,QAAQ;IACP,SAAS;IACT,OAAO;IACP,OAAO;GACR;EACD;CACD;AACD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/descriptor-meta-runtime-BkXK3OjD.mjs
|
|
2
|
-
const sqliteTargetDescriptorMetaRuntime = {
|
|
3
|
-
kind: "target",
|
|
4
|
-
familyId: "sql",
|
|
5
|
-
targetId: "sqlite",
|
|
6
|
-
id: "sqlite",
|
|
7
|
-
version: "0.0.1",
|
|
8
|
-
capabilities: {}
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { sqliteTargetDescriptorMetaRuntime as t };
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=descriptor-meta-runtime-BkXK3OjD-CxZdKHCw.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor-meta-runtime-BkXK3OjD-CxZdKHCw.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/descriptor-meta-runtime-BkXK3OjD.mjs"],"sourcesContent":["const sqliteTargetDescriptorMetaRuntime = {\n\tkind: \"target\",\n\tfamilyId: \"sql\",\n\ttargetId: \"sqlite\",\n\tid: \"sqlite\",\n\tversion: \"0.0.1\",\n\tcapabilities: {}\n};\n//#endregion\nexport { sqliteTargetDescriptorMetaRuntime as t };\n\n//# sourceMappingURL=descriptor-meta-runtime-BkXK3OjD.mjs.map"],"mappings":";AAAA,MAAM,oCAAoC;CACzC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,CAAC;AAChB"}
|