@prisma/orm-target-sqlite 8.0.0-rc.22-dev.3 → 8.0.0-rc.22-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/{adapter-xs2nBMBo.d.mts → adapter-etFmhVd4.d.mts} +7 -7
- package/dist/{adapter-xs2nBMBo.d.mts.map → adapter-etFmhVd4.d.mts.map} +1 -1
- package/dist/{adapter-Cff01Cgi-C19Fhc2M.mjs → adapter-gpb0ICA2-DPjB1dMR.mjs} +21 -11
- package/dist/adapter-gpb0ICA2-DPjB1dMR.mjs.map +1 -0
- package/dist/{adapter-xFPDhkod-BsdLsy9N.d.mts → adapter-xFPDhkod-Cio6up_5.d.mts} +3 -3
- package/dist/{adapter-xFPDhkod-BsdLsy9N.d.mts.map → adapter-xFPDhkod-Cio6up_5.d.mts.map} +1 -1
- package/dist/adapter.d.mts +11 -11
- package/dist/adapter.mjs +6 -6
- 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 +1 -1
- package/dist/adapter__column-types.mjs +1 -1
- package/dist/adapter__control.d.mts +3 -3
- 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 +22 -13
- 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-DC8nyCjN.d.mts → aggregates-Bee9csBL.d.mts} +6 -6
- package/dist/{aggregates-DC8nyCjN.d.mts.map → aggregates-Bee9csBL.d.mts.map} +1 -1
- package/dist/{aggregates-D5fuFVMC.mjs → aggregates-DMvLJFlR.mjs} +9 -3
- package/dist/aggregates-DMvLJFlR.mjs.map +1 -0
- package/dist/codec-ids-9Fs9p6ST.d.mts +1 -0
- package/dist/codec-ids-BElbEYb_-CeWfv5bC.d.mts +21 -0
- package/dist/codec-ids-BElbEYb_-CeWfv5bC.d.mts.map +1 -0
- package/dist/codec-ids-BHBFCNsQ-C1Af_LGF.mjs +21 -0
- package/dist/codec-ids-BHBFCNsQ-C1Af_LGF.mjs.map +1 -0
- package/dist/codec-types-BQCSRfvR.d.mts +1 -0
- package/dist/{codec-types-COh75Bop-CUehAexc.d.mts → codec-types-CG5ZkqDU-DCx8ZvBg.d.mts} +10 -3
- package/dist/codec-types-CG5ZkqDU-DCx8ZvBg.d.mts.map +1 -0
- package/dist/codec-types-YpVaNlY0.d.mts +2 -0
- package/dist/{codecs-BJYruC-a-BKDGae3k.d.mts → codecs-BqOj4EKm-BaGeNd2m.d.mts} +127 -4
- package/dist/codecs-BqOj4EKm-BaGeNd2m.d.mts.map +1 -0
- package/dist/codecs-DzkRnjjE.d.mts +1 -0
- package/dist/{codecs-yZoH21Yj-lQXtGlEq.mjs → codecs-My4bmOU6-D4-b5qLd.mjs} +350 -22
- package/dist/codecs-My4bmOU6-D4-b5qLd.mjs.map +1 -0
- package/dist/{codecs-g-YI3BtK.mjs → codecs-R3kGRyq2.mjs} +2 -2
- package/dist/codecs-R3kGRyq2.mjs.map +1 -0
- package/dist/{column-types-Dxm0BpPv.d.mts → column-types-bTPNfz46.d.mts} +3 -3
- package/dist/{column-types-Dxm0BpPv.d.mts.map → column-types-bTPNfz46.d.mts.map} +1 -1
- package/dist/{column-types-DcbNOYVb.mjs → column-types-toYbR7mn.mjs} +2 -2
- package/dist/{column-types-DcbNOYVb.mjs.map → column-types-toYbR7mn.mjs.map} +1 -1
- package/dist/{contract-contributions-wweWdXMK-CN-d35Rj.mjs → contract-contributions-wweWdXMK-CwYZg4jC.mjs} +2 -2
- package/dist/{contract-contributions-wweWdXMK-CN-d35Rj.mjs.map → contract-contributions-wweWdXMK-CwYZg4jC.mjs.map} +1 -1
- package/dist/{contract-free-CYl1uzJ8.mjs → contract-free-BH73BZHy.mjs} +4 -4
- package/dist/{contract-free-CYl1uzJ8.mjs.map → contract-free-BH73BZHy.mjs.map} +1 -1
- package/dist/control-DGa_C2q6.d.mts +242 -0
- package/dist/control-DGa_C2q6.d.mts.map +1 -0
- package/dist/{control-VMpMSXk9.d.mts → control-DXzV_IVS.d.mts} +4 -4
- package/dist/{control-VMpMSXk9.d.mts.map → control-DXzV_IVS.d.mts.map} +1 -1
- package/dist/{data-type-entries-yQ-qYugg-C_NnX5WO.mjs → data-type-entries-Cp4hBeJB-DYer43by.mjs} +30 -3
- package/dist/data-type-entries-Cp4hBeJB-DYer43by.mjs.map +1 -0
- package/dist/{data-types-Dx3rHsbF.d.mts → data-types-CwpMoNK4.d.mts} +22 -2
- package/dist/data-types-CwpMoNK4.d.mts.map +1 -0
- package/dist/{data-types-coQrCWfS-yMCe4F52.mjs → data-types-DXMZNR8j-CWrJOA8C.mjs} +79 -4
- package/dist/data-types-DXMZNR8j-CWrJOA8C.mjs.map +1 -0
- package/dist/date-time-now-generators-T8JO6gR6-DBt5IyH5.mjs +64 -0
- package/dist/date-time-now-generators-T8JO6gR6-DBt5IyH5.mjs.map +1 -0
- package/dist/datetime-text-CbgLX4q3-BKp563Ja.mjs +32 -0
- package/dist/datetime-text-CbgLX4q3-BKp563Ja.mjs.map +1 -0
- package/dist/{ddl-BoTU7bCZ-CXNSFEtj.mjs → ddl-BvD-wVtg-BoEWa8CG.mjs} +3 -3
- package/dist/{ddl-BoTU7bCZ-CXNSFEtj.mjs.map → ddl-BvD-wVtg-BoEWa8CG.mjs.map} +1 -1
- package/dist/{default-normalizer-DGMXypHg-CPf7oyZA.mjs → default-normalizer-CsMhUEOe-CRieDElD.mjs} +23 -11
- package/dist/default-normalizer-CsMhUEOe-CRieDElD.mjs.map +1 -0
- package/dist/{default-normalizer-CkHy3JYk.d.mts → default-normalizer-CtNsZNRZ.d.mts} +3 -3
- package/dist/{default-normalizer-CkHy3JYk.d.mts.map → default-normalizer-CtNsZNRZ.d.mts.map} +1 -1
- package/dist/descriptor-meta-BwJWbIVt-B24ey04f.mjs +280 -0
- package/dist/descriptor-meta-BwJWbIVt-B24ey04f.mjs.map +1 -0
- package/dist/{descriptor-meta-DrNwC4vO-D7vuA6QK.mjs → descriptor-meta-DrNwC4vO-B9xeeDp9.mjs} +3 -3
- package/dist/{descriptor-meta-DrNwC4vO-D7vuA6QK.mjs.map → descriptor-meta-DrNwC4vO-B9xeeDp9.mjs.map} +1 -1
- package/dist/errors-D9vZNPSI-DoNmdfv7.mjs +105 -0
- package/dist/errors-D9vZNPSI-DoNmdfv7.mjs.map +1 -0
- package/dist/{migration-D0UlBTQw.mjs → migration-DYyfcQB_.mjs} +2 -2
- package/dist/{migration-D0UlBTQw.mjs.map → migration-DYyfcQB_.mjs.map} +1 -1
- package/dist/{op-factory-call-DADakw8V-yXzHuXlv.mjs → op-factory-call-BQYECylm-K7S_xgRS.mjs} +6 -6
- package/dist/{op-factory-call-DADakw8V-yXzHuXlv.mjs.map → op-factory-call-BQYECylm-K7S_xgRS.mjs.map} +1 -1
- package/dist/{pack-DqL_HWJX.d.mts → pack-CwFlRihn.d.mts} +179 -10
- package/dist/{pack-DqL_HWJX.d.mts.map → pack-CwFlRihn.d.mts.map} +1 -1
- package/dist/{planner-1zVd0jR2-mkF3bIWw.mjs → planner-DNwf8s8s-BoXZwpVs.mjs} +5 -5
- package/dist/{planner-1zVd0jR2-mkF3bIWw.mjs.map → planner-DNwf8s8s-BoXZwpVs.mjs.map} +1 -1
- package/dist/{planner-produced-sqlite-migration-Dgme3v9a-BzrIbSW_.mjs → planner-produced-sqlite-migration-Z9OWyjQn-DGMHz6I1.mjs} +4 -4
- package/dist/{planner-produced-sqlite-migration-Dgme3v9a-BzrIbSW_.mjs.map → planner-produced-sqlite-migration-Z9OWyjQn-DGMHz6I1.mjs.map} +1 -1
- package/dist/{render-ops-CwuscSzF-D3hoxOT_.mjs → render-ops-CJXrOY63-1y0nLsb8.mjs} +4 -4
- package/dist/{render-ops-CwuscSzF-D3hoxOT_.mjs.map → render-ops-CJXrOY63-1y0nLsb8.mjs.map} +1 -1
- package/dist/require-temporal-qbyZfPgl-DGJhYwmE.mjs +16 -0
- package/dist/require-temporal-qbyZfPgl-DGJhYwmE.mjs.map +1 -0
- package/dist/{runtime-YfPIbtO6.d.mts → runtime-BQKQH94p.d.mts} +2 -2
- package/dist/{runtime-YfPIbtO6.d.mts.map → runtime-BQKQH94p.d.mts.map} +1 -1
- package/dist/{runtime-CjIoI3sa.d.mts → runtime-ZsuC__oX.d.mts} +33 -2
- package/dist/runtime-ZsuC__oX.d.mts.map +1 -0
- package/dist/sql-renderer-CgY2Sghp.d.mts +1 -0
- package/dist/{sql-utils-XGT5Esi2-Zr2mqJf8.mjs → sql-utils-C9blmi9x-B90QedVA.mjs} +3 -3
- package/dist/{sql-utils-XGT5Esi2-Zr2mqJf8.mjs.map → sql-utils-C9blmi9x-B90QedVA.mjs.map} +1 -1
- package/dist/sqlite-contract-view-DJhc7pI7-Db5l4qrA.mjs +51 -0
- package/dist/sqlite-contract-view-DJhc7pI7-Db5l4qrA.mjs.map +1 -0
- package/dist/{sqlite-migration-BLyz5GQr-BMImgGTB.mjs → sqlite-migration-BxQ65pKq-C7siJGuR.mjs} +13 -10
- package/dist/sqlite-migration-BxQ65pKq-C7siJGuR.mjs.map +1 -0
- package/dist/{sqlite-contract-view-CGfiGvKH-CT-JjNHd.mjs → sqlite-unbound-database-Df3Wf5ZA-B1QemRgb.mjs} +5 -49
- package/dist/sqlite-unbound-database-Df3Wf5ZA-B1QemRgb.mjs.map +1 -0
- package/dist/target.d.mts +14 -13
- package/dist/target.mjs +22 -20
- 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 +2 -2
- package/dist/target__control.mjs +42 -36
- 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.d.mts +1 -1
- 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.mjs +1 -1
- package/dist/target__planner.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.d.mts +2 -2
- package/dist/target__runtime.mjs +3 -3
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__sql-utils.mjs +1 -1
- package/dist/target__types.d.mts +2 -0
- package/dist/target__types.mjs +2 -0
- package/dist/types-COqCbSev.d.mts +56 -0
- package/dist/types-COqCbSev.d.mts.map +1 -0
- package/dist/{types-y5JlAv97.d.mts → types-DpDK9e9U.d.mts} +1 -1
- package/package.json +18 -12
- package/dist/adapter-Cff01Cgi-C19Fhc2M.mjs.map +0 -1
- package/dist/aggregates-D5fuFVMC.mjs.map +0 -1
- package/dist/codec-ids-CMbhYIsa.d.mts +0 -1
- package/dist/codec-ids-DuJYssXV-BPKbFNRL.d.mts +0 -14
- package/dist/codec-ids-DuJYssXV-BPKbFNRL.d.mts.map +0 -1
- package/dist/codec-ids-wgEvkCkg-WltuexMR.mjs +0 -14
- package/dist/codec-ids-wgEvkCkg-WltuexMR.mjs.map +0 -1
- package/dist/codec-types-COh75Bop-CUehAexc.d.mts.map +0 -1
- package/dist/codec-types-ELHfd82J.d.mts +0 -2
- package/dist/codec-types-PONhVn74.d.mts +0 -1
- package/dist/codecs-BJYruC-a-BKDGae3k.d.mts.map +0 -1
- package/dist/codecs-Dn0xoCuf.d.mts +0 -1
- package/dist/codecs-g-YI3BtK.mjs.map +0 -1
- package/dist/codecs-yZoH21Yj-lQXtGlEq.mjs.map +0 -1
- package/dist/control-jYLWcPv2.d.mts +0 -130
- package/dist/control-jYLWcPv2.d.mts.map +0 -1
- package/dist/data-type-entries-yQ-qYugg-C_NnX5WO.mjs.map +0 -1
- package/dist/data-types-Dx3rHsbF.d.mts.map +0 -1
- package/dist/data-types-coQrCWfS-yMCe4F52.mjs.map +0 -1
- package/dist/datetime-text-Bniwehv--BSQhnrdE.mjs +0 -9
- package/dist/datetime-text-Bniwehv--BSQhnrdE.mjs.map +0 -1
- package/dist/default-normalizer-DGMXypHg-CPf7oyZA.mjs.map +0 -1
- package/dist/descriptor-meta-BNuC8mOJ-BfS3KaDU.mjs +0 -105
- package/dist/descriptor-meta-BNuC8mOJ-BfS3KaDU.mjs.map +0 -1
- package/dist/descriptor-meta-runtime-DX2JfHWF-Dbsh5NP8.mjs +0 -15
- package/dist/descriptor-meta-runtime-DX2JfHWF-Dbsh5NP8.mjs.map +0 -1
- package/dist/errors-DnR-sMHS-D_gh214a.mjs +0 -38
- package/dist/errors-DnR-sMHS-D_gh214a.mjs.map +0 -1
- package/dist/runtime-CjIoI3sa.d.mts.map +0 -1
- package/dist/sql-renderer-brQ96quu.d.mts +0 -1
- package/dist/sqlite-contract-view-CGfiGvKH-CT-JjNHd.mjs.map +0 -1
- package/dist/sqlite-migration-BLyz5GQr-BMImgGTB.mjs.map +0 -1
|
@@ -1,12 +1,341 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as SQLITE_DATETIME_STRING_CODEC_ID, c as SQLITE_DATE_TEMPORAL_CODEC_ID, d as SQLITE_JSON_CODEC_ID, f as SQLITE_REAL_CODEC_ID, h as SQLITE_TIME_TEMPORAL_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, l as SQLITE_DURATION_STRING_CODEC_ID, m as SQLITE_TIME_STRING_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_DATETIME_TEMPORAL_CODEC_ID, p as SQLITE_TEXT_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_DATE_STRING_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQLITE_INTEGER_CODEC_ID } from "./codec-ids-BHBFCNsQ-C1Af_LGF.mjs";
|
|
2
2
|
import { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from "./codec-descriptor-DRmF-crq-BALI5Jtz.mjs";
|
|
3
|
-
import { a as sqliteCharacterVarying, d as
|
|
4
|
-
import {
|
|
3
|
+
import { _ as sqliteText, a as sqliteCharacterVarying, b as sqliteTimeText, c as sqliteDateText, d as sqliteDatetimeTextAtMilliseconds, f as sqliteDuration, g as sqliteReal, h as sqliteJson, l as sqliteDatetime, m as sqliteInteger, p as sqliteDurationText, r as sqliteCharacter, s as sqliteDate, t as sqliteBlob, y as sqliteTime } from "./data-types-DXMZNR8j-CWrJOA8C.mjs";
|
|
4
|
+
import { c as sqliteError, i as errorTemporalNonIsoCalendar, n as errorDateTimeUnwritable, s as errorTemporalWrongType, t as errorDateTimeUnreadable } from "./errors-D9vZNPSI-DoNmdfv7.mjs";
|
|
5
|
+
import { t as requireTemporal } from "./require-temporal-qbyZfPgl-DGJhYwmE.mjs";
|
|
5
6
|
import { BinaryExpr, CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlRawCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlRawDescriptor, sqlVarcharDescriptor } from "@prisma/orm-family-sql/relational-core/ast";
|
|
6
7
|
import { CodecImpl, SAFE_INTEGER_BIGINT_RANGE, column, decimalTextBigintLiteral, decimalTextNumberLiteral, floatNumberLiteral, floatToJson, readJsonFloat, readJsonIntegerText, refuseJsonValue, renderTsLiteral } from "@prisma/orm-framework/components/codec";
|
|
7
8
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
8
9
|
import { sqlRawDataType } from "@prisma/orm-family-sql/contract/data-type";
|
|
9
|
-
|
|
10
|
+
import { hasDigitsBelowAMillisecond, isValidDate } from "@prisma/orm-framework/type-implementations/date";
|
|
11
|
+
import { describeValue, temporalFromText, temporalToText } from "@prisma/orm-framework/type-implementations/temporal-text";
|
|
12
|
+
//#region ../../../3-targets/sqlite/1-target/dist/codecs-My4bmOU6.mjs
|
|
13
|
+
const DATE_ONLY = /^\d{4}-\d{2}-\d{2}$/;
|
|
14
|
+
const DATE_TIME_WITHOUT_OFFSET = /^(\d{4}-\d{2}-\d{2})[Tt ](\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)$/;
|
|
15
|
+
/** A date alone as its midnight in UTC, and a date and time without an offset as UTC. */
|
|
16
|
+
function asUtcWhenUnmarked(text) {
|
|
17
|
+
if (DATE_ONLY.test(text)) return `${text}T00:00:00Z`;
|
|
18
|
+
const unmarked = DATE_TIME_WITHOUT_OFFSET.exec(text);
|
|
19
|
+
return unmarked === null ? text : `${unmarked[1]}T${unmarked[2]}Z`;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 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.
|
|
23
|
+
*/
|
|
24
|
+
function sqliteInstantMilliseconds(codecId, value) {
|
|
25
|
+
const milliseconds = new Date(typeof value === "number" ? value : asUtcWhenUnmarked(value)).getTime();
|
|
26
|
+
if (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: {
|
|
27
|
+
codecId,
|
|
28
|
+
received: String(value)
|
|
29
|
+
} });
|
|
30
|
+
return milliseconds;
|
|
31
|
+
}
|
|
32
|
+
function messageOf(cause) {
|
|
33
|
+
return cause instanceof Error ? cause.message : String(cause);
|
|
34
|
+
}
|
|
35
|
+
/** The text a write stores for `value`, in the form `stored` writes; a value `stored` refuses is refused as `RUNTIME.ENCODE_FAILED`. */
|
|
36
|
+
function storedTextForWrite(codecId, value, stored) {
|
|
37
|
+
if (typeof value !== "string") throw errorDateTimeUnwritable({
|
|
38
|
+
codecId,
|
|
39
|
+
received: describeValue(value),
|
|
40
|
+
detail: "It writes ISO 8601 text."
|
|
41
|
+
});
|
|
42
|
+
try {
|
|
43
|
+
return stored(value);
|
|
44
|
+
} catch (cause) {
|
|
45
|
+
throw errorDateTimeUnwritable({
|
|
46
|
+
codecId,
|
|
47
|
+
received: JSON.stringify(value),
|
|
48
|
+
detail: messageOf(cause),
|
|
49
|
+
cause
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/** The stored form of the text SQLite returned for a row, as `stored` reads it; text `stored` refuses is refused as `RUNTIME.DECODE_FAILED`. */
|
|
54
|
+
function storedTextFromWire(codecId, wire, stored) {
|
|
55
|
+
if (typeof wire !== "string") throw errorDateTimeUnreadable({
|
|
56
|
+
codecId,
|
|
57
|
+
value: String(wire),
|
|
58
|
+
detail: `SQLite returned ${describeValue(wire)}, not text.`
|
|
59
|
+
});
|
|
60
|
+
try {
|
|
61
|
+
return stored(wire);
|
|
62
|
+
} catch (cause) {
|
|
63
|
+
throw errorDateTimeUnreadable({
|
|
64
|
+
codecId,
|
|
65
|
+
value: wire,
|
|
66
|
+
detail: messageOf(cause),
|
|
67
|
+
cause
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/** The Temporal value that stored text names, read with `parse`. */
|
|
72
|
+
function temporalFromStoredText(identity, text, parse) {
|
|
73
|
+
const read = temporalFromText(requireTemporal({
|
|
74
|
+
codecId: identity.codecId,
|
|
75
|
+
operation: "decode"
|
|
76
|
+
}), text, parse);
|
|
77
|
+
if (read.kind === "unreadable") throw errorDateTimeUnreadable({
|
|
78
|
+
codecId: identity.codecId,
|
|
79
|
+
value: text,
|
|
80
|
+
detail: `${identity.temporalTag} cannot hold it: ${read.detail}. Use ${identity.stringType} to read the column as text.`,
|
|
81
|
+
cause: read.cause
|
|
82
|
+
});
|
|
83
|
+
return read.value;
|
|
84
|
+
}
|
|
85
|
+
/** 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. */
|
|
86
|
+
function storedTextOfTemporal(identity, value, stored) {
|
|
87
|
+
const encoded = temporalToText(value, identity.temporalTag);
|
|
88
|
+
switch (encoded.kind) {
|
|
89
|
+
case "wrong-type": throw errorTemporalWrongType(identity.codecId, identity.temporalTag, identity.stringType, encoded.received);
|
|
90
|
+
case "non-iso-calendar": throw errorTemporalNonIsoCalendar(identity.codecId, encoded.calendarId);
|
|
91
|
+
case "text":
|
|
92
|
+
if (hasDigitsBelowAMillisecond(encoded.text)) throw errorDateTimeUnwritable({
|
|
93
|
+
codecId: identity.codecId,
|
|
94
|
+
received: `the ${identity.temporalTag} ${encoded.text}`,
|
|
95
|
+
detail: "It has digits below a millisecond, and the column holds milliseconds. Round it first, as in value.round({ smallestUnit: 'millisecond', roundingMode: 'trunc' })."
|
|
96
|
+
});
|
|
97
|
+
return storedTextForWrite(identity.codecId, encoded.text, stored);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const DATETIME_TEMPORAL = {
|
|
101
|
+
codecId: SQLITE_DATETIME_TEMPORAL_CODEC_ID,
|
|
102
|
+
temporalTag: "Temporal.Instant",
|
|
103
|
+
stringType: "DatetimeString"
|
|
104
|
+
};
|
|
105
|
+
const DATE_TEMPORAL = {
|
|
106
|
+
codecId: SQLITE_DATE_TEMPORAL_CODEC_ID,
|
|
107
|
+
temporalTag: "Temporal.PlainDate",
|
|
108
|
+
stringType: "DateString"
|
|
109
|
+
};
|
|
110
|
+
const TIME_TEMPORAL = {
|
|
111
|
+
codecId: SQLITE_TIME_TEMPORAL_CODEC_ID,
|
|
112
|
+
temporalTag: "Temporal.PlainTime",
|
|
113
|
+
stringType: "TimeString"
|
|
114
|
+
};
|
|
115
|
+
/** A row's text is what the codec reads, so its JSON is the stored text as it is. */
|
|
116
|
+
const storedTextJsonProjection = (expression) => expression;
|
|
117
|
+
const sqliteDatetimeTemporalEncode = (value) => storedTextOfTemporal(DATETIME_TEMPORAL, value, sqliteDatetimeTextAtMilliseconds);
|
|
118
|
+
const sqliteDateTemporalEncode = (value) => storedTextOfTemporal(DATE_TEMPORAL, value, sqliteDateText);
|
|
119
|
+
const sqliteTimeTemporalEncode = (value) => storedTextOfTemporal(TIME_TEMPORAL, value, sqliteTimeText);
|
|
120
|
+
/** An instant read as `Temporal.Instant`, from any text or number `sqlite/datetime@1` reads, at millisecond precision. */
|
|
121
|
+
var SqliteDatetimeTemporalCodec = class extends CodecImpl {
|
|
122
|
+
async toWire(value, _ctx) {
|
|
123
|
+
return sqliteDatetimeTemporalEncode(value);
|
|
124
|
+
}
|
|
125
|
+
async fromWire(wire, _ctx) {
|
|
126
|
+
const milliseconds = sqliteInstantMilliseconds(this.id, wire);
|
|
127
|
+
return requireTemporal({
|
|
128
|
+
codecId: this.id,
|
|
129
|
+
operation: "decode"
|
|
130
|
+
}).Instant.fromEpochMilliseconds(milliseconds);
|
|
131
|
+
}
|
|
132
|
+
fromDataTypeValue(value) {
|
|
133
|
+
return temporalFromStoredText(DATETIME_TEMPORAL, value.value, (temporal, text) => temporal.Instant.from(text));
|
|
134
|
+
}
|
|
135
|
+
toDataTypeValue(input) {
|
|
136
|
+
return this.dataTypeValueOf(sqliteDatetimeTemporalEncode(input));
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
var SqliteDatetimeTemporalDescriptor = class extends SqliteCodecDescriptor {
|
|
140
|
+
jsonProjection(expression) {
|
|
141
|
+
return storedTextJsonProjection(expression);
|
|
142
|
+
}
|
|
143
|
+
dataType = sqliteDatetime.id;
|
|
144
|
+
codecId = SQLITE_DATETIME_TEMPORAL_CODEC_ID;
|
|
145
|
+
traits = ["equality", "order"];
|
|
146
|
+
paramsSchema = void 0;
|
|
147
|
+
factory() {
|
|
148
|
+
return () => new SqliteDatetimeTemporalCodec(this, sqliteDatetime);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
const sqliteDatetimeTemporalDescriptor = new SqliteDatetimeTemporalDescriptor();
|
|
152
|
+
const sqliteDatetimeTemporalColumn = () => column(sqliteDatetimeTemporalDescriptor.factory(), sqliteDatetimeTemporalDescriptor.codecId, void 0);
|
|
153
|
+
/** 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. */
|
|
154
|
+
var SqliteDatetimeStringCodec = class extends CodecImpl {
|
|
155
|
+
async toWire(value, _ctx) {
|
|
156
|
+
return storedTextForWrite(this.id, value, sqliteDatetimeTextAtMilliseconds);
|
|
157
|
+
}
|
|
158
|
+
async fromWire(wire, _ctx) {
|
|
159
|
+
return new Date(sqliteInstantMilliseconds(this.id, wire)).toISOString();
|
|
160
|
+
}
|
|
161
|
+
fromDataTypeValue(value) {
|
|
162
|
+
return value.value;
|
|
163
|
+
}
|
|
164
|
+
toDataTypeValue(input) {
|
|
165
|
+
return this.storedDataTypeValueOf(input);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
var SqliteDatetimeStringDescriptor = class extends SqliteCodecDescriptor {
|
|
169
|
+
jsonProjection(expression) {
|
|
170
|
+
return storedTextJsonProjection(expression);
|
|
171
|
+
}
|
|
172
|
+
dataType = sqliteDatetime.id;
|
|
173
|
+
codecId = SQLITE_DATETIME_STRING_CODEC_ID;
|
|
174
|
+
traits = ["equality", "order"];
|
|
175
|
+
paramsSchema = void 0;
|
|
176
|
+
renderValueLiteral(value) {
|
|
177
|
+
return renderTsLiteral(value);
|
|
178
|
+
}
|
|
179
|
+
factory() {
|
|
180
|
+
return () => new SqliteDatetimeStringCodec(this, sqliteDatetime);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
const sqliteDatetimeStringDescriptor = new SqliteDatetimeStringDescriptor();
|
|
184
|
+
const sqliteDatetimeStringColumn = () => column(sqliteDatetimeStringDescriptor.factory(), sqliteDatetimeStringDescriptor.codecId, void 0);
|
|
185
|
+
/** A calendar date read as the text `sqlite/date` stores, `2024-02-29`. */
|
|
186
|
+
var SqliteDateStringCodec = class extends CodecImpl {
|
|
187
|
+
async toWire(value, _ctx) {
|
|
188
|
+
return storedTextForWrite(this.id, value, sqliteDateText);
|
|
189
|
+
}
|
|
190
|
+
async fromWire(wire, _ctx) {
|
|
191
|
+
return storedTextFromWire(this.id, wire, sqliteDateText);
|
|
192
|
+
}
|
|
193
|
+
fromDataTypeValue(value) {
|
|
194
|
+
return value.value;
|
|
195
|
+
}
|
|
196
|
+
toDataTypeValue(input) {
|
|
197
|
+
return this.storedDataTypeValueOf(input);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
var SqliteDateStringDescriptor = class extends SqliteCodecDescriptor {
|
|
201
|
+
jsonProjection(expression) {
|
|
202
|
+
return storedTextJsonProjection(expression);
|
|
203
|
+
}
|
|
204
|
+
dataType = sqliteDate.id;
|
|
205
|
+
codecId = SQLITE_DATE_STRING_CODEC_ID;
|
|
206
|
+
traits = ["equality", "order"];
|
|
207
|
+
paramsSchema = void 0;
|
|
208
|
+
renderValueLiteral(value) {
|
|
209
|
+
return renderTsLiteral(value);
|
|
210
|
+
}
|
|
211
|
+
factory() {
|
|
212
|
+
return () => new SqliteDateStringCodec(this, sqliteDate);
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
const sqliteDateStringDescriptor = new SqliteDateStringDescriptor();
|
|
216
|
+
const sqliteDateStringColumn = () => column(sqliteDateStringDescriptor.factory(), sqliteDateStringDescriptor.codecId, void 0);
|
|
217
|
+
/** A calendar date read as `Temporal.PlainDate`. */
|
|
218
|
+
var SqliteDateTemporalCodec = class extends CodecImpl {
|
|
219
|
+
async toWire(value, _ctx) {
|
|
220
|
+
return sqliteDateTemporalEncode(value);
|
|
221
|
+
}
|
|
222
|
+
async fromWire(wire, _ctx) {
|
|
223
|
+
return temporalFromStoredText(DATE_TEMPORAL, storedTextFromWire(this.id, wire, sqliteDateText), (temporal, text) => temporal.PlainDate.from(text));
|
|
224
|
+
}
|
|
225
|
+
fromDataTypeValue(value) {
|
|
226
|
+
return temporalFromStoredText(DATE_TEMPORAL, value.value, (temporal, text) => temporal.PlainDate.from(text));
|
|
227
|
+
}
|
|
228
|
+
toDataTypeValue(input) {
|
|
229
|
+
return this.dataTypeValueOf(sqliteDateTemporalEncode(input));
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
var SqliteDateTemporalDescriptor = class extends SqliteCodecDescriptor {
|
|
233
|
+
jsonProjection(expression) {
|
|
234
|
+
return storedTextJsonProjection(expression);
|
|
235
|
+
}
|
|
236
|
+
dataType = sqliteDate.id;
|
|
237
|
+
codecId = SQLITE_DATE_TEMPORAL_CODEC_ID;
|
|
238
|
+
traits = ["equality", "order"];
|
|
239
|
+
paramsSchema = void 0;
|
|
240
|
+
factory() {
|
|
241
|
+
return () => new SqliteDateTemporalCodec(this, sqliteDate);
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
const sqliteDateTemporalDescriptor = new SqliteDateTemporalDescriptor();
|
|
245
|
+
const sqliteDateTemporalColumn = () => column(sqliteDateTemporalDescriptor.factory(), sqliteDateTemporalDescriptor.codecId, void 0);
|
|
246
|
+
/** 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. */
|
|
247
|
+
var SqliteTimeStringCodec = class extends CodecImpl {
|
|
248
|
+
async toWire(value, _ctx) {
|
|
249
|
+
return storedTextForWrite(this.id, value, sqliteTimeText);
|
|
250
|
+
}
|
|
251
|
+
async fromWire(wire, _ctx) {
|
|
252
|
+
return storedTextFromWire(this.id, wire, sqliteTimeText);
|
|
253
|
+
}
|
|
254
|
+
fromDataTypeValue(value) {
|
|
255
|
+
return value.value;
|
|
256
|
+
}
|
|
257
|
+
toDataTypeValue(input) {
|
|
258
|
+
return this.storedDataTypeValueOf(input);
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
var SqliteTimeStringDescriptor = class extends SqliteCodecDescriptor {
|
|
262
|
+
jsonProjection(expression) {
|
|
263
|
+
return storedTextJsonProjection(expression);
|
|
264
|
+
}
|
|
265
|
+
dataType = sqliteTime.id;
|
|
266
|
+
codecId = SQLITE_TIME_STRING_CODEC_ID;
|
|
267
|
+
traits = ["equality", "order"];
|
|
268
|
+
paramsSchema = void 0;
|
|
269
|
+
renderValueLiteral(value) {
|
|
270
|
+
return renderTsLiteral(value);
|
|
271
|
+
}
|
|
272
|
+
factory() {
|
|
273
|
+
return () => new SqliteTimeStringCodec(this, sqliteTime);
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
const sqliteTimeStringDescriptor = new SqliteTimeStringDescriptor();
|
|
277
|
+
const sqliteTimeStringColumn = () => column(sqliteTimeStringDescriptor.factory(), sqliteTimeStringDescriptor.codecId, void 0);
|
|
278
|
+
/** A time of day read as `Temporal.PlainTime`. */
|
|
279
|
+
var SqliteTimeTemporalCodec = class extends CodecImpl {
|
|
280
|
+
async toWire(value, _ctx) {
|
|
281
|
+
return sqliteTimeTemporalEncode(value);
|
|
282
|
+
}
|
|
283
|
+
async fromWire(wire, _ctx) {
|
|
284
|
+
return temporalFromStoredText(TIME_TEMPORAL, storedTextFromWire(this.id, wire, sqliteTimeText), (temporal, text) => temporal.PlainTime.from(text));
|
|
285
|
+
}
|
|
286
|
+
fromDataTypeValue(value) {
|
|
287
|
+
return temporalFromStoredText(TIME_TEMPORAL, value.value, (temporal, text) => temporal.PlainTime.from(text));
|
|
288
|
+
}
|
|
289
|
+
toDataTypeValue(input) {
|
|
290
|
+
return this.dataTypeValueOf(sqliteTimeTemporalEncode(input));
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
var SqliteTimeTemporalDescriptor = class extends SqliteCodecDescriptor {
|
|
294
|
+
jsonProjection(expression) {
|
|
295
|
+
return storedTextJsonProjection(expression);
|
|
296
|
+
}
|
|
297
|
+
dataType = sqliteTime.id;
|
|
298
|
+
codecId = SQLITE_TIME_TEMPORAL_CODEC_ID;
|
|
299
|
+
traits = ["equality", "order"];
|
|
300
|
+
paramsSchema = void 0;
|
|
301
|
+
factory() {
|
|
302
|
+
return () => new SqliteTimeTemporalCodec(this, sqliteTime);
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
const sqliteTimeTemporalDescriptor = new SqliteTimeTemporalDescriptor();
|
|
306
|
+
const sqliteTimeTemporalColumn = () => column(sqliteTimeTemporalDescriptor.factory(), sqliteTimeTemporalDescriptor.codecId, void 0);
|
|
307
|
+
/** 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. */
|
|
308
|
+
var SqliteDurationStringCodec = class extends CodecImpl {
|
|
309
|
+
async toWire(value, _ctx) {
|
|
310
|
+
return storedTextForWrite(this.id, value, sqliteDurationText);
|
|
311
|
+
}
|
|
312
|
+
async fromWire(wire, _ctx) {
|
|
313
|
+
return storedTextFromWire(this.id, wire, sqliteDurationText);
|
|
314
|
+
}
|
|
315
|
+
fromDataTypeValue(value) {
|
|
316
|
+
return value.value;
|
|
317
|
+
}
|
|
318
|
+
toDataTypeValue(input) {
|
|
319
|
+
return this.storedDataTypeValueOf(input);
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
var SqliteDurationStringDescriptor = class extends SqliteCodecDescriptor {
|
|
323
|
+
jsonProjection(expression) {
|
|
324
|
+
return storedTextJsonProjection(expression);
|
|
325
|
+
}
|
|
326
|
+
dataType = sqliteDuration.id;
|
|
327
|
+
codecId = SQLITE_DURATION_STRING_CODEC_ID;
|
|
328
|
+
traits = ["equality"];
|
|
329
|
+
paramsSchema = void 0;
|
|
330
|
+
renderValueLiteral(value) {
|
|
331
|
+
return renderTsLiteral(value);
|
|
332
|
+
}
|
|
333
|
+
factory() {
|
|
334
|
+
return () => new SqliteDurationStringCodec(this, sqliteDuration);
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
const sqliteDurationStringDescriptor = new SqliteDurationStringDescriptor();
|
|
338
|
+
const sqliteDurationStringColumn = () => column(sqliteDurationStringDescriptor.factory(), sqliteDurationStringDescriptor.codecId, void 0);
|
|
10
339
|
/**
|
|
11
340
|
* Projects the expression unchanged, for codecs whose canonical JSON is what
|
|
12
341
|
* SQLite's own JSON conversion already produces.
|
|
@@ -411,23 +740,15 @@ const sqliteBlobColumn = () => column(sqliteBlobDescriptor.factory(), sqliteBlob
|
|
|
411
740
|
* 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.
|
|
412
741
|
*/
|
|
413
742
|
function decodeSqliteDatetime(value) {
|
|
414
|
-
|
|
415
|
-
if (Number.isNaN(date.getTime())) throw sqliteError("RUNTIME.DECODE_FAILED", `sqlite/datetime@1 wire value must be a date and time as text, or a number of milliseconds since 1970: ${String(value)}`, { meta: {
|
|
416
|
-
codecId: SQLITE_DATETIME_CODEC_ID,
|
|
417
|
-
received: String(value)
|
|
418
|
-
} });
|
|
419
|
-
return date;
|
|
420
|
-
}
|
|
421
|
-
const DATE_ONLY = /^\d{4}-\d{2}-\d{2}$/;
|
|
422
|
-
const DATE_TIME_WITHOUT_OFFSET = /^(\d{4}-\d{2}-\d{2})[Tt ](\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)$/;
|
|
423
|
-
/** A date alone as its midnight in UTC, and a date and time without an offset as UTC. */
|
|
424
|
-
function asUtcWhenUnmarked(text) {
|
|
425
|
-
if (DATE_ONLY.test(text)) return `${text}T00:00:00Z`;
|
|
426
|
-
const unmarked = DATE_TIME_WITHOUT_OFFSET.exec(text);
|
|
427
|
-
return unmarked === null ? text : `${unmarked[1]}T${unmarked[2]}Z`;
|
|
743
|
+
return new Date(sqliteInstantMilliseconds(SQLITE_DATETIME_CODEC_ID, value));
|
|
428
744
|
}
|
|
429
|
-
/** The text SQLite holds for an instant: what the codec writes for every row, and for a default. */
|
|
745
|
+
/** 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. */
|
|
430
746
|
function encodeSqliteDatetime(value) {
|
|
747
|
+
if (!isValidDate(value)) throw errorDateTimeUnwritable({
|
|
748
|
+
codecId: SQLITE_DATETIME_CODEC_ID,
|
|
749
|
+
received: "an Invalid Date",
|
|
750
|
+
detail: "Pass a Date that holds an instant."
|
|
751
|
+
});
|
|
431
752
|
return value.toISOString();
|
|
432
753
|
}
|
|
433
754
|
var SqliteDatetimeCodec = class extends CodecImpl {
|
|
@@ -441,7 +762,7 @@ var SqliteDatetimeCodec = class extends CodecImpl {
|
|
|
441
762
|
return new Date(value.value);
|
|
442
763
|
}
|
|
443
764
|
toDataTypeValue(input) {
|
|
444
|
-
return this.dataTypeValueOf(input
|
|
765
|
+
return this.dataTypeValueOf(encodeSqliteDatetime(input));
|
|
445
766
|
}
|
|
446
767
|
};
|
|
447
768
|
var SqliteDatetimeDescriptor = class extends SqliteCodecDescriptor {
|
|
@@ -608,11 +929,18 @@ const codecDescriptors = defineSqliteCodecs([
|
|
|
608
929
|
sqliteRealDescriptor,
|
|
609
930
|
sqliteBlobDescriptor,
|
|
610
931
|
sqliteDatetimeDescriptor,
|
|
932
|
+
sqliteDatetimeTemporalDescriptor,
|
|
933
|
+
sqliteDatetimeStringDescriptor,
|
|
934
|
+
sqliteDateStringDescriptor,
|
|
935
|
+
sqliteDateTemporalDescriptor,
|
|
936
|
+
sqliteTimeStringDescriptor,
|
|
937
|
+
sqliteTimeTemporalDescriptor,
|
|
938
|
+
sqliteDurationStringDescriptor,
|
|
611
939
|
sqliteJsonDescriptor,
|
|
612
940
|
sqliteBigintDescriptor,
|
|
613
941
|
sqliteBigintNumberDescriptor
|
|
614
942
|
]);
|
|
615
943
|
//#endregion
|
|
616
|
-
export { sqliteBigintNumberColumn as a,
|
|
944
|
+
export { sqliteTimeStringColumn as _, sqliteBigintNumberColumn as a, sqliteDateTemporalColumn as c, sqliteDatetimeTemporalColumn as d, sqliteDurationStringColumn as f, sqliteTextColumn as g, sqliteRealColumn as h, sqliteBigintColumn as i, sqliteDatetimeColumn as l, sqliteJsonColumn as m, encodeSqliteDatetime as n, sqliteBlobColumn as o, sqliteIntegerColumn as p, jsonDocumentRetag as r, sqliteDateStringColumn as s, codecDescriptors as t, sqliteDatetimeStringColumn as u, sqliteTimeTemporalColumn as v };
|
|
617
945
|
|
|
618
|
-
//# sourceMappingURL=codecs-
|
|
946
|
+
//# sourceMappingURL=codecs-My4bmOU6-D4-b5qLd.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-My4bmOU6-D4-b5qLd.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codecs-My4bmOU6.mjs"],"sourcesContent":["import { a as SQLITE_DATETIME_STRING_CODEC_ID, c as SQLITE_DATE_TEMPORAL_CODEC_ID, d as SQLITE_JSON_CODEC_ID, f as SQLITE_REAL_CODEC_ID, h as SQLITE_TIME_TEMPORAL_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, l as SQLITE_DURATION_STRING_CODEC_ID, m as SQLITE_TIME_STRING_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_DATETIME_TEMPORAL_CODEC_ID, p as SQLITE_TEXT_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_DATE_STRING_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQLITE_INTEGER_CODEC_ID } from \"./codec-ids-BHBFCNsQ.mjs\";\nimport { _ as sqliteText, a as sqliteCharacterVarying, b as sqliteTimeText, c as sqliteDateText, d as sqliteDatetimeTextAtMilliseconds, f as sqliteDuration, g as sqliteReal, h as sqliteJson, l as sqliteDatetime, m as sqliteInteger, p as sqliteDurationText, r as sqliteCharacter, s as sqliteDate, t as sqliteBlob, y as sqliteTime } from \"./data-types-DXMZNR8j.mjs\";\nimport { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from \"./codec-descriptor-DRmF-crq.mjs\";\nimport { c as sqliteError, i as errorTemporalNonIsoCalendar, n as errorDateTimeUnwritable, s as errorTemporalWrongType, t as errorDateTimeUnreadable } from \"./errors-D9vZNPSI.mjs\";\nimport { t as requireTemporal } from \"./require-temporal-qbyZfPgl.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 { blindCast } from \"@internal/utils/casts\";\nimport { describeValue, temporalFromText, temporalToText } from \"@internal/type-implementations/temporal-text\";\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 = 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/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-valued expression as decimal text.\n*\n* The cast is part of the projected expression, so it applies before the JSON\n* constructor sees the value: handed an INTEGER directly, the constructor emits\n* a JSON number, and SQLite's 64-bit range does not survive being read back as\n* a double. Casting the constructor's result would be too late.\n*/\nconst decimalTextJsonProjection = (expression) => CastExpr.as(expression, \"TEXT\");\n/**\n* Projects a blob as a one-element array of its hexadecimal text.\n*\n* SQLite's JSON functions reject a BLOB argument outright, so the encoding has to replace the native\n* conversion rather than post-process it. `hex()` emits uppercase and never wraps. The array is what\n* tells a blob from text: outside a STRICT table a BLOB column may hold text, which passes through as\n* text, as a row carries it, and so does NULL and any other value.\n*/\nconst hexJsonProjection = (expression) => CaseExpr.of([{\n\tcondition: BinaryExpr.eq(FunctionCallExpr.of(\"typeof\", [expression]), LiteralExpr.of(\"blob\")),\n\tvalue: FunctionCallExpr.of(\"json_array\", [FunctionCallExpr.of(\"hex\", [expression])])\n}], 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) => 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);\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\") {\n\t\trequireJsType(codecId, \"bigint\", value);\n\t\treturn value.toString();\n\t}\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};\n/**\n* Requires an integer within ±(2^53 − 1), the range a JS `number` holds\n* exactly. The guard throws rather than rounding: past the boundary a `number`\n* silently loses digits, which is the failure mode these codecs exist to refuse.\n*/\nconst safeIntegerNumber = (codecId, value, code) => {\n\tif (!Number.isSafeInteger(value)) throw sqliteError(code, `${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\tif (Object.is(value, -0)) return 0;\n\treturn value;\n};\n/** The application value a number-flavoured integer codec writes: the JS type it reads, within the range that type holds exactly. */\nconst encodableSafeInteger = (codecId, value) => {\n\trequireJsType(codecId, \"number\", value);\n\treturn safeIntegerNumber(codecId, value, \"RUNTIME.ENCODE_FAILED\");\n};\n/**\n* Converts an exact `bigint` into a safe-range `number`, comparing before any\n* conversion so an out-of-range value throws rather than rounds.\n*/\nconst safeIntegerFromBigint = (codecId, value) => {\n\tif (value < SAFE_INTEGER_BIGINT_RANGE.min || value > SAFE_INTEGER_BIGINT_RANGE.max) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} value must be an integer within the safe integer range, got ${value}`, { meta: {\n\t\tcodecId,\n\t\treceived: value.toString()\n\t} });\n\treturn Number(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));\n/**\n* Reads an INTEGER's wire value into a `number`: the number the driver returns for a row, or the decimal text an include carries, because its projection casts the integer to text so that no digit is lost in JSON.\n*/\nfunction safeIntegerWire(codecId, wire) {\n\tif (typeof wire === \"number\") return wire;\n\tif (!DECIMAL_INTEGER.test(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire value must be an integer or its decimal text`, { meta: {\n\t\tcodecId,\n\t\treceived: wire\n\t} });\n\treturn safeIntegerFromBigint(codecId, BigInt(wire));\n}\n/**\n* Reads a REAL's wire value: the number the driver returns for a row, or the text `Infinity` or `-Infinity` an include carries, because JSON has no infinity.\n*/\nfunction floatWire(codecId, wire) {\n\tif (typeof wire === \"number\") return wire;\n\tif (wire === \"Infinity\") return Number.POSITIVE_INFINITY;\n\tif (wire === \"-Infinity\") return Number.NEGATIVE_INFINITY;\n\tthrow sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire value must be a number, or the text Infinity or -Infinity`, { meta: {\n\t\tcodecId,\n\t\treceived: wire\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);\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: decimalTextJsonProjection,\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\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 value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn safeIntegerWire(SQLITE_INTEGER_CODEC_ID, wire);\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 decimalTextJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_INTEGER_CODEC_ID;\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);\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\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 sqliteError(\"RUNTIME.DECODE_FAILED\", \"sqlite/blob@1 wire value must be bytes, or the array of their hex text an include carries\", { meta: {\n\t\t\tcodecId: SQLITE_BLOB_CODEC_ID,\n\t\t\treceived: String(wire)\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\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\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);\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\treturn typeof wire === \"string\" ? blindCast(JSON.parse(wire)) : wire;\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\n* value is projected as it is: a string the enclosing JSON constructor embeds as a string.\n*/\nvar SqliteJsonDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = sqliteJson.id;\n\tcodecId = SQLITE_JSON_CODEC_ID;\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\trequireJsType(SQLITE_BIGINT_CODEC_ID, \"bigint\", value);\n\t\treturn value;\n\t}\n\t/**\n\t* The wire value is text wherever the value could outrun a JS number: an\n\t* aggregate SQLite computes leaves the database through the descriptor's cast\n\t* to text, because the driver reads an integer no number can hold as an error\n\t* rather than a value. A number-typed wire value must therefore be a safe\n\t* integer — past ±(2^53 − 1) it has already rounded, and converting it would\n\t* mint a spuriously-exact `bigint` that need not equal the stored value.\n\t*/\n\tasync fromWire(wire, _ctx) {\n\t\tif (typeof wire === \"number\" && !Number.isSafeInteger(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `sqlite/bigint@1 wire number must be an integer within the safe integer range, got ${String(wire)}`, { meta: {\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID,\n\t\t\treceived: String(wire)\n\t\t} });\n\t\tif (typeof wire === \"string\" && !DECIMAL_INTEGER.test(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", \"sqlite/bigint@1 wire value must be a decimal string\", { meta: {\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID,\n\t\t\treceived: wire\n\t\t} });\n\t\treturn BigInt(wire);\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 decimalTextJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_BIGINT_CODEC_ID;\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, in safe-integer mode, a\n\t* `bigint`; a bigint (or decimal text) is range-checked exactly before any\n\t* conversion to `number`, so an out-of-range value throws rather than rounds.\n\t*/\n\tasync fromWire(wire, _ctx) {\n\t\tif (typeof wire === \"number\") return safeIntegerNumber(SQLITE_BIGINT_NUMBER_CODEC_ID, wire, \"RUNTIME.DECODE_FAILED\");\n\t\tif (typeof wire === \"string\" && !DECIMAL_INTEGER.test(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", \"sqlite/bigintnumber@1 wire value must be a decimal string\", { meta: {\n\t\t\tcodecId: SQLITE_BIGINT_NUMBER_CODEC_ID,\n\t\t\treceived: wire\n\t\t} });\n\t\treturn safeIntegerFromBigint(SQLITE_BIGINT_NUMBER_CODEC_ID, BigInt(wire));\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 decimalTextJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_BIGINT_NUMBER_CODEC_ID;\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]);\n//#endregion\nexport { sqliteTimeStringColumn as _, sqliteBigintNumberColumn as a, sqliteIntegerColumn as c, sqliteTextColumn as d, sqliteDateStringColumn as f, sqliteDurationStringColumn as g, sqliteDatetimeTemporalColumn as h, sqliteBigintColumn as i, sqliteJsonColumn as l, sqliteDatetimeStringColumn as m, encodeSqliteDatetime as n, sqliteBlobColumn as o, sqliteDateTemporalColumn as p, jsonDocumentRetag as r, sqliteDatetimeColumn as s, codecDescriptors as t, sqliteRealColumn as u, sqliteTimeTemporalColumn as v };\n\n//# sourceMappingURL=codecs-My4bmOU6.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,YAAY;AAClB,MAAM,2BAA2B;;AAEjC,SAAS,kBAAkB,MAAM;CAChC,IAAI,UAAU,KAAK,IAAI,GAAG,OAAO,GAAG,KAAK;CACzC,MAAM,WAAW,yBAAyB,KAAK,IAAI;CACnD,OAAO,aAAa,OAAO,OAAO,GAAG,SAAS,GAAG,GAAG,SAAS,GAAG;AACjE;;;;AAIA,SAAS,0BAA0B,SAAS,OAAO;CAClD,MAAM,eAAe,IAAI,KAAK,OAAO,UAAU,WAAW,QAAQ,kBAAkB,KAAK,CAAC,CAAC,CAAC,QAAQ;CACpG,IAAI,OAAO,MAAM,YAAY,GAAG,MA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,mBAAmB,OAAO;EACzB,OAAO,yBAAyB,KAAK;CACtC;CACA,UAAU;EACT,aAAa,IAAI,wBAAwB,MAAM,aAAa;CAC7D;AACD;AACA,MAAM,+BAA+B,IAAI,6BAA6B;AACtE,MAAM,iCAAiC,OAAO,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;AACD,CAAC"}
|
|
@@ -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-My4bmOU6-D4-b5qLd.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-R3kGRyq2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-R3kGRyq2.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codecs.mjs"],"sourcesContent":["import { n as buildSqliteCodecDescriptorRegistry } from \"./codec-descriptor-DRmF-crq.mjs\";\nimport { _ as sqliteTimeStringColumn, a as sqliteBigintNumberColumn, c as sqliteIntegerColumn, d as sqliteTextColumn, f as sqliteDateStringColumn, g as sqliteDurationStringColumn, h as sqliteDatetimeTemporalColumn, i as sqliteBigintColumn, l as sqliteJsonColumn, m as sqliteDatetimeStringColumn, o as sqliteBlobColumn, p as sqliteDateTemporalColumn, r as jsonDocumentRetag, s as sqliteDatetimeColumn, t as codecDescriptors, u as sqliteRealColumn, v as sqliteTimeTemporalColumn } from \"./codecs-My4bmOU6.mjs\";\nimport { o as sqliteNowExpressionFor, r as SQLITE_NOW_EXPRESSION } from \"./datetime-text-CbgLX4q3.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, sqliteCodecDescriptorRegistry, sqliteCodecRegistry, sqliteDateStringColumn, sqliteDateTemporalColumn, sqliteDatetimeColumn, sqliteDatetimeStringColumn, sqliteDatetimeTemporalColumn, 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 { y as SQL_RAW_CODEC_ID } from "./codec-ids-BElbEYb_-CeWfv5bC.mjs";
|
|
2
|
+
import "./codec-ids-9Fs9p6ST.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
|
|
@@ -33,4 +33,4 @@ declare function rawColumn(definition: SqlExpression): ColumnTypeDescriptor<type
|
|
|
33
33
|
};
|
|
34
34
|
//#endregion
|
|
35
35
|
export { jsonColumn as a, textColumn as c, integerColumn as i, blobColumn as n, rawColumn as o, datetimeColumn as r, realColumn as s, bigintColumn as t };
|
|
36
|
-
//# sourceMappingURL=column-types-
|
|
36
|
+
//# sourceMappingURL=column-types-bTPNfz46.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-types-
|
|
1
|
+
{"version":3,"file":"column-types-bTPNfz46.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;;;iBAGM,UAAU,YAAY,gBAAgB,4BAA4B;WACxE;aACE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as SQLITE_JSON_CODEC_ID, f as SQLITE_REAL_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, p as SQLITE_TEXT_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQLITE_INTEGER_CODEC_ID, y as SQL_RAW_CODEC_ID } from "./codec-ids-BHBFCNsQ-C1Af_LGF.mjs";
|
|
2
2
|
import { requireSqlExpression } from "@prisma/orm-family-sql/contract/sql-expression";
|
|
3
3
|
//#region ../../../3-targets/sqlite/2-adapter/dist/column-types.mjs
|
|
4
4
|
const textColumn = { codecId: SQLITE_TEXT_CODEC_ID };
|
|
@@ -19,4 +19,4 @@ function rawColumn(definition) {
|
|
|
19
19
|
//#endregion
|
|
20
20
|
export { jsonColumn as a, textColumn as c, integerColumn as i, blobColumn as n, rawColumn as o, datetimeColumn as r, realColumn as s, bigintColumn as t };
|
|
21
21
|
|
|
22
|
-
//# sourceMappingURL=column-types-
|
|
22
|
+
//# sourceMappingURL=column-types-toYbR7mn.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-types-
|
|
1
|
+
{"version":3,"file":"column-types-toYbR7mn.mjs","names":[],"sources":["../../../../3-targets/sqlite/2-adapter/dist/column-types.mjs"],"sourcesContent":["import { SQLITE_BIGINT_CODEC_ID, SQLITE_BLOB_CODEC_ID, SQLITE_DATETIME_CODEC_ID, SQLITE_INTEGER_CODEC_ID, SQLITE_JSON_CODEC_ID, SQLITE_REAL_CODEC_ID, SQLITE_TEXT_CODEC_ID, 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 integerColumn = { codecId: SQLITE_INTEGER_CODEC_ID };\nconst realColumn = { codecId: SQLITE_REAL_CODEC_ID };\nconst blobColumn = { codecId: SQLITE_BLOB_CODEC_ID };\nconst datetimeColumn = { codecId: SQLITE_DATETIME_CODEC_ID };\nconst jsonColumn = { codecId: SQLITE_JSON_CODEC_ID };\nconst bigintColumn = { 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 { bigintColumn, blobColumn, datetimeColumn, integerColumn, jsonColumn, rawColumn, realColumn, textColumn };\n\n//# sourceMappingURL=column-types.mjs.map"],"mappings":";;;AAGA,MAAM,aAAa,EAAE,SAAS,qBAAqB;AACnD,MAAM,gBAAgB,EAAE,SAAS,wBAAwB;AACzD,MAAM,aAAa,EAAE,SAAS,qBAAqB;AACnD,MAAM,aAAa,EAAE,SAAS,qBAAqB;AACnD,MAAM,iBAAiB,EAAE,SAAS,yBAAyB;AAC3D,MAAM,aAAa,EAAE,SAAS,qBAAqB;AACnD,MAAM,eAAe,EAAE,SAAS,uBAAuB;;AAEvD,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-DMvLJFlR.mjs";
|
|
2
2
|
//#region ../../../3-targets/sqlite/2-adapter/dist/contract-contributions-wweWdXMK.mjs
|
|
3
3
|
const sqliteAdapterCapabilities = Object.freeze({ sql: {
|
|
4
4
|
orderBy: true,
|
|
@@ -21,4 +21,4 @@ const sqliteAdapterContractContributions = {
|
|
|
21
21
|
//#endregion
|
|
22
22
|
export { sqliteAdapterContractContributions as n, sqliteAdapterCapabilities as t };
|
|
23
23
|
|
|
24
|
-
//# sourceMappingURL=contract-contributions-wweWdXMK-
|
|
24
|
+
//# sourceMappingURL=contract-contributions-wweWdXMK-CwYZg4jC.mjs.map
|