@prisma/orm-target-sqlite 8.0.0-rc.24-dev.28 → 8.0.0-rc.24-dev.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-B8OOrks4-CpmcF003.mjs → adapter-B8OOrks4-BKzW_Yc4.mjs} +9 -9
- package/dist/{adapter-B8OOrks4-CpmcF003.mjs.map → adapter-B8OOrks4-BKzW_Yc4.mjs.map} +1 -1
- package/dist/{adapter-NFsNVlif.d.mts → adapter-DrTWv8F7.d.mts} +5 -5
- package/dist/{adapter-NFsNVlif.d.mts.map → adapter-DrTWv8F7.d.mts.map} +1 -1
- package/dist/{adapter-xFPDhkod-DB6XDGgl.d.mts → adapter-xFPDhkod-Bfb8AQQJ.d.mts} +3 -3
- package/dist/{adapter-xFPDhkod-DB6XDGgl.d.mts.map → adapter-xFPDhkod-Bfb8AQQJ.d.mts.map} +1 -1
- package/dist/adapter.d.mts +11 -11
- package/dist/adapter.mjs +7 -7
- package/dist/adapter__adapter.d.mts +2 -2
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__codec-types.d.mts +3 -3
- package/dist/adapter__column-types.d.mts +2 -2
- package/dist/adapter__column-types.mjs +2 -2
- package/dist/adapter__control.d.mts +2 -2
- package/dist/adapter__control.mjs +5 -5
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +4 -4
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/adapter__sql-renderer.d.mts +2 -2
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/adapter__types.d.mts +2 -2
- package/dist/{aggregates--0FaH9Te.d.mts → aggregates-CA7Idm1d.d.mts} +4 -4
- package/dist/{aggregates--0FaH9Te.d.mts.map → aggregates-CA7Idm1d.d.mts.map} +1 -1
- package/dist/{aggregates-DMvLJFlR.mjs → aggregates-hLiHPHBG.mjs} +6 -7
- package/dist/aggregates-hLiHPHBG.mjs.map +1 -0
- package/dist/{codec-ids-BElbEYb_-CeWfv5bC.d.mts → codec-ids-CH8Nqk89-LNT9hksu.d.mts} +5 -3
- package/dist/codec-ids-CH8Nqk89-LNT9hksu.d.mts.map +1 -0
- package/dist/{codec-ids-BHBFCNsQ-C1Af_LGF.mjs → codec-ids-CTshXpbg-tcdbf_VC.mjs} +5 -3
- package/dist/codec-ids-CTshXpbg-tcdbf_VC.mjs.map +1 -0
- package/dist/codec-ids-Do7Ml2pg.d.mts +1 -0
- package/dist/codec-types-CBLOfyrr.d.mts +2 -0
- package/dist/codec-types-CcuzuROC.d.mts +1 -0
- package/dist/{codec-types-CGtSWeZ5-B5RH39BA.d.mts → codec-types-Ci-h2uxN-41PNpdNL.d.mts} +5 -3
- package/dist/codec-types-Ci-h2uxN-41PNpdNL.d.mts.map +1 -0
- package/dist/{codecs-izBhU4f1-uArTiOxL.mjs → codecs-CE5McdzP-CZ5F4Trz.mjs} +243 -116
- package/dist/codecs-CE5McdzP-CZ5F4Trz.mjs.map +1 -0
- package/dist/{codecs-A0DbaZRE-CMyLhO_K.d.mts → codecs-DBQsDiM--Cy-r45H3.d.mts} +58 -28
- package/dist/codecs-DBQsDiM--Cy-r45H3.d.mts.map +1 -0
- package/dist/codecs-Dou3fR1K.d.mts +1 -0
- package/dist/{codecs-B-paWXdt.mjs → codecs-EhvrdV8v.mjs} +2 -2
- package/dist/codecs-EhvrdV8v.mjs.map +1 -0
- package/dist/{column-types-bTPNfz46.d.mts → column-types-D3MMpY3X.d.mts} +13 -7
- package/dist/column-types-D3MMpY3X.d.mts.map +1 -0
- package/dist/column-types-D_PjRS6w.mjs +24 -0
- package/dist/column-types-D_PjRS6w.mjs.map +1 -0
- package/dist/{contract-contributions-CyHMdkva-2bg6kg_n.mjs → contract-contributions-CyHMdkva-BE5-kJj3.mjs} +2 -2
- package/dist/{contract-contributions-CyHMdkva-2bg6kg_n.mjs.map → contract-contributions-CyHMdkva-BE5-kJj3.mjs.map} +1 -1
- package/dist/{contract-free-DVGNrjWW.mjs → contract-free-CJlg0xGJ.mjs} +4 -4
- package/dist/{contract-free-DVGNrjWW.mjs.map → contract-free-CJlg0xGJ.mjs.map} +1 -1
- package/dist/{control-DGa_C2q6.d.mts → control-CtCvtwJx.d.mts} +183 -17
- package/dist/control-CtCvtwJx.d.mts.map +1 -0
- package/dist/{control-Dp-pU81N.d.mts → control-DfWteXy-.d.mts} +3 -3
- package/dist/{control-Dp-pU81N.d.mts.map → control-DfWteXy-.d.mts.map} +1 -1
- package/dist/{control-BvT30n3D.mjs → control-V3kPfMTR.mjs} +4 -3
- package/dist/control-V3kPfMTR.mjs.map +1 -0
- package/dist/{data-type-entries-B6YmbQDH-RnV5wVv8.mjs → data-type-entries-C0WkKiPF-CKPYj4OT.mjs} +20 -3
- package/dist/data-type-entries-C0WkKiPF-CKPYj4OT.mjs.map +1 -0
- package/dist/{data-types-CwpMoNK4.d.mts → data-types-C1nzwKt7.d.mts} +10 -2
- package/dist/{data-types-CwpMoNK4.d.mts.map → data-types-C1nzwKt7.d.mts.map} +1 -1
- package/dist/{data-types-fYwGTal5-BxuZD5EE.mjs → data-types-C_NKe4Ni-D7r8QkSb.mjs} +32 -4
- package/dist/data-types-C_NKe4Ni-D7r8QkSb.mjs.map +1 -0
- package/dist/{date-time-now-generators-BVQSg28x-DwhOJw5-.mjs → date-time-now-generators-DtRz9c2R-BkrBeLl2.mjs} +4 -4
- package/dist/{date-time-now-generators-BVQSg28x-DwhOJw5-.mjs.map → date-time-now-generators-DtRz9c2R-BkrBeLl2.mjs.map} +1 -1
- package/dist/{datetime-text-BogpvE70-VwTG2rUc.mjs → datetime-text-nkVy_w0q-DZnIEmgr.mjs} +3 -3
- package/dist/{datetime-text-BogpvE70-VwTG2rUc.mjs.map → datetime-text-nkVy_w0q-DZnIEmgr.mjs.map} +1 -1
- package/dist/{ddl-BvD-wVtg-BoEWa8CG.mjs → ddl-CgkyurGo-B2o4mSIT.mjs} +3 -3
- package/dist/{ddl-BvD-wVtg-BoEWa8CG.mjs.map → ddl-CgkyurGo-B2o4mSIT.mjs.map} +1 -1
- package/dist/{default-normalizer-BcGrp77x-CMWxtX1W.mjs → default-normalizer-Xsys5QJm-bPQiHGKp.mjs} +3 -3
- package/dist/{default-normalizer-BcGrp77x-CMWxtX1W.mjs.map → default-normalizer-Xsys5QJm-bPQiHGKp.mjs.map} +1 -1
- package/dist/{descriptor-meta-C2RNdGqi-BzR_I68E.mjs → descriptor-meta-BUMTRa-0-D2bfF0Yr.mjs} +5 -5
- package/dist/descriptor-meta-BUMTRa-0-D2bfF0Yr.mjs.map +1 -0
- package/dist/{descriptor-meta-Drr6Abaf-P67SenMd.mjs → descriptor-meta-CkiPlqDS-n3hDP01X.mjs} +23 -3
- package/dist/descriptor-meta-CkiPlqDS-n3hDP01X.mjs.map +1 -0
- package/dist/{descriptor-meta-CEjGA0WH-CxgiKj3V.mjs → descriptor-meta-uVTby90Y-CUfrzHVW.mjs} +152 -47
- package/dist/descriptor-meta-uVTby90Y-CUfrzHVW.mjs.map +1 -0
- package/dist/driver.mjs +1 -1
- package/dist/driver__control.mjs +1 -1
- package/dist/driver__runtime.mjs +9 -6
- package/dist/driver__runtime.mjs.map +1 -1
- package/dist/{errors-D9vZNPSI-DoNmdfv7.mjs → errors-DxbvEzQp-CeTjoGtL.mjs} +44 -3
- package/dist/errors-DxbvEzQp-CeTjoGtL.mjs.map +1 -0
- package/dist/{migration-C6RAZsCK.mjs → migration-BZoV6EvH.mjs} +2 -2
- package/dist/{migration-C6RAZsCK.mjs.map → migration-BZoV6EvH.mjs.map} +1 -1
- package/dist/{op-factory-call-B3oOyB-T-Bhg17pAj.mjs → op-factory-call-2IWWs4es-CajfeAMX.mjs} +19 -19
- package/dist/op-factory-call-2IWWs4es-CajfeAMX.mjs.map +1 -0
- package/dist/{pack-JeUy8ZB1.d.mts → pack-CHESErO8.d.mts} +183 -24
- package/dist/{pack-JeUy8ZB1.d.mts.map → pack-CHESErO8.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 +12 -12
- 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,4 +1,4 @@
|
|
|
1
|
-
import { t as CodecTypes } from "./codec-types-
|
|
1
|
+
import { t as CodecTypes } from "./codec-types-Ci-h2uxN-41PNpdNL.mjs";
|
|
2
2
|
import { DataTypeId, DataTypeValue } from "@prisma/orm-framework/components/codec";
|
|
3
3
|
import "@prisma/orm-framework/components/control";
|
|
4
4
|
import { AuthoringTypeAliasDescriptor, AuthoringTypeChoiceDescriptor, AuthoringTypeConstructorDescriptor, TaggedLiteralCanonicalization } from "@prisma/orm-framework/components/authoring";
|
|
@@ -927,13 +927,6 @@ declare const sqliteTargetDescriptorMetaBase: {
|
|
|
927
927
|
readonly displayName: "SQLite";
|
|
928
928
|
readonly authoring: {
|
|
929
929
|
readonly type: {
|
|
930
|
-
readonly BigIntNumber: {
|
|
931
|
-
readonly kind: "typeConstructor";
|
|
932
|
-
readonly documentation: "A SQLite integer represented as a JavaScript number within its safe integer range.";
|
|
933
|
-
readonly output: {
|
|
934
|
-
readonly codecId: "sqlite/bigintnumber@1";
|
|
935
|
-
};
|
|
936
|
-
};
|
|
937
930
|
readonly temporal: {
|
|
938
931
|
readonly CreatedAt: {
|
|
939
932
|
readonly kind: "typeAlias";
|
|
@@ -1201,55 +1194,221 @@ declare const sqliteTargetDescriptorMetaBase: {
|
|
|
1201
1194
|
readonly codecId: "sqlite/duration-string@1";
|
|
1202
1195
|
};
|
|
1203
1196
|
};
|
|
1204
|
-
readonly
|
|
1197
|
+
readonly BigIntNumber: {
|
|
1198
|
+
readonly deprecated: {
|
|
1199
|
+
readonly replacement: "IntegerNumber";
|
|
1200
|
+
};
|
|
1205
1201
|
readonly kind: "typeConstructor";
|
|
1206
|
-
readonly documentation: "
|
|
1202
|
+
readonly documentation: "An integer read as a JavaScript number within its safe integer range, stored as SQLite integer.";
|
|
1207
1203
|
readonly output: {
|
|
1208
|
-
readonly codecId: "sqlite/
|
|
1204
|
+
readonly codecId: "sqlite/integer@1";
|
|
1209
1205
|
};
|
|
1210
1206
|
};
|
|
1211
1207
|
readonly Int: {
|
|
1208
|
+
readonly kind: "typeChoice";
|
|
1209
|
+
readonly documentation: "An integer read as a JavaScript number within its safe integer range, stored as SQLite integer.";
|
|
1210
|
+
readonly args: readonly [{
|
|
1211
|
+
readonly kind: "option";
|
|
1212
|
+
readonly name: "storage";
|
|
1213
|
+
readonly values: readonly ["integer"];
|
|
1214
|
+
readonly default: "integer";
|
|
1215
|
+
readonly optional: true;
|
|
1216
|
+
}];
|
|
1217
|
+
readonly choices: readonly [{
|
|
1218
|
+
readonly when: {
|
|
1219
|
+
readonly storage: "integer";
|
|
1220
|
+
};
|
|
1221
|
+
readonly type: "IntegerNumber";
|
|
1222
|
+
}];
|
|
1223
|
+
};
|
|
1224
|
+
readonly BigInt: {
|
|
1225
|
+
readonly kind: "typeChoice";
|
|
1226
|
+
readonly documentation: "An integer that may exceed the safe integer range, stored as SQLite integer. `as` is what the application reads: bigint, or number within the safe integer range.";
|
|
1227
|
+
readonly args: readonly [{
|
|
1228
|
+
readonly kind: "option";
|
|
1229
|
+
readonly name: "as";
|
|
1230
|
+
readonly values: readonly ["bigint", "number"];
|
|
1231
|
+
readonly default: "bigint";
|
|
1232
|
+
readonly optional: true;
|
|
1233
|
+
}, {
|
|
1234
|
+
readonly kind: "option";
|
|
1235
|
+
readonly name: "storage";
|
|
1236
|
+
readonly values: readonly ["integer"];
|
|
1237
|
+
readonly default: "integer";
|
|
1238
|
+
readonly optional: true;
|
|
1239
|
+
}];
|
|
1240
|
+
readonly choices: readonly [{
|
|
1241
|
+
readonly when: {
|
|
1242
|
+
readonly as: "bigint";
|
|
1243
|
+
readonly storage: "integer";
|
|
1244
|
+
};
|
|
1245
|
+
readonly type: "IntegerBigInt";
|
|
1246
|
+
}, {
|
|
1247
|
+
readonly when: {
|
|
1248
|
+
readonly as: "number";
|
|
1249
|
+
readonly storage: "integer";
|
|
1250
|
+
};
|
|
1251
|
+
readonly type: "IntegerNumber";
|
|
1252
|
+
}];
|
|
1253
|
+
};
|
|
1254
|
+
readonly Float: {
|
|
1255
|
+
readonly kind: "typeChoice";
|
|
1256
|
+
readonly documentation: "A floating-point number, stored as SQLite real.";
|
|
1257
|
+
readonly args: readonly [{
|
|
1258
|
+
readonly kind: "option";
|
|
1259
|
+
readonly name: "storage";
|
|
1260
|
+
readonly values: readonly ["real"];
|
|
1261
|
+
readonly default: "real";
|
|
1262
|
+
readonly optional: true;
|
|
1263
|
+
}];
|
|
1264
|
+
readonly choices: readonly [{
|
|
1265
|
+
readonly when: {
|
|
1266
|
+
readonly storage: "real";
|
|
1267
|
+
};
|
|
1268
|
+
readonly type: "Real";
|
|
1269
|
+
}];
|
|
1270
|
+
};
|
|
1271
|
+
readonly Decimal: {
|
|
1272
|
+
readonly kind: "typeChoice";
|
|
1273
|
+
readonly documentation: "An exact decimal number read as decimal text such as \"12.50\", stored as SQLite text. It can be compared for equality but not ordered or summed.";
|
|
1274
|
+
readonly args: readonly [{
|
|
1275
|
+
readonly kind: "option";
|
|
1276
|
+
readonly name: "storage";
|
|
1277
|
+
readonly values: readonly ["text"];
|
|
1278
|
+
readonly default: "text";
|
|
1279
|
+
readonly optional: true;
|
|
1280
|
+
}];
|
|
1281
|
+
readonly choices: readonly [{
|
|
1282
|
+
readonly when: {
|
|
1283
|
+
readonly storage: "text";
|
|
1284
|
+
};
|
|
1285
|
+
readonly type: "DecimalString";
|
|
1286
|
+
}];
|
|
1287
|
+
};
|
|
1288
|
+
readonly String: {
|
|
1289
|
+
readonly kind: "typeChoice";
|
|
1290
|
+
readonly documentation: "Text, stored as SQLite text.";
|
|
1291
|
+
readonly args: readonly [{
|
|
1292
|
+
readonly kind: "option";
|
|
1293
|
+
readonly name: "storage";
|
|
1294
|
+
readonly values: readonly ["text"];
|
|
1295
|
+
readonly default: "text";
|
|
1296
|
+
readonly optional: true;
|
|
1297
|
+
}];
|
|
1298
|
+
readonly choices: readonly [{
|
|
1299
|
+
readonly when: {
|
|
1300
|
+
readonly storage: "text";
|
|
1301
|
+
};
|
|
1302
|
+
readonly type: "Text";
|
|
1303
|
+
}];
|
|
1304
|
+
};
|
|
1305
|
+
readonly Boolean: {
|
|
1306
|
+
readonly kind: "typeChoice";
|
|
1307
|
+
readonly documentation: "A boolean, stored as SQLite integer: 0 for false and 1 for true, as SQLite writes FALSE and TRUE.";
|
|
1308
|
+
readonly args: readonly [{
|
|
1309
|
+
readonly kind: "option";
|
|
1310
|
+
readonly name: "storage";
|
|
1311
|
+
readonly values: readonly ["integer"];
|
|
1312
|
+
readonly default: "integer";
|
|
1313
|
+
readonly optional: true;
|
|
1314
|
+
}];
|
|
1315
|
+
readonly choices: readonly [{
|
|
1316
|
+
readonly when: {
|
|
1317
|
+
readonly storage: "integer";
|
|
1318
|
+
};
|
|
1319
|
+
readonly type: "IntegerBoolean";
|
|
1320
|
+
}];
|
|
1321
|
+
};
|
|
1322
|
+
readonly Bytes: {
|
|
1323
|
+
readonly kind: "typeChoice";
|
|
1324
|
+
readonly documentation: "Binary data read as a Uint8Array, stored as SQLite blob.";
|
|
1325
|
+
readonly args: readonly [{
|
|
1326
|
+
readonly kind: "option";
|
|
1327
|
+
readonly name: "storage";
|
|
1328
|
+
readonly values: readonly ["blob"];
|
|
1329
|
+
readonly default: "blob";
|
|
1330
|
+
readonly optional: true;
|
|
1331
|
+
}];
|
|
1332
|
+
readonly choices: readonly [{
|
|
1333
|
+
readonly when: {
|
|
1334
|
+
readonly storage: "blob";
|
|
1335
|
+
};
|
|
1336
|
+
readonly type: "Blob";
|
|
1337
|
+
}];
|
|
1338
|
+
};
|
|
1339
|
+
readonly Json: {
|
|
1340
|
+
readonly kind: "typeChoice";
|
|
1341
|
+
readonly documentation: "A JSON value, serialized and stored as SQLite text.";
|
|
1342
|
+
readonly args: readonly [{
|
|
1343
|
+
readonly kind: "option";
|
|
1344
|
+
readonly name: "storage";
|
|
1345
|
+
readonly values: readonly ["text"];
|
|
1346
|
+
readonly default: "text";
|
|
1347
|
+
readonly optional: true;
|
|
1348
|
+
}];
|
|
1349
|
+
readonly choices: readonly [{
|
|
1350
|
+
readonly when: {
|
|
1351
|
+
readonly storage: "text";
|
|
1352
|
+
};
|
|
1353
|
+
readonly type: "PlainJson";
|
|
1354
|
+
}];
|
|
1355
|
+
};
|
|
1356
|
+
readonly IntegerNumber: {
|
|
1212
1357
|
readonly kind: "typeConstructor";
|
|
1213
|
-
readonly documentation: "An integer
|
|
1358
|
+
readonly documentation: "An integer read as a JavaScript number within its safe integer range, stored as SQLite integer.";
|
|
1214
1359
|
readonly output: {
|
|
1215
1360
|
readonly codecId: "sqlite/integer@1";
|
|
1216
1361
|
};
|
|
1217
1362
|
};
|
|
1218
|
-
readonly
|
|
1363
|
+
readonly IntegerBigInt: {
|
|
1219
1364
|
readonly kind: "typeConstructor";
|
|
1220
|
-
readonly documentation: "An integer
|
|
1365
|
+
readonly documentation: "An integer read as a JavaScript bigint, stored as SQLite integer.";
|
|
1221
1366
|
readonly output: {
|
|
1222
1367
|
readonly codecId: "sqlite/bigint@1";
|
|
1223
1368
|
};
|
|
1224
1369
|
};
|
|
1225
|
-
readonly
|
|
1370
|
+
readonly Real: {
|
|
1226
1371
|
readonly kind: "typeConstructor";
|
|
1227
|
-
readonly documentation: "A floating-point number stored as SQLite real.";
|
|
1372
|
+
readonly documentation: "A floating-point number, stored as SQLite real.";
|
|
1228
1373
|
readonly output: {
|
|
1229
1374
|
readonly codecId: "sqlite/real@1";
|
|
1230
1375
|
};
|
|
1231
1376
|
};
|
|
1232
|
-
readonly
|
|
1377
|
+
readonly DecimalString: {
|
|
1378
|
+
readonly kind: "typeConstructor";
|
|
1379
|
+
readonly documentation: "An exact decimal number read as decimal text such as \"12.50\", stored as SQLite text. Text compares by its characters, so a field of this type can be compared for equality but not ordered or summed.";
|
|
1380
|
+
readonly output: {
|
|
1381
|
+
readonly codecId: "sqlite/decimal@1";
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
readonly Text: {
|
|
1233
1385
|
readonly kind: "typeConstructor";
|
|
1234
|
-
readonly documentation: "
|
|
1386
|
+
readonly documentation: "Text, stored as SQLite text.";
|
|
1235
1387
|
readonly output: {
|
|
1236
1388
|
readonly codecId: "sqlite/text@1";
|
|
1237
1389
|
};
|
|
1238
1390
|
};
|
|
1239
|
-
readonly
|
|
1391
|
+
readonly IntegerBoolean: {
|
|
1240
1392
|
readonly kind: "typeConstructor";
|
|
1241
|
-
readonly documentation: "A
|
|
1393
|
+
readonly documentation: "A boolean, stored as SQLite integer: 0 for false and 1 for true, as SQLite writes FALSE and TRUE.";
|
|
1242
1394
|
readonly output: {
|
|
1243
|
-
readonly codecId: "sqlite/
|
|
1395
|
+
readonly codecId: "sqlite/boolean@1";
|
|
1244
1396
|
};
|
|
1245
1397
|
};
|
|
1246
|
-
readonly
|
|
1398
|
+
readonly Blob: {
|
|
1247
1399
|
readonly kind: "typeConstructor";
|
|
1248
|
-
readonly documentation: "Binary data
|
|
1400
|
+
readonly documentation: "Binary data read as a Uint8Array, stored as SQLite blob.";
|
|
1249
1401
|
readonly output: {
|
|
1250
1402
|
readonly codecId: "sqlite/blob@1";
|
|
1251
1403
|
};
|
|
1252
1404
|
};
|
|
1405
|
+
readonly PlainJson: {
|
|
1406
|
+
readonly kind: "typeConstructor";
|
|
1407
|
+
readonly documentation: "A JSON value, serialized and stored as SQLite text.";
|
|
1408
|
+
readonly output: {
|
|
1409
|
+
readonly codecId: "sqlite/json@1";
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1253
1412
|
};
|
|
1254
1413
|
readonly dataTypes: Readonly<Record<string, import("@prisma/orm-framework/components/authoring").DataTypeAuthoringEntry>>;
|
|
1255
1414
|
readonly textDataTypes: readonly import("@prisma/orm-framework/components/codec").DataTypeId[];
|
|
@@ -1315,4 +1474,4 @@ declare const sqliteTargetDescriptorMeta: typeof sqliteTargetDescriptorMetaBase
|
|
|
1315
1474
|
};
|
|
1316
1475
|
//#endregion
|
|
1317
1476
|
export { sqliteTargetDescriptorMeta as t };
|
|
1318
|
-
//# sourceMappingURL=pack-
|
|
1477
|
+
//# sourceMappingURL=pack-CHESErO8.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pack-JeUy8ZB1.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/pack.d.mts"],"mappings":";;;;;;;;;;;KAWK;UACK;WACC,MAAM;WACN;;;;;KAKN;;;UAGK;WACC;WACA,MAAM;WACN;;UAED;WACC;WACA,MAAM;WACN,UAAU,cAAc;WACxB;;KAEN,eAAe,YAAY;;;;;;;;;;cAUlB,uBAAuB;WAC1B,OAAO;WACP,MAAM;WACN;WACA;WACA,QAAQ;;WAER;EACT,YAAY,OAAO,YAAY,gBAAgB,QAAQ,YAAY;MAC/D;MACA;;EAEJ,SAAS;EACT,UAAU;;MAEN,sBAAsB;;MAEtB,sBAAsB;;MAEtB,aAAa;;MAEb,aAAa;;KAEd,gBAAgB,aAAa;cACpB;;UAEJ;SACD,QAAQ;SACR,OAAO,OAAO,cAAc;SAC5B,QAAQ,MAAM,aAAa,OAAO,cAAc;MACnD;MACA;EACJ,cAAc;EACd,eAAe;;cAEH;;WAEH,OAAO;WACP;WACA,QAAQ;;WAER;EACT,YAAY,OAAO,WAAW,gBAAgB,QAAQ,wBAAwB;EAC9E,QAAQ,gBAAgB;MACpB,QAAQ;MACR;MACA;;EAEJ,SAAS;EACT,UAAU;MACN,cAAc;MACd,aAAa;MACb,eAAe;MACf,eAAe;;MAEf,sBAAsB;;MAEtB,sBAAs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ACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;;aAIN,WAAW,SAAS,kEAAkE;aACtF,uEAAuE;;WAEzE;aACE;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,MAAM,uBAAuB,cAAc,eAAe;iBAC1D;;;aAGJ;;aAEA;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,MAAM,WAAW;iBACjB;;;aAGJ;;aAEA;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,MAAM,wBAAwB,cAAc,gBAAgB;iBAC5D;;;aAGJ;;aAEA;aACA,8DAA8D;4DACf;WACjD;aACE,yBAAyB;aACzB,mFAAmF;;WAErF;WACA;WACA;WACA;WACA;WACA;WACA,mEAAmE;WACnE,eAAe;;cAEZ,mCAAmC;WACtC,eAAe;WACf;aACE;eACE;eACA"}
|
|
1
|
+
{"version":3,"file":"pack-CHESErO8.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/pack.d.mts"],"mappings":";;;;;;;;;;;KAWK;UACK;WACC,MAAM;WACN;;;;;KAKN;;;UAGK;WACC;WACA,MAAM;WACN;;UAED;WACC;WACA,MAAM;WACN,UAAU,cAAc;WACxB;;KAEN,eAAe,YAAY;;;;;;;;;;cAUlB,uBAAuB;WAC1B,OAAO;WACP,MAAM;WACN;WACA;WACA,QAAQ;;WAER;EACT,YAAY,OAAO,YAAY,gBAAgB,QAAQ,YAAY;MAC/D;MACA;;EAEJ,SAAS;EACT,UAAU;;MAEN,sBAAsB;;MAEtB,sBAAsB;;MAEtB,aAAa;;MAEb,aAAa;;KAEd,gBAAgB,aAAa;cACpB;;UAEJ;SACD,QAAQ;SACR,OAAO,OAAO,cAAc;SAC5B,QAAQ,MAAM,aAAa,OAAO,cAAc;MACnD;MACA;EACJ,cAAc;EACd,eAAe;;cAEH;;WAEH,OAAO;WACP;WACA,QAAQ;;WAER;EACT,YAAY,OAAO,WAAW,gBAAgB,QAAQ,wBAAwB;EAC9E,QAAQ,gBAAgB;MACpB,QAAQ;MACR;MACA;;EAEJ,SAAS;EACT,UAAU;MACN,cAAc;MACd,aAAa;MACb,eAAe;MACf,eAAe;;MAEf,sBAAsB;;MAEtB,sBAAsB;;MAEtB,cAAc;;MAEd,aAAa;EACjB,YAAY,SAAS;EACrB,cAAc,SAAS;EACvB,QAAQ;EACR,aAAa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;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;mBACE;;iBAEF;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;mBAEA;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;qBACA;;mBAEF;;mBAEA;qBACE;qBACA;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;mBACA;mBACA;;iBAEF;mBACE;qBACE;;mBAEF;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;eAGJ;iBACE;iBACA;iBACA;mBACE;;;;aAIN,WAAW,SAAS,kEAAkE;aACtF,uEAAuE;;WAEzE;aACE;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,MAAM,uBAAuB,cAAc,eAAe;iBAC1D;;;aAGJ;;aAEA;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,MAAM,WAAW;iBACjB;;;aAGJ;;aAEA;aACA,YAAY,8DAA8D;eACxE;eACA;iBACE;iBACA,MAAM,wBAAwB,cAAc,gBAAgB;iBAC5D;;;aAGJ;;aAEA;aACA,8DAA8D;4DACf;WACjD;aACE,yBAAyB;aACzB,mFAAmF;;WAErF;WACA;WACA;WACA;WACA;WACA;WACA,mEAAmE;WACnE,eAAe;;cAEZ,mCAAmC;WACtC,eAAe;WACf;aACE;eACE;eACA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as SqlitePlanTargetDetails } from "./planner-target-details-B-qtfkmj-DIGpv7YQ.mjs";
|
|
2
|
-
import { n as TypeScriptRenderableSqliteMigration } from "./planner-produced-sqlite-migration-
|
|
2
|
+
import { n as TypeScriptRenderableSqliteMigration } from "./planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.mjs";
|
|
3
3
|
import { AppliedMigrationStatement, MigrationAccessChange, MigrationDataLoss, MigrationPlanner, MigrationScaffoldContext, MigrationTemporaryValue, PlanOrigin, ResolvedMigrationStatement, SchemaOwnership } from "@prisma/orm-framework/components/control";
|
|
4
4
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
5
5
|
import { MigrationOperationPolicy, SqlMigrationPlanner, SqlPlannerFailureResult } from "@prisma/orm-family-sql/family/control";
|
|
@@ -112,4 +112,4 @@ declare class SqliteMigrationPlanner implements SqlMigrationPlanner<SqlitePlanTa
|
|
|
112
112
|
}
|
|
113
113
|
//#endregion
|
|
114
114
|
export { SqlitePlanResult as n, createSqliteMigrationPlanner as r, SqliteMigrationPlanner as t };
|
|
115
|
-
//# sourceMappingURL=planner-
|
|
115
|
+
//# sourceMappingURL=planner-Bu5XBkHm.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planner-
|
|
1
|
+
{"version":3,"file":"planner-Bu5XBkHm.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/planner.d.mts"],"mappings":";;;;;;;;;iBAQiB,6BAA6B,SAAS,wBAAwB;KAC1E;WACM;WACA,MAAM;WACN,4BAA4B;WAC5B,mBAAmB;WACnB,wBAAwB;WACxB,0BAA0B;IACjC;;;;;;;;;;;;;;;;;cAiBU,kCAAkC,oBAAoB,0BAA0B;;EAE5F,YAAY,SAAS;EACrB,KAAK;aACM;aACA;aACA,QAAQ;;;;;;;;;aASR,cAAc;;aAEd,QAAQ;aACR,qBAAqB;aACrB,qBAAqB,cAAc;;;;;;aAMnC;;;;;aAKA,YAAY;;;;;;aAMZ;MACP;EACJ,eAAe,SAAS,0BAA0B,kBAAkB;UAC5D;;;;;;UAMA;UACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA8BA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as sqliteSchemaTables, a as createWorkingSchema, c as issueNode, d as renameTableByHandStatements, f as renderRenameTableCall, g as sqlitePlannerStrategies, i as conflictForDisallowedCall, l as pairIndexReplacements, m as sqliteColumnRenameCall, n as buildSqlitePlanDiff, p as sqliteActualSchema, r as coalesceSubtreeIssues, s as indexNameCaseChange, u as planIssues, v as sqliteTableRenameByHand, y as sqliteTableRenameCall } from "./sqlite-migration-
|
|
3
|
-
import { t as TypeScriptRenderableSqliteMigration } from "./planner-produced-sqlite-migration-
|
|
1
|
+
import { _ as RenameStoredKeyCall, a as DeleteRowsCall, c as DropTableCall, f as RawSqlCall, h as RemoveStoredValueCall, l as FillStoredKeyCall, m as RemoveStoredKeyCall, o as DropColumnCall, p as RecreateTableCall, y as ReplaceStoredValueCall } from "./op-factory-call-2IWWs4es-CajfeAMX.mjs";
|
|
2
|
+
import { _ as sqliteSchemaTables, a as createWorkingSchema, c as issueNode, d as renameTableByHandStatements, f as renderRenameTableCall, g as sqlitePlannerStrategies, i as conflictForDisallowedCall, l as pairIndexReplacements, m as sqliteColumnRenameCall, n as buildSqlitePlanDiff, p as sqliteActualSchema, r as coalesceSubtreeIssues, s as indexNameCaseChange, u as planIssues, v as sqliteTableRenameByHand, y as sqliteTableRenameCall } from "./sqlite-migration-1OBxvebH-BNjpjOW4.mjs";
|
|
3
|
+
import { t as TypeScriptRenderableSqliteMigration } from "./planner-produced-sqlite-migration-BnKx1gAX-BZMX06Q-.mjs";
|
|
4
4
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
5
5
|
import { enumValueCoordinateJson, isRenameStatement, issueOutcome } from "@prisma/orm-framework/components/control";
|
|
6
6
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
7
7
|
import { UnfilledValue, appliedStatementsInOrder, backfillOfDefaultedField, columnTakesTemporaryValue, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldStatementColumns, planFieldEventCalls, planStatements, planStoredRewrites, plannerFailure, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unknownCallNames } from "@prisma/orm-family-sql/family/control";
|
|
8
8
|
import { RelationalSchemaNodeKind, SqlTableIR } from "@prisma/orm-family-sql/schema-ir/types";
|
|
9
9
|
import { ok } from "@prisma/orm-framework/utils/result";
|
|
10
|
-
//#region ../../../3-targets/sqlite/1-target/dist/planner-
|
|
10
|
+
//#region ../../../3-targets/sqlite/1-target/dist/planner-gq4m2U9I.mjs
|
|
11
11
|
function lost(target, loss = "drop") {
|
|
12
12
|
return {
|
|
13
13
|
...target,
|
|
@@ -126,8 +126,7 @@ function sqliteCallSubjects(calls, fieldEvents, storedValues = /* @__PURE__ */ n
|
|
|
126
126
|
label,
|
|
127
127
|
dataLoss: [{
|
|
128
128
|
...lost(columnTarget(call.tableName, call.columnName)),
|
|
129
|
-
...ifDefined("enumValue", subject?.enumValue)
|
|
130
|
-
...ifDefined("keepDataEdit", subject?.keepDataEdit)
|
|
129
|
+
...ifDefined("enumValue", subject?.enumValue)
|
|
131
130
|
}],
|
|
132
131
|
accessChanges: [],
|
|
133
132
|
temporaryValues: []
|
|
@@ -353,6 +352,7 @@ var SqliteMigrationPlanner = class {
|
|
|
353
352
|
fromContract: options.fromContract,
|
|
354
353
|
contract: options.contract,
|
|
355
354
|
origins: statements.value.origins,
|
|
355
|
+
storageRenames: statements.value.storageRenames,
|
|
356
356
|
byHand: sqliteTableRenameByHand,
|
|
357
357
|
removedVariants: storedRewrites.value.removedVariants
|
|
358
358
|
})
|
|
@@ -384,8 +384,7 @@ var SqliteMigrationPlanner = class {
|
|
|
384
384
|
rename,
|
|
385
385
|
frameworkComponents: options.frameworkComponents
|
|
386
386
|
}),
|
|
387
|
-
apply: (call) => working.apply(call)
|
|
388
|
-
...sqliteTableRenameByHand
|
|
387
|
+
apply: (call) => working.apply(call)
|
|
389
388
|
}
|
|
390
389
|
});
|
|
391
390
|
if (!planned.ok) return planned;
|
|
@@ -495,4 +494,4 @@ function tablesReferencing(contract, table) {
|
|
|
495
494
|
//#endregion
|
|
496
495
|
export { sqliteStoredValueCallClasses as i, createSqliteMigrationPlanner as n, sqliteMarkedRemoval as r, SqliteMigrationPlanner as t };
|
|
497
496
|
|
|
498
|
-
//# sourceMappingURL=planner-
|
|
497
|
+
//# sourceMappingURL=planner-gq4m2U9I-BBwAFGko.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planner-gq4m2U9I-BBwAFGko.mjs","names":["#lowerer"],"sources":["../../../../3-targets/sqlite/1-target/dist/planner-gq4m2U9I.mjs"],"sourcesContent":["import { a as sqliteTableRenameByHand, c as sqliteSchemaTables, d as coalesceSubtreeIssues, f as conflictForDisallowedCall, g as buildSqlitePlanDiff, h as sqlitePlannerStrategies, i as sqliteColumnRenameCall, l as indexNameCaseChange, m as planIssues, n as renameTableByHandStatements, o as sqliteTableRenameCall, p as issueNode, r as renderRenameTableCall, s as createWorkingSchema, u as pairIndexReplacements, v as sqliteActualSchema } from \"./sqlite-migration-1OBxvebH.mjs\";\nimport { a as DeleteRowsCall, c as DropTableCall, d as RawSqlCall, f as RecreateTableCall, g as RenameStoredKeyCall, l as FillStoredKeyCall, m as RemoveStoredValueCall, o as DropColumnCall, p as RemoveStoredKeyCall, v as ReplaceStoredValueCall } from \"./op-factory-call-2IWWs4es.mjs\";\nimport { t as TypeScriptRenderableSqliteMigration } from \"./planner-produced-sqlite-migration-BnKx1gAX.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { enumValueCoordinateJson, isRenameStatement, issueOutcome } from \"@internal/framework-components/control\";\nimport { UnfilledValue, appliedStatementsInOrder, backfillOfDefaultedField, columnTakesTemporaryValue, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldStatementColumns, planFieldEventCalls, planStatements, planStoredRewrites, plannerFailure, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unknownCallNames } from \"@internal/family-sql/control\";\nimport { RelationalSchemaNodeKind, SqlTableIR } from \"@internal/sql-schema-ir/types\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { ok } from \"@internal/utils/result\";\n//#region src/core/migrations/operation-subjects.ts\nfunction lost(target, loss = \"drop\") {\n\treturn {\n\t\t...target,\n\t\tloss\n\t};\n}\nfunction tableTarget(table) {\n\treturn {\n\t\tstorageName: table,\n\t\ttable: {\n\t\t\tnamespaceId: UNBOUND_NAMESPACE_ID,\n\t\t\ttable,\n\t\t\tcolumn: void 0\n\t\t}\n\t};\n}\nfunction columnTarget(table, column) {\n\treturn {\n\t\tstorageName: `${table}.${column}`,\n\t\ttable: {\n\t\t\tnamespaceId: UNBOUND_NAMESPACE_ID,\n\t\t\ttable,\n\t\t\tcolumn\n\t\t}\n\t};\n}\nfunction operationCountOf(call) {\n\treturn \"companions\" in call && Array.isArray(call.companions) ? 1 + call.companions.length : 1;\n}\n/**\n* The columns a recreate loses: those the new table leaves out, whose values the copy drops, and,\n* when the recreate is destructive, those whose type it changes with no copy expression to convert them.\n*/\nfunction recreateLosses(call) {\n\tconst kept = new Set(call.contractTable.columns.map((column) => column.name));\n\tconst dropped = call.schemaColumnNames.filter((column) => !kept.has(column));\n\tconst retyped = call.operationClass === \"destructive\" ? call.retypedColumns.filter((column) => !Object.hasOwn(call.copyExpressions, column)) : [];\n\treturn [...dropped.map((column) => ({\n\t\tcolumn,\n\t\tloss: \"drop\"\n\t})), ...retyped.map((column) => ({\n\t\tcolumn,\n\t\tloss: \"typeChange\"\n\t}))];\n}\n/** The columns a recreate adds with a value its copy writes into every existing row. */\nfunction temporaryValuesOf(call) {\n\tconst copied = new Set(call.schemaColumnNames);\n\treturn Object.entries(call.temporaryValues).flatMap(([column, expression]) => copied.has(column) || expression.kind !== \"sql\" ? [] : [{\n\t\ttable: call.tableName,\n\t\tcolumn,\n\t\tvalue: expression.sql\n\t}]);\n}\n/** What to do about the rows of `tables` that reference deleted rows, which the SQLite runner does not delete. */\nfunction referencedRowsAdvice(tables) {\n\treturn `SQLite migrations run with foreign keys off, so deleting these rows does not delete the rows of ${tables.map((table) => `\"${table}\"`).join(\", \")} that reference them: the apply then fails at PRAGMA foreign_key_check. Delete or change those rows first.`;\n}\n/**\n* What each call of a SQLite plan loses. A recreate that leaves a column out loses its values\n* itself, so a later drop of that column is not listed again.\n*/\nfunction sqliteCallSubjects(calls, fieldEvents, storedValues = /* @__PURE__ */ new Map(), storedKeys = /* @__PURE__ */ new Map(), variantRows = /* @__PURE__ */ new Map(), referencingTables = () => []) {\n\tconst lostColumns = /* @__PURE__ */ new Set();\n\tconst unknownNames = unknownCallNames(calls.filter((call) => call.operationClass === \"destructive\" && !(call instanceof RecreateTableCall) && !(call instanceof DropColumnCall) && !(call instanceof DropTableCall) && !(call instanceof RawSqlCall) && !(call instanceof RemoveStoredValueCall) && !(call instanceof RemoveStoredKeyCall) && !(call instanceof DeleteRowsCall) && !fieldEvents.has(call)));\n\treturn calls.map((call) => {\n\t\tconst operationCount = operationCountOf(call);\n\t\tconst { label } = call;\n\t\tif (call instanceof RecreateTableCall) {\n\t\t\tconst columns = recreateLosses(call);\n\t\t\tfor (const { column } of columns) lostColumns.add(`${call.tableName}.${column}`);\n\t\t\treturn {\n\t\t\t\toperationCount,\n\t\t\t\tlabel,\n\t\t\t\tdataLoss: columns.length === 0 && call.operationClass === \"destructive\" ? [lost(tableTarget(call.tableName))] : columns.map(({ column, loss }) => lost(columnTarget(call.tableName, column), loss)),\n\t\t\t\taccessChanges: [],\n\t\t\t\ttemporaryValues: temporaryValuesOf(call)\n\t\t\t};\n\t\t}\n\t\tif (call instanceof DropColumnCall) return {\n\t\t\toperationCount,\n\t\t\tlabel,\n\t\t\tdataLoss: lostColumns.has(`${call.tableName}.${call.columnName}`) ? [] : [lost(columnTarget(call.tableName, call.columnName))],\n\t\t\taccessChanges: [],\n\t\t\ttemporaryValues: []\n\t\t};\n\t\tif (call instanceof DeleteRowsCall) {\n\t\t\tconst cascaded = new Set(call.cascade.map(({ table }) => table));\n\t\t\tconst referencing = referencingTables(call.tableName).filter((table) => !cascaded.has(table));\n\t\t\treturn {\n\t\t\t\toperationCount,\n\t\t\t\tlabel,\n\t\t\t\tdataLoss: [{\n\t\t\t\t\t...lost(tableTarget(call.tableName)),\n\t\t\t\t\t...ifDefined(\"model\", variantRows.get(call)),\n\t\t\t\t\t...ifDefined(\"keepDataAdvice\", referencing.length === 0 ? void 0 : referencedRowsAdvice(referencing))\n\t\t\t\t}],\n\t\t\t\taccessChanges: [],\n\t\t\t\ttemporaryValues: []\n\t\t\t};\n\t\t}\n\t\tif (call instanceof RemoveStoredKeyCall) return {\n\t\t\toperationCount,\n\t\t\tlabel,\n\t\t\tdataLoss: [{\n\t\t\t\t...lost(columnTarget(call.tableName, call.columnName)),\n\t\t\t\t...ifDefined(\"valueObjectField\", storedKeys.get(call))\n\t\t\t}],\n\t\t\taccessChanges: [],\n\t\t\ttemporaryValues: []\n\t\t};\n\t\tif (call instanceof RemoveStoredValueCall) {\n\t\t\tconst subject = storedValues.get(call);\n\t\t\treturn {\n\t\t\t\toperationCount,\n\t\t\t\tlabel,\n\t\t\t\tdataLoss: [{\n\t\t\t\t\t...lost(columnTarget(call.tableName, call.columnName)),\n\t\t\t\t\t...ifDefined(\"enumValue\", subject?.enumValue)\n\t\t\t\t}],\n\t\t\t\taccessChanges: [],\n\t\t\t\ttemporaryValues: []\n\t\t\t};\n\t\t}\n\t\tif (call instanceof DropTableCall) return {\n\t\t\toperationCount,\n\t\t\tlabel,\n\t\t\tdataLoss: [lost(tableTarget(call.tableName))],\n\t\t\taccessChanges: [],\n\t\t\ttemporaryValues: []\n\t\t};\n\t\tif (call instanceof FillStoredKeyCall) {\n\t\t\tconst valueObjectField = storedKeys.get(call);\n\t\t\treturn {\n\t\t\t\toperationCount,\n\t\t\t\tlabel,\n\t\t\t\tdataLoss: [],\n\t\t\t\taccessChanges: [],\n\t\t\t\ttemporaryValues: call.value instanceof UnfilledValue || valueObjectField === void 0 ? [] : [{\n\t\t\t\t\ttable: call.tableName,\n\t\t\t\t\tcolumn: call.columnName,\n\t\t\t\t\tvalue: JSON.stringify(call.value),\n\t\t\t\t\tvalueObjectField\n\t\t\t\t}]\n\t\t\t};\n\t\t}\n\t\tif (call.operationClass !== \"destructive\") return {\n\t\t\toperationCount,\n\t\t\tlabel,\n\t\t\tdataLoss: [],\n\t\t\taccessChanges: [],\n\t\t\ttemporaryValues: []\n\t\t};\n\t\tconst fieldEvent = fieldEvents.get(call);\n\t\treturn {\n\t\t\toperationCount,\n\t\t\tlabel,\n\t\t\tdataLoss: [lost(call instanceof RawSqlCall ? {\n\t\t\t\tstorageName: storageNameOfOperation(call.op),\n\t\t\t\ttable: void 0\n\t\t\t} : fieldEvent !== void 0 ? fieldEventStorage(fieldEvent) : {\n\t\t\t\tstorageName: unknownNames.get(call) ?? call.factoryName,\n\t\t\t\ttable: void 0\n\t\t\t})],\n\t\t\taccessChanges: [],\n\t\t\ttemporaryValues: []\n\t\t};\n\t});\n}\n//#endregion\n//#region src/core/migrations/stored-value-calls.ts\n/** The calls that carry out a plan's stored value rewrites, each with the rewrite it carries out. */\nfunction sqliteStoredValueCalls(rewrites, codecs) {\n\treturn new Map(rewrites.map((rewrite) => {\n\t\tconst codec = rewrite.codecRef === void 0 ? void 0 : {\n\t\t\tcodecRef: rewrite.codecRef,\n\t\t\tcodecs\n\t\t};\n\t\tconst { member } = rewrite;\n\t\treturn [rewrite.to === void 0 ? new RemoveStoredValueCall(rewrite.table, rewrite.column, rewrite.from, codec, enumValueCoordinateJson(rewrite.enumValue), member?.path, member?.nullable === true ? true : void 0) : new ReplaceStoredValueCall(rewrite.table, rewrite.column, rewrite.from, rewrite.to, codec, member?.path), rewrite];\n\t}));\n}\n/** The calls that carry out a plan's key rewrites of value object fields, each with the rewrite it carries out. */\nfunction sqliteStoredKeyCalls(rewrites) {\n\treturn new Map(rewrites.map((rewrite) => [rewrite.to === void 0 ? new RemoveStoredKeyCall(rewrite.table, rewrite.column, rewrite.path) : new RenameStoredKeyCall(rewrite.table, rewrite.column, rewrite.path, rewrite.to), rewrite]));\n}\n/** The calls that carry out a plan's fills of value object fields, each with the fill it carries out. */\nfunction sqliteStoredKeyFillCalls(fills) {\n\treturn new Map(fills.map((fill) => [new FillStoredKeyCall(fill.table, fill.column, fill.path, fill.value, {\n\t\ttext: fill.field,\n\t\tcheck: void 0\n\t}), fill]));\n}\n/** The calls that carry out a plan's row rewrites of variants, each with the rewrite it carries out. */\nfunction sqliteVariantRowCalls(rewrites, codecs) {\n\treturn new Map(rewrites.map((rewrite) => {\n\t\tconst codec = {\n\t\t\tcodecRef: rewrite.codecRef,\n\t\t\tcodecs\n\t\t};\n\t\treturn [rewrite.to === void 0 ? new DeleteRowsCall(rewrite.table, rewrite.column, rewrite.from, codec, rewrite.cascadingTable === void 0 ? [] : [{\n\t\t\ttable: rewrite.cascadingTable.table,\n\t\t\tcolumns: rewrite.cascadingTable.columns,\n\t\t\treferences: rewrite.cascadingTable.references\n\t\t}]) : new ReplaceStoredValueCall(rewrite.table, rewrite.column, rewrite.from, rewrite.to, codec), rewrite];\n\t}));\n}\n/** How the family's stored value code tells SQLite removals apart and builds replacements. */\nconst sqliteStoredValueCallClasses = {\n\tisRemoval: (call) => call instanceof RemoveStoredValueCall,\n\treplacementOf: (removal, { from, to }) => new ReplaceStoredValueCall(removal.tableName, removal.columnName, from, to, removal.codec, removal.path?.text)\n};\nconst RENDER_ONLY_CODECS = { descriptorFor: () => void 0 };\n/** The removal a failed check's mark describes, as `migration.ts` writes it. */\nfunction sqliteMarkedRemoval(mark) {\n\tconst codec = mark.codecRef === void 0 ? void 0 : {\n\t\tcodecRef: mark.codecRef,\n\t\tcodecs: RENDER_ONLY_CODECS\n\t};\n\treturn new RemoveStoredValueCall(mark.table, mark.column, mark.value, codec, mark.enumValue, mark.path);\n}\n//#endregion\n//#region src/core/migrations/planner.ts\nfunction createSqliteMigrationPlanner(lowerer) {\n\treturn new SqliteMigrationPlanner(lowerer);\n}\n/**\n* SQLite migration planner — a thin wrapper over `planIssues`.\n*\n* `plan()` diffs the live schema against the target contract via the one\n* differ (`buildSqlitePlanDiff`, producing node-typed `SchemaDiffIssue[]`)\n* and delegates to `planIssues` with the registered strategies. Strategies\n* absorb groups of related issues into composite recipes (e.g. recreating a\n* table to apply type/nullability/default/constraint changes at once);\n* anything not absorbed by a strategy flows through `mapNodeIssueToCall` in\n* the issue planner as a one-off call.\n*\n* FK-backing indexes are already merged into the expected table node's\n* `indexes` at derivation (`contractToSchemaIR`'s `convertTable`), so\n* `mapNodeIssueToCall` handles them uniformly alongside user-declared\n* indexes — no separate expansion step in the planner.\n*/\nvar SqliteMigrationPlanner = class {\n\t#lowerer;\n\tconstructor(lowerer) {\n\t\tthis.#lowerer = lowerer;\n\t}\n\tplan(options) {\n\t\treturn this.planSql(options);\n\t}\n\temptyMigration(context, spaceId) {\n\t\treturn new TypeScriptRenderableSqliteMigration([], {\n\t\t\tfrom: context.fromHash,\n\t\t\tto: context.toHash\n\t\t}, spaceId, context.snapshotsImportPath, void 0, this.#lowerer);\n\t}\n\tplanSql(options) {\n\t\tconst policyResult = this.ensureAdditivePolicy(options.policy);\n\t\tif (policyResult) return policyResult;\n\t\tconst statements = this.planStatements(options);\n\t\tif (!statements.ok) return plannerFailure([statements.failure]);\n\t\tconst { expected, actual, issues: diffIssues } = this.collectSchemaIssues(options, statements.value.schema);\n\t\tconst replacedIndexes = pairIndexReplacements(diffIssues, indexNameCaseChange);\n\t\tconst disallowedIndexCalls = replacedIndexes.calls.filter((call) => !options.policy.allowedOperationClasses.includes(call.operationClass));\n\t\tif (disallowedIndexCalls.length > 0) return plannerFailure(disallowedIndexCalls.map((call) => conflictForDisallowedCall(call, options.policy.allowedOperationClasses)));\n\t\tconst issues = diffIssues.filter((issue) => !replacedIndexes.consumed.has(issue));\n\t\tconst caseChangeConflicts = detectTableNameCaseChanges({\n\t\t\tissues,\n\t\t\ttableOf: (issue) => {\n\t\t\t\tconst node = issueNode(issue);\n\t\t\t\treturn node instanceof SqlTableIR ? node : void 0;\n\t\t\t},\n\t\t\tnamespaceIdOf: () => UNBOUND_NAMESPACE_ID,\n\t\t\trenameByHandStatements: renameTableByHandStatements,\n\t\t\trenameTableCall: renderRenameTableCall,\n\t\t\tcontract: options.contract,\n\t\t\tdefaultNamespaceId: UNBOUND_NAMESPACE_ID\n\t\t});\n\t\tif (caseChangeConflicts.length > 0) return plannerFailure(caseChangeConflicts);\n\t\tconst defaultedBackfill = backfillOfDefaultedField(options.statements, options.fromContract, options.contract);\n\t\tif (defaultedBackfill !== void 0) return plannerFailure([defaultedBackfill]);\n\t\tconst codecHooks = extractCodecControlHooks(options.frameworkComponents);\n\t\tconst types = sqlTypeLookupsOf(options.frameworkComponents);\n\t\tconst { codecLookup } = types;\n\t\tconst storedRewrites = planStoredRewrites({\n\t\t\tstatements: options.statements,\n\t\t\tfromContract: options.fromContract,\n\t\t\tcontract: options.contract,\n\t\t\ttables: sqliteSchemaTables(statements.value.schema),\n\t\t\ttypes,\n\t\t\tpolicy: options.policy,\n\t\t\tcalls: {\n\t\t\t\tstoredKeyCalls: sqliteStoredKeyCalls,\n\t\t\t\tstoredKeyFillCalls: (fills) => sqliteStoredKeyFillCalls(fills),\n\t\t\t\tstoredValueCalls: (rewrites) => sqliteStoredValueCalls(rewrites, codecLookup),\n\t\t\t\tvariantRowCalls: (rewrites) => sqliteVariantRowCalls(rewrites, codecLookup),\n\t\t\t\tstoredValueClasses: sqliteStoredValueCallClasses\n\t\t\t}\n\t\t});\n\t\tif (!storedRewrites.ok) return plannerFailure([storedRewrites.failure]);\n\t\tconst disallowedStoredValueCalls = storedRewrites.value.calls.filter((call) => !options.policy.allowedOperationClasses.includes(call.operationClass));\n\t\tif (disallowedStoredValueCalls.length > 0) return plannerFailure(disallowedStoredValueCalls.map((call) => conflictForDisallowedCall(call, options.policy.allowedOperationClasses)));\n\t\tconst result = planIssues({\n\t\t\tissues,\n\t\t\texpected,\n\t\t\tactual,\n\t\t\tpolicy: options.policy,\n\t\t\tframeworkComponents: options.frameworkComponents,\n\t\t\tstatementColumns: fieldStatementColumns(options.statements, options.contract),\n\t\t\toriginCodecId: (table, column) => options.fromContract?.storage.namespaces[UNBOUND_NAMESPACE_ID]?.entries.table?.[table]?.columns[column]?.codecId,\n\t\t\ttakesTemporaryValue: (table, column) => {\n\t\t\t\tconst storageTable = options.contract.storage.namespaces[UNBOUND_NAMESPACE_ID]?.entries.table?.[table];\n\t\t\t\treturn storageTable !== void 0 && columnTakesTemporaryValue(storageTable, column);\n\t\t\t},\n\t\t\tstrategies: sqlitePlannerStrategies\n\t\t});\n\t\tif (!result.ok) return plannerFailure(result.failure);\n\t\tconst fieldEventCalls = planFieldEventCalls({\n\t\t\tpriorContract: options.origin === null ? null : options.fromContract,\n\t\t\tnewContract: options.contract,\n\t\t\tcodecHooks,\n\t\t\ttableRenames: statements.value.tableRenames,\n\t\t\tcolumnRenames: statements.value.columnRenames,\n\t\t\tdataTypes: sqlTypeLookupsOf(options.frameworkComponents).dataTypeLookup\n\t\t});\n\t\tconst fieldEventOps = fieldEventCalls.map(({ call }) => call);\n\t\tconst calls = [\n\t\t\t...statements.value.calls,\n\t\t\t...replacedIndexes.calls,\n\t\t\t...result.value.calls,\n\t\t\t...storedRewrites.value.calls,\n\t\t\t...fieldEventOps\n\t\t];\n\t\tconst destination = {\n\t\t\tstorageHash: options.contract.storage.storageHash,\n\t\t\t...options.contract.profileHash !== void 0 ? { profileHash: options.contract.profileHash } : {}\n\t\t};\n\t\treturn {\n\t\t\tkind: \"success\",\n\t\t\tplan: new TypeScriptRenderableSqliteMigration(calls, {\n\t\t\t\tfrom: options.origin?.storageHash ?? null,\n\t\t\t\tto: options.contract.storage.storageHash\n\t\t\t}, options.spaceId, options.snapshotsImportPath, destination, this.#lowerer),\n\t\t\tappliedStatements: appliedStatementsInOrder(options.statements, statements.value.plannedStatements, (statement) => storedRewrites.value.operationIndexes(calls, statement)),\n\t\t\t...subjectsOfCalls(sqliteCallSubjects(calls, new Map(fieldEventCalls.map((fieldEvent) => [fieldEvent.call, fieldEvent])), storedRewrites.value.storedValues, storedRewrites.value.storedKeys, storedRewrites.value.variantRows, (table) => tablesReferencing(options.contract, table)), {\n\t\t\t\tfromContract: options.fromContract,\n\t\t\t\tcontract: options.contract,\n\t\t\t\torigins: statements.value.origins,\n\t\t\t\tstorageRenames: statements.value.storageRenames,\n\t\t\t\tbyHand: sqliteTableRenameByHand,\n\t\t\t\tremovedVariants: storedRewrites.value.removedVariants\n\t\t\t})\n\t\t};\n\t}\n\t/**\n\t* Plans the statements against a working copy of the schema the plan starts from, in order, so\n\t* each rename's index replacements are computed against the schema the earlier statements left.\n\t* The diff then runs on that schema.\n\t*/\n\tplanStatements(options) {\n\t\tconst working = createWorkingSchema(sqliteActualSchema(options.schema));\n\t\tconst planned = planStatements({\n\t\t\tstatements: options.statements.filter(isRenameStatement),\n\t\t\tfromContract: options.fromContract,\n\t\t\tcontract: options.contract,\n\t\t\tpolicy: options.policy,\n\t\t\ttarget: {\n\t\t\t\ttables: () => sqliteSchemaTables(working.current),\n\t\t\t\trenameTableCall: (rename) => sqliteTableRenameCall({\n\t\t\t\t\tprevious: working.current,\n\t\t\t\t\tcontract: options.contract,\n\t\t\t\t\trename,\n\t\t\t\t\tframeworkComponents: options.frameworkComponents\n\t\t\t\t}),\n\t\t\t\trenameColumnCall: (rename) => sqliteColumnRenameCall({\n\t\t\t\t\tprevious: working.current,\n\t\t\t\t\tcontract: options.contract,\n\t\t\t\t\trename,\n\t\t\t\t\tframeworkComponents: options.frameworkComponents\n\t\t\t\t}),\n\t\t\t\tapply: (call) => working.apply(call)\n\t\t\t}\n\t\t});\n\t\tif (!planned.ok) return planned;\n\t\treturn ok({\n\t\t\t...planned.value,\n\t\t\tschema: working.current\n\t\t});\n\t}\n\tensureAdditivePolicy(policy) {\n\t\tif (!policy.allowedOperationClasses.includes(\"additive\")) return plannerFailure([{\n\t\t\tkind: \"unsupportedOperation\",\n\t\t\tsummary: \"Migration planner requires additive operations be allowed\",\n\t\t\twhy: \"The planner requires the \\\"additive\\\" operation class to be allowed in the policy.\"\n\t\t}]);\n\t\treturn null;\n\t}\n\t/**\n\t* Diffs the target contract against the live schema via the one differ\n\t* (the same tree-building `diffSqliteSchema` uses, plus the\n\t* op-render stamper) and prepares the issue list `planIssues` consumes.\n\t*\n\t* Three passes, in order:\n\t* 1. Subtree coalescing — the differ is total (a missing/extra table also\n\t* emits an issue for every column/constraint under it); those nested\n\t* issues are redundant once the table-level `CreateTable`/`DropTable`\n\t* call already accounts for the whole subtree. Runs FIRST, over the\n\t* complete diff: a sibling-owned extra table's column issues must\n\t* collapse into its one table-level issue before the ownership pass,\n\t* because a bare column node carries no table reference — if coalescing\n\t* ran after ownership dropped the table-level issue, the orphaned column\n\t* issues would survive and the planner would emit drops against a\n\t* sibling space's table.\n\t* 2. Ownership — a live extra is only this plan's to drop when no contract\n\t* space owns it. The differ ran against THIS space's contract, so a\n\t* table a sibling owns surfaces here as `not-expected`; the planner asks\n\t* the ownership oracle (the passive aggregate) whether any space declares\n\t* it and, if so, leaves it alone. A table no space owns stays a genuine\n\t* extra. Ownership lives in the aggregate; the planner only asks. No\n\t* oracle (single-space) keeps every extra.\n\t* 3. Strict-mode extras gating — `not-expected` (extra table/column/\n\t* constraint) issues are dropped entirely outside strict mode, mirroring\n\t* the retired coordinate walk's `if (strict) { ...extra_* } }` guards:\n\t* an additive-only plan must never even consider dropping an unclaimed\n\t* object, not just refuse to emit the drop.\n\t*/\n\tcollectSchemaIssues(options, schema) {\n\t\tconst allowed = options.policy.allowedOperationClasses;\n\t\tconst strict = allowed.includes(\"widening\") || allowed.includes(\"destructive\");\n\t\tconst { expected, actual, issues: rawIssues } = buildSqlitePlanDiff({\n\t\t\tcontract: options.contract,\n\t\t\tactualSchema: schema,\n\t\t\tframeworkComponents: options.frameworkComponents\n\t\t});\n\t\tconst owned = retainUnownedExtras(coalesceSubtreeIssues(rawIssues), options.ownership);\n\t\treturn {\n\t\t\texpected,\n\t\t\tactual,\n\t\t\tissues: strict ? owned : owned.filter((issue) => issueOutcome(issue) !== \"not-expected\")\n\t\t};\n\t}\n};\n/**\n* Drops a `not-expected` issue when it is a whole extra TABLE that some\n* contract space owns, asking the ownership oracle per node.\n*\n* The consultation applies ONLY to table-level extras — a live table this\n* space's contract lacks — identified by asking the issue's own node\n* (`nodeKind === table`), never by counting path segments. SQLite is a\n* single-namespace target, so every coordinate is qualified with the shared\n* `UNBOUND_NAMESPACE_ID` sentinel (the same one the aggregate's declared\n* entities carry for this target). `entityKind` is the literal `'table'`:\n* this function only ever asks about a node already confirmed to be\n* `RelationalSchemaNodeKind.table` (checked just above), and that's a\n* diff-tree `nodeKind` spelling (`'sql-table'`) distinct from the storage\n* `entries` vocabulary `elementCoordinates` walks (`'table'`) — the literal\n* is that storage-entries spelling. `declaresEntity` answers over the whole\n* composition (self included), so a positive answer on such a table means\n* another space owns it (a table this space owned would be in its expected\n* tree, never an extra): leave it. A negative answer means no space owns\n* it — a genuine orphan to drop.\n*\n* A DEEPER extra (an extra column/constraint on a table this space DOES own —\n* only the child drifted, so the table is in the expected tree) is this\n* space's own drift and is always kept for dropping; asking the oracle there\n* would wrongly suppress it, because the owned table answers `true`. No oracle\n* ⇒ every extra is kept (single-space plan).\n*/\nfunction retainUnownedExtras(issues, ownership) {\n\tif (ownership === void 0) return issues;\n\treturn issues.filter((issue) => {\n\t\tif (issueOutcome(issue) !== \"not-expected\") return true;\n\t\tconst node = issueNode(issue);\n\t\tif (node === void 0 || node.nodeKind !== RelationalSchemaNodeKind.table) return true;\n\t\tconst tableName = issue.path[1];\n\t\treturn tableName === void 0 || !ownership.declaresEntity({\n\t\t\tnamespaceId: UNBOUND_NAMESPACE_ID,\n\t\t\tentityKind: \"table\",\n\t\t\tentityName: tableName\n\t\t});\n\t});\n}\n/** The tables of `contract` with a foreign key to `table`. */\nfunction tablesReferencing(contract, table) {\n\tconst tables = contract.storage.namespaces[UNBOUND_NAMESPACE_ID]?.entries.table ?? {};\n\treturn Object.entries(tables).flatMap(([name, candidate]) => candidate.foreignKeys.some(({ target }) => target.tableName === table) ? [name] : []);\n}\n//#endregion\nexport { sqliteStoredValueCallClasses as i, createSqliteMigrationPlanner as n, sqliteMarkedRemoval as r, SqliteMigrationPlanner as t };\n\n//# sourceMappingURL=planner-gq4m2U9I.mjs.map"],"mappings":";;;;;;;;;;AAUA,SAAS,KAAK,QAAQ,OAAO,QAAQ;CACpC,OAAO;EACN,GAAG;EACH;CACD;AACD;AACA,SAAS,YAAY,OAAO;CAC3B,OAAO;EACN,aAAa;EACb,OAAO;GACN,aAAa;GACb;GACA,QAAQ,KAAK;EACd;CACD;AACD;AACA,SAAS,aAAa,OAAO,QAAQ;CACpC,OAAO;EACN,aAAa,GAAG,MAAM,GAAG;EACzB,OAAO;GACN,aAAa;GACb;GACA;EACD;CACD;AACD;AACA,SAAS,iBAAiB,MAAM;CAC/B,OAAO,gBAAgB,QAAQ,MAAM,QAAQ,KAAK,UAAU,IAAI,IAAI,KAAK,WAAW,SAAS;AAC9F;;;;;AAKA,SAAS,eAAe,MAAM;CAC7B,MAAM,OAAO,IAAI,IAAI,KAAK,cAAc,QAAQ,KAAK,WAAW,OAAO,IAAI,CAAC;CAC5E,MAAM,UAAU,KAAK,kBAAkB,QAAQ,WAAW,CAAC,KAAK,IAAI,MAAM,CAAC;CAC3E,MAAM,UAAU,KAAK,mBAAmB,gBAAgB,KAAK,eAAe,QAAQ,WAAW,CAAC,OAAO,OAAO,KAAK,iBAAiB,MAAM,CAAC,IAAI,CAAC;CAChJ,OAAO,CAAC,GAAG,QAAQ,KAAK,YAAY;EACnC;EACA,MAAM;CACP,EAAE,GAAG,GAAG,QAAQ,KAAK,YAAY;EAChC;EACA,MAAM;CACP,EAAE,CAAC;AACJ;;AAEA,SAAS,kBAAkB,MAAM;CAChC,MAAM,SAAS,IAAI,IAAI,KAAK,iBAAiB;CAC7C,OAAO,OAAO,QAAQ,KAAK,eA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AU,KAAK,QAAQ,SAAS,aAAa;EAC7E,MAAM,EAAE,UAAU,QAAQ,QAAQ,cAAc,oBAAoB;GACnE,UAAU,QAAQ;GAClB,cAAc;GACd,qBAAqB,QAAQ;EAC9B,CAAC;EACD,MAAM,QAAQ,oBAAoB,sBAAsB,SAAS,GAAG,QAAQ,SAAS;EACrF,OAAO;GACN;GACA;GACA,QAAQ,SAAS,QAAQ,MAAM,QAAQ,UAAU,aAAa,KAAK,MAAM,cAAc;EACxF;CACD;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,SAAS,oBAAoB,QAAQ,WAAW;CAC/C,IAAI,cAAc,KAAK,GAAG,OAAO;CACjC,OAAO,OAAO,QAAQ,UAAU;EAC/B,IAAI,aAAa,KAAK,MAAM,gBAAgB,OAAO;EACnD,MAAM,OAAO,UAAU,KAAK;EAC5B,IAAI,SAAS,KAAK,KAAK,KAAK,aAAa,yBAAyB,OAAO,OAAO;EAChF,MAAM,YAAY,MAAM,KAAK;EAC7B,OAAO,cAAc,KAAK,KAAK,CAAC,UAAU,eAAe;GACxD,aAAa;GACb,YAAY;GACZ,YAAY;EACb,CAAC;CACF,CAAC;AACF;;AAEA,SAAS,kBAAkB,UAAU,OAAO;CAC3C,MAAM,SAAS,SAAS,QAAQ,WAAW,qBAAqB,EAAE,QAAQ,SAAS,CAAC;CACpF,OAAO,OAAO,QAAQ,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,eAAe,UAAU,YAAY,MAAM,EAAE,aAAa,OAAO,cAAc,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC;AAClJ"}
|
|
@@ -1,33 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
1
|
+
import { d as MIGRATION_MODULE } from "./op-factory-call-2IWWs4es-CajfeAMX.mjs";
|
|
2
|
+
import { t as SqliteMigration } from "./sqlite-migration-1OBxvebH-BNjpjOW4.mjs";
|
|
3
|
+
import { t as renderOps } from "./render-ops-BdrBMvjY-CyVOYy9i.mjs";
|
|
3
4
|
import { contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier } from "@prisma/orm-framework/components/control";
|
|
4
5
|
import { renderImports } from "@prisma/orm-framework/ts-render";
|
|
5
|
-
import { resolveRequirementSpecifiers } from "@prisma/orm-framework/components/emission";
|
|
6
6
|
import { detectScaffoldRuntime, shebangLineFor } from "@prisma/orm-toolchain/migration-tools/migration-ts";
|
|
7
|
-
//#region ../../../3-targets/sqlite/1-target/dist/planner-produced-sqlite-migration-
|
|
7
|
+
//#region ../../../3-targets/sqlite/1-target/dist/planner-produced-sqlite-migration-BnKx1gAX.mjs
|
|
8
8
|
/**
|
|
9
9
|
* Polymorphic TypeScript emitter for the SQLite migration IR. Mirrors the
|
|
10
10
|
* Postgres `render-typescript.ts` — different base-class + factory module
|
|
11
11
|
* specifier, same overall shape.
|
|
12
12
|
*/
|
|
13
|
-
/**
|
|
14
|
-
* Always-present base imports for the rendered scaffold. Both come from
|
|
15
|
-
* `@internal/sqlite/migration` so an authored SQLite
|
|
16
|
-
* `migration.ts` only needs a single dependency for its base class and
|
|
17
|
-
* its CLI entrypoint. Mirrors Postgres's `BASE_IMPORTS`.
|
|
18
|
-
*
|
|
19
|
-
* - `Migration` — the facade re-export fixes the `SqlMigration`
|
|
20
|
-
* generic to `SqlitePlanTargetDetails` and the abstract `targetId` to
|
|
21
|
-
* `'sqlite'`.
|
|
22
|
-
* - `MigrationCLI` — the migration-file CLI entrypoint, re-exported from
|
|
23
|
-
* `@internal/cli/migration-cli`. Loads `prisma.config.ts`,
|
|
24
|
-
* assembles a `ControlStack`, and instantiates the migration class.
|
|
25
|
-
*/
|
|
26
13
|
const BASE_IMPORTS = [{
|
|
27
|
-
moduleSpecifier:
|
|
14
|
+
moduleSpecifier: MIGRATION_MODULE,
|
|
28
15
|
symbol: "Migration"
|
|
29
16
|
}, {
|
|
30
|
-
moduleSpecifier:
|
|
17
|
+
moduleSpecifier: MIGRATION_MODULE,
|
|
31
18
|
symbol: "MigrationCLI"
|
|
32
19
|
}];
|
|
33
20
|
function renderCallsToTypeScript(calls, meta) {
|
|
@@ -57,7 +44,10 @@ function renderCallsToTypeScript(calls, meta) {
|
|
|
57
44
|
function buildImports(calls, meta) {
|
|
58
45
|
const requirements = [...BASE_IMPORTS, ...contractImports(meta)];
|
|
59
46
|
for (const call of calls) for (const req of call.importRequirements()) requirements.push(req);
|
|
60
|
-
return renderImports(
|
|
47
|
+
return renderImports(requirements.map((requirement) => requirement.moduleSpecifier === "<migrations.module>" ? {
|
|
48
|
+
...requirement,
|
|
49
|
+
moduleSpecifier: meta.migrationModule
|
|
50
|
+
} : requirement));
|
|
61
51
|
}
|
|
62
52
|
/**
|
|
63
53
|
* The committed contract-JSON imports the scaffold reads its from/to identity
|
|
@@ -135,16 +125,16 @@ var TypeScriptRenderableSqliteMigration = class extends SqliteMigration {
|
|
|
135
125
|
get spaceId() {
|
|
136
126
|
return this.#spaceId;
|
|
137
127
|
}
|
|
138
|
-
renderTypeScript(
|
|
128
|
+
renderTypeScript(migrationModule) {
|
|
139
129
|
return renderCallsToTypeScript(this.#calls, {
|
|
140
130
|
from: this.#meta.from,
|
|
141
131
|
to: this.#meta.to,
|
|
142
132
|
snapshotsImportPath: this.#snapshotsImportPath,
|
|
143
|
-
|
|
133
|
+
migrationModule
|
|
144
134
|
});
|
|
145
135
|
}
|
|
146
136
|
};
|
|
147
137
|
//#endregion
|
|
148
138
|
export { TypeScriptRenderableSqliteMigration as t };
|
|
149
139
|
|
|
150
|
-
//# sourceMappingURL=planner-produced-sqlite-migration-
|
|
140
|
+
//# sourceMappingURL=planner-produced-sqlite-migration-BnKx1gAX-BZMX06Q-.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planner-produced-sqlite-migration-BnKx1gAX-BZMX06Q-.mjs","names":["#calls","#meta","#spaceId","#snapshotsImportPath","#destination","#lowerer","#operationsCache"],"sources":["../../../../3-targets/sqlite/1-target/dist/planner-produced-sqlite-migration-BnKx1gAX.mjs"],"sourcesContent":["import { t as SqliteMigration } from \"./sqlite-migration-1OBxvebH.mjs\";\nimport { u as MIGRATION_MODULE } from \"./op-factory-call-2IWWs4es.mjs\";\nimport { t as renderOps } from \"./render-ops-BdrBMvjY.mjs\";\nimport { contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier } from \"@internal/framework-components/control\";\nimport { renderImports } from \"@internal/ts-render\";\nimport { detectScaffoldRuntime, shebangLineFor } from \"@internal/migration-tools/migration-ts\";\n//#region src/core/migrations/render-typescript.ts\n/**\n* Polymorphic TypeScript emitter for the SQLite migration IR. Mirrors the\n* Postgres `render-typescript.ts` — different base-class + factory module\n* specifier, same overall shape.\n*/\nconst BASE_IMPORTS = [{\n\tmoduleSpecifier: MIGRATION_MODULE,\n\tsymbol: \"Migration\"\n}, {\n\tmoduleSpecifier: MIGRATION_MODULE,\n\tsymbol: \"MigrationCLI\"\n}];\nfunction renderCallsToTypeScript(calls, meta) {\n\tconst imports = buildImports(calls, meta);\n\tconst operationsBody = calls.map((c) => c.renderTypeScript()).join(\",\\n\");\n\tconst hasStart = meta.from !== null;\n\tconst startField = hasStart ? [\" override readonly startContractJson = startContract;\"] : [];\n\treturn [\n\t\tshebangLineFor(detectScaffoldRuntime()),\n\t\timports,\n\t\t\"\",\n\t\t`export default class M extends Migration<${hasStart ? \"Start\" : \"never\"}, End> {`,\n\t\t...startField,\n\t\t\" override readonly endContractJson = endContract;\",\n\t\t\"\",\n\t\t\" override get operations() {\",\n\t\t\" return [\",\n\t\tindent(operationsBody, 6),\n\t\t\" ];\",\n\t\t\" }\",\n\t\t\"}\",\n\t\t\"\",\n\t\t\"MigrationCLI.run(import.meta.url, M);\",\n\t\t\"\"\n\t].join(\"\\n\");\n}\nfunction buildImports(calls, meta) {\n\tconst requirements = [...BASE_IMPORTS, ...contractImports(meta)];\n\tfor (const call of calls) for (const req of call.importRequirements()) requirements.push(req);\n\treturn renderImports(requirements.map((requirement) => requirement.moduleSpecifier === \"<migrations.module>\" ? {\n\t\t...requirement,\n\t\tmoduleSpecifier: meta.migrationModule\n\t} : requirement));\n}\n/**\n* The committed contract-JSON imports the scaffold reads its from/to identity\n* from, resolved to the deduplicated snapshot store under\n* `meta.snapshotsImportPath`. The end snapshot is always present; the start\n* snapshot is added only for a non-baseline migration (`meta.from !== null`).\n* The matching `Contract` type imports (aliased `Start`/`End`) feed the\n* `Migration<Start, End>` generics. Baseline emits `Migration<never, End>` with\n* no start imports — `never` is the honest \"no prior contract\" Start.\n*/\nfunction contractImports(meta) {\n\tconst reqs = [{\n\t\tmoduleSpecifier: contractSnapshotJsonSpecifier(meta.snapshotsImportPath, meta.to),\n\t\tsymbol: \"endContract\",\n\t\tkind: \"default\",\n\t\tattributes: { type: \"json\" }\n\t}, {\n\t\tmoduleSpecifier: contractSnapshotTypesSpecifier(meta.snapshotsImportPath, meta.to),\n\t\tsymbol: \"Contract\",\n\t\talias: \"End\",\n\t\ttypeOnly: true\n\t}];\n\tif (meta.from !== null) {\n\t\treqs.push({\n\t\t\tmoduleSpecifier: contractSnapshotJsonSpecifier(meta.snapshotsImportPath, meta.from),\n\t\t\tsymbol: \"startContract\",\n\t\t\tkind: \"default\",\n\t\t\tattributes: { type: \"json\" }\n\t\t});\n\t\treqs.push({\n\t\t\tmoduleSpecifier: contractSnapshotTypesSpecifier(meta.snapshotsImportPath, meta.from),\n\t\t\tsymbol: \"Contract\",\n\t\t\talias: \"Start\",\n\t\t\ttypeOnly: true\n\t\t});\n\t}\n\treturn reqs;\n}\nfunction indent(text, spaces) {\n\tconst pad = \" \".repeat(spaces);\n\treturn text.split(\"\\n\").map((line) => line.trim() ? `${pad}${line}` : line).join(\"\\n\");\n}\n//#endregion\n//#region src/core/migrations/planner-produced-sqlite-migration.ts\nvar TypeScriptRenderableSqliteMigration = class extends SqliteMigration {\n\t#calls;\n\t#meta;\n\t#destination;\n\t#spaceId;\n\t#snapshotsImportPath;\n\t#lowerer;\n\t#operationsCache;\n\tconstructor(calls, meta, spaceId, snapshotsImportPath, destination, lowerer) {\n\t\tsuper();\n\t\tthis.#calls = calls;\n\t\tthis.#meta = meta;\n\t\tthis.#spaceId = spaceId;\n\t\tthis.#snapshotsImportPath = snapshotsImportPath;\n\t\tthis.#destination = destination ?? { storageHash: meta.to };\n\t\tthis.#lowerer = lowerer;\n\t}\n\tget operations() {\n\t\tthis.#operationsCache ??= renderOps(this.#calls, this.#lowerer);\n\t\treturn this.#operationsCache;\n\t}\n\tdescribe() {\n\t\treturn this.#meta;\n\t}\n\tget destination() {\n\t\treturn this.#destination;\n\t}\n\t/**\n\t* Contract space this planner-produced plan applies to. Threaded\n\t* from {@link SqlMigrationPlannerPlanOptions.spaceId} so the runner\n\t* keys the marker row by the right space when executing the plan.\n\t*/\n\tget spaceId() {\n\t\treturn this.#spaceId;\n\t}\n\trenderTypeScript(migrationModule) {\n\t\treturn renderCallsToTypeScript(this.#calls, {\n\t\t\tfrom: this.#meta.from,\n\t\t\tto: this.#meta.to,\n\t\t\tsnapshotsImportPath: this.#snapshotsImportPath,\n\t\t\tmigrationModule\n\t\t});\n\t}\n};\n//#endregion\nexport { TypeScriptRenderableSqliteMigration as t };\n\n//# sourceMappingURL=planner-produced-sqlite-migration-BnKx1gAX.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,eAAe,CAAC;CACrB,iBAAiB;CACjB,QAAQ;AACT,GAAG;CACF,iBAAiB;CACjB,QAAQ;AACT,CAAC;AACD,SAAS,wBAAwB,OAAO,MAAM;CAC7C,MAAM,UAAU,aAAa,OAAO,IAAI;CACxC,MAAM,iBAAiB,MAAM,KAAK,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,KAAK;CACxE,MAAM,WAAW,KAAK,SAAS;CAC/B,MAAM,aAAa,WAAW,CAAC,wDAAwD,IAAI,CAAC;CAC5F,OAAO;EACN,eAAe,sBAAsB,CAAC;EACtC;EACA;EACA,4CAA4C,WAAW,UAAU,QAAQ;EACzE,GAA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ACA;CACA;CACA;CACA,YAAY,OAAO,MAAM,SAAS,qBAAqB,aAAa,SAAS;EAC5E,MAAM;EACN,KAAKA,SAAS;EACd,KAAKC,QAAQ;EACb,KAAKC,WAAW;EAChB,KAAKC,uBAAuB;EAC5B,KAAKC,eAAe,eAAe,EAAE,aAAa,KAAK,GAAG;EAC1D,KAAKC,WAAW;CACjB;CACA,IAAI,aAAa;EAChB,KAAKC,qBAAqB,UAAU,KAAKN,QAAQ,KAAKK,QAAQ;EAC9D,OAAO,KAAKC;CACb;CACA,WAAW;EACV,OAAO,KAAKL;CACb;CACA,IAAI,cAAc;EACjB,OAAO,KAAKG;CACb;;;;;;CAMA,IAAI,UAAU;EACb,OAAO,KAAKF;CACb;CACA,iBAAiB,iBAAiB;EACjC,OAAO,wBAAwB,KAAKF,QAAQ;GAC3C,MAAM,KAAKC,MAAM;GACjB,IAAI,KAAKA,MAAM;GACf,qBAAqB,KAAKE;GAC1B;EACD,CAAC;CACF;AACD"}
|
|
@@ -3,9 +3,8 @@ import { t as SqliteMigration } from "./sqlite-migration-C_9TPlLD-DtKN8bi9.mjs";
|
|
|
3
3
|
import { MigrationPlanWithAuthoringSurface, OpFactoryCall } from "@prisma/orm-framework/components/control";
|
|
4
4
|
import { SqlMigrationPlanOperation } from "@prisma/orm-family-sql/family/control";
|
|
5
5
|
import { MigrationMeta } from "@prisma/orm-toolchain/migration-tools/migration";
|
|
6
|
-
import { ImportSpecifierResolver } from "@prisma/orm-framework/components/emission";
|
|
7
6
|
import { ExecuteRequestLowerer } from "@prisma/orm-family-sql/family/control-adapter";
|
|
8
|
-
//#region ../../../3-targets/sqlite/1-target/dist/planner-produced-sqlite-migration-
|
|
7
|
+
//#region ../../../3-targets/sqlite/1-target/dist/planner-produced-sqlite-migration-CMjzJW5V.d.mts
|
|
9
8
|
//#region src/core/migrations/planner-produced-sqlite-migration.d.ts
|
|
10
9
|
type Op = SqlMigrationPlanOperation<SqlitePlanTargetDetails>;
|
|
11
10
|
interface SqliteMigrationDestinationInfo {
|
|
@@ -24,8 +23,8 @@ declare class TypeScriptRenderableSqliteMigration extends SqliteMigration implem
|
|
|
24
23
|
* keys the marker row by the right space when executing the plan.
|
|
25
24
|
*/
|
|
26
25
|
get spaceId(): string;
|
|
27
|
-
renderTypeScript(
|
|
26
|
+
renderTypeScript(migrationModule: string): string;
|
|
28
27
|
}
|
|
29
28
|
//#endregion
|
|
30
29
|
export { TypeScriptRenderableSqliteMigration as n, SqliteMigrationDestinationInfo as t };
|
|
31
|
-
//# sourceMappingURL=planner-produced-sqlite-migration-
|
|
30
|
+
//# sourceMappingURL=planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/planner-produced-sqlite-migration-CMjzJW5V.d.mts"],"mappings":";;;;;;;;KAOK,KAAK,0BAA0B;UAC1B;WACC;WACA;;cAEG,4CAA4C,2BAA2B;;EAEnF,YAAY,gBAAgB,iBAAiB,MAAM,eAAe,iBAAiB,6BAA6B,cAAc,gCAAgC,UAAU;MACpK,wBAAwB,KAAK,QAAQ;EACzC,YAAY;MACR,eAAe;;;;;;MAMf;EACJ,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { l as sqliteError } from "./errors-DxbvEzQp-CeTjoGtL.mjs";
|
|
2
|
+
import { E as isSqliteOpFactoryCall } from "./op-factory-call-2IWWs4es-CajfeAMX.mjs";
|
|
3
3
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
4
4
|
import { isThenable } from "@prisma/orm-framework/utils/promise";
|
|
5
|
-
//#region ../../../3-targets/sqlite/1-target/dist/render-ops-
|
|
5
|
+
//#region ../../../3-targets/sqlite/1-target/dist/render-ops-BdrBMvjY.mjs
|
|
6
6
|
function assertSqliteOp(op, callFactoryName) {
|
|
7
7
|
const targetId = blindCast(op).target?.id;
|
|
8
8
|
if (targetId !== "sqlite") throw sqliteError("MIGRATION.TARGET_MISMATCH", `renderOps: expected sqlite op but got target.id="${String(targetId)}" for op.id="${op.id}" (factoryName="${callFactoryName}"). An OpFactoryCall produced an op for a different target on the sqlite planner path; check the call's target binding.`, { meta: {
|
|
@@ -31,4 +31,4 @@ function renderOps(calls, lowerer) {
|
|
|
31
31
|
//#endregion
|
|
32
32
|
export { renderOps as t };
|
|
33
33
|
|
|
34
|
-
//# sourceMappingURL=render-ops-
|
|
34
|
+
//# sourceMappingURL=render-ops-BdrBMvjY-CyVOYy9i.mjs.map
|