@prisma/orm-target-sqlite 8.0.0-rc.24-dev.27 → 8.0.0-rc.24-dev.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-B8OOrks4-CpmcF003.mjs → adapter-B8OOrks4-BKzW_Yc4.mjs} +9 -9
- package/dist/{adapter-B8OOrks4-CpmcF003.mjs.map → adapter-B8OOrks4-BKzW_Yc4.mjs.map} +1 -1
- package/dist/{adapter-NFsNVlif.d.mts → adapter-DrTWv8F7.d.mts} +5 -5
- package/dist/{adapter-NFsNVlif.d.mts.map → adapter-DrTWv8F7.d.mts.map} +1 -1
- package/dist/{adapter-xFPDhkod-DB6XDGgl.d.mts → adapter-xFPDhkod-Bfb8AQQJ.d.mts} +3 -3
- package/dist/{adapter-xFPDhkod-DB6XDGgl.d.mts.map → adapter-xFPDhkod-Bfb8AQQJ.d.mts.map} +1 -1
- package/dist/adapter.d.mts +11 -11
- package/dist/adapter.mjs +7 -7
- package/dist/adapter__adapter.d.mts +2 -2
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__codec-types.d.mts +3 -3
- package/dist/adapter__column-types.d.mts +2 -2
- package/dist/adapter__column-types.mjs +2 -2
- package/dist/adapter__control.d.mts +2 -2
- package/dist/adapter__control.mjs +5 -5
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +4 -4
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/adapter__sql-renderer.d.mts +2 -2
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/adapter__types.d.mts +2 -2
- package/dist/{aggregates--0FaH9Te.d.mts → aggregates-CA7Idm1d.d.mts} +4 -4
- package/dist/{aggregates--0FaH9Te.d.mts.map → aggregates-CA7Idm1d.d.mts.map} +1 -1
- package/dist/{aggregates-DMvLJFlR.mjs → aggregates-hLiHPHBG.mjs} +6 -7
- package/dist/aggregates-hLiHPHBG.mjs.map +1 -0
- package/dist/{codec-ids-BElbEYb_-CeWfv5bC.d.mts → codec-ids-CH8Nqk89-LNT9hksu.d.mts} +5 -3
- package/dist/codec-ids-CH8Nqk89-LNT9hksu.d.mts.map +1 -0
- package/dist/{codec-ids-BHBFCNsQ-C1Af_LGF.mjs → codec-ids-CTshXpbg-tcdbf_VC.mjs} +5 -3
- package/dist/codec-ids-CTshXpbg-tcdbf_VC.mjs.map +1 -0
- package/dist/codec-ids-Do7Ml2pg.d.mts +1 -0
- package/dist/codec-types-CBLOfyrr.d.mts +2 -0
- package/dist/codec-types-CcuzuROC.d.mts +1 -0
- package/dist/{codec-types-CGtSWeZ5-B5RH39BA.d.mts → codec-types-Ci-h2uxN-41PNpdNL.d.mts} +5 -3
- package/dist/codec-types-Ci-h2uxN-41PNpdNL.d.mts.map +1 -0
- package/dist/{codecs-izBhU4f1-uArTiOxL.mjs → codecs-CE5McdzP-CZ5F4Trz.mjs} +243 -116
- package/dist/codecs-CE5McdzP-CZ5F4Trz.mjs.map +1 -0
- package/dist/{codecs-A0DbaZRE-CMyLhO_K.d.mts → codecs-DBQsDiM--Cy-r45H3.d.mts} +58 -28
- package/dist/codecs-DBQsDiM--Cy-r45H3.d.mts.map +1 -0
- package/dist/codecs-Dou3fR1K.d.mts +1 -0
- package/dist/{codecs-B-paWXdt.mjs → codecs-EhvrdV8v.mjs} +2 -2
- package/dist/codecs-EhvrdV8v.mjs.map +1 -0
- package/dist/{column-types-bTPNfz46.d.mts → column-types-D3MMpY3X.d.mts} +13 -7
- package/dist/column-types-D3MMpY3X.d.mts.map +1 -0
- package/dist/column-types-D_PjRS6w.mjs +24 -0
- package/dist/column-types-D_PjRS6w.mjs.map +1 -0
- package/dist/{contract-contributions-CyHMdkva-2bg6kg_n.mjs → contract-contributions-CyHMdkva-BE5-kJj3.mjs} +2 -2
- package/dist/{contract-contributions-CyHMdkva-2bg6kg_n.mjs.map → contract-contributions-CyHMdkva-BE5-kJj3.mjs.map} +1 -1
- package/dist/{contract-free-DVGNrjWW.mjs → contract-free-CJlg0xGJ.mjs} +4 -4
- package/dist/{contract-free-DVGNrjWW.mjs.map → contract-free-CJlg0xGJ.mjs.map} +1 -1
- package/dist/{control-DGa_C2q6.d.mts → control-CtCvtwJx.d.mts} +183 -17
- package/dist/control-CtCvtwJx.d.mts.map +1 -0
- package/dist/{control-Dp-pU81N.d.mts → control-DfWteXy-.d.mts} +3 -3
- package/dist/{control-Dp-pU81N.d.mts.map → control-DfWteXy-.d.mts.map} +1 -1
- package/dist/{control-BvT30n3D.mjs → control-V3kPfMTR.mjs} +4 -3
- package/dist/control-V3kPfMTR.mjs.map +1 -0
- package/dist/{data-type-entries-B6YmbQDH-RnV5wVv8.mjs → data-type-entries-C0WkKiPF-CKPYj4OT.mjs} +20 -3
- package/dist/data-type-entries-C0WkKiPF-CKPYj4OT.mjs.map +1 -0
- package/dist/{data-types-CwpMoNK4.d.mts → data-types-C1nzwKt7.d.mts} +10 -2
- package/dist/{data-types-CwpMoNK4.d.mts.map → data-types-C1nzwKt7.d.mts.map} +1 -1
- package/dist/{data-types-fYwGTal5-BxuZD5EE.mjs → data-types-C_NKe4Ni-D7r8QkSb.mjs} +32 -4
- package/dist/data-types-C_NKe4Ni-D7r8QkSb.mjs.map +1 -0
- package/dist/{date-time-now-generators-BVQSg28x-DwhOJw5-.mjs → date-time-now-generators-DtRz9c2R-BkrBeLl2.mjs} +4 -4
- package/dist/{date-time-now-generators-BVQSg28x-DwhOJw5-.mjs.map → date-time-now-generators-DtRz9c2R-BkrBeLl2.mjs.map} +1 -1
- package/dist/{datetime-text-BogpvE70-VwTG2rUc.mjs → datetime-text-nkVy_w0q-DZnIEmgr.mjs} +3 -3
- package/dist/{datetime-text-BogpvE70-VwTG2rUc.mjs.map → datetime-text-nkVy_w0q-DZnIEmgr.mjs.map} +1 -1
- package/dist/{ddl-BvD-wVtg-BoEWa8CG.mjs → ddl-CgkyurGo-B2o4mSIT.mjs} +3 -3
- package/dist/{ddl-BvD-wVtg-BoEWa8CG.mjs.map → ddl-CgkyurGo-B2o4mSIT.mjs.map} +1 -1
- package/dist/{default-normalizer-BcGrp77x-CMWxtX1W.mjs → default-normalizer-Xsys5QJm-bPQiHGKp.mjs} +3 -3
- package/dist/{default-normalizer-BcGrp77x-CMWxtX1W.mjs.map → default-normalizer-Xsys5QJm-bPQiHGKp.mjs.map} +1 -1
- package/dist/{descriptor-meta-C2RNdGqi-BzR_I68E.mjs → descriptor-meta-BUMTRa-0-D2bfF0Yr.mjs} +5 -5
- package/dist/descriptor-meta-BUMTRa-0-D2bfF0Yr.mjs.map +1 -0
- package/dist/{descriptor-meta-Drr6Abaf-P67SenMd.mjs → descriptor-meta-CkiPlqDS-n3hDP01X.mjs} +23 -3
- package/dist/descriptor-meta-CkiPlqDS-n3hDP01X.mjs.map +1 -0
- package/dist/{descriptor-meta-CEjGA0WH-CxgiKj3V.mjs → descriptor-meta-uVTby90Y-CUfrzHVW.mjs} +152 -47
- package/dist/descriptor-meta-uVTby90Y-CUfrzHVW.mjs.map +1 -0
- package/dist/driver.mjs +1 -1
- package/dist/driver__control.mjs +1 -1
- package/dist/driver__runtime.mjs +9 -6
- package/dist/driver__runtime.mjs.map +1 -1
- package/dist/{errors-D9vZNPSI-DoNmdfv7.mjs → errors-DxbvEzQp-CeTjoGtL.mjs} +44 -3
- package/dist/errors-DxbvEzQp-CeTjoGtL.mjs.map +1 -0
- package/dist/{migration-C6RAZsCK.mjs → migration-BZoV6EvH.mjs} +2 -2
- package/dist/{migration-C6RAZsCK.mjs.map → migration-BZoV6EvH.mjs.map} +1 -1
- package/dist/{op-factory-call-B3oOyB-T-Bhg17pAj.mjs → op-factory-call-2IWWs4es-CajfeAMX.mjs} +19 -19
- package/dist/op-factory-call-2IWWs4es-CajfeAMX.mjs.map +1 -0
- package/dist/{pack-SIFhCnmk.d.mts → pack-BG5STIN9.d.mts} +183 -24
- package/dist/{pack-SIFhCnmk.d.mts.map → pack-BG5STIN9.d.mts.map} +1 -1
- package/dist/{planner-ccevdpwf.d.mts → planner-Bu5XBkHm.d.mts} +2 -2
- package/dist/{planner-ccevdpwf.d.mts.map → planner-Bu5XBkHm.d.mts.map} +1 -1
- package/dist/{planner-COl0BmJ_-SJuP-72Y.mjs → planner-gq4m2U9I-BBwAFGko.mjs} +8 -9
- package/dist/planner-gq4m2U9I-BBwAFGko.mjs.map +1 -0
- package/dist/{planner-produced-sqlite-migration-CE1q5Uqq-9kjqMR-1.mjs → planner-produced-sqlite-migration-BnKx1gAX-BZMX06Q-.mjs} +13 -23
- package/dist/planner-produced-sqlite-migration-BnKx1gAX-BZMX06Q-.mjs.map +1 -0
- package/dist/{planner-produced-sqlite-migration-BHH_ftCV-CndNmTrH.d.mts → planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.d.mts} +3 -4
- package/dist/planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.d.mts.map +1 -0
- package/dist/planner-produced-sqlite-migration-DtytlAAY.d.mts +1 -0
- package/dist/{render-ops-B2EHnXIQ-AspapEkF.mjs → render-ops-BdrBMvjY-CyVOYy9i.mjs} +4 -4
- package/dist/{render-ops-B2EHnXIQ-AspapEkF.mjs.map → render-ops-BdrBMvjY-CyVOYy9i.mjs.map} +1 -1
- package/dist/{require-temporal-qbyZfPgl-DGJhYwmE.mjs → require-temporal-CHWqSDF3-ElFTiAh6.mjs} +3 -3
- package/dist/{require-temporal-qbyZfPgl-DGJhYwmE.mjs.map → require-temporal-CHWqSDF3-ElFTiAh6.mjs.map} +1 -1
- package/dist/{runtime-H_OgXoaz.d.mts → runtime-CVBk_GlD.d.mts} +2 -2
- package/dist/{runtime-H_OgXoaz.d.mts.map → runtime-CVBk_GlD.d.mts.map} +1 -1
- package/dist/{runtime-DTjhSsHd.mjs → runtime-DQll1Swl.mjs} +2 -2
- package/dist/{runtime-DTjhSsHd.mjs.map → runtime-DQll1Swl.mjs.map} +1 -1
- package/dist/sql-renderer-DlZKtvVf.d.mts +1 -0
- package/dist/{sql-utils-C9blmi9x-B90QedVA.mjs → sql-utils-CHBxMmv--Dl7wl7n3.mjs} +3 -3
- package/dist/{sql-utils-C9blmi9x-B90QedVA.mjs.map → sql-utils-CHBxMmv--Dl7wl7n3.mjs.map} +1 -1
- package/dist/{sqlite-contract-view-B0oBTJQ0-DGNLlkLM.mjs → sqlite-contract-view-6qHjyMcG-BHZ8iO5v.mjs} +4 -4
- package/dist/{sqlite-contract-view-B0oBTJQ0-DGNLlkLM.mjs.map → sqlite-contract-view-6qHjyMcG-BHZ8iO5v.mjs.map} +1 -1
- package/dist/{sqlite-migration-DvNpo879-DcOagmQ1.mjs → sqlite-migration-1OBxvebH-BNjpjOW4.mjs} +13 -10
- package/dist/sqlite-migration-1OBxvebH-BNjpjOW4.mjs.map +1 -0
- package/dist/{sqlite-unbound-database-Df3Wf5ZA-B1QemRgb.mjs → sqlite-unbound-database-CfLXSiVo-Dy5VBXGz.mjs} +4 -4
- package/dist/{sqlite-unbound-database-Df3Wf5ZA-B1QemRgb.mjs.map → sqlite-unbound-database-CfLXSiVo-Dy5VBXGz.mjs.map} +1 -1
- package/dist/target.d.mts +14 -14
- package/dist/target.mjs +23 -23
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__aggregates.mjs +1 -1
- package/dist/target__codec-ids.d.mts +3 -3
- package/dist/target__codec-ids.mjs +2 -2
- package/dist/target__codec-types.d.mts +3 -3
- package/dist/target__codecs.d.mts +3 -3
- package/dist/target__codecs.mjs +4 -4
- package/dist/target__contract-free.mjs +2 -2
- package/dist/target__control.d.mts +1 -1
- package/dist/target__control.mjs +8 -7
- package/dist/target__control.mjs.map +1 -1
- package/dist/target__data-types.d.mts +2 -2
- package/dist/target__data-types.mjs +3 -3
- package/dist/target__default-normalizer.mjs +1 -1
- package/dist/target__migration.mjs +2 -2
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__pack.d.mts +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-produced-sqlite-migration.d.mts +2 -2
- package/dist/target__planner-produced-sqlite-migration.mjs +1 -1
- package/dist/target__planner.d.mts +1 -1
- package/dist/target__planner.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.mjs +3 -3
- package/dist/target__sql-utils.mjs +1 -1
- package/dist/target__types.mjs +1 -1
- package/dist/{types-28E593y9.d.mts → types-CexPOm8x.d.mts} +1 -1
- package/package.json +10 -10
- package/dist/aggregates-DMvLJFlR.mjs.map +0 -1
- package/dist/codec-ids-9Fs9p6ST.d.mts +0 -1
- package/dist/codec-ids-BElbEYb_-CeWfv5bC.d.mts.map +0 -1
- package/dist/codec-ids-BHBFCNsQ-C1Af_LGF.mjs.map +0 -1
- package/dist/codec-types-CGtSWeZ5-B5RH39BA.d.mts.map +0 -1
- package/dist/codec-types-Dx9dQe-Y.d.mts +0 -1
- package/dist/codec-types-IproBv-Q.d.mts +0 -2
- package/dist/codecs-A0DbaZRE-CMyLhO_K.d.mts.map +0 -1
- package/dist/codecs-B-paWXdt.mjs.map +0 -1
- package/dist/codecs-CX5BZUdO.d.mts +0 -1
- package/dist/codecs-izBhU4f1-uArTiOxL.mjs.map +0 -1
- package/dist/column-types-bTPNfz46.d.mts.map +0 -1
- package/dist/column-types-toYbR7mn.mjs +0 -22
- package/dist/column-types-toYbR7mn.mjs.map +0 -1
- package/dist/control-BvT30n3D.mjs.map +0 -1
- package/dist/control-DGa_C2q6.d.mts.map +0 -1
- package/dist/data-type-entries-B6YmbQDH-RnV5wVv8.mjs.map +0 -1
- package/dist/data-types-fYwGTal5-BxuZD5EE.mjs.map +0 -1
- package/dist/descriptor-meta-C2RNdGqi-BzR_I68E.mjs.map +0 -1
- package/dist/descriptor-meta-CEjGA0WH-CxgiKj3V.mjs.map +0 -1
- package/dist/descriptor-meta-Drr6Abaf-P67SenMd.mjs.map +0 -1
- package/dist/errors-D9vZNPSI-DoNmdfv7.mjs.map +0 -1
- package/dist/op-factory-call-B3oOyB-T-Bhg17pAj.mjs.map +0 -1
- package/dist/planner-COl0BmJ_-SJuP-72Y.mjs.map +0 -1
- package/dist/planner-produced-sqlite-migration-BHH_ftCV-CndNmTrH.d.mts.map +0 -1
- package/dist/planner-produced-sqlite-migration-CE1q5Uqq-9kjqMR-1.mjs.map +0 -1
- package/dist/planner-produced-sqlite-migration-_n61WaiD.d.mts +0 -1
- package/dist/sql-renderer-_NdIrQuX.d.mts +0 -1
- package/dist/sqlite-migration-DvNpo879-DcOagmQ1.mjs.map +0 -1
|
@@ -1,10 +1,51 @@
|
|
|
1
1
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
2
2
|
import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
3
3
|
import { CliStructuredError } from "@prisma/orm-framework/errors/control";
|
|
4
|
-
//#region ../../../3-targets/sqlite/1-target/dist/errors-
|
|
4
|
+
//#region ../../../3-targets/sqlite/1-target/dist/errors-DxbvEzQp.mjs
|
|
5
5
|
function sqliteError(code, message, options) {
|
|
6
6
|
return structuredError(code, message, options);
|
|
7
7
|
}
|
|
8
|
+
const SHOWN_CHARACTERS = 100;
|
|
9
|
+
/** The bytes an error shows, which their hex text cut to 100 characters holds. */
|
|
10
|
+
const SHOWN_BYTES = SHOWN_CHARACTERS / 2;
|
|
11
|
+
/** A stored value's text as an error shows it: the first 100 characters, followed by `...` when the value is longer. */
|
|
12
|
+
const shownText = ({ text, longer }) => longer || text.length > SHOWN_CHARACTERS ? `${text.slice(0, SHOWN_CHARACTERS)}...` : text;
|
|
13
|
+
/** The hex text of the bytes an error shows, from the row's `Uint8Array` or from the array of their hex text an include carries. */
|
|
14
|
+
function blobHexText(value) {
|
|
15
|
+
if (value instanceof Uint8Array) {
|
|
16
|
+
const shownBytes = value.subarray(0, SHOWN_BYTES);
|
|
17
|
+
return {
|
|
18
|
+
text: Buffer.from(shownBytes.buffer, shownBytes.byteOffset, shownBytes.byteLength).toString("hex").toUpperCase(),
|
|
19
|
+
longer: value.byteLength > SHOWN_BYTES
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
if (!Array.isArray(value) || value.length !== 1) return void 0;
|
|
23
|
+
const [hex] = value;
|
|
24
|
+
return typeof hex === "string" ? {
|
|
25
|
+
text: hex,
|
|
26
|
+
longer: false
|
|
27
|
+
} : void 0;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A stored value a codec cannot read, named by its column where the read knows it, as in `Column "account"."active" holds 2, which is not 0 or 1. sqlite/boolean@1 reads 0 as false and 1 as true.`
|
|
31
|
+
*/
|
|
32
|
+
function errorColumnUnreadable(options) {
|
|
33
|
+
const { codecId, received, column, notA, reads } = options;
|
|
34
|
+
const hex = blobHexText(received);
|
|
35
|
+
const receivedText = hex !== void 0 ? `x'${shownText(hex)}'` : shownText({
|
|
36
|
+
text: String(received),
|
|
37
|
+
longer: false
|
|
38
|
+
});
|
|
39
|
+
const shownReceived = hex !== void 0 ? `bytes ${receivedText}` : typeof received === "string" ? JSON.stringify(receivedText) : receivedText;
|
|
40
|
+
return sqliteError("RUNTIME.DECODE_FAILED", `${column === void 0 ? `A ${codecId} value is ${shownReceived}` : `Column "${column.table}"."${column.name}" holds ${shownReceived}`}, which is not ${notA}. ${codecId} reads ${reads}.`, { meta: {
|
|
41
|
+
codecId,
|
|
42
|
+
...column === void 0 ? {} : {
|
|
43
|
+
table: column.table,
|
|
44
|
+
column: column.name
|
|
45
|
+
},
|
|
46
|
+
received: receivedText
|
|
47
|
+
} });
|
|
48
|
+
}
|
|
8
49
|
/**
|
|
9
50
|
* A `SqliteMigration` operation that needs the materialized control adapter
|
|
10
51
|
* — named by `operation` (e.g. `createTable`, `dropColumn`, `recreateTable`) —
|
|
@@ -100,6 +141,6 @@ function errorDateTimeUnwritable(options) {
|
|
|
100
141
|
});
|
|
101
142
|
}
|
|
102
143
|
//#endregion
|
|
103
|
-
export {
|
|
144
|
+
export { errorTemporalNonIsoCalendar as a, errorTemporalWrongType as c, errorSqliteMigrationStackMissing as i, sqliteError as l, errorDateTimeUnreadable as n, errorTemporalUnavailable as o, errorDateTimeUnwritable as r, errorTemporalUnavailableForDefault as s, errorColumnUnreadable as t };
|
|
104
145
|
|
|
105
|
-
//# sourceMappingURL=errors-
|
|
146
|
+
//# sourceMappingURL=errors-DxbvEzQp-CeTjoGtL.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors-DxbvEzQp-CeTjoGtL.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/errors-DxbvEzQp.mjs"],"sourcesContent":["import { ifDefined } from \"@internal/utils/defined\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { CliStructuredError } from \"@internal/errors/control\";\n//#region src/core/errors.ts\nfunction sqliteError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\nconst SHOWN_CHARACTERS = 100;\n/** The bytes an error shows, which their hex text cut to 100 characters holds. */\nconst SHOWN_BYTES = SHOWN_CHARACTERS / 2;\n/** A stored value's text as an error shows it: the first 100 characters, followed by `...` when the value is longer. */\nconst shownText = ({ text, longer }) => longer || text.length > SHOWN_CHARACTERS ? `${text.slice(0, SHOWN_CHARACTERS)}...` : text;\n/** The hex text of the bytes an error shows, from the row's `Uint8Array` or from the array of their hex text an include carries. */\nfunction blobHexText(value) {\n\tif (value instanceof Uint8Array) {\n\t\tconst shownBytes = value.subarray(0, SHOWN_BYTES);\n\t\treturn {\n\t\t\ttext: Buffer.from(shownBytes.buffer, shownBytes.byteOffset, shownBytes.byteLength).toString(\"hex\").toUpperCase(),\n\t\t\tlonger: value.byteLength > SHOWN_BYTES\n\t\t};\n\t}\n\tif (!Array.isArray(value) || value.length !== 1) return void 0;\n\tconst [hex] = value;\n\treturn typeof hex === \"string\" ? {\n\t\ttext: hex,\n\t\tlonger: false\n\t} : void 0;\n}\n/**\n* A stored value a codec cannot read, named by its column where the read knows it, as in `Column \"account\".\"active\" holds 2, which is not 0 or 1. sqlite/boolean@1 reads 0 as false and 1 as true.`\n*/\nfunction errorColumnUnreadable(options) {\n\tconst { codecId, received, column, notA, reads } = options;\n\tconst hex = blobHexText(received);\n\tconst receivedText = hex !== void 0 ? `x'${shownText(hex)}'` : shownText({\n\t\ttext: String(received),\n\t\tlonger: false\n\t});\n\tconst shownReceived = hex !== void 0 ? `bytes ${receivedText}` : typeof received === \"string\" ? JSON.stringify(receivedText) : receivedText;\n\treturn sqliteError(\"RUNTIME.DECODE_FAILED\", `${column === void 0 ? `A ${codecId} value is ${shownReceived}` : `Column \"${column.table}\".\"${column.name}\" holds ${shownReceived}`}, which is not ${notA}. ${codecId} reads ${reads}.`, { meta: {\n\t\tcodecId,\n\t\t...column === void 0 ? {} : {\n\t\t\ttable: column.table,\n\t\t\tcolumn: column.name\n\t\t},\n\t\treceived: receivedText\n\t} });\n}\n/**\n* A `SqliteMigration` operation that needs the materialized control adapter\n* — named by `operation` (e.g. `createTable`, `dropColumn`, `recreateTable`) —\n* was invoked, but the migration was constructed without a `ControlStack`.\n* Concrete authoring usage always goes through the migration CLI entrypoint,\n* which assembles a stack from the loaded `prisma.config.ts`; reaching this\n* error means a test fixture or ad-hoc consumer instantiated `SqliteMigration`\n* with the no-arg form (legal for `operations` / `describe` introspection only).\n*\n* The `operation` argument is required so every throw site names the operation\n* that actually failed; a new operation cannot inherit a misattributed message.\n*\n* Distinct from `MIGRATION.UNFILLED_PLACEHOLDER` (placeholder not filled)\n* because the missing input is the stack itself, not the per-operation\n* contract.\n*\n* Lives in `@internal/target-sqlite/errors` rather than the shared\n* framework migration errors module because the failure is target-specific:\n* the contract it talks about (`SqliteMigration`, the SQLite control\n* adapter, the SQLite-target stack) only exists in this package.\n*/\nfunction errorSqliteMigrationStackMissing(operation) {\n\treturn new CliStructuredError(\"MIGRATION.SQLITE_CONTROL_STACK_MISSING\", `SqliteMigration.${operation} requires a control adapter`, {\n\t\twhy: `SqliteMigration.${operation} was invoked on an instance constructed without a ControlStack, so the stored controlAdapter is undefined and the operation cannot lower its DDL node.`,\n\t\tfix: \"Construct the migration via the migration CLI entrypoint (which assembles a ControlStack from the loaded prisma.config.ts), or pass a ControlStack containing a SQLite adapter to the migration constructor in test fixtures.\",\n\t\tmeta: { operation }\n\t});\n}\nconst TEMPORAL_UNAVAILABLE_FIX = \"Run on a runtime with Temporal available, install a Temporal polyfill before creating the client, or write the column as a convenience type at its default, which needs no Temporal: `DateTime` reads a JavaScript `Date`, and `Date`, `Time` and `Duration` read ISO 8601 strings.\";\nfunction errorTemporalUnavailable(codecId, operation) {\n\treturn sqliteError(\"RUNTIME.TEMPORAL_UNAVAILABLE\", `Codec '${codecId}' cannot ${operation} a value because this runtime has no global Temporal implementation.`, {\n\t\twhy: \"Temporal-backed codecs read and write their values through the global Temporal API, which this runtime does not provide.\",\n\t\tfix: TEMPORAL_UNAVAILABLE_FIX,\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\toperation\n\t\t}\n\t});\n}\nfunction errorTemporalUnavailableForDefault(generatorId) {\n\treturn sqliteError(\"RUNTIME.TEMPORAL_UNAVAILABLE\", `Mutation default generator '${generatorId}' cannot produce a value because this runtime has no global Temporal implementation.`, {\n\t\twhy: \"The generator answers a Temporal-backed column, so the value it produces is a Temporal value, which this runtime cannot construct.\",\n\t\tfix: TEMPORAL_UNAVAILABLE_FIX,\n\t\tmeta: { generatorId }\n\t});\n}\nfunction errorTemporalWrongType(codecId, temporalTag, stringType, received) {\n\treturn sqliteError(\"RUNTIME.ENCODE_FAILED\", `Codec '${codecId}' encodes a ${temporalTag}, but received ${received}.`, {\n\t\twhy: \"The codec writes the Temporal value's own ISO 8601 text. A value of another type has no text the column holds.\",\n\t\tfix: `Pass a ${temporalTag}, or author the column with its ${stringType} type to write ISO 8601 text.`,\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\ttemporalTag,\n\t\t\tstringType,\n\t\t\treceived\n\t\t}\n\t});\n}\nfunction errorTemporalNonIsoCalendar(codecId, calendarId) {\n\treturn sqliteError(\"RUNTIME.ENCODE_FAILED\", `Codec '${codecId}' accepts only the iso8601 calendar, but the value carries '${calendarId}'.`, {\n\t\twhy: \"SQLite stores no calendar alongside a date, so a non-ISO calendar would be discarded on write and the value would read back as a different date than the one authored.\",\n\t\tfix: \"Convert the value with .withCalendar(\\\"iso8601\\\") before writing if the ISO projection is what you mean to store.\",\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\tcalendarId\n\t\t}\n\t});\n}\n/** A date or time codec read text from SQLite that is not a value of its type, or that `Temporal` cannot hold. */\nfunction errorDateTimeUnreadable(options) {\n\tconst { codecId, value, detail } = options;\n\treturn sqliteError(\"RUNTIME.DECODE_FAILED\", `Codec '${codecId}' cannot read the value SQLite returned: ${JSON.stringify(value)}. ${detail}`, {\n\t\twhy: \"SQLite stores dates and times as text and checks none of it, so a row written outside Prisma can hold text that is not a value of the column's type.\",\n\t\tfix: \"Rewrite the row in the form the column stores, or read the column with a type that holds its text, such as String.\",\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\tvalue: value.slice(0, 100)\n\t\t},\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\n/** A date or time codec was given a value that names no value its type stores, such as text with a digit below a millisecond. */\nfunction errorDateTimeUnwritable(options) {\n\tconst { codecId, received, detail } = options;\n\treturn sqliteError(\"RUNTIME.ENCODE_FAILED\", `Codec '${codecId}' cannot write ${received}. ${detail}`, {\n\t\twhy: \"SQLite stores dates and times as text in one form for each value, so the column sorts and compares by the text. A value that form cannot hold is refused rather than changed.\",\n\t\tfix: \"Write a value the column holds, as the message shows.\",\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\treceived: received.slice(0, 100)\n\t\t},\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\n//#endregion\nexport { errorTemporalNonIsoCalendar as a, errorTemporalWrongType as c, errorSqliteMigrationStackMissing as i, sqliteError as l, errorDateTimeUnreadable as n, errorTemporalUnavailable as o, errorDateTimeUnwritable as r, errorTemporalUnavailableForDefault as s, errorColumnUnreadable as t };\n\n//# sourceMappingURL=errors-DxbvEzQp.mjs.map"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as buildTargetDetails } from "./planner-target-details-Daaeo8s9-BGAN4JVc.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { j as step } from "./op-factory-call-2IWWs4es-CajfeAMX.mjs";
|
|
3
3
|
import { col as col$1, fn as fn$1, foreignKey, lit as lit$1, primaryKey, unique } from "@prisma/orm-family-sql/relational-core/contract-free";
|
|
4
4
|
import { placeholder } from "@prisma/orm-framework/errors/migration";
|
|
5
5
|
import { MigrationCLI } from "@prisma/orm-toolchain/cli/migration-cli";
|
|
@@ -45,4 +45,4 @@ function rawSql(op) {
|
|
|
45
45
|
//#endregion
|
|
46
46
|
export { foreignKey as a, primaryKey as c, unique as d, fn$1 as i, rawSql as l, col$1 as n, lit$1 as o, dataTransform as r, placeholder as s, MigrationCLI as t, sql as u };
|
|
47
47
|
|
|
48
|
-
//# sourceMappingURL=migration-
|
|
48
|
+
//# sourceMappingURL=migration-BZoV6EvH.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-
|
|
1
|
+
{"version":3,"file":"migration-BZoV6EvH.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/migration.mjs"],"sourcesContent":["import { t as SqliteMigration } from \"./sqlite-migration-1OBxvebH.mjs\";\nimport { A as step } from \"./op-factory-call-2IWWs4es.mjs\";\nimport { t as buildTargetDetails } from \"./planner-target-details-Daaeo8s9.mjs\";\nimport { placeholder } from \"@internal/errors/migration\";\nimport { col, fn, foreignKey, lit, primaryKey, unique } from \"@internal/sql-relational-core/contract-free\";\nimport { MigrationCLI } from \"@internal/cli/migration-cli\";\nimport { sql } from \"@internal/sql-contract/sql-expression\";\n//#region src/core/migrations/operations/data-transform.ts\n/**\n* User-facing `dataTransform` factory for the SQLite migration authoring\n* surface. Invoked directly inside a `migration.ts` file to supply a\n* user-authored SQL statement that runs with operation class `'data'`.\n*\n* Typical use: the planner emits a `DataTransformCall` stub when a NOT NULL\n* tightening requires a backfill. The rendered `migration.ts` exposes the\n* backfill as a `placeholder(\"…\")` slot the user fills in with an\n* `UPDATE … WHERE col IS NULL` statement. The filled-in `dataTransform(...)`\n* invocation returns a runnable operation the runner executes before the\n* subsequent recreate-table op copies data into the tightened schema.\n*/\nfunction dataTransform(opts) {\n\treturn {\n\t\tid: opts.id,\n\t\tlabel: opts.label,\n\t\tsummary: opts.description,\n\t\toperationClass: \"data\",\n\t\ttarget: {\n\t\t\tid: \"sqlite\",\n\t\t\tdetails: buildTargetDetails(\"table\", opts.table)\n\t\t},\n\t\tprecheck: [],\n\t\texecute: [step(opts.description, opts.run())],\n\t\tpostcheck: []\n\t};\n}\n//#endregion\n//#region src/core/migrations/operations/raw.ts\n/**\n* Identity factory for an already-materialized\n* `SqlMigrationPlanOperation<SqlitePlanTargetDetails>`. Mirrors the Postgres\n* `rawSql` factory: the planner uses this to carry ops produced by SQL-family\n* paths (codec lifecycle hooks, raw-SQL escape hatches) alongside structured\n* call IR without reverse-engineering their shape.\n*/\nfunction rawSql(op) {\n\treturn op;\n}\n//#endregion\nexport { SqliteMigration as Migration, MigrationCLI, col, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, sql, unique };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBA,SAAS,cAAc,MAAM;CAC5B,OAAO;EACN,IAAI,KAAK;EACT,OAAO,KAAK;EACZ,SAAS,KAAK;EACd,gBAAgB;EAChB,QAAQ;GACP,IAAI;GACJ,SAAS,mBAAmB,SAAS,KAAK,KAAK;EAChD;EACA,UAAU,CAAC;EACX,SAAS,CAAC,KAAK,KAAK,aAAa,KAAK,IAAI,CAAC,CAAC;EAC5C,WAAW,CAAC;CACb;AACD;;;;;;;;AAUA,SAAS,OAAO,IAAI;CACnB,OAAO;AACR"}
|
package/dist/{op-factory-call-B3oOyB-T-Bhg17pAj.mjs → op-factory-call-2IWWs4es-CajfeAMX.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as tableExistsAst, i as indexExistsAst, n as columnNameTakenAst, o as tableNameTakenAst, r as createTable, t as columnExistsAst } from "./ddl-
|
|
3
|
-
import { n as escapeLiteral, r as quoteIdentifier, t as SQLITE_QUOTING } from "./sql-utils-
|
|
4
|
-
import { r as stripOuterParens } from "./default-normalizer-
|
|
1
|
+
import { l as sqliteError } from "./errors-DxbvEzQp-CeTjoGtL.mjs";
|
|
2
|
+
import { a as tableExistsAst, i as indexExistsAst, n as columnNameTakenAst, o as tableNameTakenAst, r as createTable, t as columnExistsAst } from "./ddl-CgkyurGo-B2o4mSIT.mjs";
|
|
3
|
+
import { n as escapeLiteral, r as quoteIdentifier, t as SQLITE_QUOTING } from "./sql-utils-CHBxMmv--Dl7wl7n3.mjs";
|
|
4
|
+
import { r as stripOuterParens } from "./default-normalizer-Xsys5QJm-bPQiHGKp.mjs";
|
|
5
5
|
import { t as buildTargetDetails } from "./planner-target-details-Daaeo8s9-BGAN4JVc.mjs";
|
|
6
6
|
import { DdlColumn, FunctionColumnDefault, LiteralColumnDefault, opaqueSql } from "@prisma/orm-family-sql/relational-core/ast";
|
|
7
7
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
@@ -17,7 +17,7 @@ import { RelationalSchemaNodeKind, sqlColumnTypesEqual } from "@prisma/orm-famil
|
|
|
17
17
|
import { errorMigrationOperationOptionRemoved, errorUnfilledPlaceholder, unfilledPlaceholderOperation } from "@prisma/orm-framework/errors/migration";
|
|
18
18
|
import { REFERENTIAL_ACTION_SQL } from "@prisma/orm-family-sql/contract/referential-action-sql";
|
|
19
19
|
import { TsExpression, jsonToTsSource, tsArraySource, tsObjectSource, tsQuotedTextSource } from "@prisma/orm-framework/ts-render";
|
|
20
|
-
//#region ../../../3-targets/sqlite/1-target/dist/op-factory-call-
|
|
20
|
+
//#region ../../../3-targets/sqlite/1-target/dist/op-factory-call-2IWWs4es.mjs
|
|
21
21
|
function foldAsciiLetters(identifier) {
|
|
22
22
|
return identifier.replace(/[A-Z]/g, (letter) => letter.toLowerCase());
|
|
23
23
|
}
|
|
@@ -917,7 +917,7 @@ function buildRecreatePostchecks(tableName, issues, spec, copiedColumns = /* @__
|
|
|
917
917
|
}
|
|
918
918
|
return checks;
|
|
919
919
|
}
|
|
920
|
-
const
|
|
920
|
+
const MIGRATION_MODULE = "<migrations.module>";
|
|
921
921
|
var SqliteOpFactoryCallNode = class extends TsExpression {
|
|
922
922
|
/** The operations this call lowers to, in order: one, unless the call carries companions. */
|
|
923
923
|
toOps(lowerer) {
|
|
@@ -925,7 +925,7 @@ var SqliteOpFactoryCallNode = class extends TsExpression {
|
|
|
925
925
|
}
|
|
926
926
|
importRequirements() {
|
|
927
927
|
return [{
|
|
928
|
-
moduleSpecifier:
|
|
928
|
+
moduleSpecifier: MIGRATION_MODULE,
|
|
929
929
|
symbol: this.factoryName
|
|
930
930
|
}];
|
|
931
931
|
}
|
|
@@ -1055,7 +1055,7 @@ var CreateTableCall = class extends SqliteOpFactoryCallNode {
|
|
|
1055
1055
|
return this.#written().source;
|
|
1056
1056
|
}
|
|
1057
1057
|
#written() {
|
|
1058
|
-
const sql = createSqlTextSources(
|
|
1058
|
+
const sql = createSqlTextSources(MIGRATION_MODULE);
|
|
1059
1059
|
const columnsList = this.columns.map((column) => renderDdlColumnAsTsCall(column, sql)).join(", ");
|
|
1060
1060
|
const constraintsList = this.constraints ? this.constraints.map(renderDdlConstraintAsTsCall).join(", ") : void 0;
|
|
1061
1061
|
const opts = [];
|
|
@@ -1071,16 +1071,16 @@ var CreateTableCall = class extends SqliteOpFactoryCallNode {
|
|
|
1071
1071
|
const req = [];
|
|
1072
1072
|
if (this.columns.length > 0) {
|
|
1073
1073
|
req.push({
|
|
1074
|
-
moduleSpecifier:
|
|
1074
|
+
moduleSpecifier: MIGRATION_MODULE,
|
|
1075
1075
|
symbol: "col"
|
|
1076
1076
|
});
|
|
1077
1077
|
for (const sym of defaultImportSymbols(this.columns)) req.push({
|
|
1078
|
-
moduleSpecifier:
|
|
1078
|
+
moduleSpecifier: MIGRATION_MODULE,
|
|
1079
1079
|
symbol: sym
|
|
1080
1080
|
});
|
|
1081
1081
|
}
|
|
1082
1082
|
for (const sym of constraintImportSymbols(this.constraints)) req.push({
|
|
1083
|
-
moduleSpecifier:
|
|
1083
|
+
moduleSpecifier: MIGRATION_MODULE,
|
|
1084
1084
|
symbol: sym
|
|
1085
1085
|
});
|
|
1086
1086
|
req.push(...this.#written().imports);
|
|
@@ -1389,12 +1389,12 @@ var RecreateTableCall = class extends SqliteOpFactoryCallNode {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
importRequirements() {
|
|
1391
1391
|
return [...Object.values(this.copyExpressions).some(isUnfilledSlot) ? [{
|
|
1392
|
-
moduleSpecifier:
|
|
1392
|
+
moduleSpecifier: MIGRATION_MODULE,
|
|
1393
1393
|
symbol: "placeholder"
|
|
1394
1394
|
}] : [], ...this.#written().imports];
|
|
1395
1395
|
}
|
|
1396
1396
|
#written() {
|
|
1397
|
-
const sql = createSqlTextSources(
|
|
1397
|
+
const sql = createSqlTextSources(MIGRATION_MODULE);
|
|
1398
1398
|
return {
|
|
1399
1399
|
source: `this.recreateTable(${tsObjectSource([
|
|
1400
1400
|
["tableName", jsonToTsSource(this.tableName)],
|
|
@@ -1442,7 +1442,7 @@ var AddColumnCall = class extends SqliteOpFactoryCallNode {
|
|
|
1442
1442
|
return this.#written().imports;
|
|
1443
1443
|
}
|
|
1444
1444
|
#written() {
|
|
1445
|
-
const sql = createSqlTextSources(
|
|
1445
|
+
const sql = createSqlTextSources(MIGRATION_MODULE);
|
|
1446
1446
|
return {
|
|
1447
1447
|
source: `this.addColumn({ table: ${jsonToTsSource(this.tableName)}, column: ${renderColumnSpec(this.column, sql)} })`,
|
|
1448
1448
|
imports: sql.imports()
|
|
@@ -1905,7 +1905,7 @@ var FillStoredKeyCall = class extends SqliteOpFactoryCallNode {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
importRequirements() {
|
|
1907
1907
|
return this.value instanceof UnfilledValue ? [{
|
|
1908
|
-
moduleSpecifier:
|
|
1908
|
+
moduleSpecifier: MIGRATION_MODULE,
|
|
1909
1909
|
symbol: "placeholder"
|
|
1910
1910
|
}] : [];
|
|
1911
1911
|
}
|
|
@@ -1957,10 +1957,10 @@ var DataTransformCall = class extends SqliteOpFactoryCallNode {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
importRequirements() {
|
|
1959
1959
|
return [{
|
|
1960
|
-
moduleSpecifier:
|
|
1960
|
+
moduleSpecifier: MIGRATION_MODULE,
|
|
1961
1961
|
symbol: this.factoryName
|
|
1962
1962
|
}, {
|
|
1963
|
-
moduleSpecifier:
|
|
1963
|
+
moduleSpecifier: MIGRATION_MODULE,
|
|
1964
1964
|
symbol: "placeholder"
|
|
1965
1965
|
}];
|
|
1966
1966
|
}
|
|
@@ -2036,6 +2036,6 @@ function renderPostcheck(postcheck) {
|
|
|
2036
2036
|
}));
|
|
2037
2037
|
}
|
|
2038
2038
|
//#endregion
|
|
2039
|
-
export {
|
|
2039
|
+
export { sqliteIdentifiersCollide as A, conversionCopyOf as C, rebuiltTableName as D, isSqliteOpFactoryCall as E, renameTableSteps as O, buildRecreateSummary as S, indexReplacementCalls as T, RenameStoredKeyCall as _, DeleteRowsCall as a, affinityStorageClasses as b, DropTableCall as c, MIGRATION_MODULE as d, RawSqlCall as f, RenameColumnCall as g, RemoveStoredValueCall as h, DataTransformCall as i, step as j, sqliteDefaultToDdlColumnDefault as k, FillStoredKeyCall as l, RemoveStoredKeyCall as m, CreateIndexCall as n, DropColumnCall as o, RecreateTableCall as p, CreateTableCall as r, DropIndexCall as s, AddColumnCall as t, INLINE_AUTOINCREMENT_PRIMARY_KEY as u, RenameTableCall as v, holdingStoredValue as w, buildRecreatePostchecks as x, ReplaceStoredValueCall as y };
|
|
2040
2040
|
|
|
2041
|
-
//# sourceMappingURL=op-factory-call-
|
|
2041
|
+
//# sourceMappingURL=op-factory-call-2IWWs4es-CajfeAMX.mjs.map
|