@prisma/orm-target-sqlite 8.0.0-rc.24-dev.28 → 8.0.0-rc.24-dev.29
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/dist/{adapter-B8OOrks4-CpmcF003.mjs → adapter-B8OOrks4-BKzW_Yc4.mjs} +9 -9
- package/dist/{adapter-B8OOrks4-CpmcF003.mjs.map → adapter-B8OOrks4-BKzW_Yc4.mjs.map} +1 -1
- package/dist/{adapter-NFsNVlif.d.mts → adapter-DrTWv8F7.d.mts} +5 -5
- package/dist/{adapter-NFsNVlif.d.mts.map → adapter-DrTWv8F7.d.mts.map} +1 -1
- package/dist/{adapter-xFPDhkod-DB6XDGgl.d.mts → adapter-xFPDhkod-Bfb8AQQJ.d.mts} +3 -3
- package/dist/{adapter-xFPDhkod-DB6XDGgl.d.mts.map → adapter-xFPDhkod-Bfb8AQQJ.d.mts.map} +1 -1
- package/dist/adapter.d.mts +11 -11
- package/dist/adapter.mjs +7 -7
- package/dist/adapter__adapter.d.mts +2 -2
- package/dist/adapter__adapter.mjs +2 -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 +2 -2
- package/dist/adapter__control.mjs +5 -5
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +4 -4
- 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 +2 -2
- package/dist/{aggregates--0FaH9Te.d.mts → aggregates-CA7Idm1d.d.mts} +4 -4
- package/dist/{aggregates--0FaH9Te.d.mts.map → aggregates-CA7Idm1d.d.mts.map} +1 -1
- package/dist/{aggregates-DMvLJFlR.mjs → aggregates-hLiHPHBG.mjs} +6 -7
- package/dist/aggregates-hLiHPHBG.mjs.map +1 -0
- package/dist/{codec-ids-BElbEYb_-CeWfv5bC.d.mts → codec-ids-CH8Nqk89-LNT9hksu.d.mts} +5 -3
- package/dist/codec-ids-CH8Nqk89-LNT9hksu.d.mts.map +1 -0
- package/dist/{codec-ids-BHBFCNsQ-C1Af_LGF.mjs → codec-ids-CTshXpbg-tcdbf_VC.mjs} +5 -3
- 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-CGtSWeZ5-B5RH39BA.d.mts → codec-types-Ci-h2uxN-41PNpdNL.d.mts} +5 -3
- package/dist/codec-types-Ci-h2uxN-41PNpdNL.d.mts.map +1 -0
- package/dist/{codecs-izBhU4f1-uArTiOxL.mjs → codecs-CE5McdzP-CZ5F4Trz.mjs} +243 -116
- package/dist/codecs-CE5McdzP-CZ5F4Trz.mjs.map +1 -0
- package/dist/{codecs-A0DbaZRE-CMyLhO_K.d.mts → codecs-DBQsDiM--Cy-r45H3.d.mts} +58 -28
- package/dist/codecs-DBQsDiM--Cy-r45H3.d.mts.map +1 -0
- package/dist/codecs-Dou3fR1K.d.mts +1 -0
- package/dist/{codecs-B-paWXdt.mjs → codecs-EhvrdV8v.mjs} +2 -2
- package/dist/codecs-EhvrdV8v.mjs.map +1 -0
- package/dist/{column-types-bTPNfz46.d.mts → column-types-D3MMpY3X.d.mts} +13 -7
- 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-CyHMdkva-2bg6kg_n.mjs → contract-contributions-CyHMdkva-BE5-kJj3.mjs} +2 -2
- package/dist/{contract-contributions-CyHMdkva-2bg6kg_n.mjs.map → contract-contributions-CyHMdkva-BE5-kJj3.mjs.map} +1 -1
- package/dist/{contract-free-DVGNrjWW.mjs → contract-free-CJlg0xGJ.mjs} +4 -4
- package/dist/{contract-free-DVGNrjWW.mjs.map → contract-free-CJlg0xGJ.mjs.map} +1 -1
- package/dist/{control-DGa_C2q6.d.mts → control-CtCvtwJx.d.mts} +183 -17
- package/dist/control-CtCvtwJx.d.mts.map +1 -0
- package/dist/{control-Dp-pU81N.d.mts → control-DfWteXy-.d.mts} +3 -3
- package/dist/{control-Dp-pU81N.d.mts.map → control-DfWteXy-.d.mts.map} +1 -1
- package/dist/{control-BvT30n3D.mjs → control-V3kPfMTR.mjs} +4 -3
- package/dist/control-V3kPfMTR.mjs.map +1 -0
- package/dist/{data-type-entries-B6YmbQDH-RnV5wVv8.mjs → data-type-entries-C0WkKiPF-CKPYj4OT.mjs} +20 -3
- package/dist/data-type-entries-C0WkKiPF-CKPYj4OT.mjs.map +1 -0
- package/dist/{data-types-CwpMoNK4.d.mts → data-types-C1nzwKt7.d.mts} +10 -2
- package/dist/{data-types-CwpMoNK4.d.mts.map → data-types-C1nzwKt7.d.mts.map} +1 -1
- package/dist/{data-types-fYwGTal5-BxuZD5EE.mjs → data-types-C_NKe4Ni-D7r8QkSb.mjs} +32 -4
- package/dist/data-types-C_NKe4Ni-D7r8QkSb.mjs.map +1 -0
- package/dist/{date-time-now-generators-BVQSg28x-DwhOJw5-.mjs → date-time-now-generators-DtRz9c2R-BkrBeLl2.mjs} +4 -4
- package/dist/{date-time-now-generators-BVQSg28x-DwhOJw5-.mjs.map → date-time-now-generators-DtRz9c2R-BkrBeLl2.mjs.map} +1 -1
- package/dist/{datetime-text-BogpvE70-VwTG2rUc.mjs → datetime-text-nkVy_w0q-DZnIEmgr.mjs} +3 -3
- package/dist/{datetime-text-BogpvE70-VwTG2rUc.mjs.map → datetime-text-nkVy_w0q-DZnIEmgr.mjs.map} +1 -1
- package/dist/{ddl-BvD-wVtg-BoEWa8CG.mjs → ddl-CgkyurGo-B2o4mSIT.mjs} +3 -3
- package/dist/{ddl-BvD-wVtg-BoEWa8CG.mjs.map → ddl-CgkyurGo-B2o4mSIT.mjs.map} +1 -1
- package/dist/{default-normalizer-BcGrp77x-CMWxtX1W.mjs → default-normalizer-Xsys5QJm-bPQiHGKp.mjs} +3 -3
- package/dist/{default-normalizer-BcGrp77x-CMWxtX1W.mjs.map → default-normalizer-Xsys5QJm-bPQiHGKp.mjs.map} +1 -1
- package/dist/{descriptor-meta-C2RNdGqi-BzR_I68E.mjs → descriptor-meta-BUMTRa-0-D2bfF0Yr.mjs} +5 -5
- package/dist/descriptor-meta-BUMTRa-0-D2bfF0Yr.mjs.map +1 -0
- package/dist/{descriptor-meta-Drr6Abaf-P67SenMd.mjs → descriptor-meta-CkiPlqDS-n3hDP01X.mjs} +23 -3
- package/dist/descriptor-meta-CkiPlqDS-n3hDP01X.mjs.map +1 -0
- package/dist/{descriptor-meta-CEjGA0WH-CxgiKj3V.mjs → descriptor-meta-uVTby90Y-CUfrzHVW.mjs} +152 -47
- package/dist/descriptor-meta-uVTby90Y-CUfrzHVW.mjs.map +1 -0
- package/dist/driver.mjs +1 -1
- package/dist/driver__control.mjs +1 -1
- package/dist/driver__runtime.mjs +9 -6
- package/dist/driver__runtime.mjs.map +1 -1
- package/dist/{errors-D9vZNPSI-DoNmdfv7.mjs → errors-DxbvEzQp-CeTjoGtL.mjs} +44 -3
- package/dist/errors-DxbvEzQp-CeTjoGtL.mjs.map +1 -0
- package/dist/{migration-C6RAZsCK.mjs → migration-BZoV6EvH.mjs} +2 -2
- package/dist/{migration-C6RAZsCK.mjs.map → migration-BZoV6EvH.mjs.map} +1 -1
- package/dist/{op-factory-call-B3oOyB-T-Bhg17pAj.mjs → op-factory-call-2IWWs4es-CajfeAMX.mjs} +19 -19
- package/dist/op-factory-call-2IWWs4es-CajfeAMX.mjs.map +1 -0
- package/dist/{pack-JeUy8ZB1.d.mts → pack-BG5STIN9.d.mts} +184 -25
- package/dist/{pack-JeUy8ZB1.d.mts.map → pack-BG5STIN9.d.mts.map} +1 -1
- package/dist/{planner-ccevdpwf.d.mts → planner-Bu5XBkHm.d.mts} +2 -2
- package/dist/{planner-ccevdpwf.d.mts.map → planner-Bu5XBkHm.d.mts.map} +1 -1
- package/dist/{planner-COl0BmJ_-SJuP-72Y.mjs → planner-gq4m2U9I-BBwAFGko.mjs} +8 -9
- package/dist/planner-gq4m2U9I-BBwAFGko.mjs.map +1 -0
- package/dist/{planner-produced-sqlite-migration-CE1q5Uqq-9kjqMR-1.mjs → planner-produced-sqlite-migration-BnKx1gAX-BZMX06Q-.mjs} +13 -23
- package/dist/planner-produced-sqlite-migration-BnKx1gAX-BZMX06Q-.mjs.map +1 -0
- package/dist/{planner-produced-sqlite-migration-BHH_ftCV-CndNmTrH.d.mts → planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.d.mts} +3 -4
- package/dist/planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.d.mts.map +1 -0
- package/dist/planner-produced-sqlite-migration-DtytlAAY.d.mts +1 -0
- package/dist/{render-ops-B2EHnXIQ-AspapEkF.mjs → render-ops-BdrBMvjY-CyVOYy9i.mjs} +4 -4
- package/dist/{render-ops-B2EHnXIQ-AspapEkF.mjs.map → render-ops-BdrBMvjY-CyVOYy9i.mjs.map} +1 -1
- package/dist/{require-temporal-qbyZfPgl-DGJhYwmE.mjs → require-temporal-CHWqSDF3-ElFTiAh6.mjs} +3 -3
- package/dist/{require-temporal-qbyZfPgl-DGJhYwmE.mjs.map → require-temporal-CHWqSDF3-ElFTiAh6.mjs.map} +1 -1
- package/dist/{runtime-H_OgXoaz.d.mts → runtime-CVBk_GlD.d.mts} +2 -2
- package/dist/{runtime-H_OgXoaz.d.mts.map → runtime-CVBk_GlD.d.mts.map} +1 -1
- package/dist/{runtime-DTjhSsHd.mjs → runtime-DQll1Swl.mjs} +2 -2
- package/dist/{runtime-DTjhSsHd.mjs.map → runtime-DQll1Swl.mjs.map} +1 -1
- package/dist/sql-renderer-DlZKtvVf.d.mts +1 -0
- package/dist/{sql-utils-C9blmi9x-B90QedVA.mjs → sql-utils-CHBxMmv--Dl7wl7n3.mjs} +3 -3
- package/dist/{sql-utils-C9blmi9x-B90QedVA.mjs.map → sql-utils-CHBxMmv--Dl7wl7n3.mjs.map} +1 -1
- package/dist/{sqlite-contract-view-B0oBTJQ0-DGNLlkLM.mjs → sqlite-contract-view-6qHjyMcG-BHZ8iO5v.mjs} +4 -4
- package/dist/{sqlite-contract-view-B0oBTJQ0-DGNLlkLM.mjs.map → sqlite-contract-view-6qHjyMcG-BHZ8iO5v.mjs.map} +1 -1
- package/dist/{sqlite-migration-DvNpo879-DcOagmQ1.mjs → sqlite-migration-1OBxvebH-BNjpjOW4.mjs} +13 -10
- package/dist/sqlite-migration-1OBxvebH-BNjpjOW4.mjs.map +1 -0
- package/dist/{sqlite-unbound-database-Df3Wf5ZA-B1QemRgb.mjs → sqlite-unbound-database-CfLXSiVo-Dy5VBXGz.mjs} +4 -4
- package/dist/{sqlite-unbound-database-Df3Wf5ZA-B1QemRgb.mjs.map → sqlite-unbound-database-CfLXSiVo-Dy5VBXGz.mjs.map} +1 -1
- package/dist/target.d.mts +14 -14
- package/dist/target.mjs +23 -23
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__aggregates.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 -4
- package/dist/target__contract-free.mjs +2 -2
- package/dist/target__control.d.mts +1 -1
- package/dist/target__control.mjs +8 -7
- package/dist/target__control.mjs.map +1 -1
- package/dist/target__data-types.d.mts +2 -2
- package/dist/target__data-types.mjs +3 -3
- package/dist/target__default-normalizer.mjs +1 -1
- package/dist/target__migration.mjs +2 -2
- package/dist/target__op-factory-call.mjs +1 -1
- 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.d.mts +1 -1
- package/dist/target__planner.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.mjs +3 -3
- package/dist/target__sql-utils.mjs +1 -1
- package/dist/target__types.mjs +1 -1
- package/dist/{types-28E593y9.d.mts → types-CexPOm8x.d.mts} +1 -1
- package/package.json +10 -10
- package/dist/aggregates-DMvLJFlR.mjs.map +0 -1
- package/dist/codec-ids-9Fs9p6ST.d.mts +0 -1
- package/dist/codec-ids-BElbEYb_-CeWfv5bC.d.mts.map +0 -1
- package/dist/codec-ids-BHBFCNsQ-C1Af_LGF.mjs.map +0 -1
- package/dist/codec-types-CGtSWeZ5-B5RH39BA.d.mts.map +0 -1
- package/dist/codec-types-Dx9dQe-Y.d.mts +0 -1
- package/dist/codec-types-IproBv-Q.d.mts +0 -2
- package/dist/codecs-A0DbaZRE-CMyLhO_K.d.mts.map +0 -1
- package/dist/codecs-B-paWXdt.mjs.map +0 -1
- package/dist/codecs-CX5BZUdO.d.mts +0 -1
- package/dist/codecs-izBhU4f1-uArTiOxL.mjs.map +0 -1
- package/dist/column-types-bTPNfz46.d.mts.map +0 -1
- package/dist/column-types-toYbR7mn.mjs +0 -22
- package/dist/column-types-toYbR7mn.mjs.map +0 -1
- package/dist/control-BvT30n3D.mjs.map +0 -1
- package/dist/control-DGa_C2q6.d.mts.map +0 -1
- package/dist/data-type-entries-B6YmbQDH-RnV5wVv8.mjs.map +0 -1
- package/dist/data-types-fYwGTal5-BxuZD5EE.mjs.map +0 -1
- package/dist/descriptor-meta-C2RNdGqi-BzR_I68E.mjs.map +0 -1
- package/dist/descriptor-meta-CEjGA0WH-CxgiKj3V.mjs.map +0 -1
- package/dist/descriptor-meta-Drr6Abaf-P67SenMd.mjs.map +0 -1
- package/dist/errors-D9vZNPSI-DoNmdfv7.mjs.map +0 -1
- package/dist/op-factory-call-B3oOyB-T-Bhg17pAj.mjs.map +0 -1
- package/dist/planner-COl0BmJ_-SJuP-72Y.mjs.map +0 -1
- package/dist/planner-produced-sqlite-migration-BHH_ftCV-CndNmTrH.d.mts.map +0 -1
- package/dist/planner-produced-sqlite-migration-CE1q5Uqq-9kjqMR-1.mjs.map +0 -1
- package/dist/planner-produced-sqlite-migration-_n61WaiD.d.mts +0 -1
- package/dist/sql-renderer-_NdIrQuX.d.mts +0 -1
- package/dist/sqlite-migration-DvNpo879-DcOagmQ1.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-CE5McdzP-CZ5F4Trz.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codecs-CE5McdzP.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, n as SQLITE_BIGINT_NUMBER_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 { C as sqliteTimeText, S as sqliteTime, _ as sqliteInteger, b as sqliteText, c as sqliteDate, f as sqliteDatetimeTextAtMilliseconds, g as sqliteDurationText, h as sqliteDuration, i as sqliteCharacter, l as sqliteDateText, o as sqliteCharacterVarying, p as sqliteDecimal, r as sqliteBoolean, t as sqliteBlob, u as sqliteDatetime, v as sqliteJson, y as sqliteReal } from \"./data-types-C_NKe4Ni.mjs\";\nimport { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from \"./codec-descriptor-DRmF-crq.mjs\";\nimport { a as errorTemporalNonIsoCalendar, c as errorTemporalWrongType, l as sqliteError, n as errorDateTimeUnreadable, r as errorDateTimeUnwritable, t as errorColumnUnreadable } from \"./errors-DxbvEzQp.mjs\";\nimport { t as requireTemporal } from \"./require-temporal-CHWqSDF3.mjs\";\nimport { BinaryExpr, CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlRawCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlRawDescriptor, sqlVarcharDescriptor } from \"@internal/sql-relational-core/ast\";\nimport { CodecImpl, SAFE_INTEGER_BIGINT_RANGE, column, decimalTextBigintLiteral, decimalTextNumberLiteral, floatNumberLiteral, floatToJson, readJsonFloat, readJsonIntegerText, refuseJsonValue, renderTsLiteral } from \"@internal/framework-components/codec\";\nimport { sqlRawDataType } from \"@internal/sql-contract/data-type\";\nimport { hasDigitsBelowAMillisecond, isValidDate } from \"@internal/type-implementations/date\";\nimport { isDecimalText, printedDecimalText } from \"@internal/type-implementations/decimal\";\nimport { booleanFromInteger, integerFromBoolean } from \"@internal/type-implementations/boolean\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { describeValue, temporalFromText, temporalToText } from \"@internal/type-implementations/temporal-text\";\n//#region src/core/blob-json-projection.ts\n/**\n* Projects a blob as a one-element array of its hexadecimal text, and any other value as `otherwise` projects it.\n*\n* SQLite's JSON functions reject a BLOB argument outright, so the encoding has to replace the native conversion rather than post-process it. `hex()` emits uppercase and never wraps. The array is what tells a blob from text: outside a STRICT table a column of any type may hold a blob, and a BLOB column may hold text, which passes through as a row carries it. A codec that reads no bytes receives the array and refuses it, as it refuses the bytes a row carries.\n*/\nconst hexJsonProjectionOr = (expression, otherwise) => CaseExpr.of([{\n\tcondition: BinaryExpr.eq(FunctionCallExpr.of(\"typeof\", [expression]), LiteralExpr.of(\"blob\")),\n\tvalue: FunctionCallExpr.of(\"json_array\", [FunctionCallExpr.of(\"hex\", [expression])])\n}], otherwise);\n/** Projects a blob as the one-element array of its hexadecimal text, and any other value unchanged. */\nconst hexJsonProjection = (expression) => hexJsonProjectionOr(expression, expression);\n//#endregion\n//#region src/core/boolean-codec.ts\nfunction describeReceived$1(value) {\n\treturn typeof value === \"string\" ? JSON.stringify(value) : String(value);\n}\nfunction requireBoolean(value) {\n\tif (typeof value === \"boolean\") return value;\n\tthrow sqliteError(\"RUNTIME.ENCODE_FAILED\", `${SQLITE_BOOLEAN_CODEC_ID} value must be a boolean, got ${describeReceived$1(value)}`, { meta: {\n\t\tcodecId: SQLITE_BOOLEAN_CODEC_ID,\n\t\treceived: String(value)\n\t} });\n}\n/** A stored value that is neither 0 nor 1, named by its column where the read knows it. */\nfunction errorBooleanUnreadable(wire, ctx) {\n\tthrow errorColumnUnreadable({\n\t\tcodecId: SQLITE_BOOLEAN_CODEC_ID,\n\t\treceived: wire,\n\t\tcolumn: ctx.column,\n\t\tnotA: \"0 or 1\",\n\t\treads: \"0 as false and 1 as true\"\n\t});\n}\nvar SqliteBooleanCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn integerFromBoolean(requireBoolean(value));\n\t}\n\tasync fromWire(wire, ctx) {\n\t\treturn booleanFromInteger(wire) ?? errorBooleanUnreadable(wire, ctx);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(requireBoolean(input));\n\t}\n};\nvar SqliteBooleanDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn hexJsonProjection(expression);\n\t}\n\tdataType = sqliteBoolean.id;\n\tcodecId = SQLITE_BOOLEAN_CODEC_ID;\n\tjsonType = \"boolean\";\n\ttraits = [\"equality\", \"boolean\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteBooleanCodec(this, sqliteBoolean);\n\t}\n};\nconst sqliteBooleanDescriptor = new SqliteBooleanDescriptor();\nconst sqliteBooleanColumn = () => column(sqliteBooleanDescriptor.factory(), sqliteBooleanDescriptor.codecId, void 0);\n//#endregion\n//#region src/core/date-time-values.ts\nconst DATE_ONLY = /^\\d{4}-\\d{2}-\\d{2}$/;\nconst DATE_TIME_WITHOUT_OFFSET = /^(\\d{4}-\\d{2}-\\d{2})[Tt ](\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?)$/;\n/** A date alone as its midnight in UTC, and a date and time without an offset as UTC. */\nfunction asUtcWhenUnmarked(text) {\n\tif (DATE_ONLY.test(text)) return `${text}T00:00:00Z`;\n\tconst unmarked = DATE_TIME_WITHOUT_OFFSET.exec(text);\n\treturn unmarked === null ? text : `${unmarked[1]}T${unmarked[2]}Z`;\n}\n/**\n* The instant SQLite holds for a row, in milliseconds since 1970, read as `Date` reads it, with text without a UTC offset read as UTC, as SQLite's own date and time functions read it, never in the machine's time zone. A number is milliseconds since 1970, as the Prisma ORM query engine wrote a `DateTime`. Digits below a millisecond are cut, as `Date` cuts them.\n*/\nfunction sqliteInstantMilliseconds(codecId, value) {\n\tconst milliseconds = typeof value === \"bigint\" ? NaN : new Date(typeof value === \"number\" ? value : asUtcWhenUnmarked(value)).getTime();\n\tif (Number.isNaN(milliseconds)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire value must be a date and time as text, or a number of milliseconds since 1970: ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\treturn milliseconds;\n}\nfunction messageOf(cause) {\n\treturn cause instanceof Error ? cause.message : String(cause);\n}\n/** The text a write stores for `value`, in the form `stored` writes; a value `stored` refuses is refused as `RUNTIME.ENCODE_FAILED`. */\nfunction storedTextForWrite(codecId, value, stored) {\n\tif (typeof value !== \"string\") throw errorDateTimeUnwritable({\n\t\tcodecId,\n\t\treceived: describeValue(value),\n\t\tdetail: \"It writes ISO 8601 text.\"\n\t});\n\ttry {\n\t\treturn stored(value);\n\t} catch (cause) {\n\t\tthrow errorDateTimeUnwritable({\n\t\t\tcodecId,\n\t\t\treceived: JSON.stringify(value),\n\t\t\tdetail: messageOf(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\n/** The stored form of the text SQLite returned for a row, as `stored` reads it; text `stored` refuses is refused as `RUNTIME.DECODE_FAILED`. */\nfunction storedTextFromWire(codecId, wire, stored) {\n\tif (typeof wire !== \"string\") throw errorDateTimeUnreadable({\n\t\tcodecId,\n\t\tvalue: String(wire),\n\t\tdetail: `SQLite returned ${describeValue(wire)}, not text.`\n\t});\n\ttry {\n\t\treturn stored(wire);\n\t} catch (cause) {\n\t\tthrow errorDateTimeUnreadable({\n\t\t\tcodecId,\n\t\t\tvalue: wire,\n\t\t\tdetail: messageOf(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\n/** The Temporal value that stored text names, read with `parse`. */\nfunction temporalFromStoredText(identity, text, parse) {\n\tconst read = temporalFromText(requireTemporal({\n\t\tcodecId: identity.codecId,\n\t\toperation: \"decode\"\n\t}), text, parse);\n\tif (read.kind === \"unreadable\") throw errorDateTimeUnreadable({\n\t\tcodecId: identity.codecId,\n\t\tvalue: text,\n\t\tdetail: `${identity.temporalTag} cannot hold it: ${read.detail}. Use ${identity.stringType} to read the column as text.`,\n\t\tcause: read.cause\n\t});\n\treturn read.value;\n}\n/** The text a write stores for a Temporal value, in the form `stored` writes. A value of another kind, in a calendar other than ISO 8601, or with digits below a millisecond is refused. */\nfunction storedTextOfTemporal(identity, value, stored) {\n\tconst encoded = temporalToText(value, identity.temporalTag);\n\tswitch (encoded.kind) {\n\t\tcase \"wrong-type\": throw errorTemporalWrongType(identity.codecId, identity.temporalTag, identity.stringType, encoded.received);\n\t\tcase \"non-iso-calendar\": throw errorTemporalNonIsoCalendar(identity.codecId, encoded.calendarId);\n\t\tcase \"text\":\n\t\t\tif (hasDigitsBelowAMillisecond(encoded.text)) throw errorDateTimeUnwritable({\n\t\t\t\tcodecId: identity.codecId,\n\t\t\t\treceived: `the ${identity.temporalTag} ${encoded.text}`,\n\t\t\t\tdetail: \"It has digits below a millisecond, and the column holds milliseconds. Round it first, as in value.round({ smallestUnit: 'millisecond', roundingMode: 'trunc' }).\"\n\t\t\t});\n\t\t\treturn storedTextForWrite(identity.codecId, encoded.text, stored);\n\t}\n}\n//#endregion\n//#region src/core/date-time-codecs.ts\nconst DATETIME_TEMPORAL = {\n\tcodecId: SQLITE_DATETIME_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.Instant\",\n\tstringType: \"DatetimeString\"\n};\nconst DATE_TEMPORAL = {\n\tcodecId: SQLITE_DATE_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.PlainDate\",\n\tstringType: \"DateString\"\n};\nconst TIME_TEMPORAL = {\n\tcodecId: SQLITE_TIME_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.PlainTime\",\n\tstringType: \"TimeString\"\n};\n/** A row's text is what the codec reads, so its JSON is the stored text as it is. */\nconst storedTextJsonProjection = (expression) => expression;\nconst sqliteDatetimeTemporalEncode = (value) => storedTextOfTemporal(DATETIME_TEMPORAL, value, sqliteDatetimeTextAtMilliseconds);\nconst sqliteDateTemporalEncode = (value) => storedTextOfTemporal(DATE_TEMPORAL, value, sqliteDateText);\nconst sqliteTimeTemporalEncode = (value) => storedTextOfTemporal(TIME_TEMPORAL, value, sqliteTimeText);\n/** An instant read as `Temporal.Instant`, from any text or number `sqlite/datetime@1` reads, at millisecond precision. */\nvar SqliteDatetimeTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn sqliteDatetimeTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\tconst milliseconds = sqliteInstantMilliseconds(this.id, wire);\n\t\treturn requireTemporal({\n\t\t\tcodecId: this.id,\n\t\t\toperation: \"decode\"\n\t\t}).Instant.fromEpochMilliseconds(milliseconds);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn temporalFromStoredText(DATETIME_TEMPORAL, value.value, (temporal, text) => temporal.Instant.from(text));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(sqliteDatetimeTemporalEncode(input));\n\t}\n};\nvar SqliteDatetimeTemporalDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDatetime.id;\n\tcodecId = SQLITE_DATETIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteDatetimeTemporalCodec(this, sqliteDatetime);\n\t}\n};\nconst sqliteDatetimeTemporalDescriptor = new SqliteDatetimeTemporalDescriptor();\nconst sqliteDatetimeTemporalColumn = () => column(sqliteDatetimeTemporalDescriptor.factory(), sqliteDatetimeTemporalDescriptor.codecId, void 0);\n/** An instant read as the text `sqlite/datetime` stores, `2024-01-01T00:00:00.000Z`, from any text or number `sqlite/datetime@1` reads. A write converts ISO 8601 text with any UTC offset to that form. */\nvar SqliteDatetimeStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteDatetimeTextAtMilliseconds);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn new Date(sqliteInstantMilliseconds(this.id, wire)).toISOString();\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteDatetimeStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDatetime.id;\n\tcodecId = SQLITE_DATETIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteDatetimeStringCodec(this, sqliteDatetime);\n\t}\n};\nconst sqliteDatetimeStringDescriptor = new SqliteDatetimeStringDescriptor();\nconst sqliteDatetimeStringColumn = () => column(sqliteDatetimeStringDescriptor.factory(), sqliteDatetimeStringDescriptor.codecId, void 0);\n/** A calendar date read as the text `sqlite/date` stores, `2024-02-29`. */\nvar SqliteDateStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteDateText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, sqliteDateText);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteDateStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDate.id;\n\tcodecId = SQLITE_DATE_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteDateStringCodec(this, sqliteDate);\n\t}\n};\nconst sqliteDateStringDescriptor = new SqliteDateStringDescriptor();\nconst sqliteDateStringColumn = () => column(sqliteDateStringDescriptor.factory(), sqliteDateStringDescriptor.codecId, void 0);\n/** A calendar date read as `Temporal.PlainDate`. */\nvar SqliteDateTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn sqliteDateTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn temporalFromStoredText(DATE_TEMPORAL, storedTextFromWire(this.id, wire, sqliteDateText), (temporal, text) => temporal.PlainDate.from(text));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn temporalFromStoredText(DATE_TEMPORAL, value.value, (temporal, text) => temporal.PlainDate.from(text));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(sqliteDateTemporalEncode(input));\n\t}\n};\nvar SqliteDateTemporalDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDate.id;\n\tcodecId = SQLITE_DATE_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteDateTemporalCodec(this, sqliteDate);\n\t}\n};\nconst sqliteDateTemporalDescriptor = new SqliteDateTemporalDescriptor();\nconst sqliteDateTemporalColumn = () => column(sqliteDateTemporalDescriptor.factory(), sqliteDateTemporalDescriptor.codecId, void 0);\n/** A time of day read as the text `sqlite/time` stores, `09:30:00.000`. A write pads text with fewer fraction digits to three. */\nvar SqliteTimeStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteTimeText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, sqliteTimeText);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteTimeStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteTime.id;\n\tcodecId = SQLITE_TIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteTimeStringCodec(this, sqliteTime);\n\t}\n};\nconst sqliteTimeStringDescriptor = new SqliteTimeStringDescriptor();\nconst sqliteTimeStringColumn = () => column(sqliteTimeStringDescriptor.factory(), sqliteTimeStringDescriptor.codecId, void 0);\n/** A time of day read as `Temporal.PlainTime`. */\nvar SqliteTimeTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn sqliteTimeTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn temporalFromStoredText(TIME_TEMPORAL, storedTextFromWire(this.id, wire, sqliteTimeText), (temporal, text) => temporal.PlainTime.from(text));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn temporalFromStoredText(TIME_TEMPORAL, value.value, (temporal, text) => temporal.PlainTime.from(text));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(sqliteTimeTemporalEncode(input));\n\t}\n};\nvar SqliteTimeTemporalDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteTime.id;\n\tcodecId = SQLITE_TIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteTimeTemporalCodec(this, sqliteTime);\n\t}\n};\nconst sqliteTimeTemporalDescriptor = new SqliteTimeTemporalDescriptor();\nconst sqliteTimeTemporalColumn = () => column(sqliteTimeTemporalDescriptor.factory(), sqliteTimeTemporalDescriptor.codecId, void 0);\n/** A length of time read as the ISO 8601 duration it was written as, `PT1H30M`. Its text does not sort in the order of the durations, so it offers no order. */\nvar SqliteDurationStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteDurationText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, sqliteDurationText);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteDurationStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDuration.id;\n\tcodecId = SQLITE_DURATION_STRING_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteDurationStringCodec(this, sqliteDuration);\n\t}\n};\nconst sqliteDurationStringDescriptor = new SqliteDurationStringDescriptor();\nconst sqliteDurationStringColumn = () => column(sqliteDurationStringDescriptor.factory(), sqliteDurationStringDescriptor.codecId, void 0);\n//#endregion\n//#region src/core/decimal-codec.ts\nconst EXPECTED = \"decimal text, such as \\\"12.50\\\"\";\nfunction describeReceived(value) {\n\treturn typeof value === \"string\" ? JSON.stringify(value) : String(value);\n}\n/** The decimal text the codec writes for an application value: the value without leading zeros or a minus sign on zero. */\nfunction storedDecimalText(value) {\n\tif (typeof value === \"string\" && isDecimalText(value)) return printedDecimalText(value);\n\tthrow sqliteError(\"RUNTIME.ENCODE_FAILED\", `${SQLITE_DECIMAL_CODEC_ID} value must be ${EXPECTED}, got ${describeReceived(value)}`, { meta: {\n\t\tcodecId: SQLITE_DECIMAL_CODEC_ID,\n\t\treceived: String(value)\n\t} });\n}\n/** A stored value the codec cannot read, such as the empty text an earlier fill wrote into a new column, named by its column where the read knows it. */\nfunction errorDecimalUnreadable(wire, ctx) {\n\tthrow errorColumnUnreadable({\n\t\tcodecId: SQLITE_DECIMAL_CODEC_ID,\n\t\treceived: wire,\n\t\tcolumn: ctx.column,\n\t\tnotA: \"decimal text\",\n\t\treads: EXPECTED\n\t});\n}\nvar SqliteDecimalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedDecimalText(value);\n\t}\n\tasync fromWire(wire, ctx) {\n\t\tif (typeof wire === \"string\" && isDecimalText(wire)) return wire;\n\t\treturn errorDecimalUnreadable(wire, ctx);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(storedDecimalText(input));\n\t}\n};\nvar SqliteDecimalDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn hexJsonProjection(expression);\n\t}\n\tdataType = sqliteDecimal.id;\n\tcodecId = SQLITE_DECIMAL_CODEC_ID;\n\tjsonType = \"string\";\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteDecimalCodec(this, sqliteDecimal);\n\t}\n};\nconst sqliteDecimalDescriptor = new SqliteDecimalDescriptor();\nconst sqliteDecimalColumn = () => column(sqliteDecimalDescriptor.factory(), sqliteDecimalDescriptor.codecId, void 0);\n//#endregion\n//#region src/core/codecs.ts\n/**\n* Projects the expression unchanged, for codecs whose canonical JSON is what\n* SQLite's own JSON conversion already produces.\n*\n* Identity here is a claim about the target's behaviour, not an absence of one:\n* the codec's conformance cases are what test it, including at the boundaries\n* of the representation where a native conversion would be most likely to\n* diverge.\n*/\nconst identityJsonProjection = (expression) => expression;\n/**\n* Projects an integer as decimal text, a blob as the array of its hex text, and any other value as SQLite writes it in JSON, so a codec reads and refuses through an include what it reads and refuses in a row.\n*\n* The cast is part of the projected expression, so it applies before the JSON constructor sees the value: handed an INTEGER directly, the constructor emits a JSON number, and SQLite's 64-bit range does not survive being read back as a double. Casting the constructor's result would be too late. A blob cast to text would read as the digits its bytes spell, and a REAL cast to text would read as text.\n*/\nconst integerJsonProjection = (expression) => CaseExpr.of([{\n\tcondition: BinaryExpr.eq(FunctionCallExpr.of(\"typeof\", [expression]), LiteralExpr.of(\"integer\")),\n\tvalue: CastExpr.as(expression, \"TEXT\")\n}], hexJsonProjection(expression));\n/**\n* Projects a REAL as SQLite writes it in JSON, except an infinity, which SQLite writes as `9.0e+999` and which becomes the text `Infinity` or `-Infinity` that the codec stores. The test is equality with an infinity, so text or a blob that a REAL column holds outside a STRICT table passes through unchanged.\n*/\nconst floatJsonProjection = (expression) => hexJsonProjectionOr(expression, infinityAsTextJsonProjection(expression));\nconst infinityAsTextJsonProjection = (expression) => CaseExpr.of([{\n\tcondition: BinaryExpr.eq(expression, LiteralExpr.of(Number.POSITIVE_INFINITY)),\n\tvalue: LiteralExpr.of(\"Infinity\")\n}, {\n\tcondition: BinaryExpr.eq(expression, LiteralExpr.of(Number.NEGATIVE_INFINITY)),\n\tvalue: LiteralExpr.of(\"-Infinity\")\n}], expression);\nconst JSON_RETAG_FN = \"json\";\n/**\n* Re-applies SQLite's JSON subtype to a document-valued expression.\n*\n* SQLite carries \"this text is JSON\" as a subtype on the value rather than in\n* its type, and the subtype does not survive a derived table: a document that\n* `json_object` produced arrives one level out as plain text, so the enclosing\n* constructor embeds it as a *string containing JSON* rather than as a\n* document. `json()` re-applies the subtype, which is what makes the value nest\n* as a document again.\n*\n* The loss happens at the first derived-table boundary and does not compound, so\n* a retag is needed where the document is consumed rather than at every level it\n* passes through.\n*\n* Applying this twice is a no-op — SQLite's `json()` is idempotent, and the\n* wrapper collapses rather than nesting so the rendered SQL says so too. It is\n* safe on any valid JSON text, including scalars, and on NULL; it raises\n* `malformed JSON` on text that is not JSON, which is the correct failure for a\n* value that was never a document.\n*/\nconst jsonDocumentRetag = (expression) => isJsonRetag(expression) ? expression : FunctionCallExpr.of(JSON_RETAG_FN, [expression]);\n/** Whether an expression is already a retag, so applying one again would only nest. */\nconst isJsonRetag = (expression) => expression instanceof FunctionCallExpr && expression.fn === JSON_RETAG_FN && expression.args.length === 1;\nconst DECIMAL_INTEGER = /^-?\\d+$/;\n/** Renders the document a `sqlite/json` value's JSON text holds, when it is a string, number or boolean, and nothing for text that is not JSON. */\nfunction jsonTextLiteral(value) {\n\tif (typeof value !== \"string\") return void 0;\n\ttry {\n\t\treturn renderTsLiteral(JSON.parse(value));\n\t} catch {\n\t\treturn;\n\t}\n}\n/**\n* SQLite stores an infinity but not NaN, which it turns into NULL, so a float codec on SQLite refuses NaN wherever it writes a value: to a parameter, and to the contract.\n*/\nfunction refuseNaN(codecId, value) {\n\tif (Number.isNaN(value)) throw sqliteError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be a number other than NaN, which SQLite cannot store`, { meta: {\n\t\tcodecId,\n\t\treceived: \"NaN\"\n\t} });\n\treturn value;\n}\n/** Reads a float's JSON form, which on SQLite has no NaN. */\nfunction readJsonFloatWithoutNaN(codecId, json) {\n\tconst value = readJsonFloat(codecId, json);\n\tif (Number.isNaN(value)) return refuseJsonValue(codecId, \"a finite number or the text Infinity or -Infinity; SQLite cannot store NaN\", json);\n\treturn value;\n}\n/** `sql/float@1` as SQLite stores it: without NaN. */\nvar SqliteFloatCodec = class extends SqlFloatCodec {\n\tasync toWire(value, ctx) {\n\t\treturn super.toWire(refuseNaN(this.id, value), ctx);\n\t}\n\tasync fromWire(wire, ctx) {\n\t\treturn floatWire(this.id, wire, ctx);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloatWithoutNaN(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn super.toDataTypeValue(refuseNaN(this.id, input));\n\t}\n};\n/**\n* Requires an application value to be of the JS type the codec reads.\n*\n* A range check reads a value of the wrong type as a value out of range, and\n* reports a number plainly inside the range as outside it — so the type is\n* established first and answered for on its own terms, naming what a caller\n* has to change.\n*/\nconst requireJsType = (codecId, expected, value) => {\n\tif (typeof value === expected) return;\n\tthrow sqliteError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be a ${expected}, got ${typeof value} ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: typeof value\n\t} });\n};\n/**\n* Writes an application value as the decimal text `sqlite/bigint@1` carries as\n* its canonical JSON.\n*\n* A schema-written literal default (`BigInt @default(0)`) arrives here as a\n* `number`, since a number literal is the only integer a schema language\n* writes, and one that is a safe integer names its value exactly. Past that\n* range the literal was rounded before any of this ran, so the value written is\n* not the value meant — which this refuses rather than minting an exact-looking\n* value from it. A non-integral number is refused on the same terms.\n*/\nconst bigintEncodeJson = (codecId, value) => {\n\tif (typeof value !== \"number\") return encodableInt64(codecId, value).toString();\n\tif (!Number.isSafeInteger(value)) throw sqliteError(\"RUNTIME.ENCODE_FAILED\", `${codecId} number literal must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\treturn BigInt(value).toString();\n};\nconst INT64_RANGE$1 = {\n\tmin: -(2n ** 63n),\n\tmax: 2n ** 63n - 1n\n};\n/** The application value `sqlite/bigint@1` writes: a `bigint` within the signed 64-bit range an SQLite INTEGER holds. */\nconst encodableInt64 = (codecId, value) => {\n\trequireJsType(codecId, \"bigint\", value);\n\tif (value < INT64_RANGE$1.min || value > INT64_RANGE$1.max) throw sqliteError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be an integer from ${INT64_RANGE$1.min} to ${INT64_RANGE$1.max}, which SQLite stores, got ${value}`, { meta: {\n\t\tcodecId,\n\t\treceived: value.toString()\n\t} });\n\treturn value;\n};\n/**\n* The application value a number-flavoured integer codec writes: the JS type it reads, an integer within ±(2^53 − 1), the range a `number` holds exactly. The guard throws rather than rounding: past the boundary a `number` silently loses digits, which is the failure mode these codecs exist to refuse.\n*/\nconst encodableSafeInteger = (codecId, value) => {\n\trequireJsType(codecId, \"number\", value);\n\tif (!Number.isSafeInteger(value)) throw sqliteError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\treturn Object.is(value, -0) ? 0 : value;\n};\n/** `sqlite/integer`'s stored form, read into a `number`: digit text within the safe integer range. */\nconst safeIntegerFromDigitText = (codecId, json) => Number(readJsonIntegerText(codecId, json, SAFE_INTEGER_BIGINT_RANGE));\n/** A `number` written as `sqlite/integer`'s stored form. */\nconst digitTextOfSafeInteger = (codecId, value) => String(encodableSafeInteger(codecId, value));\nfunction errorIntegerUnreadable(codecId, received, ctx) {\n\tthrow errorColumnUnreadable({\n\t\tcodecId,\n\t\treceived,\n\t\tcolumn: ctx.column,\n\t\tnotA: \"an integer within the safe integer range\",\n\t\treads: `integers from ${SAFE_INTEGER_BIGINT_RANGE.min} to ${SAFE_INTEGER_BIGINT_RANGE.max}`\n\t});\n}\n/** A stored value `sqlite/bigint@1` cannot read, named by its column where the read knows it. */\nfunction errorBigintUnreadable(received, ctx) {\n\tthrow errorColumnUnreadable({\n\t\tcodecId: SQLITE_BIGINT_CODEC_ID,\n\t\treceived,\n\t\tcolumn: ctx.column,\n\t\tnotA: \"stored as a 64-bit integer\",\n\t\treads: `integers from ${INT64_RANGE$1.min} to ${INT64_RANGE$1.max}`\n\t});\n}\n/** An integer the driver reads exactly, or the decimal text an include carries, read into a safe-range `number`. A blob, which a row carries as bytes and an include as the array of their hex text, is refused. */\nfunction safeIntegerFromExact(codecId, wire, ctx) {\n\tconst value = typeof wire === \"bigint\" ? wire : typeof wire === \"string\" && DECIMAL_INTEGER.test(wire) ? BigInt(wire) : void 0;\n\tif (value === void 0 || value < SAFE_INTEGER_BIGINT_RANGE.min || value > SAFE_INTEGER_BIGINT_RANGE.max) return errorIntegerUnreadable(codecId, wire, ctx);\n\treturn Number(value);\n}\n/** Reads an INTEGER's wire value into a `number` within the safe integer range. A stored REAL, such as 1.5, is refused too. */\nfunction safeIntegerWire(codecId, wire, ctx) {\n\tif (typeof wire !== \"number\") return safeIntegerFromExact(codecId, wire, ctx);\n\tif (Number.isSafeInteger(wire)) return Object.is(wire, -0) ? 0 : wire;\n\treturn errorIntegerUnreadable(codecId, wire, ctx);\n}\n/**\n* Reads a REAL's wire value: the number the driver returns for a row, an integer outside the safe range as the nearest float, or the text `Infinity` or `-Infinity` an include carries, because JSON has no infinity. Anything else, such as other text or a blob, is refused naming its column.\n*/\nfunction floatWire(codecId, wire, ctx) {\n\tif (typeof wire === \"number\") return wire;\n\tif (typeof wire === \"bigint\") return Number(wire);\n\tif (wire === \"Infinity\") return Number.POSITIVE_INFINITY;\n\tif (wire === \"-Infinity\") return Number.NEGATIVE_INFINITY;\n\tthrow errorColumnUnreadable({\n\t\tcodecId,\n\t\treceived: wire,\n\t\tcolumn: ctx.column,\n\t\tnotA: \"a number\",\n\t\treads: \"a number, or the text Infinity or -Infinity\"\n\t});\n}\n/** The hex text SQLite's `hex()` writes: two uppercase digits for each byte. */\nconst BLOB_HEX_TEXT = /^(?:[0-9A-F]{2})*$/;\n/**\n* Projects a `sql/char@1` value without trailing spaces, as its `decode` reads it on a flat read, so an include reads the same value. SQLite does not pad the value; the rule is the family codec's.\n*/\nconst unpaddedCharJsonProjection = (expression) => FunctionCallExpr.of(\"rtrim\", [expression, LiteralExpr.of(\" \")]);\nconst sqliteSqlCharDescriptor = sqliteCodec(sqlCharDescriptor, {\n\tdataType: sqliteCharacter,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: unpaddedCharJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlCharCodec(descriptor, dataType, params)\n});\nconst sqliteSqlVarcharDescriptor = sqliteCodec(sqlVarcharDescriptor, {\n\tdataType: sqliteCharacterVarying,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlVarcharCodec(descriptor, dataType, params)\n});\n/**\n* `sql/raw@1` as SQLite reads it: a value keeps the shape the driver returns for its storage class. An include carries a BLOB as the array of its hex text that the projection writes, because SQLite's JSON functions refuse a blob; a column value never reaches the JSON constructor as an array, so the array is a BLOB.\n*/\nvar SqliteSqlRawCodec = class extends SqlRawCodec {\n\tasync fromWire(wire, _ctx) {\n\t\tif (!Array.isArray(wire)) return wire;\n\t\tconst [hex] = wire.length === 1 ? wire : [];\n\t\tif (typeof hex !== \"string\" || !BLOB_HEX_TEXT.test(hex)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${this.id} wire value in an include must be the array of a BLOB's hex text`, { meta: {\n\t\t\tcodecId: this.id,\n\t\t\treceived: String(wire)\n\t\t} });\n\t\treturn new Uint8Array(Buffer.from(hex, \"hex\"));\n\t}\n};\nconst sqliteSqlRawDescriptor = sqliteCodec(sqlRawDescriptor, {\n\tdataType: sqlRawDataType,\n\tjsonProjection: hexJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqliteSqlRawCodec(descriptor, dataType, params)\n});\n/** `sql/int@1` as SQLite stores it: its stored form is `sqlite/integer`'s digit text. */\nvar SqliteSqlIntCodec = class extends SqlIntCodec {\n\tasync fromWire(wire, ctx) {\n\t\treturn safeIntegerWire(this.id, wire, ctx);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn safeIntegerFromDigitText(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(digitTextOfSafeInteger(this.id, input));\n\t}\n};\nconst sqliteSqlIntDescriptor = sqliteCodec(sqlIntDescriptor, {\n\tdataType: sqliteInteger,\n\trenderValueLiteral: decimalTextNumberLiteral,\n\tjsonProjection: integerJsonProjection,\n\tfactory: (descriptor, dataType) => () => new SqliteSqlIntCodec(descriptor, dataType)\n});\nconst sqliteSqlFloatDescriptor = sqliteCodec(sqlFloatDescriptor, {\n\tdataType: sqliteReal,\n\trenderValueLiteral: floatNumberLiteral,\n\tjsonProjection: floatJsonProjection,\n\tfactory: (descriptor, dataType) => () => new SqliteFloatCodec(descriptor, dataType)\n});\nvar SqliteTextCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar SqliteTextDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = sqliteText.id;\n\tcodecId = SQLITE_TEXT_CODEC_ID;\n\tjsonType = \"string\";\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteTextCodec(this, sqliteText);\n\t}\n};\nconst sqliteTextDescriptor = new SqliteTextDescriptor();\nconst sqliteTextColumn = () => column(sqliteTextDescriptor.factory(), sqliteTextDescriptor.codecId, void 0);\nvar SqliteIntegerCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn encodableSafeInteger(SQLITE_INTEGER_CODEC_ID, value);\n\t}\n\tasync fromWire(wire, ctx) {\n\t\treturn safeIntegerWire(SQLITE_INTEGER_CODEC_ID, wire, ctx);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn safeIntegerFromDigitText(SQLITE_INTEGER_CODEC_ID, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(digitTextOfSafeInteger(SQLITE_INTEGER_CODEC_ID, input));\n\t}\n};\nvar SqliteIntegerDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn integerJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_INTEGER_CODEC_ID;\n\tjsonType = \"number\";\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteIntegerCodec(this, sqliteInteger);\n\t}\n};\nconst sqliteIntegerDescriptor = new SqliteIntegerDescriptor();\nconst sqliteIntegerColumn = () => column(sqliteIntegerDescriptor.factory(), sqliteIntegerDescriptor.codecId, void 0);\nvar SqliteRealCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn refuseNaN(SQLITE_REAL_CODEC_ID, value);\n\t}\n\tasync fromWire(wire, ctx) {\n\t\treturn floatWire(SQLITE_REAL_CODEC_ID, wire, ctx);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloatWithoutNaN(SQLITE_REAL_CODEC_ID, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(floatToJson(refuseNaN(SQLITE_REAL_CODEC_ID, input)));\n\t}\n};\nvar SqliteRealDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn floatJsonProjection(expression);\n\t}\n\tdataType = sqliteReal.id;\n\tcodecId = SQLITE_REAL_CODEC_ID;\n\tjsonType = \"number\";\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteRealCodec(this, sqliteReal);\n\t}\n};\nconst sqliteRealDescriptor = new SqliteRealDescriptor();\nconst sqliteRealColumn = () => column(sqliteRealDescriptor.factory(), sqliteRealDescriptor.codecId, void 0);\nvar SqliteBlobCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\t/** A row carries the blob's bytes; an include carries the array of their hex text that its projection writes, because SQLite's JSON functions refuse a blob. Anything else a BLOB column holds is refused. */\n\tasync fromWire(wire, ctx) {\n\t\tif (wire instanceof Uint8Array) return wire;\n\t\tconst [hex] = Array.isArray(wire) && wire.length === 1 ? wire : [];\n\t\tif (typeof hex !== \"string\" || !BLOB_HEX_TEXT.test(hex)) throw errorColumnUnreadable({\n\t\t\tcodecId: SQLITE_BLOB_CODEC_ID,\n\t\t\treceived: wire,\n\t\t\tcolumn: ctx.column,\n\t\t\tnotA: \"a blob\",\n\t\t\treads: \"a blob's bytes\"\n\t\t});\n\t\treturn new Uint8Array(Buffer.from(hex, \"hex\"));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn new Uint8Array(Buffer.from(value.value, \"hex\"));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(Buffer.from(input).toString(\"hex\").toUpperCase());\n\t}\n};\nvar SqliteBlobDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn hexJsonProjection(expression);\n\t}\n\tdataType = sqliteBlob.id;\n\tcodecId = SQLITE_BLOB_CODEC_ID;\n\tjsonType = \"object\";\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteBlobCodec(this, sqliteBlob);\n\t}\n};\nconst sqliteBlobDescriptor = new SqliteBlobDescriptor();\nconst sqliteBlobColumn = () => column(sqliteBlobDescriptor.factory(), sqliteBlobDescriptor.codecId, void 0);\n/**\n* Reads what SQLite holds for an instant as `Date` reads it, with text without a UTC offset read as UTC, as SQLite's own date and time functions read it, never in the machine's time zone. A number is milliseconds since 1970, as the Prisma ORM query engine wrote a `DateTime`. Digits below a millisecond are cut, as `Date` cuts them.\n*/\nfunction decodeSqliteDatetime(value) {\n\treturn new Date(sqliteInstantMilliseconds(SQLITE_DATETIME_CODEC_ID, value));\n}\n/** The text SQLite holds for an instant: what the codec writes for every row, and for a default. An Invalid Date is refused, naming the codec. */\nfunction encodeSqliteDatetime(value) {\n\tif (!isValidDate(value)) throw errorDateTimeUnwritable({\n\t\tcodecId: SQLITE_DATETIME_CODEC_ID,\n\t\treceived: \"an Invalid Date\",\n\t\tdetail: \"Pass a Date that holds an instant.\"\n\t});\n\treturn value.toISOString();\n}\nvar SqliteDatetimeCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn encodeSqliteDatetime(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodeSqliteDatetime(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn new Date(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(encodeSqliteDatetime(input));\n\t}\n};\nvar SqliteDatetimeDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = sqliteDatetime.id;\n\tcodecId = SQLITE_DATETIME_CODEC_ID;\n\tjsonType = \"string\";\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteDatetimeCodec(this, sqliteDatetime);\n\t}\n};\nconst sqliteDatetimeDescriptor = new SqliteDatetimeDescriptor();\nconst sqliteDatetimeColumn = () => column(sqliteDatetimeDescriptor.factory(), sqliteDatetimeDescriptor.codecId, void 0);\n/** A stored value `sqlite/json@1` cannot read, named by its column where the read knows it. */\nfunction errorJsonUnreadable(received, ctx) {\n\tthrow errorColumnUnreadable({\n\t\tcodecId: SQLITE_JSON_CODEC_ID,\n\t\treceived,\n\t\tcolumn: ctx.column,\n\t\tnotA: \"JSON text\",\n\t\treads: \"JSON text as the document it holds\"\n\t});\n}\nvar SqliteJsonCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn JSON.stringify(value);\n\t}\n\tasync fromWire(wire, ctx) {\n\t\tif (wire instanceof Uint8Array || Array.isArray(wire)) return errorJsonUnreadable(wire, ctx);\n\t\tif (typeof wire !== \"string\") return wire;\n\t\ttry {\n\t\t\treturn blindCast(JSON.parse(wire));\n\t\t} catch {\n\t\t\treturn errorJsonUnreadable(wire, ctx);\n\t\t}\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn blindCast(JSON.parse(value.value));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(JSON.stringify(input));\n\t}\n};\n/**\n* The column stores the document's JSON text and the stored form is that text, so the stored text is projected as it is: a string the enclosing JSON constructor embeds as a string. A blob is projected as the array of its hex text, which the codec refuses, because SQLite's JSON functions refuse a blob.\n*/\nvar SqliteJsonDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn hexJsonProjection(expression);\n\t}\n\tdataType = sqliteJson.id;\n\tcodecId = SQLITE_JSON_CODEC_ID;\n\tjsonType = \"any\";\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn jsonTextLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteJsonCodec(this, sqliteJson);\n\t}\n};\nconst sqliteJsonDescriptor = new SqliteJsonDescriptor();\nconst sqliteJsonColumn = () => column(sqliteJsonDescriptor.factory(), sqliteJsonDescriptor.codecId, void 0);\nvar SqliteBigintCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn encodableInt64(SQLITE_BIGINT_CODEC_ID, value);\n\t}\n\t/**\n\t* The driver reads an integer outside the safe range as an exact `bigint` and one inside it as a `number`; an include and a wide aggregate carry decimal text. Anything else, such as a stored REAL, text or a blob, is refused naming its column.\n\t*/\n\tasync fromWire(wire, ctx) {\n\t\tif (typeof wire === \"bigint\") return wire;\n\t\tif (typeof wire === \"number\" && Number.isSafeInteger(wire)) return BigInt(wire);\n\t\tif (typeof wire === \"string\" && DECIMAL_INTEGER.test(wire)) return BigInt(wire);\n\t\treturn errorBigintUnreadable(wire, ctx);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn BigInt(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(bigintEncodeJson(SQLITE_BIGINT_CODEC_ID, input));\n\t}\n};\nvar SqliteBigintDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn integerJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_BIGINT_CODEC_ID;\n\tjsonType = \"number\";\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextBigintLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteBigintCodec(this, sqliteInteger);\n\t}\n};\nconst sqliteBigintDescriptor = new SqliteBigintDescriptor();\nconst sqliteBigintColumn = () => column(sqliteBigintDescriptor.factory(), sqliteBigintDescriptor.codecId, void 0);\n/**\n* A SQLite INTEGER decoded as a JS `number`, for columns whose values stay\n* within the safe integer range ±(2^53 − 1). Both directions guard rather than\n* round: decode (wire and JSON) and encode throw a structured error on\n* out-of-range or non-integral input. The canonical JSON is the decimal text\n* `sqlite/integer` carries, which every codec of that data type shares.\n*/\nvar SqliteBigintNumberCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn encodableSafeInteger(SQLITE_BIGINT_NUMBER_CODEC_ID, value);\n\t}\n\t/**\n\t* The driver hands an INTEGER over as a `number`, or as a `bigint` outside the safe range; a bigint (or decimal text) is range-checked exactly before any conversion to `number`, so an out-of-range value throws rather than rounds. A blob is refused.\n\t*/\n\tasync fromWire(wire, ctx) {\n\t\treturn safeIntegerWire(SQLITE_BIGINT_NUMBER_CODEC_ID, wire, ctx);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn safeIntegerFromDigitText(SQLITE_BIGINT_NUMBER_CODEC_ID, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(digitTextOfSafeInteger(SQLITE_BIGINT_NUMBER_CODEC_ID, input));\n\t}\n};\nvar SqliteBigintNumberDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn integerJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_BIGINT_NUMBER_CODEC_ID;\n\tjsonType = \"number\";\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteBigintNumberCodec(this, sqliteInteger);\n\t}\n};\nconst sqliteBigintNumberDescriptor = new SqliteBigintNumberDescriptor();\nconst sqliteBigintNumberColumn = () => column(sqliteBigintNumberDescriptor.factory(), sqliteBigintNumberDescriptor.codecId, void 0);\nconst codecDescriptors = defineSqliteCodecs([\n\tsqliteSqlCharDescriptor,\n\tsqliteSqlVarcharDescriptor,\n\tsqliteSqlIntDescriptor,\n\tsqliteSqlFloatDescriptor,\n\tsqliteSqlRawDescriptor,\n\tsqliteTextDescriptor,\n\tsqliteIntegerDescriptor,\n\tsqliteRealDescriptor,\n\tsqliteBlobDescriptor,\n\tsqliteDatetimeDescriptor,\n\tsqliteDatetimeTemporalDescriptor,\n\tsqliteDatetimeStringDescriptor,\n\tsqliteDateStringDescriptor,\n\tsqliteDateTemporalDescriptor,\n\tsqliteTimeStringDescriptor,\n\tsqliteTimeTemporalDescriptor,\n\tsqliteDurationStringDescriptor,\n\tsqliteJsonDescriptor,\n\tsqliteBigintDescriptor,\n\tsqliteBigintNumberDescriptor,\n\tsqliteDecimalDescriptor,\n\tsqliteBooleanDescriptor\n]);\n//#endregion\nexport { sqliteDurationStringColumn as _, sqliteBigintNumberColumn as a, sqliteBooleanColumn as b, sqliteIntegerColumn as c, sqliteTextColumn as d, sqliteDecimalColumn as f, sqliteDatetimeTemporalColumn as g, sqliteDatetimeStringColumn as h, sqliteBigintColumn as i, sqliteJsonColumn as l, sqliteDateTemporalColumn as m, encodeSqliteDatetime as n, sqliteBlobColumn as o, sqliteDateStringColumn as p, jsonDocumentRetag as r, sqliteDatetimeColumn as s, codecDescriptors as t, sqliteRealColumn as u, sqliteTimeStringColumn as v, sqliteTimeTemporalColumn as y };\n\n//# sourceMappingURL=codecs-CE5McdzP.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,MAAM,uBAAuB,YAAY,cAAc,SAAS,GAAG,CAAC;CACnE,WAAW,WAAW,GAAG,iBAAiB,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG,YAAY,GAAG,MAAM,CAAC;CAC5F,OAAO,iBAAiB,GAAG,cAAc,CAAC,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AACpF,CAAC,GAAG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,6BAA6B,QAAQ,GAAG,6BAA6B,SAAS,KAAK,CAAC;AAClI,MAAM,mBAAmB,mBAAmB;CAC3C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC"}
|
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
import { i as SqliteCodecDescriptorRegistry, n as AnySqliteCodecDescriptor, r as SqliteCodecDescriptor } from "./codec-descriptor-DuW-d9ef-BBRBN0Ri.mjs";
|
|
2
|
-
import { a as
|
|
3
|
-
import { ProjectionExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
2
|
+
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, n as SQLITE_BIGINT_NUMBER_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-CH8Nqk89-LNT9hksu.mjs";
|
|
3
|
+
import { ProjectionExpr, SqlCodecCallContext } from "@prisma/orm-family-sql/relational-core/ast";
|
|
4
4
|
import { CodecCallContext, CodecImpl, CodecInstanceContext, CodecRegistry, DataTypeValue } from "@prisma/orm-framework/components/codec";
|
|
5
5
|
import { ComponentMetadata } from "@prisma/orm-framework/components/components";
|
|
6
6
|
import { JsonValue } from "@prisma/orm-framework/contract/types";
|
|
7
7
|
import { Temporal } from "temporal-spec";
|
|
8
8
|
import { CodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/query-lane-context";
|
|
9
|
-
//#region ../../../3-targets/sqlite/1-target/dist/codecs-
|
|
9
|
+
//#region ../../../3-targets/sqlite/1-target/dist/codecs-DBQsDiM-.d.mts
|
|
10
|
+
//#region src/core/boolean-codec.d.ts
|
|
11
|
+
declare class SqliteBooleanCodec extends CodecImpl<typeof SQLITE_BOOLEAN_CODEC_ID, readonly ['equality', 'boolean'], number | bigint | string, boolean> {
|
|
12
|
+
toWire(value: boolean, _ctx: SqlCodecCallContext): Promise<number>;
|
|
13
|
+
fromWire(wire: number | bigint | string, ctx: SqlCodecCallContext): Promise<boolean>;
|
|
14
|
+
fromDataTypeValue(value: DataTypeValue<boolean>): boolean;
|
|
15
|
+
toDataTypeValue(input: boolean): DataTypeValue;
|
|
16
|
+
}
|
|
17
|
+
declare class SqliteBooleanDescriptor extends SqliteCodecDescriptor<void> {
|
|
18
|
+
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
19
|
+
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
20
|
+
readonly codecId: "sqlite/boolean@1";
|
|
21
|
+
readonly jsonType: "boolean";
|
|
22
|
+
readonly traits: readonly ["equality", "boolean"];
|
|
23
|
+
readonly paramsSchema: undefined;
|
|
24
|
+
renderValueLiteral(value: JsonValue): string | undefined;
|
|
25
|
+
factory(): (ctx: CodecInstanceContext) => SqliteBooleanCodec;
|
|
26
|
+
}
|
|
27
|
+
declare const sqliteBooleanColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteBooleanCodec, undefined>;
|
|
28
|
+
//#endregion
|
|
10
29
|
//#region src/core/codec-helpers.d.ts
|
|
11
30
|
/**
|
|
12
31
|
* 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.
|
|
@@ -31,7 +50,7 @@ declare function createSqliteBuiltinCodecLookup(): SqliteCodecRegistry;
|
|
|
31
50
|
/** An instant read as `Temporal.Instant`, from any text or number `sqlite/datetime@1` reads, at millisecond precision. */
|
|
32
51
|
declare class SqliteDatetimeTemporalCodec extends CodecImpl<typeof SQLITE_DATETIME_TEMPORAL_CODEC_ID, readonly ['equality', 'order'], string | number, Temporal.Instant> {
|
|
33
52
|
toWire(value: Temporal.Instant, _ctx: CodecCallContext): Promise<string>;
|
|
34
|
-
fromWire(wire: string | number, _ctx: CodecCallContext): Promise<Temporal.Instant>;
|
|
53
|
+
fromWire(wire: string | number | bigint, _ctx: CodecCallContext): Promise<Temporal.Instant>;
|
|
35
54
|
fromDataTypeValue(value: DataTypeValue<string>): Temporal.Instant;
|
|
36
55
|
toDataTypeValue(input: Temporal.Instant): DataTypeValue;
|
|
37
56
|
}
|
|
@@ -47,7 +66,7 @@ declare const sqliteDatetimeTemporalColumn: () => import("@prisma/orm-framework/
|
|
|
47
66
|
/** An instant read as the text `sqlite/datetime` stores, `2024-01-01T00:00:00.000Z`, from any text or number `sqlite/datetime@1` reads. A write converts ISO 8601 text with any UTC offset to that form. */
|
|
48
67
|
declare class SqliteDatetimeStringCodec extends CodecImpl<typeof SQLITE_DATETIME_STRING_CODEC_ID, readonly ['equality', 'order'], string | number, string> {
|
|
49
68
|
toWire(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
50
|
-
fromWire(wire: string | number, _ctx: CodecCallContext): Promise<string>;
|
|
69
|
+
fromWire(wire: string | number | bigint, _ctx: CodecCallContext): Promise<string>;
|
|
51
70
|
fromDataTypeValue(value: DataTypeValue<string>): string;
|
|
52
71
|
toDataTypeValue(input: string): DataTypeValue;
|
|
53
72
|
}
|
|
@@ -145,6 +164,25 @@ declare class SqliteDurationStringDescriptor extends SqliteCodecDescriptor<void>
|
|
|
145
164
|
}
|
|
146
165
|
declare const sqliteDurationStringColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteDurationStringCodec, undefined>;
|
|
147
166
|
//#endregion
|
|
167
|
+
//#region src/core/decimal-codec.d.ts
|
|
168
|
+
declare class SqliteDecimalCodec extends CodecImpl<typeof SQLITE_DECIMAL_CODEC_ID, readonly ['equality'], string, string> {
|
|
169
|
+
toWire(value: string, _ctx: SqlCodecCallContext): Promise<string>;
|
|
170
|
+
fromWire(wire: string, ctx: SqlCodecCallContext): Promise<string>;
|
|
171
|
+
fromDataTypeValue(value: DataTypeValue<string>): string;
|
|
172
|
+
toDataTypeValue(input: string): DataTypeValue;
|
|
173
|
+
}
|
|
174
|
+
declare class SqliteDecimalDescriptor extends SqliteCodecDescriptor<void> {
|
|
175
|
+
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
176
|
+
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
177
|
+
readonly codecId: "sqlite/decimal@1";
|
|
178
|
+
readonly jsonType: "string";
|
|
179
|
+
readonly traits: readonly ["equality"];
|
|
180
|
+
readonly paramsSchema: undefined;
|
|
181
|
+
renderValueLiteral(value: JsonValue): string | undefined;
|
|
182
|
+
factory(): (ctx: CodecInstanceContext) => SqliteDecimalCodec;
|
|
183
|
+
}
|
|
184
|
+
declare const sqliteDecimalColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteDecimalCodec, undefined>;
|
|
185
|
+
//#endregion
|
|
148
186
|
//#region src/core/codecs.d.ts
|
|
149
187
|
/**
|
|
150
188
|
* Re-applies SQLite's JSON subtype to a document-valued expression.
|
|
@@ -184,9 +222,9 @@ declare class SqliteTextDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
184
222
|
factory(): (ctx: CodecInstanceContext) => SqliteTextCodec;
|
|
185
223
|
}
|
|
186
224
|
declare const sqliteTextColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteTextCodec, undefined>;
|
|
187
|
-
declare class SqliteIntegerCodec extends CodecImpl<typeof SQLITE_INTEGER_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | string, number> {
|
|
225
|
+
declare class SqliteIntegerCodec extends CodecImpl<typeof SQLITE_INTEGER_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | bigint | string, number> {
|
|
188
226
|
toWire(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
189
|
-
fromWire(wire: number | string,
|
|
227
|
+
fromWire(wire: number | bigint | string, ctx: SqlCodecCallContext): Promise<number>;
|
|
190
228
|
fromDataTypeValue(value: DataTypeValue<string>): number;
|
|
191
229
|
toDataTypeValue(input: number): DataTypeValue;
|
|
192
230
|
}
|
|
@@ -201,9 +239,9 @@ declare class SqliteIntegerDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
201
239
|
factory(): (ctx: CodecInstanceContext) => SqliteIntegerCodec;
|
|
202
240
|
}
|
|
203
241
|
declare const sqliteIntegerColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteIntegerCodec, undefined>;
|
|
204
|
-
declare class SqliteRealCodec extends CodecImpl<typeof SQLITE_REAL_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | string, number> {
|
|
242
|
+
declare class SqliteRealCodec extends CodecImpl<typeof SQLITE_REAL_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | bigint | string, number> {
|
|
205
243
|
toWire(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
206
|
-
fromWire(wire: number | string,
|
|
244
|
+
fromWire(wire: number | bigint | string, ctx: SqlCodecCallContext): Promise<number>;
|
|
207
245
|
fromDataTypeValue(value: DataTypeValue<JsonValue>): number;
|
|
208
246
|
toDataTypeValue(input: number): DataTypeValue;
|
|
209
247
|
}
|
|
@@ -221,7 +259,7 @@ declare const sqliteRealColumn: () => import("@prisma/orm-framework/components/c
|
|
|
221
259
|
declare class SqliteBlobCodec extends CodecImpl<typeof SQLITE_BLOB_CODEC_ID, readonly ['equality'], Uint8Array | readonly string[], Uint8Array> {
|
|
222
260
|
toWire(value: Uint8Array, _ctx: CodecCallContext): Promise<Uint8Array>;
|
|
223
261
|
/** A row carries the blob's bytes; an include carries the array of their hex text that its projection writes, because SQLite's JSON functions refuse a blob. Anything else a BLOB column holds is refused. */
|
|
224
|
-
fromWire(wire: Uint8Array | readonly string[],
|
|
262
|
+
fromWire(wire: Uint8Array | readonly string[], ctx: SqlCodecCallContext): Promise<Uint8Array>;
|
|
225
263
|
fromDataTypeValue(value: DataTypeValue<string>): Uint8Array;
|
|
226
264
|
toDataTypeValue(input: Uint8Array): DataTypeValue;
|
|
227
265
|
}
|
|
@@ -237,7 +275,7 @@ declare class SqliteBlobDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
237
275
|
declare const sqliteBlobColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteBlobCodec, undefined>;
|
|
238
276
|
declare class SqliteDatetimeCodec extends CodecImpl<typeof SQLITE_DATETIME_CODEC_ID, readonly ['equality', 'order'], string, Date> {
|
|
239
277
|
toWire(value: Date, _ctx: CodecCallContext): Promise<string>;
|
|
240
|
-
fromWire(wire: string | number, _ctx: CodecCallContext): Promise<Date>;
|
|
278
|
+
fromWire(wire: string | number | bigint, _ctx: CodecCallContext): Promise<Date>;
|
|
241
279
|
fromDataTypeValue(value: DataTypeValue<string>): Date;
|
|
242
280
|
toDataTypeValue(input: Date): DataTypeValue;
|
|
243
281
|
}
|
|
@@ -253,13 +291,12 @@ declare class SqliteDatetimeDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
253
291
|
declare const sqliteDatetimeColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteDatetimeCodec, undefined>;
|
|
254
292
|
declare class SqliteJsonCodec extends CodecImpl<typeof SQLITE_JSON_CODEC_ID, readonly ['equality'], string | JsonValue, JsonValue> {
|
|
255
293
|
toWire(value: JsonValue, _ctx: CodecCallContext): Promise<string>;
|
|
256
|
-
fromWire(wire: string | JsonValue,
|
|
294
|
+
fromWire(wire: string | JsonValue, ctx: SqlCodecCallContext): Promise<JsonValue>;
|
|
257
295
|
fromDataTypeValue(value: DataTypeValue<string>): JsonValue;
|
|
258
296
|
toDataTypeValue(input: JsonValue): DataTypeValue;
|
|
259
297
|
}
|
|
260
298
|
/**
|
|
261
|
-
* The column stores the document's JSON text and the stored form is that text, so the stored
|
|
262
|
-
* value is projected as it is: a string the enclosing JSON constructor embeds as a string.
|
|
299
|
+
* The column stores the document's JSON text and the stored form is that text, so the stored text is projected as it is: a string the enclosing JSON constructor embeds as a string. A blob is projected as the array of its hex text, which the codec refuses, because SQLite's JSON functions refuse a blob.
|
|
263
300
|
*/
|
|
264
301
|
declare class SqliteJsonDescriptor extends SqliteCodecDescriptor<void> {
|
|
265
302
|
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
@@ -273,16 +310,11 @@ declare class SqliteJsonDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
273
310
|
}
|
|
274
311
|
declare const sqliteJsonColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteJsonCodec, undefined>;
|
|
275
312
|
declare class SqliteBigintCodec extends CodecImpl<typeof SQLITE_BIGINT_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | bigint | string, bigint> {
|
|
276
|
-
toWire(value: bigint, _ctx: CodecCallContext): Promise<
|
|
313
|
+
toWire(value: bigint, _ctx: CodecCallContext): Promise<bigint>;
|
|
277
314
|
/**
|
|
278
|
-
* The
|
|
279
|
-
* aggregate SQLite computes leaves the database through the descriptor's cast
|
|
280
|
-
* to text, because the driver reads an integer no number can hold as an error
|
|
281
|
-
* rather than a value. A number-typed wire value must therefore be a safe
|
|
282
|
-
* integer — past ±(2^53 − 1) it has already rounded, and converting it would
|
|
283
|
-
* mint a spuriously-exact `bigint` that need not equal the stored value.
|
|
315
|
+
* The driver reads an integer outside the safe range as an exact `bigint` and one inside it as a `number`; an include and a wide aggregate carry decimal text. Anything else, such as a stored REAL, text or a blob, is refused naming its column.
|
|
284
316
|
*/
|
|
285
|
-
fromWire(wire: number | bigint | string,
|
|
317
|
+
fromWire(wire: number | bigint | string, ctx: SqlCodecCallContext): Promise<bigint>;
|
|
286
318
|
fromDataTypeValue(value: DataTypeValue<string>): bigint;
|
|
287
319
|
toDataTypeValue(input: bigint): DataTypeValue;
|
|
288
320
|
}
|
|
@@ -307,11 +339,9 @@ declare const sqliteBigintColumn: () => import("@prisma/orm-framework/components
|
|
|
307
339
|
declare class SqliteBigintNumberCodec extends CodecImpl<typeof SQLITE_BIGINT_NUMBER_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | bigint | string, number> {
|
|
308
340
|
toWire(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
309
341
|
/**
|
|
310
|
-
* The driver hands an INTEGER over as a `number` or
|
|
311
|
-
* `bigint`; a bigint (or decimal text) is range-checked exactly before any
|
|
312
|
-
* conversion to `number`, so an out-of-range value throws rather than rounds.
|
|
342
|
+
* The driver hands an INTEGER over as a `number`, or as a `bigint` outside the safe range; a bigint (or decimal text) is range-checked exactly before any conversion to `number`, so an out-of-range value throws rather than rounds. A blob is refused.
|
|
313
343
|
*/
|
|
314
|
-
fromWire(wire: number | bigint | string,
|
|
344
|
+
fromWire(wire: number | bigint | string, ctx: SqlCodecCallContext): Promise<number>;
|
|
315
345
|
fromDataTypeValue(value: DataTypeValue<string>): number;
|
|
316
346
|
toDataTypeValue(input: number): DataTypeValue;
|
|
317
347
|
}
|
|
@@ -344,5 +374,5 @@ declare function sqliteNowExpressionFor(dataTypeId: string | undefined): string
|
|
|
344
374
|
declare const sqliteCodecRegistry: CodecDescriptorRegistry;
|
|
345
375
|
declare const sqliteCodecDescriptorRegistry: SqliteCodecDescriptorRegistry;
|
|
346
376
|
//#endregion
|
|
347
|
-
export {
|
|
348
|
-
//# sourceMappingURL=codecs-
|
|
377
|
+
export { sqliteCodecRegistry as A, sqliteNowExpressionFor as B, createSqliteCodecRegistryWithBuiltins as C, sqliteBlobColumn as D, sqliteBigintNumberColumn as E, sqliteDatetimeTemporalColumn as F, sqliteTextColumn as H, sqliteDecimalColumn as I, sqliteDurationStringColumn as L, sqliteDateTemporalColumn as M, sqliteDatetimeColumn as N, sqliteBooleanColumn as O, sqliteDatetimeStringColumn as P, sqliteIntegerColumn as R, createSqliteBuiltinCodecLookup as S, sqliteBigintColumn as T, sqliteTimeStringColumn as U, sqliteRealColumn as V, sqliteTimeTemporalColumn as W, SqliteRealDescriptor as _, SqliteBlobDescriptor as a, SqliteTimeTemporalDescriptor as b, SqliteDateStringDescriptor as c, SqliteDatetimeStringDescriptor as d, SqliteDatetimeTemporalDescriptor as f, SqliteJsonDescriptor as g, SqliteIntegerDescriptor as h, SqliteBigintNumberDescriptor as i, sqliteDateStringColumn as j, sqliteCodecDescriptorRegistry as k, SqliteDateTemporalDescriptor as l, SqliteDurationStringDescriptor as m, SQLITE_NOW_EXPRESSION as n, SqliteBooleanDescriptor as o, SqliteDecimalDescriptor as p, SqliteBigintDescriptor as r, SqliteCodecRegistry as s, JsonValue$1 as t, SqliteDatetimeDescriptor as u, SqliteTextDescriptor as v, jsonDocumentRetag as w, assembleSqliteCodecRegistry as x, SqliteTimeStringDescriptor as y, sqliteJsonColumn as z };
|
|
378
|
+
//# sourceMappingURL=codecs-DBQsDiM--Cy-r45H3.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-DBQsDiM--Cy-r45H3.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codecs-DBQsDiM-.d.mts"],"mappings":";;;;;;;;;;cASc,2BAA2B,iBAAiB;EACxD,OAAO,gBAAgB,MAAM,sBAAsB;EACnD,SAAS,gCAAgC,KAAK,sBAAsB;EACpE,kBAAkB,OAAO;EACzB,gBAAgB,iBAAiB;;cAErB,gCAAgC;YAClC,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;WACA;EACT,mBAAmB,OAAO;EAC1B,YAAY,KAAK,yBAAyB;;cAE9B,0EAA0E,WAAW;;;;;;KAM9F;YACO,cAAc;aACb;;;KAGR,mBAAmB,KAAK;KACxB,sBAAsB,gBAAgB;iBAC1B,4BAA4B,QAA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;;;iBAIG,uBAAuB;;;;;;;;cAQ1B,qBAAqB;cACrB,+BAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./codecs-DBQsDiM--Cy-r45H3.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as buildSqliteCodecDescriptorRegistry } from "./codec-descriptor-DRmF-crq-BALI5Jtz.mjs";
|
|
2
|
-
import { t as codecDescriptors } from "./codecs-
|
|
2
|
+
import { t as codecDescriptors } from "./codecs-CE5McdzP-CZ5F4Trz.mjs";
|
|
3
3
|
import { extractCodecLookup } from "@prisma/orm-framework/components/control";
|
|
4
4
|
import { buildCodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/codec-descriptor-registry";
|
|
5
5
|
//#region ../../../3-targets/sqlite/1-target/dist/codecs.mjs
|
|
@@ -46,4 +46,4 @@ function createSqliteBuiltinCodecLookup() {
|
|
|
46
46
|
//#endregion
|
|
47
47
|
export { sqliteCodecRegistry as a, sqliteCodecDescriptorRegistry as i, createSqliteBuiltinCodecLookup as n, createSqliteCodecRegistryWithBuiltins as r, assembleSqliteCodecRegistry as t };
|
|
48
48
|
|
|
49
|
-
//# sourceMappingURL=codecs-
|
|
49
|
+
//# sourceMappingURL=codecs-EhvrdV8v.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-EhvrdV8v.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codecs.mjs"],"sourcesContent":["import { _ as sqliteDurationStringColumn, a as sqliteBigintNumberColumn, b as sqliteBooleanColumn, c as sqliteIntegerColumn, d as sqliteTextColumn, f as sqliteDecimalColumn, g as sqliteDatetimeTemporalColumn, h as sqliteDatetimeStringColumn, i as sqliteBigintColumn, l as sqliteJsonColumn, m as sqliteDateTemporalColumn, o as sqliteBlobColumn, p as sqliteDateStringColumn, r as jsonDocumentRetag, s as sqliteDatetimeColumn, t as codecDescriptors, u as sqliteRealColumn, v as sqliteTimeStringColumn, y as sqliteTimeTemporalColumn } from \"./codecs-CE5McdzP.mjs\";\nimport { n as buildSqliteCodecDescriptorRegistry } from \"./codec-descriptor-DRmF-crq.mjs\";\nimport { o as sqliteNowExpressionFor, r as SQLITE_NOW_EXPRESSION } from \"./datetime-text-nkVy_w0q.mjs\";\nimport { extractCodecLookup } from \"@internal/framework-components/control\";\nimport { buildCodecDescriptorRegistry } from \"@internal/sql-relational-core/codec-descriptor-registry\";\n//#region src/core/registry.ts\n/**\n* Registry of every codec descriptor shipped by `@internal/target-sqlite`.\n*\n* 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.\n*/\nconst sqliteCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);\nconst sqliteCodecDescriptorRegistry = buildSqliteCodecDescriptorRegistry(codecDescriptors);\n//#endregion\n//#region src/core/codec-registry.ts\nfunction descriptorsFrom(contributors) {\n\treturn contributors.flatMap((contributor) => contributor.types?.codecTypes?.codecDescriptors ?? []);\n}\nfunction buildSqliteCodecRegistry(descriptors) {\n\tconst descriptorRegistry = buildSqliteCodecDescriptorRegistry(descriptors);\n\tconst registry = {\n\t\t...extractCodecLookup([{\n\t\t\tid: \"sqlite-codecs\",\n\t\t\ttypes: { codecTypes: { codecDescriptors: Array.from(descriptorRegistry.values()) } }\n\t\t}]),\n\t\tdescriptorFor: (codecId) => descriptorRegistry.descriptorFor(codecId),\n\t\tvalues: () => descriptorRegistry.values()\n\t};\n\treturn Object.freeze(registry);\n}\nfunction assembleSqliteCodecRegistry(target, extensions) {\n\treturn buildSqliteCodecRegistry([\n\t\t...descriptorsFrom([target]),\n\t\t...sqliteCodecDescriptorRegistry.values(),\n\t\t...descriptorsFrom(extensions)\n\t]);\n}\nfunction createSqliteCodecRegistryWithBuiltins(codecDescriptors = []) {\n\treturn buildSqliteCodecRegistry([...sqliteCodecDescriptorRegistry.values(), ...codecDescriptors]);\n}\n/**\n* Build a coherent SQLite codec registry populated with built-in descriptors only.\n*\n* The returned registry supports both ordinary codec materialization and SQLite target behavior. Stack-composed paths build the same combined registry from target, full adapter, and ordered extension contributions.\n*/\nfunction createSqliteBuiltinCodecLookup() {\n\treturn createSqliteCodecRegistryWithBuiltins();\n}\n//#endregion\nexport { SQLITE_NOW_EXPRESSION, assembleSqliteCodecRegistry, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, jsonDocumentRetag, sqliteBigintColumn, sqliteBigintNumberColumn, sqliteBlobColumn, sqliteBooleanColumn, sqliteCodecDescriptorRegistry, sqliteCodecRegistry, sqliteDateStringColumn, sqliteDateTemporalColumn, sqliteDatetimeColumn, sqliteDatetimeStringColumn, sqliteDatetimeTemporalColumn, sqliteDecimalColumn, sqliteDurationStringColumn, sqliteIntegerColumn, sqliteJsonColumn, sqliteNowExpressionFor, sqliteRealColumn, sqliteTextColumn, sqliteTimeStringColumn, sqliteTimeTemporalColumn };\n\n//# sourceMappingURL=codecs.mjs.map"],"mappings":";;;;;;;;;;AAWA,MAAM,sBAAsB,6BAA6B,gBAAgB;AACzE,MAAM,gCAAgC,mCAAmC,gBAAgB;AAGzF,SAAS,gBAAgB,cAAc;CACtC,OAAO,aAAa,SAAS,gBAAgB,YAAY,OAAO,YAAY,oBAAoB,CAAC,CAAC;AACnG;AACA,SAAS,yBAAyB,aAAa;CAC9C,MAAM,qBAAqB,mCAAmC,WAAW;CACzE,MAAM,WAAW;EAChB,GAAG,mBAAmB,CAAC;GACtB,IAAI;GACJ,OAAO,EAAE,YAAY,EAAE,kBAAkB,MAAM,KAAK,mBAAmB,OAAO,CAAC,EAAE,EAAE;EACpF,CAAC,CAAC;EACF,gBAAgB,YAAY,mBAAmB,cAAc,OAAO;EACpE,cAAc,mBAAmB,OAAO;CACzC;CACA,OAAO,OAAO,OAAO,QAAQ;AAC9B;AACA,SAAS,4BAA4B,QAAQ,YAAY;CACxD,OAAO,yBAAyB;EAC/B,GAAG,gBAAgB,CAAC,MAAM,CAAC;EAC3B,GAAG,8BAA8B,OAAO;EACxC,GAAG,gBAAgB,UAAU;CAC9B,CAAC;AACF;AACA,SAAS,sCAAsC,mBAAmB,CAAC,GAAG;CACrE,OAAO,yBAAyB,CAAC,GAAG,8BAA8B,OAAO,GAAG,GAAG,gBAAgB,CAAC;AACjG;;;;;;AAMA,SAAS,iCAAiC;CACzC,OAAO,sCAAsC;AAC9C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./codec-ids-
|
|
1
|
+
import { x as SQL_RAW_CODEC_ID } from "./codec-ids-CH8Nqk89-LNT9hksu.mjs";
|
|
2
|
+
import "./codec-ids-Do7Ml2pg.mjs";
|
|
3
3
|
import { ColumnTypeDescriptor } from "@prisma/orm-framework/components/codec";
|
|
4
4
|
import { SqlExpression } from "@prisma/orm-family-sql/contract/sql-expression";
|
|
5
5
|
//#region ../../../3-targets/sqlite/2-adapter/dist/column-types.d.mts
|
|
@@ -7,22 +7,28 @@ import { SqlExpression } from "@prisma/orm-family-sql/contract/sql-expression";
|
|
|
7
7
|
declare const textColumn: {
|
|
8
8
|
readonly codecId: "sqlite/text@1";
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
10
|
+
declare const integerNumberColumn: {
|
|
11
11
|
readonly codecId: "sqlite/integer@1";
|
|
12
12
|
};
|
|
13
13
|
declare const realColumn: {
|
|
14
14
|
readonly codecId: "sqlite/real@1";
|
|
15
15
|
};
|
|
16
|
+
declare const decimalStringColumn: {
|
|
17
|
+
readonly codecId: "sqlite/decimal@1";
|
|
18
|
+
};
|
|
19
|
+
declare const integerBooleanColumn: {
|
|
20
|
+
readonly codecId: "sqlite/boolean@1";
|
|
21
|
+
};
|
|
16
22
|
declare const blobColumn: {
|
|
17
23
|
readonly codecId: "sqlite/blob@1";
|
|
18
24
|
};
|
|
19
25
|
declare const datetimeColumn: {
|
|
20
26
|
readonly codecId: "sqlite/datetime@1";
|
|
21
27
|
};
|
|
22
|
-
declare const
|
|
28
|
+
declare const plainJsonColumn: {
|
|
23
29
|
readonly codecId: "sqlite/json@1";
|
|
24
30
|
};
|
|
25
|
-
declare const
|
|
31
|
+
declare const integerBigIntColumn: {
|
|
26
32
|
readonly codecId: "sqlite/bigint@1";
|
|
27
33
|
};
|
|
28
34
|
/** A column of a type no other column type covers, named exactly as the database catalog prints it, such as ``rawColumn(sql`tsvector`)`` (ADR 273). Its values are typed `unknown`. */
|
|
@@ -32,5 +38,5 @@ declare function rawColumn(definition: SqlExpression): ColumnTypeDescriptor<type
|
|
|
32
38
|
};
|
|
33
39
|
};
|
|
34
40
|
//#endregion
|
|
35
|
-
export {
|
|
36
|
-
//# sourceMappingURL=column-types-
|
|
41
|
+
export { integerBooleanColumn as a, rawColumn as c, integerBigIntColumn as i, realColumn as l, datetimeColumn as n, integerNumberColumn as o, decimalStringColumn as r, plainJsonColumn as s, blobColumn as t, textColumn as u };
|
|
42
|
+
//# sourceMappingURL=column-types-D3MMpY3X.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-types-D3MMpY3X.d.mts","names":[],"sources":["../../../../3-targets/sqlite/2-adapter/dist/column-types.d.mts"],"mappings":";;;;;;cAIc;WACH;;cAEG;WACH;;cAEG;WACH;;cAEG;WACH;;cAEG;WACH;;cAEG;WACH;;cAEG;WACH;;cAEG;WACH;;cAEG;WACH;;;iBAGM,UAAU,YAAY,gBAAgB,4BAA4B;WACxE;aACE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { a as SQLITE_DATETIME_CODEC_ID, f as SQLITE_INTEGER_CODEC_ID, h as SQLITE_TEXT_CODEC_ID, i as SQLITE_BOOLEAN_CODEC_ID, m as SQLITE_REAL_CODEC_ID, p as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQLITE_DECIMAL_CODEC_ID, x as SQL_RAW_CODEC_ID } from "./codec-ids-CTshXpbg-tcdbf_VC.mjs";
|
|
2
|
+
import { requireSqlExpression } from "@prisma/orm-family-sql/contract/sql-expression";
|
|
3
|
+
//#region ../../../3-targets/sqlite/2-adapter/dist/column-types.mjs
|
|
4
|
+
const textColumn = { codecId: SQLITE_TEXT_CODEC_ID };
|
|
5
|
+
const integerNumberColumn = { codecId: SQLITE_INTEGER_CODEC_ID };
|
|
6
|
+
const realColumn = { codecId: SQLITE_REAL_CODEC_ID };
|
|
7
|
+
const decimalStringColumn = { codecId: SQLITE_DECIMAL_CODEC_ID };
|
|
8
|
+
const integerBooleanColumn = { codecId: SQLITE_BOOLEAN_CODEC_ID };
|
|
9
|
+
const blobColumn = { codecId: SQLITE_BLOB_CODEC_ID };
|
|
10
|
+
const datetimeColumn = { codecId: SQLITE_DATETIME_CODEC_ID };
|
|
11
|
+
const plainJsonColumn = { codecId: SQLITE_JSON_CODEC_ID };
|
|
12
|
+
const integerBigIntColumn = { codecId: SQLITE_BIGINT_CODEC_ID };
|
|
13
|
+
/** A column of a type no other column type covers, named exactly as the database catalog prints it, such as ``rawColumn(sql`tsvector`)`` (ADR 273). Its values are typed `unknown`. */
|
|
14
|
+
function rawColumn(definition) {
|
|
15
|
+
const { text } = requireSqlExpression(definition, "rawColumn(...)");
|
|
16
|
+
return {
|
|
17
|
+
codecId: SQL_RAW_CODEC_ID,
|
|
18
|
+
typeParams: { sql: text }
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { integerBooleanColumn as a, rawColumn as c, integerBigIntColumn as i, realColumn as l, datetimeColumn as n, integerNumberColumn as o, decimalStringColumn as r, plainJsonColumn as s, blobColumn as t, textColumn as u };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=column-types-D_PjRS6w.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-types-D_PjRS6w.mjs","names":[],"sources":["../../../../3-targets/sqlite/2-adapter/dist/column-types.mjs"],"sourcesContent":["import { SQLITE_BIGINT_CODEC_ID, SQLITE_BLOB_CODEC_ID, SQLITE_BOOLEAN_CODEC_ID, SQLITE_DATETIME_CODEC_ID, SQLITE_DECIMAL_CODEC_ID, SQLITE_INTEGER_CODEC_ID, SQLITE_JSON_CODEC_ID, SQLITE_REAL_CODEC_ID, SQLITE_TEXT_CODEC_ID, SQL_RAW_CODEC_ID } from \"@internal/target-sqlite/codec-ids\";\nimport { requireSqlExpression } from \"@internal/sql-contract/sql-expression\";\n//#region src/core/column-types.ts\nconst textColumn = { codecId: SQLITE_TEXT_CODEC_ID };\nconst integerNumberColumn = { codecId: SQLITE_INTEGER_CODEC_ID };\nconst realColumn = { codecId: SQLITE_REAL_CODEC_ID };\nconst decimalStringColumn = { codecId: SQLITE_DECIMAL_CODEC_ID };\nconst integerBooleanColumn = { codecId: SQLITE_BOOLEAN_CODEC_ID };\nconst blobColumn = { codecId: SQLITE_BLOB_CODEC_ID };\nconst datetimeColumn = { codecId: SQLITE_DATETIME_CODEC_ID };\nconst plainJsonColumn = { codecId: SQLITE_JSON_CODEC_ID };\nconst integerBigIntColumn = { codecId: SQLITE_BIGINT_CODEC_ID };\n/** A column of a type no other column type covers, named exactly as the database catalog prints it, such as ``rawColumn(sql`tsvector`)`` (ADR 273). Its values are typed `unknown`. */\nfunction rawColumn(definition) {\n\tconst { text } = requireSqlExpression(definition, \"rawColumn(...)\");\n\treturn {\n\t\tcodecId: SQL_RAW_CODEC_ID,\n\t\ttypeParams: { sql: text }\n\t};\n}\n//#endregion\nexport { blobColumn, datetimeColumn, decimalStringColumn, integerBigIntColumn, integerBooleanColumn, integerNumberColumn, plainJsonColumn, rawColumn, realColumn, textColumn };\n\n//# sourceMappingURL=column-types.mjs.map"],"mappings":";;;AAGA,MAAM,aAAa,EAAE,SAAS,qBAAqB;AACnD,MAAM,sBAAsB,EAAE,SAAS,wBAAwB;AAC/D,MAAM,aAAa,EAAE,SAAS,qBAAqB;AACnD,MAAM,sBAAsB,EAAE,SAAS,wBAAwB;AAC/D,MAAM,uBAAuB,EAAE,SAAS,wBAAwB;AAChE,MAAM,aAAa,EAAE,SAAS,qBAAqB;AACnD,MAAM,iBAAiB,EAAE,SAAS,yBAAyB;AAC3D,MAAM,kBAAkB,EAAE,SAAS,qBAAqB;AACxD,MAAM,sBAAsB,EAAE,SAAS,uBAAuB;;AAE9D,SAAS,UAAU,YAAY;CAC9B,MAAM,EAAE,SAAS,qBAAqB,YAAY,gBAAgB;CAClE,OAAO;EACN,SAAS;EACT,YAAY,EAAE,KAAK,KAAK;CACzB;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as sqliteAggregateDescriptors } from "./aggregates-
|
|
1
|
+
import { t as sqliteAggregateDescriptors } from "./aggregates-hLiHPHBG.mjs";
|
|
2
2
|
//#region ../../../3-targets/sqlite/2-adapter/dist/contract-contributions-CyHMdkva.mjs
|
|
3
3
|
const sqliteAdapterCapabilities = Object.freeze({ sql: {
|
|
4
4
|
orderBy: true,
|
|
@@ -24,4 +24,4 @@ const sqliteAdapterContractContributions = {
|
|
|
24
24
|
//#endregion
|
|
25
25
|
export { sqliteAdapterContractContributions as n, sqliteAdapterCapabilities as t };
|
|
26
26
|
|
|
27
|
-
//# sourceMappingURL=contract-contributions-CyHMdkva-
|
|
27
|
+
//# sourceMappingURL=contract-contributions-CyHMdkva-BE5-kJj3.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-contributions-CyHMdkva-
|
|
1
|
+
{"version":3,"file":"contract-contributions-CyHMdkva-BE5-kJj3.mjs","names":[],"sources":["../../../../3-targets/sqlite/2-adapter/dist/contract-contributions-CyHMdkva.mjs"],"sourcesContent":["import { sqliteAggregateDescriptors } from \"@internal/target-sqlite/aggregates\";\n//#region src/core/capabilities.ts\nconst sqliteAdapterCapabilities = Object.freeze({ sql: {\n\torderBy: true,\n\tlimit: true,\n\tlateral: false,\n\tjsonAgg: true,\n\touterReferencesInDerivedTables: true,\n\tjsonAggWithoutTruncation: true,\n\treturning: true,\n\tforeignKeys: true,\n\tenums: false,\n\tinsertOnConflictSkip: true,\n\tinsertOnConflictWithoutTarget: true,\n\tinsertOnConflictTarget: true\n} });\n//#endregion\n//#region src/core/contract-contributions.ts\n/**\n* What this adapter adds to every contract it runs: its capabilities and the aggregate overloads it lists. `prisma contract emit` reads them through the adapter's descriptor, and the TypeScript `defineContract` passes them to the contract build.\n*/\nconst sqliteAdapterContractContributions = {\n\tcapabilities: sqliteAdapterCapabilities,\n\ttypes: { aggregateDescriptors: sqliteAggregateDescriptors }\n};\n//#endregion\nexport { sqliteAdapterCapabilities as n, sqliteAdapterContractContributions as t };\n\n//# sourceMappingURL=contract-contributions-CyHMdkva.mjs.map"],"mappings":";;AAEA,MAAM,4BAA4B,OAAO,OAAO,EAAE,KAAK;CACtD,SAAS;CACT,OAAO;CACP,SAAS;CACT,SAAS;CACT,gCAAgC;CAChC,0BAA0B;CAC1B,WAAW;CACX,aAAa;CACb,OAAO;CACP,sBAAsB;CACtB,+BAA+B;CAC/B,wBAAwB;AACzB,EAAE,CAAC;;;;AAMH,MAAM,qCAAqC;CAC1C,cAAc;CACd,OAAO,EAAE,sBAAsB,2BAA2B;AAC3D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as SQLITE_NOW_EXPRESSION } from "./datetime-text-
|
|
3
|
-
import { r as createTable } from "./ddl-
|
|
1
|
+
import { a as SQLITE_DATETIME_CODEC_ID, f as SQLITE_INTEGER_CODEC_ID, h as SQLITE_TEXT_CODEC_ID, p as SQLITE_JSON_CODEC_ID } from "./codec-ids-CTshXpbg-tcdbf_VC.mjs";
|
|
2
|
+
import { r as SQLITE_NOW_EXPRESSION } from "./datetime-text-nkVy_w0q-DZnIEmgr.mjs";
|
|
3
|
+
import { r as createTable } from "./ddl-CgkyurGo-B2o4mSIT.mjs";
|
|
4
4
|
import { TableSource } from "@prisma/orm-family-sql/relational-core/ast";
|
|
5
5
|
import { APP_SPACE_ID } from "@prisma/orm-framework/components/control";
|
|
6
6
|
import { col, fn, lit, table } from "@prisma/orm-family-sql/relational-core/contract-free";
|
|
@@ -88,4 +88,4 @@ function buildControlTableBootstrapQueries() {
|
|
|
88
88
|
//#endregion
|
|
89
89
|
export { jsonText as a, integer as i, buildSignMarkerBootstrapQueries as n, sqliteTable as o, datetime as r, text as s, buildControlTableBootstrapQueries as t };
|
|
90
90
|
|
|
91
|
-
//# sourceMappingURL=contract-free-
|
|
91
|
+
//# sourceMappingURL=contract-free-CJlg0xGJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-free-
|
|
1
|
+
{"version":3,"file":"contract-free-CJlg0xGJ.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/contract-free.mjs"],"sourcesContent":["import { a as SQLITE_DATETIME_CODEC_ID, f as SQLITE_INTEGER_CODEC_ID, h as SQLITE_TEXT_CODEC_ID, p as SQLITE_JSON_CODEC_ID } from \"./codec-ids-CTshXpbg.mjs\";\nimport { r as SQLITE_NOW_EXPRESSION } from \"./datetime-text-nkVy_w0q.mjs\";\nimport { a as tableExistsAst, i as indexExistsAst, n as columnExistsAst, t as createTable } from \"./ddl-CgkyurGo.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(SQLITE_NOW_EXPRESSION)\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(SQLITE_NOW_EXPRESSION)\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":";;;;;;;AAOA,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,qBAAqB;CAClC,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,m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