@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
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import { _ as SQLITE_TIME_TEMPORAL_CODEC_ID, a as SQLITE_DATETIME_CODEC_ID, c as SQLITE_DATE_STRING_CODEC_ID, d as SQLITE_DURATION_STRING_CODEC_ID, f as SQLITE_INTEGER_CODEC_ID, g as SQLITE_TIME_STRING_CODEC_ID, h as SQLITE_TEXT_CODEC_ID, i as SQLITE_BOOLEAN_CODEC_ID, l as SQLITE_DATE_TEMPORAL_CODEC_ID, m as SQLITE_REAL_CODEC_ID, o as SQLITE_DATETIME_STRING_CODEC_ID, p as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_DATETIME_TEMPORAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQLITE_DECIMAL_CODEC_ID } from "./codec-ids-CTshXpbg-tcdbf_VC.mjs";
|
|
2
|
+
import { _ as sqliteInteger, x as sqliteTextDataTypes } from "./data-types-Djvapurb-BR-Y4NWN.mjs";
|
|
3
|
+
import { t as sqliteDataTypeEntries } from "./data-type-entries-DaT4D2GV-DE0V_N6k.mjs";
|
|
4
|
+
import { n as sqliteTargetDescriptorMetaRuntime, t as sqliteNowGenerators } from "./date-time-now-generators-DUb3x91B-D0keGG59.mjs";
|
|
5
|
+
import { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID } from "@prisma/orm-framework/type-implementations/now";
|
|
6
|
+
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
7
|
+
import { idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors } from "@prisma/orm-family-sql/family/pack";
|
|
8
|
+
import { TIMESTAMP_NOW_GENERATOR_ID, temporalTypeAliases } from "@prisma/orm-framework/components/authoring";
|
|
9
|
+
import { singleGeneratorBinding } from "@prisma/orm-framework/components/components";
|
|
10
|
+
//#region ../../../3-targets/sqlite/1-target/dist/descriptor-meta-DEr1ALec.mjs
|
|
11
|
+
const sqliteAuthoringTypes = {
|
|
12
|
+
.../* @__PURE__ */ sqlTargetTypeConstructors({ sizeType: "sqlite/real" }),
|
|
13
|
+
temporal: /* @__PURE__ */ temporalTypeAliases({ codecId: "sqlite/datetime@1" }, "a JavaScript Date")
|
|
14
|
+
};
|
|
15
|
+
/** The "now" generator for each codec that has one. The `now` generator function binds it. */
|
|
16
|
+
const sqliteNowGeneratorIds = {
|
|
17
|
+
[SQLITE_DATETIME_CODEC_ID]: TIMESTAMP_NOW_GENERATOR_ID,
|
|
18
|
+
[SQLITE_DATETIME_TEMPORAL_CODEC_ID]: INSTANT_NOW_GENERATOR_ID,
|
|
19
|
+
[SQLITE_DATETIME_STRING_CODEC_ID]: INSTANT_STRING_NOW_GENERATOR_ID,
|
|
20
|
+
[SQLITE_DATE_STRING_CODEC_ID]: DATE_STRING_NOW_GENERATOR_ID,
|
|
21
|
+
[SQLITE_DATE_TEMPORAL_CODEC_ID]: PLAIN_DATE_NOW_GENERATOR_ID,
|
|
22
|
+
[SQLITE_TIME_STRING_CODEC_ID]: TIME_STRING_NOW_GENERATOR_ID,
|
|
23
|
+
[SQLITE_TIME_TEMPORAL_CODEC_ID]: PLAIN_TIME_NOW_GENERATOR_ID
|
|
24
|
+
};
|
|
25
|
+
const sqliteGeneratorFunctions = [
|
|
26
|
+
...sqlIntegerArgumentGeneratorFunctions({ integer: sqliteInteger.id }),
|
|
27
|
+
{
|
|
28
|
+
name: "now",
|
|
29
|
+
bindings: Object.entries(sqliteNowGeneratorIds).map(([codecId, generatorId]) => singleGeneratorBinding({
|
|
30
|
+
codecIds: [codecId],
|
|
31
|
+
generatorId
|
|
32
|
+
}))
|
|
33
|
+
},
|
|
34
|
+
...idGeneratorFunctionBindings({ text: [SQLITE_TEXT_CODEC_ID] })
|
|
35
|
+
];
|
|
36
|
+
/** The `now` generators SQLite binds. The SQL family registers the identifier generators. */
|
|
37
|
+
const sqliteGeneratorDescriptors = [{ id: TIMESTAMP_NOW_GENERATOR_ID }, ...sqliteNowGenerators.map(({ id }) => ({ id }))];
|
|
38
|
+
const integerNumber = {
|
|
39
|
+
kind: "typeConstructor",
|
|
40
|
+
documentation: "An integer read as a JavaScript number within its safe integer range, stored as SQLite integer.",
|
|
41
|
+
output: { codecId: SQLITE_INTEGER_CODEC_ID }
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The explicit SQLite scalar types. An explicit type is named after the SQLite column type that stores it: `Text`, `Real` and `Blob`. `integer` is read by more than one codec of its data type, so those types carry the value too: `IntegerNumber` and `IntegerBigInt`. A type with a data type of its own, which a `text` column stores, is named after that data type, as ADR 315 and rule 7 of ADR 322 give it: `DecimalString`, `PlainJson` and the date and time types. `IntegerBoolean` is an exception that rule 7 records: `sqlite/boolean` is a data type of its own, which an `integer` column stores, and its name takes the form of the other `integer` types. PSL writes them as field types and the TypeScript builder calls them as `type.X()`. ADR 315, ADR 322.
|
|
45
|
+
*/
|
|
46
|
+
const sqliteExplicitScalarTypes = {
|
|
47
|
+
IntegerNumber: integerNumber,
|
|
48
|
+
IntegerBigInt: {
|
|
49
|
+
kind: "typeConstructor",
|
|
50
|
+
documentation: "An integer read as a JavaScript bigint, stored as SQLite integer.",
|
|
51
|
+
output: { codecId: SQLITE_BIGINT_CODEC_ID }
|
|
52
|
+
},
|
|
53
|
+
Real: {
|
|
54
|
+
kind: "typeConstructor",
|
|
55
|
+
documentation: "A floating-point number, stored as SQLite real.",
|
|
56
|
+
output: { codecId: SQLITE_REAL_CODEC_ID }
|
|
57
|
+
},
|
|
58
|
+
DecimalString: {
|
|
59
|
+
kind: "typeConstructor",
|
|
60
|
+
documentation: "An exact decimal number read as decimal text such as \"12.50\", stored as SQLite text. Text compares by its characters, so a field of this type can be compared for equality but not ordered or summed.",
|
|
61
|
+
output: { codecId: SQLITE_DECIMAL_CODEC_ID }
|
|
62
|
+
},
|
|
63
|
+
Text: {
|
|
64
|
+
kind: "typeConstructor",
|
|
65
|
+
documentation: "Text, stored as SQLite text.",
|
|
66
|
+
output: { codecId: SQLITE_TEXT_CODEC_ID }
|
|
67
|
+
},
|
|
68
|
+
IntegerBoolean: {
|
|
69
|
+
kind: "typeConstructor",
|
|
70
|
+
documentation: "A boolean, stored as SQLite integer: 0 for false and 1 for true, as SQLite writes FALSE and TRUE.",
|
|
71
|
+
output: { codecId: SQLITE_BOOLEAN_CODEC_ID }
|
|
72
|
+
},
|
|
73
|
+
Blob: {
|
|
74
|
+
kind: "typeConstructor",
|
|
75
|
+
documentation: "Binary data read as a Uint8Array, stored as SQLite blob.",
|
|
76
|
+
output: { codecId: SQLITE_BLOB_CODEC_ID }
|
|
77
|
+
},
|
|
78
|
+
PlainJson: {
|
|
79
|
+
kind: "typeConstructor",
|
|
80
|
+
documentation: "A JSON value, serialized and stored as SQLite text.",
|
|
81
|
+
output: { codecId: SQLITE_JSON_CODEC_ID }
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
function storageOption(storage) {
|
|
85
|
+
return {
|
|
86
|
+
kind: "option",
|
|
87
|
+
name: "storage",
|
|
88
|
+
values: [storage],
|
|
89
|
+
default: storage,
|
|
90
|
+
optional: true
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* The convenience types of SQLite's scalars. Each is a type choice: `storage` names the SQLite column type that stores the value and, for `BigInt`, `as` chooses the application value. `Int` comes before `BigInt`, so `IntegerNumber`, which both can choose, is written `Int`. ADR 279, ADR 322.
|
|
95
|
+
*/
|
|
96
|
+
const sqliteConvenienceScalarTypes = {
|
|
97
|
+
Int: {
|
|
98
|
+
kind: "typeChoice",
|
|
99
|
+
documentation: "An integer read as a JavaScript number within its safe integer range, stored as SQLite integer.",
|
|
100
|
+
args: [storageOption("integer")],
|
|
101
|
+
choices: [{
|
|
102
|
+
when: { storage: "integer" },
|
|
103
|
+
type: "IntegerNumber"
|
|
104
|
+
}]
|
|
105
|
+
},
|
|
106
|
+
BigInt: {
|
|
107
|
+
kind: "typeChoice",
|
|
108
|
+
documentation: "An integer that may exceed the safe integer range, stored as SQLite integer. `as` is what the application reads: bigint, or number within the safe integer range.",
|
|
109
|
+
args: [{
|
|
110
|
+
kind: "option",
|
|
111
|
+
name: "as",
|
|
112
|
+
values: ["bigint", "number"],
|
|
113
|
+
default: "bigint",
|
|
114
|
+
optional: true
|
|
115
|
+
}, storageOption("integer")],
|
|
116
|
+
choices: [{
|
|
117
|
+
when: {
|
|
118
|
+
as: "bigint",
|
|
119
|
+
storage: "integer"
|
|
120
|
+
},
|
|
121
|
+
type: "IntegerBigInt"
|
|
122
|
+
}, {
|
|
123
|
+
when: {
|
|
124
|
+
as: "number",
|
|
125
|
+
storage: "integer"
|
|
126
|
+
},
|
|
127
|
+
type: "IntegerNumber"
|
|
128
|
+
}]
|
|
129
|
+
},
|
|
130
|
+
Float: {
|
|
131
|
+
kind: "typeChoice",
|
|
132
|
+
documentation: "A floating-point number, stored as SQLite real.",
|
|
133
|
+
args: [storageOption("real")],
|
|
134
|
+
choices: [{
|
|
135
|
+
when: { storage: "real" },
|
|
136
|
+
type: "Real"
|
|
137
|
+
}]
|
|
138
|
+
},
|
|
139
|
+
Decimal: {
|
|
140
|
+
kind: "typeChoice",
|
|
141
|
+
documentation: "An exact decimal number read as decimal text such as \"12.50\", stored as SQLite text. It can be compared for equality but not ordered or summed.",
|
|
142
|
+
args: [storageOption("text")],
|
|
143
|
+
choices: [{
|
|
144
|
+
when: { storage: "text" },
|
|
145
|
+
type: "DecimalString"
|
|
146
|
+
}]
|
|
147
|
+
},
|
|
148
|
+
String: {
|
|
149
|
+
kind: "typeChoice",
|
|
150
|
+
documentation: "Text, stored as SQLite text.",
|
|
151
|
+
args: [storageOption("text")],
|
|
152
|
+
choices: [{
|
|
153
|
+
when: { storage: "text" },
|
|
154
|
+
type: "Text"
|
|
155
|
+
}]
|
|
156
|
+
},
|
|
157
|
+
Boolean: {
|
|
158
|
+
kind: "typeChoice",
|
|
159
|
+
documentation: "A boolean, stored as SQLite integer: 0 for false and 1 for true, as SQLite writes FALSE and TRUE.",
|
|
160
|
+
args: [storageOption("integer")],
|
|
161
|
+
choices: [{
|
|
162
|
+
when: { storage: "integer" },
|
|
163
|
+
type: "IntegerBoolean"
|
|
164
|
+
}]
|
|
165
|
+
},
|
|
166
|
+
Bytes: {
|
|
167
|
+
kind: "typeChoice",
|
|
168
|
+
documentation: "Binary data read as a Uint8Array, stored as SQLite blob.",
|
|
169
|
+
args: [storageOption("blob")],
|
|
170
|
+
choices: [{
|
|
171
|
+
when: { storage: "blob" },
|
|
172
|
+
type: "Blob"
|
|
173
|
+
}]
|
|
174
|
+
},
|
|
175
|
+
Json: {
|
|
176
|
+
kind: "typeChoice",
|
|
177
|
+
documentation: "A JSON value, serialized and stored as SQLite text.",
|
|
178
|
+
args: [storageOption("text")],
|
|
179
|
+
choices: [{
|
|
180
|
+
when: { storage: "text" },
|
|
181
|
+
type: "PlainJson"
|
|
182
|
+
}]
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* The explicit types' former names, kept for one release line as deprecated aliases. Each gives the same codec as its replacement, and the PSL interpreter warns where one is written (ADR 257).
|
|
187
|
+
*/
|
|
188
|
+
const sqliteDeprecatedScalarTypes = { BigIntNumber: {
|
|
189
|
+
...integerNumber,
|
|
190
|
+
deprecated: { replacement: "IntegerNumber" }
|
|
191
|
+
} };
|
|
192
|
+
/**
|
|
193
|
+
* SQLite's scalar types other than the date and time types: the explicit types, the convenience types and the deprecated aliases. `sqliteScalarTypeConstructors` adds the date and time types.
|
|
194
|
+
*/
|
|
195
|
+
const sqliteScalarAuthoringTypes = {
|
|
196
|
+
...sqliteExplicitScalarTypes,
|
|
197
|
+
...sqliteConvenienceScalarTypes,
|
|
198
|
+
...sqliteDeprecatedScalarTypes
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* The explicit date and time types. SQLite has no date or time column type, so each is stored as text, in one form for each value, and its name says what the text holds and what the application reads. ADR 315.
|
|
202
|
+
*/
|
|
203
|
+
const sqliteDateTimeTypeConstructors = {
|
|
204
|
+
DatetimeJsDate: {
|
|
205
|
+
kind: "typeConstructor",
|
|
206
|
+
documentation: "An instant stored as SQLite text, 2024-01-01T00:00:00.000Z, and represented as a JavaScript Date.",
|
|
207
|
+
output: { codecId: SQLITE_DATETIME_CODEC_ID }
|
|
208
|
+
},
|
|
209
|
+
DatetimeTemporal: {
|
|
210
|
+
kind: "typeConstructor",
|
|
211
|
+
documentation: "An instant stored as SQLite text, 2024-01-01T00:00:00.000Z, and represented as Temporal.Instant.",
|
|
212
|
+
output: { codecId: SQLITE_DATETIME_TEMPORAL_CODEC_ID }
|
|
213
|
+
},
|
|
214
|
+
DatetimeString: {
|
|
215
|
+
kind: "typeConstructor",
|
|
216
|
+
documentation: "An instant stored as SQLite text and represented as that text, 2024-01-01T00:00:00.000Z, the instant in UTC.",
|
|
217
|
+
output: { codecId: SQLITE_DATETIME_STRING_CODEC_ID }
|
|
218
|
+
},
|
|
219
|
+
DateString: {
|
|
220
|
+
kind: "typeConstructor",
|
|
221
|
+
documentation: "A calendar date stored as SQLite text and represented as that text, 2024-02-29.",
|
|
222
|
+
output: { codecId: SQLITE_DATE_STRING_CODEC_ID }
|
|
223
|
+
},
|
|
224
|
+
DateTemporal: {
|
|
225
|
+
kind: "typeConstructor",
|
|
226
|
+
documentation: "A calendar date stored as SQLite text, 2024-02-29, and represented as Temporal.PlainDate.",
|
|
227
|
+
output: { codecId: SQLITE_DATE_TEMPORAL_CODEC_ID }
|
|
228
|
+
},
|
|
229
|
+
TimeString: {
|
|
230
|
+
kind: "typeConstructor",
|
|
231
|
+
documentation: "A time of day stored as SQLite text and represented as that text, 09:30:00.000, always with three fraction digits.",
|
|
232
|
+
output: { codecId: SQLITE_TIME_STRING_CODEC_ID }
|
|
233
|
+
},
|
|
234
|
+
TimeTemporal: {
|
|
235
|
+
kind: "typeConstructor",
|
|
236
|
+
documentation: "A time of day stored as SQLite text, 09:30:00.000, and represented as Temporal.PlainTime.",
|
|
237
|
+
output: { codecId: SQLITE_TIME_TEMPORAL_CODEC_ID }
|
|
238
|
+
},
|
|
239
|
+
DurationString: {
|
|
240
|
+
kind: "typeConstructor",
|
|
241
|
+
documentation: "A length of time stored as SQLite text and represented as the ISO 8601 duration it was written as, such as PT1H30M.",
|
|
242
|
+
output: { codecId: SQLITE_DURATION_STRING_CODEC_ID }
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
const textStorage = storageOption("text");
|
|
246
|
+
/**
|
|
247
|
+
* The convenience date and time types. Each is a type choice: its `as` argument chooses the explicit type it becomes. Every SQLite date and time type is stored as text, so `storage` is text only. ADR 279, ADR 315.
|
|
248
|
+
*/
|
|
249
|
+
const sqliteConvenienceDateTimeTypes = {
|
|
250
|
+
DateTime: {
|
|
251
|
+
kind: "typeChoice",
|
|
252
|
+
documentation: "A moment in time, stored as SQLite text. `as` is what the application reads: jsDate (a JavaScript Date), temporal (Temporal.Instant) or string, such as \"2024-01-01T00:00:00.000Z\".",
|
|
253
|
+
args: [{
|
|
254
|
+
kind: "option",
|
|
255
|
+
name: "as",
|
|
256
|
+
values: [
|
|
257
|
+
"jsDate",
|
|
258
|
+
"temporal",
|
|
259
|
+
"string"
|
|
260
|
+
],
|
|
261
|
+
default: "jsDate",
|
|
262
|
+
optional: true
|
|
263
|
+
}, textStorage],
|
|
264
|
+
choices: [
|
|
265
|
+
{
|
|
266
|
+
when: {
|
|
267
|
+
as: "jsDate",
|
|
268
|
+
storage: "text"
|
|
269
|
+
},
|
|
270
|
+
type: "DatetimeJsDate"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
when: {
|
|
274
|
+
as: "temporal",
|
|
275
|
+
storage: "text"
|
|
276
|
+
},
|
|
277
|
+
type: "DatetimeTemporal"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
when: {
|
|
281
|
+
as: "string",
|
|
282
|
+
storage: "text"
|
|
283
|
+
},
|
|
284
|
+
type: "DatetimeString"
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
Date: {
|
|
289
|
+
kind: "typeChoice",
|
|
290
|
+
documentation: "A calendar date, stored as SQLite text. `as` is what the application reads: string, such as \"2024-02-29\", or temporal (Temporal.PlainDate).",
|
|
291
|
+
args: [{
|
|
292
|
+
kind: "option",
|
|
293
|
+
name: "as",
|
|
294
|
+
values: ["string", "temporal"],
|
|
295
|
+
default: "string",
|
|
296
|
+
optional: true
|
|
297
|
+
}, textStorage],
|
|
298
|
+
choices: [{
|
|
299
|
+
when: {
|
|
300
|
+
as: "string",
|
|
301
|
+
storage: "text"
|
|
302
|
+
},
|
|
303
|
+
type: "DateString"
|
|
304
|
+
}, {
|
|
305
|
+
when: {
|
|
306
|
+
as: "temporal",
|
|
307
|
+
storage: "text"
|
|
308
|
+
},
|
|
309
|
+
type: "DateTemporal"
|
|
310
|
+
}]
|
|
311
|
+
},
|
|
312
|
+
Time: {
|
|
313
|
+
kind: "typeChoice",
|
|
314
|
+
documentation: "A time of day, stored as SQLite text. `as` is what the application reads: string, such as \"09:30:00.000\", or temporal (Temporal.PlainTime).",
|
|
315
|
+
args: [{
|
|
316
|
+
kind: "option",
|
|
317
|
+
name: "as",
|
|
318
|
+
values: ["string", "temporal"],
|
|
319
|
+
default: "string",
|
|
320
|
+
optional: true
|
|
321
|
+
}, textStorage],
|
|
322
|
+
choices: [{
|
|
323
|
+
when: {
|
|
324
|
+
as: "string",
|
|
325
|
+
storage: "text"
|
|
326
|
+
},
|
|
327
|
+
type: "TimeString"
|
|
328
|
+
}, {
|
|
329
|
+
when: {
|
|
330
|
+
as: "temporal",
|
|
331
|
+
storage: "text"
|
|
332
|
+
},
|
|
333
|
+
type: "TimeTemporal"
|
|
334
|
+
}]
|
|
335
|
+
},
|
|
336
|
+
Duration: {
|
|
337
|
+
kind: "typeChoice",
|
|
338
|
+
documentation: "A length of time, stored as SQLite text. `as` is what the application reads: string, an ISO 8601 duration such as \"PT1H30M\".",
|
|
339
|
+
args: [{
|
|
340
|
+
kind: "option",
|
|
341
|
+
name: "as",
|
|
342
|
+
values: ["string"],
|
|
343
|
+
default: "string",
|
|
344
|
+
optional: true
|
|
345
|
+
}, textStorage],
|
|
346
|
+
choices: [{
|
|
347
|
+
when: {
|
|
348
|
+
as: "string",
|
|
349
|
+
storage: "text"
|
|
350
|
+
},
|
|
351
|
+
type: "DurationString"
|
|
352
|
+
}]
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
* The scalar types, the explicit date and time types and the convenience date and time types. The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.
|
|
357
|
+
*/
|
|
358
|
+
const sqliteScalarTypeConstructors = {
|
|
359
|
+
...sqliteScalarAuthoringTypes,
|
|
360
|
+
...sqliteDateTimeTypeConstructors,
|
|
361
|
+
...sqliteConvenienceDateTimeTypes
|
|
362
|
+
};
|
|
363
|
+
const sqliteTargetDescriptorMeta = {
|
|
364
|
+
...sqliteTargetDescriptorMetaRuntime,
|
|
365
|
+
defaultNamespaceId: UNBOUND_NAMESPACE_ID,
|
|
366
|
+
supportsNamespaces: false,
|
|
367
|
+
displayName: "SQLite",
|
|
368
|
+
authoring: {
|
|
369
|
+
type: {
|
|
370
|
+
...sqliteScalarTypeConstructors,
|
|
371
|
+
...sqliteAuthoringTypes
|
|
372
|
+
},
|
|
373
|
+
dataTypes: sqliteDataTypeEntries(),
|
|
374
|
+
textDataTypes: sqliteTextDataTypes
|
|
375
|
+
},
|
|
376
|
+
generatorFunctions: sqliteGeneratorFunctions,
|
|
377
|
+
controlMutationDefaults: {
|
|
378
|
+
defaultFunctionRegistry: /* @__PURE__ */ new Map(),
|
|
379
|
+
generatorDescriptors: sqliteGeneratorDescriptors
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
//#endregion
|
|
383
|
+
export { sqliteTargetDescriptorMeta as n, sqliteScalarTypeConstructors as t };
|
|
384
|
+
|
|
385
|
+
//# sourceMappingURL=descriptor-meta-DEr1ALec-DvT6glGq.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptor-meta-DEr1ALec-DvT6glGq.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/descriptor-meta-DEr1ALec.mjs"],"sourcesContent":["import { _ as SQLITE_TIME_TEMPORAL_CODEC_ID, a as SQLITE_DATETIME_CODEC_ID, c as SQLITE_DATE_STRING_CODEC_ID, d as SQLITE_DURATION_STRING_CODEC_ID, f as SQLITE_INTEGER_CODEC_ID, g as SQLITE_TIME_STRING_CODEC_ID, h as SQLITE_TEXT_CODEC_ID, i as SQLITE_BOOLEAN_CODEC_ID, l as SQLITE_DATE_TEMPORAL_CODEC_ID, m as SQLITE_REAL_CODEC_ID, o as SQLITE_DATETIME_STRING_CODEC_ID, p as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_DATETIME_TEMPORAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQLITE_DECIMAL_CODEC_ID } from \"./codec-ids-CTshXpbg.mjs\";\nimport { _ as sqliteInteger, x as sqliteTextDataTypes } from \"./data-types-Djvapurb.mjs\";\nimport { t as sqliteDataTypeEntries } from \"./data-type-entries-DaT4D2GV.mjs\";\nimport { n as sqliteTargetDescriptorMetaRuntime, t as sqliteNowGenerators } from \"./date-time-now-generators-DUb3x91B.mjs\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors } from \"@internal/family-sql/pack\";\nimport { TIMESTAMP_NOW_GENERATOR_ID, temporalTypeAliases } from \"@internal/framework-components/authoring\";\nimport { singleGeneratorBinding } from \"@internal/framework-components/components\";\nimport { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID } from \"@internal/type-implementations/now\";\n//#region src/core/authoring.ts\nconst sqliteAuthoringTypes = {\n\t.../* @__PURE__ */ sqlTargetTypeConstructors({ sizeType: \"sqlite/real\" }),\n\ttemporal: /* @__PURE__ */ temporalTypeAliases({ codecId: \"sqlite/datetime@1\" }, \"a JavaScript Date\")\n};\n//#endregion\n//#region src/core/generator-functions.ts\n/** The \"now\" generator for each codec that has one. The `now` generator function binds it. */\nconst sqliteNowGeneratorIds = {\n\t[SQLITE_DATETIME_CODEC_ID]: TIMESTAMP_NOW_GENERATOR_ID,\n\t[SQLITE_DATETIME_TEMPORAL_CODEC_ID]: INSTANT_NOW_GENERATOR_ID,\n\t[SQLITE_DATETIME_STRING_CODEC_ID]: INSTANT_STRING_NOW_GENERATOR_ID,\n\t[SQLITE_DATE_STRING_CODEC_ID]: DATE_STRING_NOW_GENERATOR_ID,\n\t[SQLITE_DATE_TEMPORAL_CODEC_ID]: PLAIN_DATE_NOW_GENERATOR_ID,\n\t[SQLITE_TIME_STRING_CODEC_ID]: TIME_STRING_NOW_GENERATOR_ID,\n\t[SQLITE_TIME_TEMPORAL_CODEC_ID]: PLAIN_TIME_NOW_GENERATOR_ID\n};\nconst sqliteGeneratorFunctions = [\n\t...sqlIntegerArgumentGeneratorFunctions({ integer: sqliteInteger.id }),\n\t{\n\t\tname: \"now\",\n\t\tbindings: Object.entries(sqliteNowGeneratorIds).map(([codecId, generatorId]) => singleGeneratorBinding({\n\t\t\tcodecIds: [codecId],\n\t\t\tgeneratorId\n\t\t}))\n\t},\n\t...idGeneratorFunctionBindings({ text: [SQLITE_TEXT_CODEC_ID] })\n];\n/** The `now` generators SQLite binds. The SQL family registers the identifier generators. */\nconst sqliteGeneratorDescriptors = [{ id: TIMESTAMP_NOW_GENERATOR_ID }, ...sqliteNowGenerators.map(({ id }) => ({ id }))];\n//#endregion\n//#region src/core/type-constructors.ts\nconst integerNumber = {\n\tkind: \"typeConstructor\",\n\tdocumentation: \"An integer read as a JavaScript number within its safe integer range, stored as SQLite integer.\",\n\toutput: { codecId: SQLITE_INTEGER_CODEC_ID }\n};\n/**\n* The explicit SQLite scalar types. An explicit type is named after the SQLite column type that stores it: `Text`, `Real` and `Blob`. `integer` is read by more than one codec of its data type, so those types carry the value too: `IntegerNumber` and `IntegerBigInt`. A type with a data type of its own, which a `text` column stores, is named after that data type, as ADR 315 and rule 7 of ADR 322 give it: `DecimalString`, `PlainJson` and the date and time types. `IntegerBoolean` is an exception that rule 7 records: `sqlite/boolean` is a data type of its own, which an `integer` column stores, and its name takes the form of the other `integer` types. PSL writes them as field types and the TypeScript builder calls them as `type.X()`. ADR 315, ADR 322.\n*/\nconst sqliteExplicitScalarTypes = {\n\tIntegerNumber: integerNumber,\n\tIntegerBigInt: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An integer read as a JavaScript bigint, stored as SQLite integer.\",\n\t\toutput: { codecId: SQLITE_BIGINT_CODEC_ID }\n\t},\n\tReal: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A floating-point number, stored as SQLite real.\",\n\t\toutput: { codecId: SQLITE_REAL_CODEC_ID }\n\t},\n\tDecimalString: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An exact decimal number read as decimal text such as \\\"12.50\\\", stored as SQLite text. Text compares by its characters, so a field of this type can be compared for equality but not ordered or summed.\",\n\t\toutput: { codecId: SQLITE_DECIMAL_CODEC_ID }\n\t},\n\tText: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Text, stored as SQLite text.\",\n\t\toutput: { codecId: SQLITE_TEXT_CODEC_ID }\n\t},\n\tIntegerBoolean: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A boolean, stored as SQLite integer: 0 for false and 1 for true, as SQLite writes FALSE and TRUE.\",\n\t\toutput: { codecId: SQLITE_BOOLEAN_CODEC_ID }\n\t},\n\tBlob: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Binary data read as a Uint8Array, stored as SQLite blob.\",\n\t\toutput: { codecId: SQLITE_BLOB_CODEC_ID }\n\t},\n\tPlainJson: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A JSON value, serialized and stored as SQLite text.\",\n\t\toutput: { codecId: SQLITE_JSON_CODEC_ID }\n\t}\n};\nfunction storageOption(storage) {\n\treturn {\n\t\tkind: \"option\",\n\t\tname: \"storage\",\n\t\tvalues: [storage],\n\t\tdefault: storage,\n\t\toptional: true\n\t};\n}\n/**\n* The convenience types of SQLite's scalars. Each is a type choice: `storage` names the SQLite column type that stores the value and, for `BigInt`, `as` chooses the application value. `Int` comes before `BigInt`, so `IntegerNumber`, which both can choose, is written `Int`. ADR 279, ADR 322.\n*/\nconst sqliteConvenienceScalarTypes = {\n\tInt: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"An integer read as a JavaScript number within its safe integer range, stored as SQLite integer.\",\n\t\targs: [storageOption(\"integer\")],\n\t\tchoices: [{\n\t\t\twhen: { storage: \"integer\" },\n\t\t\ttype: \"IntegerNumber\"\n\t\t}]\n\t},\n\tBigInt: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"An integer that may exceed the safe integer range, stored as SQLite integer. `as` is what the application reads: bigint, or number within the safe integer range.\",\n\t\targs: [{\n\t\t\tkind: \"option\",\n\t\t\tname: \"as\",\n\t\t\tvalues: [\"bigint\", \"number\"],\n\t\t\tdefault: \"bigint\",\n\t\t\toptional: true\n\t\t}, storageOption(\"integer\")],\n\t\tchoices: [{\n\t\t\twhen: {\n\t\t\t\tas: \"bigint\",\n\t\t\t\tstorage: \"integer\"\n\t\t\t},\n\t\t\ttype: \"IntegerBigInt\"\n\t\t}, {\n\t\t\twhen: {\n\t\t\t\tas: \"number\",\n\t\t\t\tstorage: \"integer\"\n\t\t\t},\n\t\t\ttype: \"IntegerNumber\"\n\t\t}]\n\t},\n\tFloat: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A floating-point number, stored as SQLite real.\",\n\t\targs: [storageOption(\"real\")],\n\t\tchoices: [{\n\t\t\twhen: { storage: \"real\" },\n\t\t\ttype: \"Real\"\n\t\t}]\n\t},\n\tDecimal: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"An exact decimal number read as decimal text such as \\\"12.50\\\", stored as SQLite text. It can be compared for equality but not ordered or summed.\",\n\t\targs: [storageOption(\"text\")],\n\t\tchoices: [{\n\t\t\twhen: { storage: \"text\" },\n\t\t\ttype: \"DecimalString\"\n\t\t}]\n\t},\n\tString: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"Text, stored as SQLite text.\",\n\t\targs: [storageOption(\"text\")],\n\t\tchoices: [{\n\t\t\twhen: { storage: \"text\" },\n\t\t\ttype: \"Text\"\n\t\t}]\n\t},\n\tBoolean: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A boolean, stored as SQLite integer: 0 for false and 1 for true, as SQLite writes FALSE and TRUE.\",\n\t\targs: [storageOption(\"integer\")],\n\t\tchoices: [{\n\t\t\twhen: { storage: \"integer\" },\n\t\t\ttype: \"IntegerBoolean\"\n\t\t}]\n\t},\n\tBytes: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"Binary data read as a Uint8Array, stored as SQLite blob.\",\n\t\targs: [storageOption(\"blob\")],\n\t\tchoices: [{\n\t\t\twhen: { storage: \"blob\" },\n\t\t\ttype: \"Blob\"\n\t\t}]\n\t},\n\tJson: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A JSON value, serialized and stored as SQLite text.\",\n\t\targs: [storageOption(\"text\")],\n\t\tchoices: [{\n\t\t\twhen: { storage: \"text\" },\n\t\t\ttype: \"PlainJson\"\n\t\t}]\n\t}\n};\n/**\n* The explicit types' former names, kept for one release line as deprecated aliases. Each gives the same codec as its replacement, and the PSL interpreter warns where one is written (ADR 257).\n*/\nconst sqliteDeprecatedScalarTypes = { BigIntNumber: {\n\t...integerNumber,\n\tdeprecated: { replacement: \"IntegerNumber\" }\n} };\n/**\n* SQLite's scalar types other than the date and time types: the explicit types, the convenience types and the deprecated aliases. `sqliteScalarTypeConstructors` adds the date and time types.\n*/\nconst sqliteScalarAuthoringTypes = {\n\t...sqliteExplicitScalarTypes,\n\t...sqliteConvenienceScalarTypes,\n\t...sqliteDeprecatedScalarTypes\n};\n/**\n* The explicit date and time types. SQLite has no date or time column type, so each is stored as text, in one form for each value, and its name says what the text holds and what the application reads. ADR 315.\n*/\nconst sqliteDateTimeTypeConstructors = {\n\tDatetimeJsDate: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An instant stored as SQLite text, 2024-01-01T00:00:00.000Z, and represented as a JavaScript Date.\",\n\t\toutput: { codecId: SQLITE_DATETIME_CODEC_ID }\n\t},\n\tDatetimeTemporal: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An instant stored as SQLite text, 2024-01-01T00:00:00.000Z, and represented as Temporal.Instant.\",\n\t\toutput: { codecId: SQLITE_DATETIME_TEMPORAL_CODEC_ID }\n\t},\n\tDatetimeString: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An instant stored as SQLite text and represented as that text, 2024-01-01T00:00:00.000Z, the instant in UTC.\",\n\t\toutput: { codecId: SQLITE_DATETIME_STRING_CODEC_ID }\n\t},\n\tDateString: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A calendar date stored as SQLite text and represented as that text, 2024-02-29.\",\n\t\toutput: { codecId: SQLITE_DATE_STRING_CODEC_ID }\n\t},\n\tDateTemporal: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A calendar date stored as SQLite text, 2024-02-29, and represented as Temporal.PlainDate.\",\n\t\toutput: { codecId: SQLITE_DATE_TEMPORAL_CODEC_ID }\n\t},\n\tTimeString: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A time of day stored as SQLite text and represented as that text, 09:30:00.000, always with three fraction digits.\",\n\t\toutput: { codecId: SQLITE_TIME_STRING_CODEC_ID }\n\t},\n\tTimeTemporal: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A time of day stored as SQLite text, 09:30:00.000, and represented as Temporal.PlainTime.\",\n\t\toutput: { codecId: SQLITE_TIME_TEMPORAL_CODEC_ID }\n\t},\n\tDurationString: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A length of time stored as SQLite text and represented as the ISO 8601 duration it was written as, such as PT1H30M.\",\n\t\toutput: { codecId: SQLITE_DURATION_STRING_CODEC_ID }\n\t}\n};\nconst textStorage = storageOption(\"text\");\n/**\n* The convenience date and time types. Each is a type choice: its `as` argument chooses the explicit type it becomes. Every SQLite date and time type is stored as text, so `storage` is text only. ADR 279, ADR 315.\n*/\nconst sqliteConvenienceDateTimeTypes = {\n\tDateTime: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A moment in time, stored as SQLite text. `as` is what the application reads: jsDate (a JavaScript Date), temporal (Temporal.Instant) or string, such as \\\"2024-01-01T00:00:00.000Z\\\".\",\n\t\targs: [{\n\t\t\tkind: \"option\",\n\t\t\tname: \"as\",\n\t\t\tvalues: [\n\t\t\t\t\"jsDate\",\n\t\t\t\t\"temporal\",\n\t\t\t\t\"string\"\n\t\t\t],\n\t\t\tdefault: \"jsDate\",\n\t\t\toptional: true\n\t\t}, textStorage],\n\t\tchoices: [\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"jsDate\",\n\t\t\t\t\tstorage: \"text\"\n\t\t\t\t},\n\t\t\t\ttype: \"DatetimeJsDate\"\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"temporal\",\n\t\t\t\t\tstorage: \"text\"\n\t\t\t\t},\n\t\t\t\ttype: \"DatetimeTemporal\"\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"string\",\n\t\t\t\t\tstorage: \"text\"\n\t\t\t\t},\n\t\t\t\ttype: \"DatetimeString\"\n\t\t\t}\n\t\t]\n\t},\n\tDate: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A calendar date, stored as SQLite text. `as` is what the application reads: string, such as \\\"2024-02-29\\\", or temporal (Temporal.PlainDate).\",\n\t\targs: [{\n\t\t\tkind: \"option\",\n\t\t\tname: \"as\",\n\t\t\tvalues: [\"string\", \"temporal\"],\n\t\t\tdefault: \"string\",\n\t\t\toptional: true\n\t\t}, textStorage],\n\t\tchoices: [{\n\t\t\twhen: {\n\t\t\t\tas: \"string\",\n\t\t\t\tstorage: \"text\"\n\t\t\t},\n\t\t\ttype: \"DateString\"\n\t\t}, {\n\t\t\twhen: {\n\t\t\t\tas: \"temporal\",\n\t\t\t\tstorage: \"text\"\n\t\t\t},\n\t\t\ttype: \"DateTemporal\"\n\t\t}]\n\t},\n\tTime: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A time of day, stored as SQLite text. `as` is what the application reads: string, such as \\\"09:30:00.000\\\", or temporal (Temporal.PlainTime).\",\n\t\targs: [{\n\t\t\tkind: \"option\",\n\t\t\tname: \"as\",\n\t\t\tvalues: [\"string\", \"temporal\"],\n\t\t\tdefault: \"string\",\n\t\t\toptional: true\n\t\t}, textStorage],\n\t\tchoices: [{\n\t\t\twhen: {\n\t\t\t\tas: \"string\",\n\t\t\t\tstorage: \"text\"\n\t\t\t},\n\t\t\ttype: \"TimeString\"\n\t\t}, {\n\t\t\twhen: {\n\t\t\t\tas: \"temporal\",\n\t\t\t\tstorage: \"text\"\n\t\t\t},\n\t\t\ttype: \"TimeTemporal\"\n\t\t}]\n\t},\n\tDuration: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A length of time, stored as SQLite text. `as` is what the application reads: string, an ISO 8601 duration such as \\\"PT1H30M\\\".\",\n\t\targs: [{\n\t\t\tkind: \"option\",\n\t\t\tname: \"as\",\n\t\t\tvalues: [\"string\"],\n\t\t\tdefault: \"string\",\n\t\t\toptional: true\n\t\t}, textStorage],\n\t\tchoices: [{\n\t\t\twhen: {\n\t\t\t\tas: \"string\",\n\t\t\t\tstorage: \"text\"\n\t\t\t},\n\t\t\ttype: \"DurationString\"\n\t\t}]\n\t}\n};\n/**\n* The scalar types, the explicit date and time types and the convenience date and time types. The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.\n*/\nconst sqliteScalarTypeConstructors = {\n\t...sqliteScalarAuthoringTypes,\n\t...sqliteDateTimeTypeConstructors,\n\t...sqliteConvenienceDateTimeTypes\n};\nconst sqliteTargetDescriptorMeta = {\n\t...sqliteTargetDescriptorMetaRuntime,\n\tdefaultNamespaceId: UNBOUND_NAMESPACE_ID,\n\tsupportsNamespaces: false,\n\tdisplayName: \"SQLite\",\n\tauthoring: {\n\t\ttype: {\n\t\t\t...sqliteScalarTypeConstructors,\n\t\t\t...sqliteAuthoringTypes\n\t\t},\n\t\tdataTypes: sqliteDataTypeEntries(),\n\t\ttextDataTypes: sqliteTextDataTypes\n\t},\n\tgeneratorFunctions: sqliteGeneratorFunctions,\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: /* @__PURE__ */ new Map(),\n\t\tgeneratorDescriptors: sqliteGeneratorDescriptors\n\t}\n};\n//#endregion\nexport { sqliteScalarTypeConstructors as n, sqliteTargetDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-DEr1ALec.mjs.map"],"mappings":";;;;;;;;;;AAUA,MAAM,uBAAuB;CAC5B,GAAmB,0CAA0B,EAAE,UAAU,cAAc,CAAC;CACxE,UAA0B,oCAAoB,EAAE,SAAS,oBAAoB,GAAG,mBAAmB;AACpG;;AAIA,MAAM,wBAAwB;EAC5B,2BAA2B;EAC3B,oCAAoC;EACpC,kCAAkC;EAClC,8BAA8B;EAC9B,gCAAgC;EAChC,8BAA8B;EAC9B,gCAAgC;AAClC;AACA,MAAM,2BAA2B;CAChC,GAAG,qCAAqC,EAAE,SAAS,cAAc,GAAG,CAAC;CACrE;EACC,MAAM;EACN,UAAU,OAAO,QAAQ,qBAAqB,CAAC,CAAC,KAAK,CAAC,SAAS,iBAAiB,uBAAuB;GACtG,UAAU,CAAC,OAAO;GAClB;EACD,CAAC,CAAC;CACH;CACA,GAAG,4BAA4B,EAAE,MAAM,CAAC,oBAAoB,EAAE,CAAC;AAChE;;AAEA,MAAM,6BAA6B,CAAC,EAAE,IAAI,2BAA2B,GAAG,GAAG,oBAAoB,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC;AAGxH,M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IACJ,SAAS;GACV;GACA,MAAM;EACP,GAAG;GACF,MAAM;IACL,IAAI;IACJ,SAAS;GACV;GACA,MAAM;EACP,CAAC;CACF;CACA,UAAU;EACT,MAAM;EACN,eAAe;EACf,MAAM,CAAC;GACN,MAAM;GACN,MAAM;GACN,QAAQ,CAAC,QAAQ;GACjB,SAAS;GACT,UAAU;EACX,GAAG,WAAW;EACd,SAAS,CAAC;GACT,MAAM;IACL,IAAI;IACJ,SAAS;GACV;GACA,MAAM;EACP,CAAC;CACF;AACD;;;;AAIA,MAAM,+BAA+B;CACpC,GAAG;CACH,GAAG;CACH,GAAG;AACJ;AACA,MAAM,6BAA6B;CAClC,GAAG;CACH,oBAAoB;CACpB,oBAAoB;CACpB,aAAa;CACb,WAAW;EACV,MAAM;GACL,GAAG;GACH,GAAG;EACJ;EACA,WAAW,sBAAsB;EACjC,eAAe;CAChB;CACA,oBAAoB;CACpB,yBAAyB;EACxB,yCAAyC,IAAI,IAAI;EACjD,sBAAsB;CACvB;AACD"}
|
package/dist/driver.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as SqliteControlDriver } from "./control-
|
|
2
|
-
import { n as SqliteRuntimeDriver, t as SqliteBinding } from "./runtime-
|
|
1
|
+
import { t as SqliteControlDriver } from "./control-C2TjacST.mjs";
|
|
2
|
+
import { n as SqliteRuntimeDriver, t as SqliteBinding } from "./runtime-BvMPuBrJ.mjs";
|
|
3
3
|
export { type SqliteBinding, SqliteControlDriver, type SqliteRuntimeDriver };
|
package/dist/driver.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SqliteControlDriver } from "./control-
|
|
1
|
+
import { t as SqliteControlDriver } from "./control-V3kPfMTR.mjs";
|
|
2
2
|
export { SqliteControlDriver };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as sqliteDriverDescriptor, t as SqliteControlDriver } from "./control-
|
|
1
|
+
import { n as sqliteDriverDescriptor, t as SqliteControlDriver } from "./control-C2TjacST.mjs";
|
|
2
2
|
export { SqliteControlDriver, sqliteDriverDescriptor as default };
|
package/dist/driver__control.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as sqliteDriverDescriptor, t as SqliteControlDriver } from "./control-
|
|
1
|
+
import { n as sqliteDriverDescriptor, t as SqliteControlDriver } from "./control-V3kPfMTR.mjs";
|
|
2
2
|
export { SqliteControlDriver, sqliteDriverDescriptor as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SqliteRuntimeDriver, r as sqliteRuntimeDriverDescriptor, t as SqliteBinding } from "./runtime-
|
|
1
|
+
import { n as SqliteRuntimeDriver, r as sqliteRuntimeDriverDescriptor, t as SqliteBinding } from "./runtime-BvMPuBrJ.mjs";
|
|
2
2
|
export { type SqliteBinding, type SqliteRuntimeDriver, sqliteRuntimeDriverDescriptor as default };
|
package/dist/driver__runtime.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as validateSqliteIsolationLevel } from "./runtime-C43fN_cJ.mjs";
|
|
2
|
+
import { a as sqliteDriverDescriptorMeta, i as safeIntegersAsNumbers, n as normalizeSqliteError, o as sqliteParams, r as prepareExact, s as wasClosedByDriver, t as closeDatabase } from "./descriptor-meta-CkiPlqDS-n3hDP01X.mjs";
|
|
3
|
+
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
2
4
|
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
3
5
|
import { DatabaseSync } from "node:sqlite";
|
|
4
|
-
//#region ../../../3-targets/
|
|
6
|
+
//#region ../../../3-targets/sqlite/3-driver/dist/runtime.mjs
|
|
5
7
|
function driverError(code, message, details) {
|
|
6
8
|
const error = new Error(message);
|
|
7
9
|
Object.defineProperty(error, "name", {
|
|
@@ -18,9 +20,6 @@ function driverError(code, message, details) {
|
|
|
18
20
|
}
|
|
19
21
|
const NOT_CONNECTED_MESSAGE = "SQLite driver not connected. Call connect(binding) before acquireConnection or execute.";
|
|
20
22
|
const ALREADY_CONNECTED_MESSAGE = "SQLite driver already connected. Call close() before reconnecting with a new binding.";
|
|
21
|
-
function toSqliteParams(params) {
|
|
22
|
-
return params ?? [];
|
|
23
|
-
}
|
|
24
23
|
function openConnection(path) {
|
|
25
24
|
try {
|
|
26
25
|
const db = new DatabaseSync(path);
|
|
@@ -28,7 +27,7 @@ function openConnection(path) {
|
|
|
28
27
|
db.exec("PRAGMA busy_timeout = 5000");
|
|
29
28
|
return db;
|
|
30
29
|
} catch (error) {
|
|
31
|
-
throw normalizeSqliteError(error);
|
|
30
|
+
throw normalizeSqliteError(error, false);
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
var SqliteQueryable = class {
|
|
@@ -37,37 +36,46 @@ var SqliteQueryable = class {
|
|
|
37
36
|
this.db = db;
|
|
38
37
|
}
|
|
39
38
|
async *query(request) {
|
|
39
|
+
let rows;
|
|
40
40
|
try {
|
|
41
|
-
|
|
42
|
-
for (
|
|
41
|
+
rows = prepareExact(this.db, request.sql).iterate(...sqliteParams(request.params));
|
|
42
|
+
for (let next = rows.next(); next.done !== true; next = rows.next()) yield blindCast(safeIntegersAsNumbers(next.value));
|
|
43
43
|
} catch (error) {
|
|
44
|
-
throw normalizeSqliteError(error);
|
|
44
|
+
throw normalizeSqliteError(error, wasClosedByDriver(this.db));
|
|
45
|
+
} finally {
|
|
46
|
+
if (this.db.isOpen) rows?.return?.();
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
async execute(request) {
|
|
48
50
|
try {
|
|
49
|
-
const stmt = this.db
|
|
51
|
+
const stmt = prepareExact(this.db, request.sql);
|
|
50
52
|
if (stmt.columns().length !== 0) throw new InternalError("SQLite cannot execute statements that return rows.");
|
|
51
|
-
|
|
53
|
+
const { changes, lastInsertRowid } = stmt.run(...sqliteParams(request.params));
|
|
54
|
+
const affectedRows = Number(changes);
|
|
55
|
+
return affectedRows === 1 ? {
|
|
56
|
+
affectedRows,
|
|
57
|
+
insertId: String(lastInsertRowid)
|
|
58
|
+
} : { affectedRows };
|
|
52
59
|
} catch (error) {
|
|
53
|
-
throw normalizeSqliteError(error);
|
|
60
|
+
throw normalizeSqliteError(error, wasClosedByDriver(this.db));
|
|
54
61
|
}
|
|
55
62
|
}
|
|
56
63
|
async explain(request) {
|
|
57
64
|
try {
|
|
58
|
-
return { rows: this.db
|
|
65
|
+
return { rows: prepareExact(this.db, `EXPLAIN QUERY PLAN ${request.sql}`).all(...sqliteParams(request.params)).map(safeIntegersAsNumbers) };
|
|
59
66
|
} catch (error) {
|
|
60
|
-
throw normalizeSqliteError(error);
|
|
67
|
+
throw normalizeSqliteError(error, wasClosedByDriver(this.db));
|
|
61
68
|
}
|
|
62
69
|
}
|
|
63
70
|
};
|
|
64
71
|
var SqliteConnectionImpl = class extends SqliteQueryable {
|
|
65
|
-
async beginTransaction() {
|
|
72
|
+
async beginTransaction(start) {
|
|
73
|
+
if (start?.isolationLevel !== void 0) validateSqliteIsolationLevel(start.isolationLevel);
|
|
66
74
|
try {
|
|
67
75
|
this.db.exec("BEGIN");
|
|
68
76
|
return new SqliteTransactionImpl(this.db);
|
|
69
77
|
} catch (error) {
|
|
70
|
-
throw normalizeSqliteError(error);
|
|
78
|
+
throw normalizeSqliteError(error, wasClosedByDriver(this.db));
|
|
71
79
|
}
|
|
72
80
|
}
|
|
73
81
|
async release() {
|
|
@@ -75,9 +83,9 @@ var SqliteConnectionImpl = class extends SqliteQueryable {
|
|
|
75
83
|
}
|
|
76
84
|
async destroy(_reason) {
|
|
77
85
|
try {
|
|
78
|
-
this.db
|
|
86
|
+
closeDatabase(this.db);
|
|
79
87
|
} catch (error) {
|
|
80
|
-
throw normalizeSqliteError(error);
|
|
88
|
+
throw normalizeSqliteError(error, wasClosedByDriver(this.db));
|
|
81
89
|
}
|
|
82
90
|
}
|
|
83
91
|
};
|
|
@@ -86,17 +94,47 @@ var SqliteTransactionImpl = class extends SqliteQueryable {
|
|
|
86
94
|
try {
|
|
87
95
|
this.db.exec("COMMIT");
|
|
88
96
|
} catch (error) {
|
|
89
|
-
throw normalizeSqliteError(error);
|
|
97
|
+
throw normalizeSqliteError(error, wasClosedByDriver(this.db));
|
|
90
98
|
}
|
|
91
99
|
}
|
|
92
100
|
async rollback() {
|
|
93
101
|
try {
|
|
94
102
|
this.db.exec("ROLLBACK");
|
|
95
103
|
} catch (error) {
|
|
96
|
-
throw normalizeSqliteError(error);
|
|
104
|
+
throw normalizeSqliteError(error, wasClosedByDriver(this.db));
|
|
97
105
|
}
|
|
98
106
|
}
|
|
107
|
+
async savepoint(name) {
|
|
108
|
+
return openSqliteSavepoint(this.db, name);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
var SqliteSavepointImpl = class extends SqliteQueryable {
|
|
112
|
+
name;
|
|
113
|
+
constructor(db, name) {
|
|
114
|
+
super(db);
|
|
115
|
+
this.name = name;
|
|
116
|
+
}
|
|
117
|
+
async commit() {
|
|
118
|
+
execSavepointStatement(this.db, `RELEASE SAVEPOINT ${this.name}`);
|
|
119
|
+
}
|
|
120
|
+
async rollback() {
|
|
121
|
+
execSavepointStatement(this.db, `ROLLBACK TO SAVEPOINT ${this.name}`);
|
|
122
|
+
}
|
|
123
|
+
async savepoint(name) {
|
|
124
|
+
return openSqliteSavepoint(this.db, name);
|
|
125
|
+
}
|
|
99
126
|
};
|
|
127
|
+
function execSavepointStatement(db, sql) {
|
|
128
|
+
try {
|
|
129
|
+
db.exec(sql);
|
|
130
|
+
} catch (error) {
|
|
131
|
+
throw normalizeSqliteError(error, wasClosedByDriver(db));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
function openSqliteSavepoint(db, name) {
|
|
135
|
+
execSavepointStatement(db, `SAVEPOINT ${name}`);
|
|
136
|
+
return new SqliteSavepointImpl(db, name);
|
|
137
|
+
}
|
|
100
138
|
function unboundQuery() {
|
|
101
139
|
return { [Symbol.asyncIterator]() {
|
|
102
140
|
return { async next() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver__runtime.mjs","names":["#state","#requireConnected"],"sources":["../../../../3-targets/7-drivers/sqlite/dist/runtime.mjs"],"sourcesContent":["import { n as normalizeSqliteError, t as sqliteDriverDescriptorMeta } from \"./descriptor-meta-vjJkUDsn.mjs\";\nimport { DatabaseSync } from \"node:sqlite\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/sqlite-driver.ts\nfunction driverError(code, message, details) {\n\tconst error = new Error(message);\n\tObject.defineProperty(error, \"name\", {\n\t\tvalue: \"RuntimeError\",\n\t\tconfigurable: true\n\t});\n\treturn Object.assign(error, {\n\t\tcode,\n\t\tcategory: \"DRIVER\",\n\t\tseverity: \"error\",\n\t\tmessage,\n\t\tdetails\n\t});\n}\nconst NOT_CONNECTED_MESSAGE = \"SQLite driver not connected. Call connect(binding) before acquireConnection or execute.\";\nconst ALREADY_CONNECTED_MESSAGE = \"SQLite driver already connected. Call close() before reconnecting with a new binding.\";\nfunction toSqliteParams(params) {\n\treturn params ?? [];\n}\nfunction openConnection(path) {\n\ttry {\n\t\tconst db = new DatabaseSync(path);\n\t\tdb.exec(\"PRAGMA foreign_keys = ON\");\n\t\tdb.exec(\"PRAGMA busy_timeout = 5000\");\n\t\treturn db;\n\t} catch (error) {\n\t\tthrow normalizeSqliteError(error);\n\t}\n}\nvar SqliteQueryable = class {\n\tdb;\n\tconstructor(db) {\n\t\tthis.db = db;\n\t}\n\tasync *query(request) {\n\t\ttry {\n\t\t\tconst stmt = this.db.prepare(request.sql);\n\t\t\tfor (const row of stmt.iterate(...toSqliteParams(request.params))) yield row;\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync execute(request) {\n\t\ttry {\n\t\t\tconst stmt = this.db.prepare(request.sql);\n\t\t\tif (stmt.columns().length !== 0) throw new InternalError(\"SQLite cannot execute statements that return rows.\");\n\t\t\treturn { affectedRows: Number(stmt.run(...toSqliteParams(request.params)).changes) };\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync explain(request) {\n\t\ttry {\n\t\t\treturn { rows: this.db.prepare(`EXPLAIN QUERY PLAN ${request.sql}`).all(...toSqliteParams(request.params)) };\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n};\nvar SqliteConnectionImpl = class extends SqliteQueryable {\n\tasync beginTransaction() {\n\t\ttry {\n\t\t\tthis.db.exec(\"BEGIN\");\n\t\t\treturn new SqliteTransactionImpl(this.db);\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync release() {\n\t\treturn this.destroy();\n\t}\n\tasync destroy(_reason) {\n\t\ttry {\n\t\t\tthis.db.close();\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n};\nvar SqliteTransactionImpl = class extends SqliteQueryable {\n\tasync commit() {\n\t\ttry {\n\t\t\tthis.db.exec(\"COMMIT\");\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync rollback() {\n\t\ttry {\n\t\t\tthis.db.exec(\"ROLLBACK\");\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n};\nfunction unboundQuery() {\n\treturn { [Symbol.asyncIterator]() {\n\t\treturn { async next() {\n\t\t\tthrow driverError(\"DRIVER.NOT_CONNECTED\", NOT_CONNECTED_MESSAGE);\n\t\t} };\n\t} };\n}\nvar SqliteDriver = class {\n\tfamilyId = \"sql\";\n\ttargetId = \"sqlite\";\n\t#state;\n\tconstructor(initialState) {\n\t\tthis.#state = initialState ?? { kind: \"unbound\" };\n\t}\n\t#requireConnected() {\n\t\tif (this.#state.kind !== \"connected\") throw driverError(\"DRIVER.NOT_CONNECTED\", NOT_CONNECTED_MESSAGE);\n\t\treturn this.#state;\n\t}\n\tget state() {\n\t\treturn this.#state.kind;\n\t}\n\tasync connect(binding) {\n\t\tif (this.#state.kind === \"connected\") throw driverError(\"DRIVER.ALREADY_CONNECTED\", ALREADY_CONNECTED_MESSAGE, { bindingKind: binding.kind });\n\t\tthis.#state = {\n\t\t\tkind: \"connected\",\n\t\t\tpath: binding.path,\n\t\t\tconn: new SqliteConnectionImpl(openConnection(binding.path))\n\t\t};\n\t}\n\tasync acquireConnection() {\n\t\tconst { path } = this.#requireConnected();\n\t\treturn new SqliteConnectionImpl(openConnection(path));\n\t}\n\tasync close() {\n\t\tif (this.#state.kind !== \"connected\") return;\n\t\tconst { conn } = this.#state;\n\t\tthis.#state = { kind: \"closed\" };\n\t\tawait conn.release();\n\t}\n\tquery(request) {\n\t\tif (this.#state.kind !== \"connected\") return unboundQuery();\n\t\treturn this.#state.conn.query(request);\n\t}\n\tasync execute(request) {\n\t\treturn this.#requireConnected().conn.execute(request);\n\t}\n\tasync explain(request) {\n\t\treturn this.#requireConnected().conn.explain(request);\n\t}\n};\n//#endregion\n//#region src/core/runtime-driver.ts\nconst sqliteRuntimeDriverDescriptor = {\n\t...sqliteDriverDescriptorMeta,\n\tcreate() {\n\t\treturn new SqliteDriver();\n\t}\n};\n//#endregion\nexport { sqliteRuntimeDriverDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;AAIA,SAAS,YAAY,MAAM,SAAS,SAAS;CAC5C,MAAM,QAAQ,IAAI,MAAM,OAAO;CAC/B,OAAO,eAAe,OAAO,QAAQ;EACpC,OAAO;EACP,cAAc;CACf,CAAC;CACD,OAAO,OAAO,OAAO,OAAO;EAC3B;EACA,UAAU;EACV,UAAU;EACV;EACA;CACD,CAAC;AACF;AACA,MAAM,wBAAwB;AAC9B,MAAM,4BAA4B;AAClC,SAAS,eAAe,QAAQ;CAC/B,OAAO,UAAU,CAAC;AACnB;AACA,SAAS,eAAe,MAAM;CAC7B,IAAI;EACH,MAAM,KAAK,IAAI,aAAa,IAAI;EAChC,GAAG,KAAK,0BAA0B;EACl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AI,KAAKA,OAAO,SAAS,aAAa,OAAO,aAAa;EAC1D,OAAO,KAAKA,OAAO,KAAK,MAAM,OAAO;CACtC;CACA,MAAM,QAAQ,SAAS;EACtB,OAAO,KAAKC,kBAAkB,CAAC,CAAC,KAAK,QAAQ,OAAO;CACrD;CACA,MAAM,QAAQ,SAAS;EACtB,OAAO,KAAKA,kBAAkB,CAAC,CAAC,KAAK,QAAQ,OAAO;CACrD;AACD;AAGA,MAAM,gCAAgC;CACrC,GAAG;CACH,SAAS;EACR,OAAO,IAAI,aAAa;CACzB;AACD"}
|
|
1
|
+
{"version":3,"file":"driver__runtime.mjs","names":["#state","#requireConnected"],"sources":["../../../../3-targets/sqlite/3-driver/dist/runtime.mjs"],"sourcesContent":["import { a as safeIntegersAsNumbers, i as prepareExact, n as sqliteParams, o as closeDatabase, r as normalizeSqliteError, s as wasClosedByDriver, t as sqliteDriverDescriptorMeta } from \"./descriptor-meta-CkiPlqDS.mjs\";\nimport { DatabaseSync } from \"node:sqlite\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { validateSqliteIsolationLevel } from \"@internal/target-sqlite/runtime\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/sqlite-driver.ts\nfunction driverError(code, message, details) {\n\tconst error = new Error(message);\n\tObject.defineProperty(error, \"name\", {\n\t\tvalue: \"RuntimeError\",\n\t\tconfigurable: true\n\t});\n\treturn Object.assign(error, {\n\t\tcode,\n\t\tcategory: \"DRIVER\",\n\t\tseverity: \"error\",\n\t\tmessage,\n\t\tdetails\n\t});\n}\nconst NOT_CONNECTED_MESSAGE = \"SQLite driver not connected. Call connect(binding) before acquireConnection or execute.\";\nconst ALREADY_CONNECTED_MESSAGE = \"SQLite driver already connected. Call close() before reconnecting with a new binding.\";\nfunction openConnection(path) {\n\ttry {\n\t\tconst db = new DatabaseSync(path);\n\t\tdb.exec(\"PRAGMA foreign_keys = ON\");\n\t\tdb.exec(\"PRAGMA busy_timeout = 5000\");\n\t\treturn db;\n\t} catch (error) {\n\t\tthrow normalizeSqliteError(error, false);\n\t}\n}\nvar SqliteQueryable = class {\n\tdb;\n\tconstructor(db) {\n\t\tthis.db = db;\n\t}\n\tasync *query(request) {\n\t\tlet rows;\n\t\ttry {\n\t\t\trows = prepareExact(this.db, request.sql).iterate(...sqliteParams(request.params));\n\t\t\tfor (let next = rows.next(); next.done !== true; next = rows.next()) yield blindCast(safeIntegersAsNumbers(next.value));\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error, wasClosedByDriver(this.db));\n\t\t} finally {\n\t\t\tif (this.db.isOpen) rows?.return?.();\n\t\t}\n\t}\n\tasync execute(request) {\n\t\ttry {\n\t\t\tconst stmt = prepareExact(this.db, request.sql);\n\t\t\tif (stmt.columns().length !== 0) throw new InternalError(\"SQLite cannot execute statements that return rows.\");\n\t\t\tconst { changes, lastInsertRowid } = stmt.run(...sqliteParams(request.params));\n\t\t\tconst affectedRows = Number(changes);\n\t\t\treturn affectedRows === 1 ? {\n\t\t\t\taffectedRows,\n\t\t\t\tinsertId: String(lastInsertRowid)\n\t\t\t} : { affectedRows };\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error, wasClosedByDriver(this.db));\n\t\t}\n\t}\n\tasync explain(request) {\n\t\ttry {\n\t\t\treturn { rows: prepareExact(this.db, `EXPLAIN QUERY PLAN ${request.sql}`).all(...sqliteParams(request.params)).map(safeIntegersAsNumbers) };\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error, wasClosedByDriver(this.db));\n\t\t}\n\t}\n};\nvar SqliteConnectionImpl = class extends SqliteQueryable {\n\tasync beginTransaction(start) {\n\t\tif (start?.isolationLevel !== void 0) validateSqliteIsolationLevel(start.isolationLevel);\n\t\ttry {\n\t\t\tthis.db.exec(\"BEGIN\");\n\t\t\treturn new SqliteTransactionImpl(this.db);\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error, wasClosedByDriver(this.db));\n\t\t}\n\t}\n\tasync release() {\n\t\treturn this.destroy();\n\t}\n\tasync destroy(_reason) {\n\t\ttry {\n\t\t\tcloseDatabase(this.db);\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error, wasClosedByDriver(this.db));\n\t\t}\n\t}\n};\nvar SqliteTransactionImpl = class extends SqliteQueryable {\n\tasync commit() {\n\t\ttry {\n\t\t\tthis.db.exec(\"COMMIT\");\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error, wasClosedByDriver(this.db));\n\t\t}\n\t}\n\tasync rollback() {\n\t\ttry {\n\t\t\tthis.db.exec(\"ROLLBACK\");\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error, wasClosedByDriver(this.db));\n\t\t}\n\t}\n\tasync savepoint(name) {\n\t\treturn openSqliteSavepoint(this.db, name);\n\t}\n};\nvar SqliteSavepointImpl = class extends SqliteQueryable {\n\tname;\n\tconstructor(db, name) {\n\t\tsuper(db);\n\t\tthis.name = name;\n\t}\n\tasync commit() {\n\t\texecSavepointStatement(this.db, `RELEASE SAVEPOINT ${this.name}`);\n\t}\n\tasync rollback() {\n\t\texecSavepointStatement(this.db, `ROLLBACK TO SAVEPOINT ${this.name}`);\n\t}\n\tasync savepoint(name) {\n\t\treturn openSqliteSavepoint(this.db, name);\n\t}\n};\nfunction execSavepointStatement(db, sql) {\n\ttry {\n\t\tdb.exec(sql);\n\t} catch (error) {\n\t\tthrow normalizeSqliteError(error, wasClosedByDriver(db));\n\t}\n}\nfunction openSqliteSavepoint(db, name) {\n\texecSavepointStatement(db, `SAVEPOINT ${name}`);\n\treturn new SqliteSavepointImpl(db, name);\n}\nfunction unboundQuery() {\n\treturn { [Symbol.asyncIterator]() {\n\t\treturn { async next() {\n\t\t\tthrow driverError(\"DRIVER.NOT_CONNECTED\", NOT_CONNECTED_MESSAGE);\n\t\t} };\n\t} };\n}\nvar SqliteDriver = class {\n\tfamilyId = \"sql\";\n\ttargetId = \"sqlite\";\n\t#state;\n\tconstructor(initialState) {\n\t\tthis.#state = initialState ?? { kind: \"unbound\" };\n\t}\n\t#requireConnected() {\n\t\tif (this.#state.kind !== \"connected\") throw driverError(\"DRIVER.NOT_CONNECTED\", NOT_CONNECTED_MESSAGE);\n\t\treturn this.#state;\n\t}\n\tget state() {\n\t\treturn this.#state.kind;\n\t}\n\tasync connect(binding) {\n\t\tif (this.#state.kind === \"connected\") throw driverError(\"DRIVER.ALREADY_CONNECTED\", ALREADY_CONNECTED_MESSAGE, { bindingKind: binding.kind });\n\t\tthis.#state = {\n\t\t\tkind: \"connected\",\n\t\t\tpath: binding.path,\n\t\t\tconn: new SqliteConnectionImpl(openConnection(binding.path))\n\t\t};\n\t}\n\tasync acquireConnection() {\n\t\tconst { path } = this.#requireConnected();\n\t\treturn new SqliteConnectionImpl(openConnection(path));\n\t}\n\tasync close() {\n\t\tif (this.#state.kind !== \"connected\") return;\n\t\tconst { conn } = this.#state;\n\t\tthis.#state = { kind: \"closed\" };\n\t\tawait conn.release();\n\t}\n\tquery(request) {\n\t\tif (this.#state.kind !== \"connected\") return unboundQuery();\n\t\treturn this.#state.conn.query(request);\n\t}\n\tasync execute(request) {\n\t\treturn this.#requireConnected().conn.execute(request);\n\t}\n\tasync explain(request) {\n\t\treturn this.#requireConnected().conn.explain(request);\n\t}\n};\n//#endregion\n//#region src/core/runtime/runtime-driver.ts\nconst sqliteRuntimeDriverDescriptor = {\n\t...sqliteDriverDescriptorMeta,\n\tcreate() {\n\t\treturn new SqliteDriver();\n\t}\n};\n//#endregion\nexport { sqliteRuntimeDriverDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;AAMA,SAAS,YAAY,MAAM,SAAS,SAAS;CAC5C,MAAM,QAAQ,IAAI,MAAM,OAAO;CAC/B,OAAO,eAAe,OAAO,QAAQ;EACpC,OAAO;EACP,cAAc;CACf,CAAC;CACD,OAAO,OAAO,OAAO,OAAO;EAC3B;EACA,UAAU;EACV,UAAU;EACV;EACA;CACD,CAAC;AACF;AACA,MAAM,wBA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