@prisma/orm-target-sqlite 8.0.0-rc.18-dev.30 → 8.0.0-rc.18-dev.31
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-7m8HU4rt-Dg5lc1un.mjs → adapter-7m8HU4rt-C0WTjmyV.mjs} +6 -6
- package/dist/{adapter-7m8HU4rt-Dg5lc1un.mjs.map → adapter-7m8HU4rt-C0WTjmyV.mjs.map} +1 -1
- package/dist/{adapter-DP6zFJuA.d.mts → adapter-BQGDQx0H.d.mts} +7 -7
- package/dist/{adapter-DP6zFJuA.d.mts.map → adapter-BQGDQx0H.d.mts.map} +1 -1
- package/dist/{adapter-xFPDhkod-C64w92Hu.d.mts → adapter-xFPDhkod-Cn2BkvM_.d.mts} +3 -3
- package/dist/{adapter-xFPDhkod-C64w92Hu.d.mts.map → adapter-xFPDhkod-Cn2BkvM_.d.mts.map} +1 -1
- package/dist/adapter.d.mts +11 -11
- package/dist/adapter.mjs +5 -5
- 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 +4 -4
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +3 -3
- 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-C91ltL9M.d.mts → aggregates-D-yzAlbC.d.mts} +6 -6
- package/dist/{aggregates-C91ltL9M.d.mts.map → aggregates-D-yzAlbC.d.mts.map} +1 -1
- package/dist/{aggregates-uX0RsRV6.mjs → aggregates-exfiPSHR.mjs} +2 -2
- package/dist/{aggregates-uX0RsRV6.mjs.map → aggregates-exfiPSHR.mjs.map} +1 -1
- package/dist/{codec-ids-CzeDyMWW-BZAcI50I.d.mts → codec-ids-DuJYssXV-BW3y5jTO.d.mts} +4 -4
- package/dist/codec-ids-DuJYssXV-BW3y5jTO.d.mts.map +1 -0
- package/dist/codec-ids-Dyi0HKJw.d.mts +1 -0
- package/dist/{codec-ids-KMliSCRp-BhTbmbGr.mjs → codec-ids-wgEvkCkg-8bxcCujY.mjs} +4 -4
- package/dist/codec-ids-wgEvkCkg-8bxcCujY.mjs.map +1 -0
- package/dist/codec-types-B0Y3oOtp.d.mts +2 -0
- package/dist/codec-types-CLbKwUAt.d.mts +1 -0
- package/dist/{codec-types-Dc0O4bw9-BrSH7AJq.d.mts → codec-types-cWQQVtK1-DLZaguM6.d.mts} +4 -3
- package/dist/codec-types-cWQQVtK1-DLZaguM6.d.mts.map +1 -0
- package/dist/{codecs-xH8Su5NY-BAQqL40w.mjs → codecs-B8qHPY7E-BkymMUIl.mjs} +26 -5
- package/dist/codecs-B8qHPY7E-BkymMUIl.mjs.map +1 -0
- package/dist/{codecs-BRjmk9zL-CxwVg1bW.d.mts → codecs-Czl6o-9D-D8z124aj.d.mts} +3 -3
- package/dist/{codecs-BRjmk9zL-CxwVg1bW.d.mts.map → codecs-Czl6o-9D-D8z124aj.d.mts.map} +1 -1
- package/dist/{codecs-Pw5Rhv0j.mjs → codecs-D0Y2Iav-.mjs} +2 -2
- package/dist/{codecs-Pw5Rhv0j.mjs.map → codecs-D0Y2Iav-.mjs.map} +1 -1
- package/dist/codecs-IWXre1ae.d.mts +1 -0
- package/dist/column-types-CpUb8mVS.d.mts +35 -0
- package/dist/column-types-CpUb8mVS.d.mts.map +1 -0
- package/dist/column-types-hoCqFPl9.mjs +20 -0
- package/dist/column-types-hoCqFPl9.mjs.map +1 -0
- package/dist/{contract-contributions-wweWdXMK-CFknr0Fo.mjs → contract-contributions-wweWdXMK-C7LvZMgG.mjs} +2 -2
- package/dist/{contract-contributions-wweWdXMK-CFknr0Fo.mjs.map → contract-contributions-wweWdXMK-C7LvZMgG.mjs.map} +1 -1
- package/dist/{contract-free-CEPqytba.mjs → contract-free-jczZy_HM.mjs} +3 -3
- package/dist/{contract-free-CEPqytba.mjs.map → contract-free-jczZy_HM.mjs.map} +1 -1
- package/dist/{control-CfOb71aS.mjs → control-CkRHoUVL.mjs} +7 -7
- package/dist/{control-CfOb71aS.mjs.map → control-CkRHoUVL.mjs.map} +1 -1
- package/dist/{control-C2cGe3-w.d.mts → control-OMAB1Bql.d.mts} +3 -3
- package/dist/{control-C2cGe3-w.d.mts.map → control-OMAB1Bql.d.mts.map} +1 -1
- package/dist/{data-type-entries-DgF-SCh4-DiJECfQS.mjs → data-type-entries-vJawTygC-GvAHhBjx.mjs} +3 -3
- package/dist/{data-type-entries-DgF-SCh4-DiJECfQS.mjs.map → data-type-entries-vJawTygC-GvAHhBjx.mjs.map} +1 -1
- package/dist/{data-types-Ca0aw_9L-lsSoq_OT.mjs → data-types-DaqSwd-t-5j7dnRA8.mjs} +5 -4
- package/dist/data-types-DaqSwd-t-5j7dnRA8.mjs.map +1 -0
- package/dist/{ddl-CDoa1Ehx-BOT670XL.mjs → ddl-CX4tAZ-y-BkaAELc2.mjs} +3 -3
- package/dist/{ddl-CDoa1Ehx-BOT670XL.mjs.map → ddl-CX4tAZ-y-BkaAELc2.mjs.map} +1 -1
- package/dist/{descriptor-meta-CBkQ3tJe-RHbovcWe.mjs → descriptor-meta-CoUnSc0y-BPbG5Fsw.mjs} +5 -5
- package/dist/{descriptor-meta-CBkQ3tJe-RHbovcWe.mjs.map → descriptor-meta-CoUnSc0y-BPbG5Fsw.mjs.map} +1 -1
- package/dist/{descriptor-meta-DrNwC4vO-DKdG2JPw.mjs → descriptor-meta-DrNwC4vO-uIjsn4Ej.mjs} +3 -3
- package/dist/{descriptor-meta-DrNwC4vO-DKdG2JPw.mjs.map → descriptor-meta-DrNwC4vO-uIjsn4Ej.mjs.map} +1 -1
- package/dist/{descriptor-meta-runtime-CYn16fv9-BjDvboK_.mjs → descriptor-meta-runtime-DIcQSuFt-T2r6d8du.mjs} +3 -3
- package/dist/{descriptor-meta-runtime-CYn16fv9-BjDvboK_.mjs.map → descriptor-meta-runtime-DIcQSuFt-T2r6d8du.mjs.map} +1 -1
- package/dist/{migration-CVlw7HyX.mjs → migration-BSIkMAkA.mjs} +2 -2
- package/dist/{migration-CVlw7HyX.mjs.map → migration-BSIkMAkA.mjs.map} +1 -1
- package/dist/{op-factory-call-Cbwqu10s-PqtplP-Y.mjs → op-factory-call-CfjtzREa-D7ekvaLZ.mjs} +11 -4
- package/dist/op-factory-call-CfjtzREa-D7ekvaLZ.mjs.map +1 -0
- package/dist/{pack-818SIHGt.d.mts → pack-Dx_IcF6h.d.mts} +2 -2
- package/dist/{pack-818SIHGt.d.mts.map → pack-Dx_IcF6h.d.mts.map} +1 -1
- package/dist/{planner-B7_3K7Pz-CGI3qLdr.mjs → planner-DxJLBjRO-Yve5OYci.mjs} +5 -5
- package/dist/{planner-B7_3K7Pz-CGI3qLdr.mjs.map → planner-DxJLBjRO-Yve5OYci.mjs.map} +1 -1
- package/dist/{planner-produced-sqlite-migration-fFW5g6dK-MhZpdzRq.mjs → planner-produced-sqlite-migration-DyUEoJy4-CdhYzmpx.mjs} +4 -4
- package/dist/{planner-produced-sqlite-migration-fFW5g6dK-MhZpdzRq.mjs.map → planner-produced-sqlite-migration-DyUEoJy4-CdhYzmpx.mjs.map} +1 -1
- package/dist/{render-ops-DpagkZSb-BGGe8lmG.mjs → render-ops-EKDIreH1-BA3sLqIW.mjs} +3 -3
- package/dist/{render-ops-DpagkZSb-BGGe8lmG.mjs.map → render-ops-EKDIreH1-BA3sLqIW.mjs.map} +1 -1
- package/dist/{runtime-CXkoxZN2.d.mts → runtime-CoHjq3cs.d.mts} +2 -2
- package/dist/{runtime-CXkoxZN2.d.mts.map → runtime-CoHjq3cs.d.mts.map} +1 -1
- package/dist/sql-renderer-CpblYb5l.d.mts +1 -0
- package/dist/{sqlite-contract-view-BGy91QuK-DpVFoeDA.mjs → sqlite-contract-view-CGv9JoCE-BkT190Ic.mjs} +3 -3
- package/dist/{sqlite-contract-view-BGy91QuK-DpVFoeDA.mjs.map → sqlite-contract-view-CGv9JoCE-BkT190Ic.mjs.map} +1 -1
- package/dist/{sqlite-migration-BeEm2PJe-B5HbGOeH.mjs → sqlite-migration-DZJSPfnT--Tf8_tGA.mjs} +11 -10
- package/dist/sqlite-migration-DZJSPfnT--Tf8_tGA.mjs.map +1 -0
- package/dist/target.d.mts +9 -9
- package/dist/target.mjs +17 -17
- 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 +2 -2
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__contract-free.mjs +2 -2
- package/dist/target__control.mjs +2 -2
- package/dist/target__data-types.mjs +2 -2
- 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.mjs +2 -2
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/{types-Bgjxexui.d.mts → types-DA9lzh9t.d.mts} +1 -1
- package/package.json +9 -9
- package/dist/codec-ids-7WqtUuda.d.mts +0 -1
- package/dist/codec-ids-CzeDyMWW-BZAcI50I.d.mts.map +0 -1
- package/dist/codec-ids-KMliSCRp-BhTbmbGr.mjs.map +0 -1
- package/dist/codec-types-CKcZDram.d.mts +0 -2
- package/dist/codec-types-DAQyvESj.d.mts +0 -1
- package/dist/codec-types-Dc0O4bw9-BrSH7AJq.d.mts.map +0 -1
- package/dist/codecs-CX1NZYQV.d.mts +0 -1
- package/dist/codecs-xH8Su5NY-BAQqL40w.mjs.map +0 -1
- package/dist/column-types-CWeuNngG.mjs +0 -13
- package/dist/column-types-CWeuNngG.mjs.map +0 -1
- package/dist/column-types-DzzwJf7V.d.mts +0 -26
- package/dist/column-types-DzzwJf7V.d.mts.map +0 -1
- package/dist/data-types-Ca0aw_9L-lsSoq_OT.mjs.map +0 -1
- package/dist/op-factory-call-Cbwqu10s-PqtplP-Y.mjs.map +0 -1
- package/dist/sql-renderer-BZgGkg9P.d.mts +0 -1
- package/dist/sqlite-migration-BeEm2PJe-B5HbGOeH.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as createSqliteCodecRegistryWithBuiltins, p as createSqliteBuiltinCodecLookup } from "./codecs-
|
|
1
|
+
import { m as createSqliteCodecRegistryWithBuiltins, p as createSqliteBuiltinCodecLookup } from "./codecs-Czl6o-9D-D8z124aj.mjs";
|
|
2
2
|
import { n as quoteIdentifier, t as escapeLiteral } from "./sql-utils-0SJZOd7Q.mjs";
|
|
3
3
|
import { n as readSqliteDefault } from "./default-normalizer-DNvRFfNg.mjs";
|
|
4
|
-
import { n as sqliteAdapterDescriptor, t as SqliteControlAdapter } from "./control-
|
|
4
|
+
import { n as sqliteAdapterDescriptor, t as SqliteControlAdapter } from "./control-OMAB1Bql.mjs";
|
|
5
5
|
export { SqliteControlAdapter, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, sqliteAdapterDescriptor as default, escapeLiteral, quoteIdentifier, readSqliteDefault };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as createSqliteBuiltinCodecLookup, r as createSqliteCodecRegistryWithBuiltins, t as assembleSqliteCodecRegistry } from "./codecs-
|
|
1
|
+
import { n as createSqliteBuiltinCodecLookup, r as createSqliteCodecRegistryWithBuiltins, t as assembleSqliteCodecRegistry } from "./codecs-D0Y2Iav-.mjs";
|
|
2
2
|
import { t as readSqliteDefault } from "./default-normalizer-DGMXypHg-Q0mNIQC6.mjs";
|
|
3
3
|
import { n as escapeLiteral, r as quoteIdentifier } from "./sql-utils-XGT5Esi2-5k9pvJeF.mjs";
|
|
4
|
-
import { n as sqlitePslTypeConstructors } from "./control-
|
|
5
|
-
import { t as SqliteControlAdapter } from "./adapter-7m8HU4rt-
|
|
6
|
-
import { t as sqliteAdapterDescriptorMeta } from "./descriptor-meta-DrNwC4vO-
|
|
4
|
+
import { n as sqlitePslTypeConstructors } from "./control-CkRHoUVL.mjs";
|
|
5
|
+
import { t as SqliteControlAdapter } from "./adapter-7m8HU4rt-C0WTjmyV.mjs";
|
|
6
|
+
import { t as sqliteAdapterDescriptorMeta } from "./descriptor-meta-DrNwC4vO-uIjsn4Ej.mjs";
|
|
7
7
|
//#region ../../../3-targets/6-adapters/sqlite/dist/control.mjs
|
|
8
8
|
function databaseFunction(expression) {
|
|
9
9
|
return {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as sqliteRuntimeAdapterDescriptor, t as SqliteRuntimeAdapterInstance } from "./runtime-
|
|
1
|
+
import { n as sqliteRuntimeAdapterDescriptor, t as SqliteRuntimeAdapterInstance } from "./runtime-CoHjq3cs.mjs";
|
|
2
2
|
export { type SqliteRuntimeAdapterInstance, sqliteRuntimeAdapterDescriptor as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as sqliteCodecDescriptorRegistry, t as assembleSqliteCodecRegistry } from "./codecs-
|
|
2
|
-
import { a as sqliteRawCodecInferer, r as createSqliteAdapterWithCodecRegistry } from "./adapter-7m8HU4rt-
|
|
3
|
-
import { t as sqliteAdapterDescriptorMeta } from "./descriptor-meta-DrNwC4vO-
|
|
1
|
+
import { i as sqliteCodecDescriptorRegistry, t as assembleSqliteCodecRegistry } from "./codecs-D0Y2Iav-.mjs";
|
|
2
|
+
import { a as sqliteRawCodecInferer, r as createSqliteAdapterWithCodecRegistry } from "./adapter-7m8HU4rt-C0WTjmyV.mjs";
|
|
3
|
+
import { t as sqliteAdapterDescriptorMeta } from "./descriptor-meta-DrNwC4vO-uIjsn4Ej.mjs";
|
|
4
4
|
import { assembleDataTypes } from "@prisma/orm-framework/components/codec";
|
|
5
5
|
import { timestampNowRuntimeGenerator } from "@prisma/orm-family-sql/family/runtime";
|
|
6
6
|
import { builtinGeneratorIds } from "@prisma/orm-framework/ids";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as renderLoweredSql } from "./adapter-xFPDhkod-
|
|
2
|
-
import "./sql-renderer-
|
|
1
|
+
import { r as renderLoweredSql } from "./adapter-xFPDhkod-Cn2BkvM_.mjs";
|
|
2
|
+
import "./sql-renderer-CpblYb5l.mjs";
|
|
3
3
|
export { renderLoweredSql };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as renderLoweredSql } from "./adapter-7m8HU4rt-
|
|
1
|
+
import { i as renderLoweredSql } from "./adapter-7m8HU4rt-C0WTjmyV.mjs";
|
|
2
2
|
export { renderLoweredSql };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as SqliteContract, r as SqliteLoweredStatement, t as SqliteAdapterOptions } from "./types-RJMd2PlL-BT8T5Z6C.mjs";
|
|
2
|
-
import { o as SqliteCodecRegistry } from "./codecs-
|
|
3
|
-
import "./types-
|
|
2
|
+
import { o as SqliteCodecRegistry } from "./codecs-Czl6o-9D-D8z124aj.mjs";
|
|
3
|
+
import "./types-DA9lzh9t.mjs";
|
|
4
4
|
export type { SqliteAdapterOptions, SqliteCodecRegistry, SqliteContract, SqliteLoweredStatement };
|
|
@@ -33,7 +33,7 @@ declare const sqliteAggregateDescriptors: readonly [{
|
|
|
33
33
|
readonly operation: "sum";
|
|
34
34
|
readonly input: {
|
|
35
35
|
readonly kind: "codec";
|
|
36
|
-
readonly codecId: "sql/int@1" | "sqlite/
|
|
36
|
+
readonly codecId: "sql/int@1" | "sqlite/bigintnumber@1" | "sqlite/bigint@1" | "sqlite/integer@1";
|
|
37
37
|
};
|
|
38
38
|
readonly output: {
|
|
39
39
|
readonly kind: "codec";
|
|
@@ -44,7 +44,7 @@ declare const sqliteAggregateDescriptors: readonly [{
|
|
|
44
44
|
readonly operation: "sumBigInt";
|
|
45
45
|
readonly input: {
|
|
46
46
|
readonly kind: "codec";
|
|
47
|
-
readonly codecId: "sql/int@1" | "sqlite/
|
|
47
|
+
readonly codecId: "sql/int@1" | "sqlite/bigintnumber@1" | "sqlite/bigint@1" | "sqlite/integer@1";
|
|
48
48
|
};
|
|
49
49
|
readonly output: {
|
|
50
50
|
readonly kind: "codec";
|
|
@@ -69,7 +69,7 @@ declare const sqliteAggregateDescriptors: readonly [{
|
|
|
69
69
|
readonly operation: "avg";
|
|
70
70
|
readonly input: {
|
|
71
71
|
readonly kind: "codec";
|
|
72
|
-
readonly codecId: "sql/int@1" | "sql/float@1" | "sqlite/
|
|
72
|
+
readonly codecId: "sql/int@1" | "sql/float@1" | "sqlite/bigintnumber@1" | "sqlite/bigint@1" | "sqlite/integer@1" | "sqlite/real@1";
|
|
73
73
|
};
|
|
74
74
|
readonly output: {
|
|
75
75
|
readonly kind: "codec";
|
|
@@ -100,7 +100,7 @@ declare const sqliteAggregateDescriptors: readonly [{
|
|
|
100
100
|
readonly operation: "min";
|
|
101
101
|
readonly input: {
|
|
102
102
|
readonly kind: "codec";
|
|
103
|
-
readonly codecId: "sqlite/
|
|
103
|
+
readonly codecId: "sqlite/datetime@1" | "sqlite/json@1" | "sqlite/blob@1";
|
|
104
104
|
};
|
|
105
105
|
readonly output: {
|
|
106
106
|
readonly kind: "self";
|
|
@@ -141,7 +141,7 @@ declare const sqliteAggregateDescriptors: readonly [{
|
|
|
141
141
|
readonly operation: "max";
|
|
142
142
|
readonly input: {
|
|
143
143
|
readonly kind: "codec";
|
|
144
|
-
readonly codecId: "sqlite/
|
|
144
|
+
readonly codecId: "sqlite/datetime@1" | "sqlite/json@1" | "sqlite/blob@1";
|
|
145
145
|
};
|
|
146
146
|
readonly output: {
|
|
147
147
|
readonly kind: "self";
|
|
@@ -161,4 +161,4 @@ declare const sqliteAggregateDescriptors: readonly [{
|
|
|
161
161
|
}];
|
|
162
162
|
//#endregion
|
|
163
163
|
export { sqliteAggregateDescriptors as t };
|
|
164
|
-
//# sourceMappingURL=aggregates-
|
|
164
|
+
//# sourceMappingURL=aggregates-D-yzAlbC.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregates-
|
|
1
|
+
{"version":3,"file":"aggregates-D-yzAlbC.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/aggregates.d.mts"],"mappings":";;;;;;cAKc;WACH;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;WACA,OAAO;;WAEP;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;WACA,OAAO;;WAEP,QAAQ;WACR;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;WACA,OAAO;;WAEP,QAAQ;WACR;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,QAAQ;WACR;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;WACA,OAAO;;WAEP;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;WACA,OAAO"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as SQLITE_INTEGER_CODEC_ID, d as SQL_INT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQL_FLOAT_CODEC_ID } from "./codec-ids-
|
|
1
|
+
import { a as SQLITE_INTEGER_CODEC_ID, d as SQL_INT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQL_FLOAT_CODEC_ID } from "./codec-ids-wgEvkCkg-8bxcCujY.mjs";
|
|
2
2
|
import { AggregateExpr, CastExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
3
3
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
4
4
|
//#region ../../../3-targets/3-targets/sqlite/dist/aggregates.mjs
|
|
@@ -137,4 +137,4 @@ const sqliteAggregateDescriptors = [
|
|
|
137
137
|
//#endregion
|
|
138
138
|
export { sqliteAggregateDescriptors as t };
|
|
139
139
|
|
|
140
|
-
//# sourceMappingURL=aggregates-
|
|
140
|
+
//# sourceMappingURL=aggregates-exfiPSHR.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregates-
|
|
1
|
+
{"version":3,"file":"aggregates-exfiPSHR.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/aggregates.mjs"],"sourcesContent":["import { a as SQLITE_INTEGER_CODEC_ID, d as SQL_INT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQL_FLOAT_CODEC_ID } from \"./codec-ids-wgEvkCkg.mjs\";\nimport { AggregateExpr, CastExpr } from \"@internal/sql-relational-core/ast\";\nimport { ifDefined } from \"@internal/utils/defined\";\n//#region src/core/aggregates.ts\n/** An aggregate whose result is one of the input values, so it carries the input's codec. */\nconst preservesInput = (operation, input) => ({\n\toperation,\n\tinput,\n\toutput: { kind: \"self\" },\n\tnullable: true\n});\n/**\n* Render the aggregate as text.\n*\n* SQLite computes an aggregate into an INTEGER, and the driver reads an integer\n* no JS number can hold as an error rather than a value — so an aggregate whose\n* result is a wide integer leaves the database through this cast, which is the\n* form both integer codecs read anyway. The hook builds the expression and\n* nothing else: which codec the result carries is the descriptor's `output` to\n* declare, not this function's to choose.\n*\n* The `operation` it names is the SQL aggregate the row computes with — its own\n* name for a bare operation, its bare namesake's for a lossless variant, whose\n* name the database does not know.\n*/\nconst castResultToText = (operation) => ({ expr }) => CastExpr.as(new AggregateExpr(operation, expr), \"text\");\n/** The integer results wider than the driver's numeric reads: one read exactly, one read as a `number` and guarded against the safe range. Both leave the database as text. */\nconst WIDE_INTEGER_CODECS = [SQLITE_BIGINT_CODEC_ID, SQLITE_BIGINT_NUMBER_CODEC_ID];\n/** An aggregate whose result is a new value, named by codec and without the input's type parameters. */\nconst produces = (operation, input, codecId) => ({\n\toperation,\n\tinput,\n\toutput: {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t},\n\tnullable: true,\n\t...ifDefined(\"lower\", WIDE_INTEGER_CODECS.includes(codecId) ? castResultToText(operation) : void 0)\n});\n/** The same, for a lossless variant: an operation whose name the SQL alphabet does not carry, so its lowering names the aggregate it computes with. */\nconst producesVia = (operation, input, codecId, lower) => ({\n\toperation,\n\tinput,\n\toutput: {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t},\n\tnullable: true,\n\tlower\n});\n/** Codecs stored as SQLite integers. Their `sum` is an integer of up to 64 bits — past `sqlite/integer@1`'s range, and past the safe-integer range too, since a total of safe-range values is free to leave it. The bare form therefore guards and the lossless one carries. */\nconst INTEGER_CODECS = [\n\tSQLITE_INTEGER_CODEC_ID,\n\tSQLITE_BIGINT_CODEC_ID,\n\tSQLITE_BIGINT_NUMBER_CODEC_ID,\n\tSQL_INT_CODEC_ID\n];\n/** Codecs stored as SQLite reals. Their `sum` stays real. */\nconst REAL_CODECS = [SQLITE_REAL_CODEC_ID, SQL_FLOAT_CODEC_ID];\n/**\n* Codecs whose `min`/`max` returns the input value and whose traits do not already say so: SQLite compares blobs bytewise and text by its collation, so a datetime, a JSON document, and a blob each have a well-defined least and greatest — unlike the numeric and textual codecs, whose traits carry them.\n*/\nconst MIN_MAX_PRESERVING_CODECS = [\n\tSQLITE_DATETIME_CODEC_ID,\n\tSQLITE_JSON_CODEC_ID,\n\tSQLITE_BLOB_CODEC_ID\n];\nconst orderingDescriptors = (operation) => [\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"numeric\"\n\t}),\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"textual\"\n\t}),\n\t...MIN_MAX_PRESERVING_CODECS.map((codecId) => preservesInput(operation, {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t})),\n\t{\n\t\toperation,\n\t\tinput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID\n\t\t},\n\t\toutput: { kind: \"self\" },\n\t\tnullable: true,\n\t\tlower: castResultToText(operation)\n\t}\n];\n/**\n* Every aggregate overload the SQLite target contributes. The adapter lists these on `types.aggregateDescriptors`, from where emission derives result types and the runtime builds its resolution registry.\n*/\nconst sqliteAggregateDescriptors = [\n\t{\n\t\toperation: \"count\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: SQLITE_BIGINT_NUMBER_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\",\n\t\tlower: castResultToText(\"count\")\n\t},\n\t{\n\t\toperation: \"countBigInt\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\",\n\t\tlower: castResultToText(\"count\")\n\t},\n\t...INTEGER_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_BIGINT_NUMBER_CODEC_ID)),\n\t...INTEGER_CODECS.map((codecId) => producesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_BIGINT_CODEC_ID, castResultToText(\"sum\"))),\n\t...REAL_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_REAL_CODEC_ID)),\n\t...[...INTEGER_CODECS, ...REAL_CODECS].map((codecId) => produces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_REAL_CODEC_ID)),\n\t...orderingDescriptors(\"min\"),\n\t...orderingDescriptors(\"max\")\n];\n//#endregion\nexport { sqliteAggregateDescriptors };\n\n//# sourceMappingURL=aggregates.mjs.map"],"mappings":";;;;;AAKA,MAAM,kBAAkB,WAAW,WAAW;CAC7C;CACA;CACA,QAAQ,EAAE,MAAM,OAAO;CACvB,UAAU;AACX;;;;;;;;;;;;;;;AAeA,MAAM,oBAAoB,eAAe,EAAE,WAAW,SAAS,GAAG,IAAI,cAAc,WAAW,IAAI,GAAG,MAAM;;AAE5G,MAAM,sBAAsB,CAAC,wBAAwB,6BAA6B;;AAElF,MAAM,YAAY,WAAW,OAAO,aAAa;CAChD;CACA;CACA,QAAQ;EACP,MAAM;EACN;CACD;CACA,UAAU;CACV,GAAG,UAAU,SAAS,oBAAoB,SAAS,OAAO,IAAI,iBAAiB,SAAS,IAAI,KAAK,CAAC;AACnG;;AAEA,MAAM,eAAe,WAAW,OAAO,SAAS,WAAW;CAC1D;CACA;CACA,QAAQ;EACP,MAAM;EACN;CACD;CACA,UAAU;CACV;AACD;;AAEA,MAAM,iBAAiB;CACtB;CACA;CACA;CACA;AACD;;AAEA,MAAM,cAAc,CAAC,sBAAsB,kBAAkB;;;;AAI7D,MAAM,4BAA4B;CACjC;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_ID } from "@prisma/orm-family-sql/relational-core/ast";
|
|
2
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codec-ids-
|
|
1
|
+
import { SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_VARCHAR_CODEC_ID } from "@prisma/orm-family-sql/relational-core/ast";
|
|
2
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codec-ids-DuJYssXV.d.mts
|
|
3
3
|
//#region src/core/codec-ids.d.ts
|
|
4
4
|
declare const SQLITE_TEXT_CODEC_ID: "sqlite/text@1";
|
|
5
5
|
declare const SQLITE_INTEGER_CODEC_ID: "sqlite/integer@1";
|
|
@@ -10,5 +10,5 @@ declare const SQLITE_JSON_CODEC_ID: "sqlite/json@1";
|
|
|
10
10
|
declare const SQLITE_BIGINT_CODEC_ID: "sqlite/bigint@1";
|
|
11
11
|
declare const SQLITE_BIGINT_NUMBER_CODEC_ID: "sqlite/bigintnumber@1";
|
|
12
12
|
//#endregion
|
|
13
|
-
export { SQLITE_INTEGER_CODEC_ID as a, SQLITE_TEXT_CODEC_ID as c, SQL_INT_CODEC_ID as d,
|
|
14
|
-
//# sourceMappingURL=codec-ids-
|
|
13
|
+
export { SQLITE_INTEGER_CODEC_ID as a, SQLITE_TEXT_CODEC_ID as c, SQL_INT_CODEC_ID as d, SQL_RAW_CODEC_ID as f, SQLITE_DATETIME_CODEC_ID as i, SQL_CHAR_CODEC_ID as l, SQLITE_BIGINT_NUMBER_CODEC_ID as n, SQLITE_JSON_CODEC_ID as o, SQL_VARCHAR_CODEC_ID as p, SQLITE_BLOB_CODEC_ID as r, SQLITE_REAL_CODEC_ID as s, SQLITE_BIGINT_CODEC_ID as t, SQL_FLOAT_CODEC_ID as u };
|
|
14
|
+
//# sourceMappingURL=codec-ids-DuJYssXV-BW3y5jTO.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-ids-DuJYssXV-BW3y5jTO.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-ids-DuJYssXV.d.mts"],"mappings":";;;cAEc;cACA;cACA;cACA;cACA;cACA;cACA;cACA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./codec-ids-DuJYssXV-BW3y5jTO.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_VARCHAR_CODEC_ID } from "@prisma/orm-family-sql/relational-core/ast";
|
|
2
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codec-ids-
|
|
1
|
+
import { SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_VARCHAR_CODEC_ID } from "@prisma/orm-family-sql/relational-core/ast";
|
|
2
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codec-ids-wgEvkCkg.mjs
|
|
3
3
|
const SQLITE_TEXT_CODEC_ID = "sqlite/text@1";
|
|
4
4
|
const SQLITE_INTEGER_CODEC_ID = "sqlite/integer@1";
|
|
5
5
|
const SQLITE_REAL_CODEC_ID = "sqlite/real@1";
|
|
@@ -9,6 +9,6 @@ const SQLITE_JSON_CODEC_ID = "sqlite/json@1";
|
|
|
9
9
|
const SQLITE_BIGINT_CODEC_ID = "sqlite/bigint@1";
|
|
10
10
|
const SQLITE_BIGINT_NUMBER_CODEC_ID = "sqlite/bigintnumber@1";
|
|
11
11
|
//#endregion
|
|
12
|
-
export { SQLITE_INTEGER_CODEC_ID as a, SQLITE_TEXT_CODEC_ID as c, SQL_INT_CODEC_ID as d,
|
|
12
|
+
export { SQLITE_INTEGER_CODEC_ID as a, SQLITE_TEXT_CODEC_ID as c, SQL_INT_CODEC_ID as d, SQL_RAW_CODEC_ID as f, SQLITE_DATETIME_CODEC_ID as i, SQL_CHAR_CODEC_ID as l, SQLITE_BIGINT_NUMBER_CODEC_ID as n, SQLITE_JSON_CODEC_ID as o, SQL_VARCHAR_CODEC_ID as p, SQLITE_BLOB_CODEC_ID as r, SQLITE_REAL_CODEC_ID as s, SQLITE_BIGINT_CODEC_ID as t, SQL_FLOAT_CODEC_ID as u };
|
|
13
13
|
|
|
14
|
-
//# sourceMappingURL=codec-ids-
|
|
14
|
+
//# sourceMappingURL=codec-ids-wgEvkCkg-8bxcCujY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-ids-wgEvkCkg-8bxcCujY.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-ids-wgEvkCkg.mjs"],"sourcesContent":["import { SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_VARCHAR_CODEC_ID } from \"@internal/sql-relational-core/ast\";\n//#region src/core/codec-ids.ts\nconst SQLITE_TEXT_CODEC_ID = \"sqlite/text@1\";\nconst SQLITE_INTEGER_CODEC_ID = \"sqlite/integer@1\";\nconst SQLITE_REAL_CODEC_ID = \"sqlite/real@1\";\nconst SQLITE_BLOB_CODEC_ID = \"sqlite/blob@1\";\nconst SQLITE_DATETIME_CODEC_ID = \"sqlite/datetime@1\";\nconst SQLITE_JSON_CODEC_ID = \"sqlite/json@1\";\nconst SQLITE_BIGINT_CODEC_ID = \"sqlite/bigint@1\";\nconst SQLITE_BIGINT_NUMBER_CODEC_ID = \"sqlite/bigintnumber@1\";\n//#endregion\nexport { SQLITE_INTEGER_CODEC_ID as a, SQLITE_TEXT_CODEC_ID as c, SQL_INT_CODEC_ID as d, SQL_RAW_CODEC_ID as f, SQLITE_DATETIME_CODEC_ID as i, SQL_CHAR_CODEC_ID as l, SQLITE_BIGINT_NUMBER_CODEC_ID as n, SQLITE_JSON_CODEC_ID as o, SQL_VARCHAR_CODEC_ID as p, SQLITE_BLOB_CODEC_ID as r, SQLITE_REAL_CODEC_ID as s, SQLITE_BIGINT_CODEC_ID as t, SQL_FLOAT_CODEC_ID as u };\n\n//# sourceMappingURL=codec-ids-wgEvkCkg.mjs.map"],"mappings":";;AAEA,MAAM,uBAAuB;AAC7B,MAAM,0BAA0B;AAChC,MAAM,uBAAuB;AAC7B,MAAM,uBAAuB;AAC7B,MAAM,2BAA2B;AACjC,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,gCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./codec-types-B0Y3oOtp.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as AdaptedSqliteCodecDescriptor } from "./codec-descriptor-DT3GA29e-D9jjnVIM.mjs";
|
|
2
2
|
import "./codec-descriptor-EUFGq72N-BlLkoKCl.mjs";
|
|
3
|
-
import { a as SqliteBlobDescriptor, c as SqliteIntegerDescriptor, d as SqliteTextDescriptor, i as SqliteBigintNumberDescriptor, l as SqliteJsonDescriptor, r as SqliteBigintDescriptor, s as SqliteDatetimeDescriptor, u as SqliteRealDescriptor } from "./codecs-
|
|
3
|
+
import { a as SqliteBlobDescriptor, c as SqliteIntegerDescriptor, d as SqliteTextDescriptor, i as SqliteBigintNumberDescriptor, l as SqliteJsonDescriptor, r as SqliteBigintDescriptor, s as SqliteDatetimeDescriptor, u as SqliteRealDescriptor } from "./codecs-Czl6o-9D-D8z124aj.mjs";
|
|
4
4
|
import { ExtractCodecTypes } from "@prisma/orm-family-sql/relational-core/ast";
|
|
5
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codec-types-
|
|
5
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codec-types-cWQQVtK1.d.mts
|
|
6
6
|
//#region src/exports/codec-types.d.ts
|
|
7
7
|
declare const codecDescriptorMap: {
|
|
8
8
|
readonly char: AdaptedSqliteCodecDescriptor<import("@prisma/orm-family-sql/relational-core/ast").SqlCharDescriptor>;
|
|
@@ -17,9 +17,10 @@ declare const codecDescriptorMap: {
|
|
|
17
17
|
readonly json: SqliteJsonDescriptor;
|
|
18
18
|
readonly bigint: SqliteBigintDescriptor;
|
|
19
19
|
readonly bigintnumber: SqliteBigintNumberDescriptor;
|
|
20
|
+
readonly raw: AdaptedSqliteCodecDescriptor<import("@prisma/orm-family-sql/relational-core/ast").SqlRawDescriptor>;
|
|
20
21
|
};
|
|
21
22
|
type Resolve<T> = { readonly [K in keyof T]: { readonly [P in keyof T[K]]: T[K][P]; }; };
|
|
22
23
|
type CodecTypes = Resolve<ExtractCodecTypes<typeof codecDescriptorMap>>;
|
|
23
24
|
//#endregion
|
|
24
25
|
export { CodecTypes as t };
|
|
25
|
-
//# sourceMappingURL=codec-types-
|
|
26
|
+
//# sourceMappingURL=codec-types-cWQQVtK1-DLZaguM6.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-types-cWQQVtK1-DLZaguM6.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-types-cWQQVtK1.d.mts"],"mappings":";;;;;;cAKc;WACH,MAAM,yEAAyE;WAC/E,SAAS,yEAAyE;WAClF,KAAK,yEAAyE;WAC9E,OAAO,yEAAyE;WAChF,MAAM;WACN,SAAS;WACT,MAAM;WACN,MAAM;WACN,UAAU;WACV,MAAM;WACN,QAAQ;WACR,cAAc;WACd,KAAK,yEAAyE;;KAEpF,QAAQ,iBAAiB,WAAW,gBAAgB,WAAW,EAAE,KAAK,EAAE,GAAG;KAC3E,aAAa,QAAQ,yBAAyB"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-
|
|
1
|
+
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-wgEvkCkg-8bxcCujY.mjs";
|
|
2
2
|
import { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from "./codec-descriptor-CbMiyuVV-CiLsv8hg.mjs";
|
|
3
|
-
import { a as sqliteCharacterVarying, d as sqliteReal, f as sqliteText, l as sqliteInteger, r as sqliteCharacter, s as sqliteDatetime, t as sqliteBlob, u as sqliteJson } from "./data-types-
|
|
3
|
+
import { a as sqliteCharacterVarying, d as sqliteReal, f as sqliteText, l as sqliteInteger, r as sqliteCharacter, s as sqliteDatetime, t as sqliteBlob, u as sqliteJson } from "./data-types-DaqSwd-t-5j7dnRA8.mjs";
|
|
4
4
|
import { n as sqliteError } from "./errors-DnR-sMHS-KkMLIP2U.mjs";
|
|
5
|
-
import { BinaryExpr, CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlVarcharDescriptor } from "@prisma/orm-family-sql/relational-core/ast";
|
|
5
|
+
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
6
|
import { CodecImpl, SAFE_INTEGER_BIGINT_RANGE, column, floatToJson, readJsonFloat, readJsonIntegerText, refuseJsonValue } from "@prisma/orm-framework/components/codec";
|
|
7
7
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
8
|
-
|
|
8
|
+
import { sqlRawDataType } from "@prisma/orm-family-sql/contract/data-type";
|
|
9
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codecs-B8qHPY7E.mjs
|
|
9
10
|
/**
|
|
10
11
|
* Projects the expression unchanged, for codecs whose canonical JSON is what
|
|
11
12
|
* SQLite's own JSON conversion already produces.
|
|
@@ -214,6 +215,25 @@ const sqliteSqlVarcharDescriptor = sqliteCodec(sqlVarcharDescriptor, {
|
|
|
214
215
|
jsonProjection: identityJsonProjection,
|
|
215
216
|
factory: (descriptor, dataType, params) => () => new SqlVarcharCodec(descriptor, dataType, params)
|
|
216
217
|
});
|
|
218
|
+
/**
|
|
219
|
+
* `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.
|
|
220
|
+
*/
|
|
221
|
+
var SqliteSqlRawCodec = class extends SqlRawCodec {
|
|
222
|
+
async fromWire(wire, _ctx) {
|
|
223
|
+
if (!Array.isArray(wire)) return wire;
|
|
224
|
+
const [hex] = wire.length === 1 ? wire : [];
|
|
225
|
+
if (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: {
|
|
226
|
+
codecId: this.id,
|
|
227
|
+
received: String(wire)
|
|
228
|
+
} });
|
|
229
|
+
return new Uint8Array(Buffer.from(hex, "hex"));
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
const sqliteSqlRawDescriptor = sqliteCodec(sqlRawDescriptor, {
|
|
233
|
+
dataType: sqlRawDataType,
|
|
234
|
+
jsonProjection: hexJsonProjection,
|
|
235
|
+
factory: (descriptor, dataType, params) => () => new SqliteSqlRawCodec(descriptor, dataType, params)
|
|
236
|
+
});
|
|
217
237
|
/** `sql/int@1` as SQLite stores it: its stored form is `sqlite/integer`'s digit text. */
|
|
218
238
|
var SqliteSqlIntCodec = class extends SqlIntCodec {
|
|
219
239
|
async fromWire(wire, _ctx) {
|
|
@@ -556,6 +576,7 @@ const codecDescriptors = defineSqliteCodecs([
|
|
|
556
576
|
sqliteSqlVarcharDescriptor,
|
|
557
577
|
sqliteSqlIntDescriptor,
|
|
558
578
|
sqliteSqlFloatDescriptor,
|
|
579
|
+
sqliteSqlRawDescriptor,
|
|
559
580
|
sqliteTextDescriptor,
|
|
560
581
|
sqliteIntegerDescriptor,
|
|
561
582
|
sqliteRealDescriptor,
|
|
@@ -568,4 +589,4 @@ const codecDescriptors = defineSqliteCodecs([
|
|
|
568
589
|
//#endregion
|
|
569
590
|
export { sqliteBigintNumberColumn as a, sqliteIntegerColumn as c, sqliteTextColumn as d, sqliteBigintColumn as i, sqliteJsonColumn as l, encodeSqliteDatetime as n, sqliteBlobColumn as o, jsonDocumentRetag as r, sqliteDatetimeColumn as s, codecDescriptors as t, sqliteRealColumn as u };
|
|
570
591
|
|
|
571
|
-
//# sourceMappingURL=codecs-
|
|
592
|
+
//# sourceMappingURL=codecs-B8qHPY7E-BkymMUIl.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-B8qHPY7E-BkymMUIl.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codecs-B8qHPY7E.mjs"],"sourcesContent":["import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from \"./codec-ids-wgEvkCkg.mjs\";\nimport { a as sqliteCharacterVarying, d as sqliteReal, f as sqliteText, l as sqliteInteger, r as sqliteCharacter, s as sqliteDatetime, t as sqliteBlob, u as sqliteJson } from \"./data-types-DaqSwd-t.mjs\";\nimport { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from \"./codec-descriptor-CbMiyuVV.mjs\";\nimport { n as sqliteError } from \"./errors-DnR-sMHS.mjs\";\nimport { BinaryExpr, CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlRawCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlRawDescriptor, sqlVarcharDescriptor } from \"@internal/sql-relational-core/ast\";\nimport { sqlRawDataType } from \"@internal/sql-contract/data-type\";\nimport { CodecImpl, SAFE_INTEGER_BIGINT_RANGE, column, floatToJson, readJsonFloat, readJsonIntegerText, refuseJsonValue } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\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 decimal text `sqlite/bigintnumber@1` carries, whose application type is `number`, as a number literal. */\nconst decimalTextNumberLiteral = (value) => typeof value === \"string\" && DECIMAL_INTEGER.test(value) ? value : void 0;\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\tjsonProjection: unpaddedCharJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlCharCodec(descriptor, dataType, params)\n});\nconst sqliteSqlVarcharDescriptor = sqliteCodec(sqlVarcharDescriptor, {\n\tdataType: sqliteCharacterVarying,\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\tjsonProjection: decimalTextJsonProjection,\n\tfactory: (descriptor, dataType) => () => new SqliteSqlIntCodec(descriptor, dataType)\n});\nconst sqliteSqlFloatDescriptor = sqliteCodec(sqlFloatDescriptor, {\n\tdataType: sqliteReal,\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\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\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\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\tconst date = new Date(typeof value === \"number\" ? value : asUtcWhenUnmarked(value));\n\tif (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: {\n\t\tcodecId: SQLITE_DATETIME_CODEC_ID,\n\t\treceived: String(value)\n\t} });\n\treturn date;\n}\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/** The text SQLite holds for an instant: what the codec writes for every row, and for a default. */\nfunction encodeSqliteDatetime(value) {\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(input.toISOString());\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\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\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\tsqliteJsonDescriptor,\n\tsqliteBigintDescriptor,\n\tsqliteBigintNumberDescriptor\n]);\n//#endregion\nexport { sqliteBigintNumberColumn as a, sqliteIntegerColumn as c, sqliteTextColumn as d, sqliteBigintColumn as i, sqliteJsonColumn as l, encodeSqliteDatetime as n, sqliteBlobColumn as o, jsonDocumentRetag as r, sqliteDatetimeColumn as s, codecDescriptors as t, sqliteRealColumn as u };\n\n//# sourceMappingURL=codecs-B8qHPY7E.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,MAAM,0BAA0B,eAAe;;;;;;;;;AAS/C,MAAM,6B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zF;AACD;AACA,IAAI,+BAA+B,cAAc,sBAAsB;CACtE,eAAe,YAAY;EAC1B,OAAO,0BAA0B,UAAU;CAC5C;CACA,WAAW,cAAc;CACzB,UAAU;CACV,SAAS;EACR;EACA;EACA;CACD;CACA,eAAe,KAAK;CACpB,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;AACD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as SqliteCodecDescriptorRegistry, n as AnySqliteCodecDescriptor, r as SqliteCodecDescriptor } from "./codec-descriptor-DT3GA29e-D9jjnVIM.mjs";
|
|
2
|
-
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-
|
|
2
|
+
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-DuJYssXV-BW3y5jTO.mjs";
|
|
3
3
|
import { ProjectionExpr } 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 { CodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/query-lane-context";
|
|
8
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codecs-
|
|
8
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codecs-Czl6o-9D.d.mts
|
|
9
9
|
//#region src/core/codec-helpers.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* 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.
|
|
@@ -209,4 +209,4 @@ declare const sqliteCodecRegistry: CodecDescriptorRegistry;
|
|
|
209
209
|
declare const sqliteCodecDescriptorRegistry: SqliteCodecDescriptorRegistry;
|
|
210
210
|
//#endregion
|
|
211
211
|
export { sqliteJsonColumn as C, sqliteIntegerColumn as S, sqliteTextColumn as T, sqliteBigintNumberColumn as _, SqliteBlobDescriptor as a, sqliteCodecRegistry as b, SqliteIntegerDescriptor as c, SqliteTextDescriptor as d, assembleSqliteCodecRegistry as f, sqliteBigintColumn as g, jsonDocumentRetag as h, SqliteBigintNumberDescriptor as i, SqliteJsonDescriptor as l, createSqliteCodecRegistryWithBuiltins as m, SQLITE_NOW_EXPRESSION as n, SqliteCodecRegistry as o, createSqliteBuiltinCodecLookup as p, SqliteBigintDescriptor as r, SqliteDatetimeDescriptor as s, JsonValue$1 as t, SqliteRealDescriptor as u, sqliteBlobColumn as v, sqliteRealColumn as w, sqliteDatetimeColumn as x, sqliteCodecDescriptorRegistry as y };
|
|
212
|
-
//# sourceMappingURL=codecs-
|
|
212
|
+
//# sourceMappingURL=codecs-Czl6o-9D-D8z124aj.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codecs-
|
|
1
|
+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;;cAEpB,qCAAqC;YACvC,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;EACT,mBAAmB,OAAO;EAC1B,YAAY,KAAK,yBAAyB;;cAE9B,+EAA+E,WAAW;;;;cAI1F;;;;;;;;cAQA,qBAAqB;cACrB,+BAA+B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as buildSqliteCodecDescriptorRegistry } from "./codec-descriptor-CbMiyuVV-CiLsv8hg.mjs";
|
|
2
|
-
import { t as codecDescriptors } from "./codecs-
|
|
2
|
+
import { t as codecDescriptors } from "./codecs-B8qHPY7E-BkymMUIl.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/3-targets/sqlite/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-D0Y2Iav-.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codecs-
|
|
1
|
+
{"version":3,"file":"codecs-D0Y2Iav-.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codecs.mjs"],"sourcesContent":["import { n as buildSqliteCodecDescriptorRegistry } from \"./codec-descriptor-CbMiyuVV.mjs\";\nimport { a as sqliteBigintNumberColumn, c as sqliteIntegerColumn, d as sqliteTextColumn, i as sqliteBigintColumn, l as sqliteJsonColumn, o as sqliteBlobColumn, r as jsonDocumentRetag, s as sqliteDatetimeColumn, t as codecDescriptors, u as sqliteRealColumn } from \"./codecs-B8qHPY7E.mjs\";\nimport { n as SQLITE_NOW_EXPRESSION } from \"./datetime-text-Bniwehv-.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, sqliteDatetimeColumn, sqliteIntegerColumn, sqliteJsonColumn, sqliteRealColumn, sqliteTextColumn };\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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./codecs-Czl6o-9D-D8z124aj.mjs";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { f as SQL_RAW_CODEC_ID } from "./codec-ids-DuJYssXV-BW3y5jTO.mjs";
|
|
2
|
+
import "./codec-ids-Dyi0HKJw.mjs";
|
|
3
|
+
import { ColumnTypeDescriptor } from "@prisma/orm-framework/components/codec";
|
|
4
|
+
//#region ../../../3-targets/6-adapters/sqlite/dist/column-types.d.mts
|
|
5
|
+
//#region src/core/column-types.d.ts
|
|
6
|
+
declare const textColumn: {
|
|
7
|
+
readonly codecId: "sqlite/text@1";
|
|
8
|
+
};
|
|
9
|
+
declare const integerColumn: {
|
|
10
|
+
readonly codecId: "sqlite/integer@1";
|
|
11
|
+
};
|
|
12
|
+
declare const realColumn: {
|
|
13
|
+
readonly codecId: "sqlite/real@1";
|
|
14
|
+
};
|
|
15
|
+
declare const blobColumn: {
|
|
16
|
+
readonly codecId: "sqlite/blob@1";
|
|
17
|
+
};
|
|
18
|
+
declare const datetimeColumn: {
|
|
19
|
+
readonly codecId: "sqlite/datetime@1";
|
|
20
|
+
};
|
|
21
|
+
declare const jsonColumn: {
|
|
22
|
+
readonly codecId: "sqlite/json@1";
|
|
23
|
+
};
|
|
24
|
+
declare const bigintColumn: {
|
|
25
|
+
readonly codecId: "sqlite/bigint@1";
|
|
26
|
+
};
|
|
27
|
+
/** A column of a type no other column type covers, named exactly as the database catalog prints it, such as `rawColumn('tsvector')` (ADR 273). Its values are typed `unknown`. */
|
|
28
|
+
declare function rawColumn<const Sql extends string>(sql: Sql): ColumnTypeDescriptor<typeof SQL_RAW_CODEC_ID> & {
|
|
29
|
+
readonly typeParams: {
|
|
30
|
+
readonly sql: Sql;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
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 };
|
|
35
|
+
//# sourceMappingURL=column-types-CpUb8mVS.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-types-CpUb8mVS.d.mts","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/column-types.d.mts"],"mappings":";;;;;cAGc;WACH;;cAEG;WACH;;cAEG;WACH;;cAEG;WACH;;cAEG;WACH;;cAEG;WACH;;cAEG;WACH;;;iBAGM,gBAAgB,oBAAoB,KAAK,MAAM,4BAA4B;WACjF;aACE,KAAK"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, f as SQL_RAW_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-wgEvkCkg-8bxcCujY.mjs";
|
|
2
|
+
//#region ../../../3-targets/6-adapters/sqlite/dist/column-types.mjs
|
|
3
|
+
const textColumn = { codecId: SQLITE_TEXT_CODEC_ID };
|
|
4
|
+
const integerColumn = { codecId: SQLITE_INTEGER_CODEC_ID };
|
|
5
|
+
const realColumn = { codecId: SQLITE_REAL_CODEC_ID };
|
|
6
|
+
const blobColumn = { codecId: SQLITE_BLOB_CODEC_ID };
|
|
7
|
+
const datetimeColumn = { codecId: SQLITE_DATETIME_CODEC_ID };
|
|
8
|
+
const jsonColumn = { codecId: SQLITE_JSON_CODEC_ID };
|
|
9
|
+
const bigintColumn = { codecId: SQLITE_BIGINT_CODEC_ID };
|
|
10
|
+
/** A column of a type no other column type covers, named exactly as the database catalog prints it, such as `rawColumn('tsvector')` (ADR 273). Its values are typed `unknown`. */
|
|
11
|
+
function rawColumn(sql) {
|
|
12
|
+
return {
|
|
13
|
+
codecId: SQL_RAW_CODEC_ID,
|
|
14
|
+
typeParams: { sql }
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
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 };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=column-types-hoCqFPl9.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-types-hoCqFPl9.mjs","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/column-types.mjs"],"sourcesContent":["import { SQLITE_BIGINT_CODEC_ID, SQLITE_BLOB_CODEC_ID, SQLITE_DATETIME_CODEC_ID, SQLITE_INTEGER_CODEC_ID, SQLITE_JSON_CODEC_ID, SQLITE_REAL_CODEC_ID, SQLITE_TEXT_CODEC_ID, SQL_RAW_CODEC_ID } from \"@internal/target-sqlite/codec-ids\";\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('tsvector')` (ADR 273). Its values are typed `unknown`. */\nfunction rawColumn(sql) {\n\treturn {\n\t\tcodecId: SQL_RAW_CODEC_ID,\n\t\ttypeParams: { sql }\n\t};\n}\n//#endregion\nexport { bigintColumn, blobColumn, datetimeColumn, integerColumn, jsonColumn, rawColumn, realColumn, textColumn };\n\n//# sourceMappingURL=column-types.mjs.map"],"mappings":";;AAEA,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,KAAK;CACvB,OAAO;EACN,SAAS;EACT,YAAY,EAAE,IAAI;CACnB;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as sqliteAggregateDescriptors } from "./aggregates-
|
|
1
|
+
import { t as sqliteAggregateDescriptors } from "./aggregates-exfiPSHR.mjs";
|
|
2
2
|
//#region ../../../3-targets/6-adapters/sqlite/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-C7LvZMgG.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-contributions-wweWdXMK-
|
|
1
|
+
{"version":3,"file":"contract-contributions-wweWdXMK-C7LvZMgG.mjs","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/contract-contributions-wweWdXMK.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\treturning: true,\n\tforeignKeys: true,\n\tenums: false,\n\tinsertOnConflictSkip: true,\n\tinsertOnConflictWithoutTarget: 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-wweWdXMK.mjs.map"],"mappings":";;AAEA,MAAM,4BAA4B,OAAO,OAAO,EAAE,KAAK;CACtD,SAAS;CACT,OAAO;CACP,SAAS;CACT,SAAS;CACT,WAAW;CACX,aAAa;CACb,OAAO;CACP,sBAAsB;CACtB,+BAA+B;AAChC,EAAE,CAAC;;;;AAMH,MAAM,qCAAqC;CAC1C,cAAc;CACd,OAAO,EAAE,sBAAsB,2BAA2B;AAC3D"}
|