@prisma/orm-target-sqlite 8.0.0-rc.14-dev.35 → 8.0.0-rc.14-dev.37
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-Bp_4Bjff-Ce3oZAN1.d.mts → adapter-Bp_4Bjff-CjV5K6YY.d.mts} +3 -3
- package/dist/{adapter-Bp_4Bjff-Ce3oZAN1.d.mts.map → adapter-Bp_4Bjff-CjV5K6YY.d.mts.map} +1 -1
- package/dist/adapter-C1WN74k-.d.mts +2 -0
- package/dist/{adapter-DUwfMiE4-C-kTEDXO.mjs → adapter-Dvjudmph-Dvu8g0lW.mjs} +23 -7
- package/dist/adapter-Dvjudmph-Dvu8g0lW.mjs.map +1 -0
- package/dist/adapter.d.mts +10 -10
- package/dist/adapter.mjs +4 -4
- package/dist/adapter__adapter.d.mts +2 -2
- package/dist/adapter__adapter.mjs +1 -1
- package/dist/adapter__codec-types.d.mts +3 -3
- package/dist/adapter__column-types.d.mts +1 -1
- package/dist/adapter__column-types.mjs +1 -1
- package/dist/adapter__control.d.mts +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 +3 -3
- 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/{codec-descriptor-BX2XRz4V-DxUIN3j3.mjs → codec-descriptor-Bf6MlyeJ-C1PfQ9LO.mjs} +3 -3
- package/dist/{codec-descriptor-BX2XRz4V-DxUIN3j3.mjs.map → codec-descriptor-Bf6MlyeJ-C1PfQ9LO.mjs.map} +1 -1
- package/dist/{codec-types-B_IhsOl9-WPSRXocH.d.mts → codec-types-0AMy_n05-BJvXpaEh.d.mts} +14 -4
- package/dist/codec-types-0AMy_n05-BJvXpaEh.d.mts.map +1 -0
- package/dist/codec-types-BV1uyhho.d.mts +1 -0
- package/dist/codec-types-CLFLW8jd.d.mts +2 -0
- package/dist/{codecs-DlI8SadA.mjs → codecs-ByvSFGut.mjs} +3 -3
- package/dist/{codecs-DlI8SadA.mjs.map → codecs-ByvSFGut.mjs.map} +1 -1
- package/dist/{codecs-r7gY3BuR-B6lXeFyH.mjs → codecs-CaOcjLon-BZ4M7GfD.mjs} +119 -45
- package/dist/codecs-CaOcjLon-BZ4M7GfD.mjs.map +1 -0
- package/dist/{codecs-hLsmWJRa-DfMCx_nO.d.mts → codecs-DeFZ_0jC-CgA8KUIS.d.mts} +37 -28
- package/dist/codecs-DeFZ_0jC-CgA8KUIS.d.mts.map +1 -0
- package/dist/codecs-xDq4DNf8.d.mts +1 -0
- package/dist/column-types-CWeuNngG.mjs +13 -0
- package/dist/column-types-CWeuNngG.mjs.map +1 -0
- package/dist/{column-types-iWGuW-0W.d.mts → column-types-DzzwJf7V.d.mts} +1 -8
- package/dist/column-types-DzzwJf7V.d.mts.map +1 -0
- package/dist/{control-1rQ6mko7.mjs → control-4njwExvT.mjs} +2 -1
- package/dist/control-4njwExvT.mjs.map +1 -0
- package/dist/{control-CEsPGd0f.mjs → control-B6oLQvl-.mjs} +16 -9
- package/dist/{control-CEsPGd0f.mjs.map → control-B6oLQvl-.mjs.map} +1 -1
- package/dist/{control-DgI8tIaw.d.mts → control-wWiQrj5H.d.mts} +6 -5
- package/dist/{control-DgI8tIaw.d.mts.map → control-wWiQrj5H.d.mts.map} +1 -1
- package/dist/data-type-entries-Bc09V6WN-Dc00J0G9.mjs +57 -0
- package/dist/data-type-entries-Bc09V6WN-Dc00J0G9.mjs.map +1 -0
- package/dist/{data-types-ZsgBg_Zg.d.mts → data-types-B_k5-Ohy.d.mts} +4 -11
- package/dist/data-types-B_k5-Ohy.d.mts.map +1 -0
- package/dist/data-types-pFQMl37_-B-3aK_wd.mjs +73 -0
- package/dist/data-types-pFQMl37_-B-3aK_wd.mjs.map +1 -0
- package/dist/{default-normalizer-Czg-VtmN-DEbkGbn7.mjs → default-normalizer-Ch3VFnEH-C-h1XtlJ.mjs} +6 -6
- package/dist/default-normalizer-Ch3VFnEH-C-h1XtlJ.mjs.map +1 -0
- package/dist/{descriptor-meta-AG8POta2-D-k13ZOE.mjs → descriptor-meta-C3n4Dwxu-DJiDDku0.mjs} +5 -5
- package/dist/{descriptor-meta-AG8POta2-D-k13ZOE.mjs.map → descriptor-meta-C3n4Dwxu-DJiDDku0.mjs.map} +1 -1
- package/dist/{descriptor-meta-CFPBLIHW-BwigY92R.mjs → descriptor-meta-CFPBLIHW-I-y9R_fj.mjs} +2 -2
- package/dist/{descriptor-meta-CFPBLIHW-BwigY92R.mjs.map → descriptor-meta-CFPBLIHW-I-y9R_fj.mjs.map} +1 -1
- package/dist/{descriptor-meta-runtime-CIrdwmEr-3T3t3kjc.mjs → descriptor-meta-runtime-Dqtz58eJ-BJ4UjLXW.mjs} +3 -3
- package/dist/{descriptor-meta-runtime-CIrdwmEr-3T3t3kjc.mjs.map → descriptor-meta-runtime-Dqtz58eJ-BJ4UjLXW.mjs.map} +1 -1
- package/dist/driver.mjs +1 -1
- package/dist/driver__control.mjs +1 -1
- package/dist/{migration-LE8F9qcM.d.mts → migration-Ccuxti02.d.mts} +2 -2
- package/dist/{migration-LE8F9qcM.d.mts.map → migration-Ccuxti02.d.mts.map} +1 -1
- package/dist/{migration-BA5np0wx.mjs → migration-Di-URWbl.mjs} +2 -2
- package/dist/{migration-BA5np0wx.mjs.map → migration-Di-URWbl.mjs.map} +1 -1
- package/dist/{op-factory-call-V6Wu86U8-B1Y4idhr.mjs → op-factory-call-HHnPrspy-7shWKb03.mjs} +13 -9
- package/dist/op-factory-call-HHnPrspy-7shWKb03.mjs.map +1 -0
- package/dist/{pack-B1iD7wyf.d.mts → pack-BIZIGw3P.d.mts} +2 -2
- package/dist/{pack-B1iD7wyf.d.mts.map → pack-BIZIGw3P.d.mts.map} +1 -1
- package/dist/{planner-Cm5kqc7I-CKSYA8QU.mjs → planner-BgH57J9_-DZQSi5aj.mjs} +5 -5
- package/dist/{planner-Cm5kqc7I-CKSYA8QU.mjs.map → planner-BgH57J9_-DZQSi5aj.mjs.map} +1 -1
- package/dist/{planner-B37W4Kaw.d.mts → planner-CFIbY54l.d.mts} +2 -2
- package/dist/{planner-B37W4Kaw.d.mts.map → planner-CFIbY54l.d.mts.map} +1 -1
- package/dist/{planner-produced-sqlite-migration-C6t5lWDq-DXm-Vkhf.d.mts → planner-produced-sqlite-migration-DXcx0sOR-CcMQKE7n.d.mts} +3 -3
- package/dist/planner-produced-sqlite-migration-DXcx0sOR-CcMQKE7n.d.mts.map +1 -0
- package/dist/{planner-produced-sqlite-migration-DWsg0vgl-N6_jUi2G.mjs → planner-produced-sqlite-migration-Rsg1Udsi-DMyO7zT3.mjs} +3 -3
- package/dist/{planner-produced-sqlite-migration-DWsg0vgl-N6_jUi2G.mjs.map → planner-produced-sqlite-migration-Rsg1Udsi-DMyO7zT3.mjs.map} +1 -1
- package/dist/planner-produced-sqlite-migration-sYbbeyyS.d.mts +1 -0
- package/dist/{runtime-CG71EORy.d.mts → runtime-612DH-du.d.mts} +2 -2
- package/dist/{runtime-CG71EORy.d.mts.map → runtime-612DH-du.d.mts.map} +1 -1
- package/dist/{runtime-B99c4n56.d.mts → runtime-8_WfNAcA.d.mts} +2 -2
- package/dist/{runtime-B99c4n56.d.mts.map → runtime-8_WfNAcA.d.mts.map} +1 -1
- package/dist/sql-renderer-fyjZG1VX.d.mts +1 -0
- package/dist/{sqlite-contract-view-BpNMaU2m-COMDaGaq.d.mts → sqlite-contract-view-BDw8T5Cp-CbLVOPJq.d.mts} +5 -4
- package/dist/sqlite-contract-view-BDw8T5Cp-CbLVOPJq.d.mts.map +1 -0
- package/dist/{sqlite-migration-2IEGvjRm-BQfd6NLr.d.mts → sqlite-migration-BSUZhMDG-DZU3d7bZ.d.mts} +3 -3
- package/dist/{sqlite-migration-2IEGvjRm-BQfd6NLr.d.mts.map → sqlite-migration-BSUZhMDG-DZU3d7bZ.d.mts.map} +1 -1
- package/dist/{sqlite-migration-CindFauZ-BM2X6Ha3.mjs → sqlite-migration-CJFj4Xjj-Bkj6DFpZ.mjs} +12 -11
- package/dist/sqlite-migration-CJFj4Xjj-Bkj6DFpZ.mjs.map +1 -0
- package/dist/target.d.mts +14 -14
- package/dist/target.mjs +13 -13
- package/dist/target__codec-descriptor.mjs +1 -1
- package/dist/target__codec-types.d.mts +3 -3
- package/dist/target__codecs.d.mts +2 -2
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__control.mjs +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.d.mts +2 -2
- package/dist/target__migration.mjs +2 -2
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__pack.d.mts +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-produced-sqlite-migration.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__runtime.d.mts +2 -2
- package/dist/target__runtime.mjs +1 -1
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/{types-CJW_JAJf.d.mts → types-BwhTlH8P.d.mts} +1 -1
- package/package.json +9 -9
- package/dist/adapter-C-sqCgrP.d.mts +0 -2
- package/dist/adapter-DUwfMiE4-C-kTEDXO.mjs.map +0 -1
- package/dist/codec-types-BXwJkshK.d.mts +0 -2
- package/dist/codec-types-B_IhsOl9-WPSRXocH.d.mts.map +0 -1
- package/dist/codec-types-BhSj11Hl.d.mts +0 -1
- package/dist/codecs-DSZbU8RG.d.mts +0 -1
- package/dist/codecs-hLsmWJRa-DfMCx_nO.d.mts.map +0 -1
- package/dist/codecs-r7gY3BuR-B6lXeFyH.mjs.map +0 -1
- package/dist/column-types-NVxgsjFA.mjs +0 -34
- package/dist/column-types-NVxgsjFA.mjs.map +0 -1
- package/dist/column-types-iWGuW-0W.d.mts.map +0 -1
- package/dist/control-1rQ6mko7.mjs.map +0 -1
- package/dist/data-type-entries-CL0a2goH-BCEztwoX.mjs +0 -68
- package/dist/data-type-entries-CL0a2goH-BCEztwoX.mjs.map +0 -1
- package/dist/data-types-Bs4y7eZb-B00ws2B6.mjs +0 -111
- package/dist/data-types-Bs4y7eZb-B00ws2B6.mjs.map +0 -1
- package/dist/data-types-ZsgBg_Zg.d.mts.map +0 -1
- package/dist/default-normalizer-Czg-VtmN-DEbkGbn7.mjs.map +0 -1
- package/dist/op-factory-call-V6Wu86U8-B1Y4idhr.mjs.map +0 -1
- package/dist/planner-produced-sqlite-migration-C6t5lWDq-DXm-Vkhf.d.mts.map +0 -1
- package/dist/planner-produced-sqlite-migration-D7O3_r38.d.mts +0 -1
- package/dist/sql-renderer-eeiux6H6.d.mts +0 -1
- package/dist/sqlite-contract-view-BpNMaU2m-COMDaGaq.d.mts.map +0 -1
- package/dist/sqlite-migration-CindFauZ-BM2X6Ha3.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SqlStorage } from "@prisma/orm-family-sql/contract/types";
|
|
2
2
|
import { SqlSingleNamespaceView } from "@prisma/orm-family-sql/contract/contract-view";
|
|
3
3
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
4
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/sqlite-contract-view-
|
|
4
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/sqlite-contract-view-BDw8T5Cp.d.mts
|
|
5
5
|
//#region src/core/sqlite-contract-view.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* A SQLite contract view: the deserialized contract intersected with by-name
|
|
@@ -16,8 +16,9 @@ import { Contract } from "@prisma/orm-framework/contract/types";
|
|
|
16
16
|
* view.storage // the full contract is still present
|
|
17
17
|
* ```
|
|
18
18
|
*
|
|
19
|
-
* SQLite has `sql.enums: false`, so it
|
|
20
|
-
* `valueSet`
|
|
19
|
+
* SQLite has `sql.enums: false`, so it has no native enum types, but an
|
|
20
|
+
* `enum` block still emits a `valueSet` entry listing the values its columns
|
|
21
|
+
* may store, and the `valueSet` slot holds those.
|
|
21
22
|
*/
|
|
22
23
|
type SqliteContractView<TContract extends Contract<SqlStorage> = Contract<SqlStorage>> = SqlSingleNamespaceView<TContract>;
|
|
23
24
|
declare const SqliteContractView: {
|
|
@@ -28,4 +29,4 @@ declare const SqliteContractView: {
|
|
|
28
29
|
};
|
|
29
30
|
//#endregion
|
|
30
31
|
export { SqliteContractView as t };
|
|
31
|
-
//# sourceMappingURL=sqlite-contract-view-
|
|
32
|
+
//# sourceMappingURL=sqlite-contract-view-BDw8T5Cp-CbLVOPJq.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-contract-view-BDw8T5Cp-CbLVOPJq.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/sqlite-contract-view-BDw8T5Cp.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;KAqBK,mBAAmB,kBAAkB,SAAS,cAAc,SAAS,eAAe,uBAAuB;cAClG;;EAEZ,KAAK,kBAAkB,SAAS,aAAa,UAAU,YAAY,mBAAmB;;EAEtF,SAAS,kBAAkB,SAAS,cAAc,SAAS,qBAAqB,gBAAgB,mBAAmB"}
|
package/dist/{sqlite-migration-2IEGvjRm-BQfd6NLr.d.mts → sqlite-migration-BSUZhMDG-DZU3d7bZ.d.mts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as SqlitePlanTargetDetails } from "./planner-target-details-xR6UfIcz-CMahymzq.mjs";
|
|
2
2
|
import { a as SqliteTableSpec, i as SqliteIndexSpec, n as RecreatePostcheck, r as SqliteColumnSpec } from "./tables-CvLOKCiJ-Ca1eFkWN.mjs";
|
|
3
|
-
import { t as SqliteContractView } from "./sqlite-contract-view-
|
|
3
|
+
import { t as SqliteContractView } from "./sqlite-contract-view-BDw8T5Cp-CbLVOPJq.mjs";
|
|
4
4
|
import { DdlColumn, DdlTableConstraint } from "@prisma/orm-family-sql/relational-core/ast";
|
|
5
5
|
import { ControlStack } from "@prisma/orm-framework/components/control";
|
|
6
6
|
import { SqlStorage } from "@prisma/orm-family-sql/contract/types";
|
|
@@ -8,7 +8,7 @@ import { MigrationOperationClass, SqlMigrationPlanOperation } from "@prisma/orm-
|
|
|
8
8
|
import { Migration } from "@prisma/orm-family-sql/family/migration";
|
|
9
9
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
10
10
|
import { SqlControlAdapter } from "@prisma/orm-family-sql/family/control-adapter";
|
|
11
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/sqlite-migration-
|
|
11
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/sqlite-migration-BSUZhMDG.d.mts
|
|
12
12
|
//#region src/core/migrations/sqlite-migration.d.ts
|
|
13
13
|
type Op = SqlMigrationPlanOperation<SqlitePlanTargetDetails>;
|
|
14
14
|
/**
|
|
@@ -107,4 +107,4 @@ declare abstract class SqliteMigration<Start extends Contract<SqlStorage> = Cont
|
|
|
107
107
|
}
|
|
108
108
|
//#endregion
|
|
109
109
|
export { SqliteMigration as t };
|
|
110
|
-
//# sourceMappingURL=sqlite-migration-
|
|
110
|
+
//# sourceMappingURL=sqlite-migration-BSUZhMDG-DZU3d7bZ.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-migration-
|
|
1
|
+
{"version":3,"file":"sqlite-migration-BSUZhMDG-DZU3d7bZ.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/sqlite-migration-BSUZhMDG.d.mts"],"mappings":";;;;;;;;;;;;KAWK,KAAK,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;uBAuBb,gBAAgB,cAAc,SAAS,cAAc,SAAS,aAAa,YAAY,SAAS,cAAc,SAAS,qBAAqB,UAAU,mCAAmC,OAAO;;WAE5M;;;;;;;qBAOU,gBAAgB;EACnC,YAAY,QAAQ;UACZ;;;;;;UAMA;;;;;;MAMJ,eAAe,mBAAmB;;;;;MAKlC,iBAAiB,mBAAmB;YAC9B,YAAY;aACX;aACA;aACA,kBAAkB;aAClB,uBAAuB;MAC9B,QAAQ;YACF,UAAU;aACT;MACP,QAAQ;;;;YAIF,YAAY;aACX;aACA;eACE,QAAQ;YACX,UAAU;aACT;aACA,QAAQ;MACf,QAAQ;YACF,WAAW;aACV;aACA;MACP,QAAQ;YACF,YAAY;aACX;aACA;aACA;MACP,QAAQ;YACF,UAAU;aACT;aACA;MACP,QAAQ;YACF,cAAc;aACb;aACA,eAAe;aACf;aACA,kBAAkB;aAClB;aACA,qBAAqB;aACrB,gBAAgB;MACvB,QAAQ"}
|
package/dist/{sqlite-migration-CindFauZ-BM2X6Ha3.mjs → sqlite-migration-CJFj4Xjj-Bkj6DFpZ.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as sqliteError, t as errorSqliteMigrationStackMissing } from "./errors-DnR-sMHS-KkMLIP2U.mjs";
|
|
2
2
|
import { n as SQLITE_NOW_EXPRESSION } from "./datetime-text-Bniwehv--Ddt3VS4z.mjs";
|
|
3
|
-
import { n as sqliteResolveDefault } from "./default-normalizer-
|
|
4
|
-
import { _ as sqliteIdentifiersCollide, a as DropColumnCall, d as buildColumnTypeSql, f as buildRecreatePostchecks, g as sqliteDefaultToDdlColumnDefault, h as renderDefaultLiteral, i as DataTransformCall, l as RecreateTableCall, n as CreateIndexCall, o as DropIndexCall, p as buildRecreateSummary, r as CreateTableCall, s as DropTableCall, t as AddColumnCall, u as RenameTableCall } from "./op-factory-call-
|
|
3
|
+
import { n as sqliteResolveDefault } from "./default-normalizer-Ch3VFnEH-C-h1XtlJ.mjs";
|
|
4
|
+
import { _ as sqliteIdentifiersCollide, a as DropColumnCall, d as buildColumnTypeSql, f as buildRecreatePostchecks, g as sqliteDefaultToDdlColumnDefault, h as renderDefaultLiteral, i as DataTransformCall, l as RecreateTableCall, n as CreateIndexCall, o as DropIndexCall, p as buildRecreateSummary, r as CreateTableCall, s as DropTableCall, t as AddColumnCall, u as RenameTableCall } from "./op-factory-call-HHnPrspy-7shWKb03.mjs";
|
|
5
5
|
import { t as CONTROL_TABLE_NAMES } from "./control-tables-D_o8dKRB-BXi43noL.mjs";
|
|
6
6
|
import { n as SqliteContractView } from "./sqlite-contract-view-BYR10usg-BteDAUZr.mjs";
|
|
7
7
|
import { DdlColumn, ForeignKeyConstraint, PrimaryKeyConstraint, UniqueConstraint } from "@prisma/orm-family-sql/relational-core/ast";
|
|
@@ -17,14 +17,14 @@ import { parseWireName } from "@prisma/orm-family-sql/schema-ir/naming";
|
|
|
17
17
|
import { notOk, ok } from "@prisma/orm-framework/utils/result";
|
|
18
18
|
import { Migration } from "@prisma/orm-family-sql/family/migration";
|
|
19
19
|
import { MigrationContractViews } from "@prisma/orm-toolchain/migration-tools/migration";
|
|
20
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/sqlite-migration-
|
|
20
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/sqlite-migration-CJFj4Xjj.mjs
|
|
21
21
|
/** Renders a column default for the SQLite dialect. */
|
|
22
22
|
function sqliteRenderDefault(def, column) {
|
|
23
23
|
if (def.kind === "function") {
|
|
24
24
|
if (def.expression === "now()") return SQLITE_NOW_EXPRESSION;
|
|
25
25
|
return def.expression;
|
|
26
26
|
}
|
|
27
|
-
return renderDefaultLiteral(def.value, column
|
|
27
|
+
return renderDefaultLiteral(def.value, column);
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* The SQLite expected-side projection: contract → flat relational schema IR.
|
|
@@ -88,7 +88,8 @@ function resolveControlPolicy(issue, contract) {
|
|
|
88
88
|
* flat actual root — exactly the legacy per-namespace pairing.
|
|
89
89
|
*/
|
|
90
90
|
function diffSqliteSchema(input) {
|
|
91
|
-
const
|
|
91
|
+
const types = sqlTypeLookupsOf(input.frameworkComponents);
|
|
92
|
+
const expected = sqliteContractToSchema(input.contract, types);
|
|
92
93
|
const actual = input.schema instanceof SqlSchemaIR ? input.schema : blindCast(input.schema);
|
|
93
94
|
return {
|
|
94
95
|
issues: diffSchemas(expected, actual),
|
|
@@ -104,7 +105,8 @@ function diffSqliteSchema(input) {
|
|
|
104
105
|
* plan time (`column-ddl-rendering.ts`), so no separate render stamping happens here.
|
|
105
106
|
*/
|
|
106
107
|
function buildSqlitePlanDiff(input) {
|
|
107
|
-
const
|
|
108
|
+
const types = sqlTypeLookupsOf(input.frameworkComponents);
|
|
109
|
+
const expected = sqliteContractToSchema(input.contract, types);
|
|
108
110
|
const actual = new SqlSchemaIR(withRecordKeyNames(input.actualSchema));
|
|
109
111
|
return {
|
|
110
112
|
expected,
|
|
@@ -156,7 +158,6 @@ function withRecordKeyNames(actualSchema) {
|
|
|
156
158
|
function columnLike(column) {
|
|
157
159
|
if (column.codecRef === void 0 || column.codecBaseNativeType === void 0) throw new InternalError(`columnLike: expected column "${column.name}" carries no codec identity — the expected tree must be derived via contractToSchemaIR for planning`);
|
|
158
160
|
return {
|
|
159
|
-
nativeType: column.codecBaseNativeType,
|
|
160
161
|
codecId: column.codecRef.codecId,
|
|
161
162
|
nullable: column.nullable,
|
|
162
163
|
many: column.many ?? column.codecRef.many ? { elementNullable: false } : false,
|
|
@@ -165,12 +166,12 @@ function columnLike(column) {
|
|
|
165
166
|
};
|
|
166
167
|
}
|
|
167
168
|
/**
|
|
168
|
-
* The default DDL writes. A contract default the column's
|
|
169
|
-
* emitted by an earlier version can hold, is refused rather than written.
|
|
169
|
+
* The default DDL writes. A contract default the canonical form of the column's values refuses,
|
|
170
|
+
* which a contract emitted by an earlier version can hold, is refused rather than written.
|
|
170
171
|
*/
|
|
171
172
|
function plannableDefault(column) {
|
|
172
173
|
const columnDefault = column.authoredDefault ?? column.resolvedDefault;
|
|
173
|
-
const refusal = contractDefaultRefusal(columnDefault, column.
|
|
174
|
+
const refusal = contractDefaultRefusal(columnDefault, column.toCanonicalForm, (column.many ?? column.codecRef?.many) === true);
|
|
174
175
|
if (refusal !== void 0) throw sqliteError("CONTRACT.DEFAULT_INVALID", `Column "${column.name}": ${refusal}`, { meta: {
|
|
175
176
|
reason: "default-not-canonical",
|
|
176
177
|
column: column.name
|
|
@@ -841,4 +842,4 @@ var SqliteMigration = class extends Migration {
|
|
|
841
842
|
//#endregion
|
|
842
843
|
export { diffSqliteSchema as a, pairIndexReplacements as c, sqlitePlannerStrategies as d, verifySqliteDatabaseSchema as f, conflictForDisallowedCall as i, planIssues as l, buildSqlitePlanDiff as n, indexNameCaseChange as o, coalesceSubtreeIssues as r, issueNode as s, SqliteMigration as t, sqliteContractToSchema as u };
|
|
843
844
|
|
|
844
|
-
//# sourceMappingURL=sqlite-migration-
|
|
845
|
+
//# sourceMappingURL=sqlite-migration-CJFj4Xjj-Bkj6DFpZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-migration-CJFj4Xjj-Bkj6DFpZ.mjs","names":["#endView","#startView"],"sources":["../../../../3-targets/3-targets/sqlite/dist/sqlite-migration-CJFj4Xjj.mjs"],"sourcesContent":["import { n as sqliteError, t as errorSqliteMigrationStackMissing } from \"./errors-DnR-sMHS.mjs\";\nimport { n as SQLITE_NOW_EXPRESSION } from \"./datetime-text-Bniwehv-.mjs\";\nimport { n as sqliteResolveDefault } from \"./default-normalizer-Ch3VFnEH.mjs\";\nimport { _ as buildColumnTypeSql, a as DropColumnCall, d as buildRecreatePostchecks, f as buildRecreateSummary, g as sqliteIdentifiersCollide, i as DataTransformCall, l as RecreateTableCall, m as sqliteDefaultToDdlColumnDefault, n as CreateIndexCall, o as DropIndexCall, r as CreateTableCall, s as DropTableCall, t as AddColumnCall, u as RenameTableCall, v as renderDefaultLiteral } from \"./op-factory-call-HHnPrspy.mjs\";\nimport { t as CONTROL_TABLE_NAMES } from \"./control-tables-D_o8dKRB.mjs\";\nimport { t as SqliteContractView } from \"./sqlite-contract-view-BYR10usg.mjs\";\nimport { DdlColumn, ForeignKeyConstraint, PrimaryKeyConstraint, UniqueConstraint } from \"@internal/sql-relational-core/ast\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { diffSchemas, issueOutcome, orderIssuesByDependencies } from \"@internal/framework-components/control\";\nimport { applyTableRename, contractToSchemaIR, sqlTypeLookupsOf } from \"@internal/family-sql/control\";\nimport { RelationalSchemaNodeKind, SqlIndexIR, SqlSchemaIR, contractDefaultRefusal, relationalNodeGranularity } from \"@internal/sql-schema-ir/types\";\nimport { entityAt } from \"@internal/framework-components/ir\";\nimport { verifySqlSchemaByDiff } from \"@internal/family-sql/diff\";\nimport { parseWireName } from \"@internal/sql-schema-ir/naming\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { Migration } from \"@internal/family-sql/migration\";\nimport { MigrationContractViews } from \"@internal/migration-tools/migration\";\n//#region src/core/migrations/diff-database-schema.ts\n/** Renders a column default for the SQLite dialect. */\nfunction sqliteRenderDefault(def, column) {\n\tif (def.kind === \"function\") {\n\t\tif (def.expression === \"now()\") return SQLITE_NOW_EXPRESSION;\n\t\treturn def.expression;\n\t}\n\treturn renderDefaultLiteral(def.value, column);\n}\n/**\n* The SQLite expected-side projection: contract → flat relational schema IR.\n*\n* Each column's type is written from the data type its codec represents.\n* Every expected column also carries its `codecRef` unconditionally\n* (Decision 5) — the planner's op-builders resolve DDL rendering from it at\n* plan time, so no separate render stamper is threaded here.\n*/\nfunction sqliteContractToSchema(contract, types) {\n\treturn contractToSchemaIR(contract, {\n\t\tannotationNamespace: \"sqlite\",\n\t\trenderDefault: sqliteRenderDefault,\n\t\tresolveDefault: sqliteResolveDefault,\n\t\tdataTypeLookup: types.dataTypeLookup,\n\t\tcodecLookup: types.codecLookup\n\t});\n}\n/**\n* The SQLite schema verify: the full-tree node-diff verdict wrapped in the\n* issue-based result envelope. Used by the runner's post-apply check; the\n* family `verifySchema` runs the same composition via the descriptor hook.\n*/\nfunction verifySqliteDatabaseSchema(input) {\n\treturn verifySqlSchemaByDiff({\n\t\tcontract: input.contract,\n\t\tschema: input.actualSchema,\n\t\tstrict: input.strict,\n\t\tframeworkComponents: input.frameworkComponents,\n\t\tdiffSchema: diffSqliteSchema,\n\t\tgranularityOf: relationalNodeGranularity\n\t});\n}\n/**\n* Resolves a verdict-diff issue's subject table's declared control policy\n* directly from the contract. SQLite's expected tree is flat, so the issue\n* path carries no namespace segment — `path[1]` is the table name (`path[0]`\n* is the tree root's own id); every contract namespace is searched for that\n* table name (table names are globally unique in the flat tree — duplicates\n* across namespaces are rejected earlier, at `contractToSchemaIR`).\n*/\nfunction resolveControlPolicy(issue, contract) {\n\tconst tableName = issue.path[1];\n\tif (tableName === void 0) return void 0;\n\tfor (const namespaceId of Object.keys(contract.storage.namespaces)) {\n\t\tconst table = entityAt(contract.storage, {\n\t\t\tnamespaceId,\n\t\t\tentityKind: \"table\",\n\t\t\tentityName: tableName\n\t\t});\n\t\tif (table !== void 0) return table.control;\n\t}\n}\n/**\n* The SQLite full-tree node diff for the family verify verdict: derive the\n* expected flat tree with resolved leaf values (parameterized types written\n* with their parameters; FK nodes born with the flat empty\n* `resolvedReferencedNamespace`), and run the generic differ over the trees\n* as derived. Flat targets need no ownership scoping. The codec `verifyType`\n* hooks run once per contract namespace with tables, each against the sole\n* flat actual root — exactly the legacy per-namespace pairing.\n*/\nfunction diffSqliteSchema(input) {\n\tconst types = sqlTypeLookupsOf(input.frameworkComponents);\n\tconst expected = sqliteContractToSchema(input.contract, types);\n\tconst actual = input.schema instanceof SqlSchemaIR ? input.schema : blindCast(input.schema);\n\treturn {\n\t\tissues: diffSchemas(expected, actual),\n\t\tresolveControlPolicy: (issue) => resolveControlPolicy(issue, input.contract),\n\t\tnamespacePairs: Object.values(input.contract.storage.namespaces).filter((ns) => Object.keys(ns.entries.table ?? {}).length > 0).map(() => ({ actual }))\n\t};\n}\n/**\n* The SQLite planner's diff input: the same tree-building\n* `diffSqliteSchema` uses (FK nodes born flat). One differ\n* drives both verify and plan over the trees as derived; this is the plan-side\n* derivation — column DDL resolves from each expected column's `codecRef` at\n* plan time (`column-ddl-rendering.ts`), so no separate render stamping happens here.\n*/\nfunction buildSqlitePlanDiff(input) {\n\tconst types = sqlTypeLookupsOf(input.frameworkComponents);\n\tconst expected = sqliteContractToSchema(input.contract, types);\n\tconst actual = new SqlSchemaIR(withRecordKeyNames(input.actualSchema));\n\treturn {\n\t\texpected,\n\t\tactual,\n\t\tissues: diffSchemas(expected, actual)\n\t};\n}\n/**\n* Every schema-tree builder in this codebase derives a table's / column's\n* `name` from the record key it's stored under (`contractToSchemaIR`,\n* the SQLite introspection adapter) rather than trusting a redundant\n* embedded field — the record key IS the identity. Mirrors that discipline\n* for the actual/live tree before construction, so `SqlTableIR.id` /\n* `SqlColumnIR.id` (both derived from `.name`) are always correct without\n* requiring every caller to duplicate the key onto the value. A no-op for a\n* tree that already carries matching names (the real introspection adapter\n* always does).\n*/\nfunction withRecordKeyNames(actualSchema) {\n\tconst raw = blindCast(actualSchema);\n\tconst tables = {};\n\tfor (const [tableName, table] of Object.entries(raw.tables ?? {})) {\n\t\tconst rawTable = blindCast(table);\n\t\tconst columns = {};\n\t\tfor (const [columnName, column] of Object.entries(blindCast(table).columns ?? {})) columns[columnName] = {\n\t\t\t...blindCast(column),\n\t\t\tname: columnName\n\t\t};\n\t\ttables[tableName] = {\n\t\t\t...rawTable,\n\t\t\tname: tableName,\n\t\t\tcolumns,\n\t\t\tforeignKeys: rawTable.foreignKeys ?? [],\n\t\t\tuniques: rawTable.uniques ?? [],\n\t\t\tindexes: rawTable.indexes ?? []\n\t\t};\n\t}\n\treturn { tables };\n}\n//#endregion\n//#region src/core/migrations/column-ddl-rendering.ts\n/**\n* Reconstructs the `StorageColumn`-shaped fields `buildColumnTypeSql`\n* expects, from a column node's own stamped codec\n* identity (`codecRef` / `codecBaseNativeType`, Decision 5) — never the\n* contract. `typeRef` is deliberately left unset here: setting it would send\n* `buildColumnTypeSql` back through a live `storageTypes` lookup the node's\n* fields have already resolved past, which throws for an unrecognized\n* reference.\n*/\nfunction columnLike(column) {\n\tif (column.codecRef === void 0 || column.codecBaseNativeType === void 0) throw new InternalError(`columnLike: expected column \"${column.name}\" carries no codec identity — the expected tree must be derived via contractToSchemaIR for planning`);\n\treturn {\n\t\tcodecId: column.codecRef.codecId,\n\t\tnullable: column.nullable,\n\t\tmany: column.many ?? column.codecRef.many ? { elementNullable: false } : false,\n\t\t...column.codecRef.typeParams !== void 0 ? { typeParams: blindCast(column.codecRef.typeParams) } : {},\n\t\t...ifDefined(\"default\", plannableDefault(column))\n\t};\n}\n/**\n* The default DDL writes. A contract default the canonical form of the column's values refuses,\n* which a contract emitted by an earlier version can hold, is refused rather than written.\n*/\nfunction plannableDefault(column) {\n\tconst columnDefault = column.authoredDefault ?? column.resolvedDefault;\n\tconst refusal = contractDefaultRefusal(columnDefault, column.toCanonicalForm, (column.many ?? column.codecRef?.many) === true);\n\tif (refusal !== void 0) throw sqliteError(\"CONTRACT.DEFAULT_INVALID\", `Column \"${column.name}\": ${refusal}`, { meta: {\n\t\treason: \"default-not-canonical\",\n\t\tcolumn: column.name\n\t} });\n\treturn columnDefault;\n}\n/**\n* True when the column is rendered inline as `INTEGER PRIMARY KEY\n* AUTOINCREMENT` — the sole member of the table's primary key with an\n* `autoincrement()` default. Node-based sibling of the retired\n* `isInlineAutoincrementPrimaryKey` (which read the raw `StorageTable`);\n* reads the table/column nodes instead.\n*/\nfunction isInlineAutoincrementPrimaryKeyNode(table, column) {\n\tif (table.primaryKey?.columns.length !== 1) return false;\n\tif (table.primaryKey.columns[0] !== column.name) return false;\n\treturn column.resolvedDefault?.kind === \"function\" && column.resolvedDefault.expression === \"autoincrement()\";\n}\n/**\n* Builds the flat `SqliteColumnSpec` `AddColumnCall` / `RecreateTableCall`\n* need, resolved from the column node's codec identity — the same builders\n* the pre-`plan(start, end)` op-path called, so the output is\n* byte-identical.\n*/\nfunction columnSpecFromNode(column, inline, types) {\n\tconst like = columnLike(column);\n\tconst typeSql = buildColumnTypeSql(like, types);\n\treturn {\n\t\tname: column.name,\n\t\ttypeSql,\n\t\t...inline ? {} : {\n\t\t\t...ifDefined(\"default\", like.default),\n\t\t\t...ifDefined(\"codecRef\", column.codecRef)\n\t\t},\n\t\tnullable: column.nullable,\n\t\t...inline ? { inlineAutoincrementPrimaryKey: true } : {}\n\t};\n}\n/**\n* Builds the `DdlColumn` the `CreateTableCall` path needs, resolved from the\n* column node's codec identity.\n*/\nfunction ddlColumnFromNode(column, inline, types) {\n\tconst like = columnLike(column);\n\tconst typeSql = buildColumnTypeSql(like, types);\n\tif (inline) return new DdlColumn({\n\t\tname: column.name,\n\t\ttype: `${typeSql} PRIMARY KEY AUTOINCREMENT`\n\t});\n\tconst colDefault = sqliteDefaultToDdlColumnDefault(like.default);\n\treturn new DdlColumn({\n\t\tname: column.name,\n\t\ttype: typeSql,\n\t\t...!column.nullable ? { notNull: true } : {},\n\t\t...colDefault !== void 0 ? { default: colDefault } : {},\n\t\t...column.codecRef !== void 0 ? { codecRef: column.codecRef } : {}\n\t});\n}\n/**\n* Builds the table-level constraints (PK / unique / FK) for a `CreateTable`\n* path from the table node — the node-sourced sibling of the retired\n* contract-based `tableToDdlParts`'s constraint half.\n*\n* A check constraint on the table node throws rather than being dropped.\n* `@@check` is refused earlier, by the `sql.checkConstraint` capability gate in\n* PSL interpretation. The TS `check()` builder is not gated there — capabilities\n* are adapter-reported and reach the contract only after it is built — so a\n* `check()` declared against SQLite arrives here, and this is where it is\n* refused. It is the primary enforcement point for that surface, and the safety\n* net for a contract that reached storage some other way.\n*/\nfunction tableConstraintsFromNode(table, hasInlinePk) {\n\tconst constraints = [];\n\tif (table.primaryKey && !hasInlinePk) constraints.push(new PrimaryKeyConstraint({ columns: table.primaryKey.columns }));\n\tfor (const check of table.checks ?? []) throw sqliteError(\"CONTRACT.CONSTRAINT_INVALID\", `The SQLite target does not support CHECK constraints (constraint \"${check.name}\" on table \"${table.name}\"). The \"checkConstraint\" capability is Postgres-only — remove the \"@@check\" / \"check()\" declaration, or target Postgres.`, { meta: {\n\t\tconstraintName: check.name,\n\t\ttableName: table.name\n\t} });\n\tfor (const u of table.uniques) constraints.push(new UniqueConstraint({\n\t\tcolumns: u.columns,\n\t\t...u.name !== void 0 ? { name: u.name } : {}\n\t}));\n\tfor (const fk of table.foreignKeys) constraints.push(new ForeignKeyConstraint({\n\t\tcolumns: fk.columns,\n\t\trefTable: fk.referencedTable,\n\t\trefColumns: fk.referencedColumns,\n\t\t...fk.name !== void 0 ? { name: fk.name } : {},\n\t\t...fk.onDelete !== void 0 ? { onDelete: fk.onDelete } : {},\n\t\t...fk.onUpdate !== void 0 ? { onUpdate: fk.onUpdate } : {}\n\t}));\n\treturn constraints;\n}\n//#endregion\n//#region src/core/migrations/planner-strategies.ts\n/**\n* Classifies a node issue into the operation class a recreate absorbing it\n* would need, or `null` when the strategy doesn't handle this node/reason at\n* all (table/column not-found-or-not-expected, and index issues — those are\n* standalone ops, never folded into a recreate).\n*\n* Column drift is a single `not-equal` issue now (type AND nullability\n* compared together by `SqlColumnIR.isEqualTo`), so this reads both fields\n* off the node pair directly rather than trusting a separate issue kind per\n* attribute: a type change is always destructive; a pure nullability change\n* is destructive when tightening (NOT NULL required) and widening when\n* relaxing.\n*/\nfunction classifyNodeIssue(issue) {\n\tconst node = issue.expected ?? issue.actual;\n\tif (node === void 0) return null;\n\tswitch (blindCast(node).nodeKind) {\n\t\tcase RelationalSchemaNodeKind.column: {\n\t\t\tif (issueOutcome(issue) !== \"not-equal\") return null;\n\t\t\tconst expected = blindCast(issue.expected);\n\t\t\tif (columnTypeChanged(expected, blindCast(issue.actual))) return \"destructive\";\n\t\t\treturn expected.nullable ? \"widening\" : \"destructive\";\n\t\t}\n\t\tcase RelationalSchemaNodeKind.columnDefault: return issueOutcome(issue) === \"not-expected\" ? \"destructive\" : \"widening\";\n\t\tcase RelationalSchemaNodeKind.primaryKey:\n\t\tcase RelationalSchemaNodeKind.foreignKey:\n\t\tcase RelationalSchemaNodeKind.unique: return \"destructive\";\n\t\tdefault: return null;\n\t}\n}\n/**\n* Groups recreate-eligible issues by table, decides per-table operation class\n* (destructive wins over widening), and emits one `RecreateTableCall` per\n* table. Returns unchanged-or-smaller issue list — issues the strategy\n* consumed are removed so `mapNodeIssueToCall` doesn't double-handle them.\n*\n* The full desired/live table shapes come from `ctx.expected`/`ctx.actual`\n* directly (keyed by table name — SQLite is a flat, single-namespace target)\n* rather than from any individual issue, since a single drifted attribute's\n* issue only carries that attribute's own node, never the whole table.\n*/\nconst recreateTableStrategy = (issues, ctx) => {\n\tconst byTable = /* @__PURE__ */ new Map();\n\tconst consumed = /* @__PURE__ */ new Set();\n\tfor (const issue of issues) {\n\t\tconst cls = classifyNodeIssue(issue);\n\t\tif (!cls) continue;\n\t\tconst tableName = issue.path[1];\n\t\tif (tableName === void 0) continue;\n\t\tconst entry = byTable.get(tableName);\n\t\tif (entry) {\n\t\t\tentry.issues.push(issue);\n\t\t\tif (cls === \"destructive\") entry.hasDestructive = true;\n\t\t} else byTable.set(tableName, {\n\t\t\tissues: [issue],\n\t\t\thasDestructive: cls === \"destructive\"\n\t\t});\n\t\tconsumed.add(issue);\n\t}\n\tif (byTable.size === 0) return { kind: \"no_match\" };\n\tconst calls = [];\n\tfor (const [tableName, entry] of byTable) {\n\t\tconst expectedTable = ctx.expected.tables[tableName];\n\t\tconst actualTable = ctx.actual.tables[tableName];\n\t\tif (!expectedTable || !actualTable) continue;\n\t\tconst operationClass = entry.hasDestructive ? \"destructive\" : \"widening\";\n\t\tconst tableSpec = tableSpecFromNode(expectedTable, ctx.types);\n\t\tconst indexes = expectedTable.indexes.map((idx) => ({\n\t\t\tname: idx.name,\n\t\t\tcolumns: idx.columns ?? []\n\t\t}));\n\t\tcalls.push(new RecreateTableCall({\n\t\t\ttableName,\n\t\t\tcontractTable: tableSpec,\n\t\t\tschemaColumnNames: Object.keys(actualTable.columns),\n\t\t\tindexes,\n\t\t\tsummary: buildRecreateSummary(tableName, entry.issues),\n\t\t\tpostchecks: buildRecreatePostchecks(tableName, entry.issues, tableSpec),\n\t\t\toperationClass\n\t\t}));\n\t}\n\treturn {\n\t\tkind: \"match\",\n\t\tissues: issues.filter((i) => !consumed.has(i)),\n\t\tcalls,\n\t\trecipe: true\n\t};\n};\n/**\n* When the policy allows `'data'` and the expected tree tightens one or more\n* columns from nullable to NOT NULL, emit a `DataTransformCall` stub per\n* tightened column. The user fills the backfill `UPDATE` in the rendered\n* `migration.ts` before the subsequent `RecreateTableCall` copies data into\n* the tightened schema (whose `INSERT INTO temp SELECT … FROM old` would\n* otherwise fail at runtime if any `NULL`s remain).\n*\n* Does NOT consume the tightening issue — `recreateTableStrategy` still\n* needs it to produce the actual recreate that enforces the NOT NULL at\n* the schema level. The backfill op and the recreate op end up in the\n* recipe slot in strategy order (backfill first, recreate second), which\n* matches the required execution order.\n*\n* Mirrors Postgres's `nullableTighteningCallStrategy` / `'data'`-class\n* gating. When `'data'` is not in the policy (the default `db update` /\n* `db init` path), the strategy short-circuits and the recreate alone\n* runs with its current destructive-class gating — preserving today's\n* behavior where a tightening blows up at runtime if NULLs are present.\n*/\nconst nullabilityTighteningBackfillStrategy = (issues, ctx) => {\n\tif (!ctx.policy.allowedOperationClasses.includes(\"data\")) return { kind: \"no_match\" };\n\tconst calls = [];\n\tfor (const issue of issues) {\n\t\tif (issueOutcome(issue) !== \"not-equal\" || issue.expected === void 0 || issue.actual === void 0) continue;\n\t\tif (blindCast(issue.expected).nodeKind !== RelationalSchemaNodeKind.column) continue;\n\t\tconst expectedColumn = blindCast(issue.expected);\n\t\tconst actualColumn = blindCast(issue.actual);\n\t\tif (expectedColumn.nullable === actualColumn.nullable) continue;\n\t\tif (expectedColumn.nullable) continue;\n\t\tconst tableName = issue.path[1];\n\t\tif (tableName === void 0) continue;\n\t\tcalls.push(new DataTransformCall(`data_migration.backfill-${tableName}-${expectedColumn.name}`, `Backfill NULLs in \"${tableName}\".\"${expectedColumn.name}\" before NOT NULL tightening`, tableName, expectedColumn.name));\n\t}\n\tif (calls.length === 0) return { kind: \"no_match\" };\n\treturn {\n\t\tkind: \"match\",\n\t\tissues,\n\t\tcalls,\n\t\trecipe: true\n\t};\n};\nconst sqlitePlannerStrategies = [nullabilityTighteningBackfillStrategy, recreateTableStrategy];\n//#endregion\n//#region src/core/migrations/issue-planner.ts\n/**\n* The generic differ is total: a missing/extra table (or column) emits an\n* issue for itself AND for every node in its subtree (columns, defaults,\n* constraints, indexes). `CreateTableCall`/`DropTableCall` and\n* `AddColumnCall`/`DropColumnCall` already account for the whole subtree\n* (reading it directly off the table/column node), so the nested issues are\n* redundant — coalescing them is \"the planner's responsibility\" the differ's\n* own contract assigns (`schema-diff.ts`). Drops any issue whose path is a\n* strict descendant of a `not-found`/`not-expected` issue's path.\n*/\nfunction coalesceSubtreeIssues(issues) {\n\tconst collapsingPaths = issues.filter((issue) => issueOutcome(issue) === \"not-found\" || issueOutcome(issue) === \"not-expected\").map((issue) => issue.path);\n\tif (collapsingPaths.length === 0) return issues;\n\treturn issues.filter((issue) => !collapsingPaths.some((ancestor) => isStrictDescendantPath(issue.path, ancestor)));\n}\nfunction isStrictDescendantPath(path, ancestor) {\n\tif (path.length <= ancestor.length) return false;\n\tfor (let i = 0; i < ancestor.length; i += 1) if (path[i] !== ancestor[i]) return false;\n\treturn true;\n}\nfunction issueNode(issue) {\n\tconst node = issue.expected ?? issue.actual;\n\tif (node === void 0) return void 0;\n\treturn blindCast(node);\n}\n/** Whether the expected/actual native type (resolved, or raw+many fallback) differs — mirrors `SqlColumnIR.isEqualTo`'s type comparison. */\nfunction columnTypeChanged(expected, actual) {\n\tif (expected.resolvedNativeType !== void 0 && actual.resolvedNativeType !== void 0) return expected.resolvedNativeType !== actual.resolvedNativeType;\n\treturn expected.nativeType !== actual.nativeType || Boolean(expected.many) !== Boolean(actual.many);\n}\n/**\n* Builds the flat `SqliteTableSpec` `RecreateTableCall` needs from the\n* expected table node — the node-sourced equivalent of the retired\n* `toTableSpec` (which read a raw contract `StorageTable`). Every column's\n* spec is resolved from its `codecRef` via `columnSpecFromNode`.\n*/\nfunction tableSpecFromNode(table, types) {\n\tconst columns = Object.values(table.columns).map((c) => columnSpecFromNode(c, isInlineAutoincrementPrimaryKeyNode(table, c), types));\n\tconst uniques = table.uniques.map((u) => ({\n\t\tcolumns: u.columns,\n\t\t...u.name !== void 0 ? { name: u.name } : {}\n\t}));\n\tconst foreignKeys = table.foreignKeys.map((fk) => ({\n\t\tcolumns: fk.columns,\n\t\treferences: {\n\t\t\ttable: fk.referencedTable,\n\t\t\tcolumns: fk.referencedColumns\n\t\t},\n\t\t...fk.name !== void 0 ? { name: fk.name } : {},\n\t\t...fk.onDelete !== void 0 ? { onDelete: fk.onDelete } : {},\n\t\t...fk.onUpdate !== void 0 ? { onUpdate: fk.onUpdate } : {}\n\t}));\n\treturn {\n\t\tcolumns,\n\t\t...table.primaryKey ? { primaryKey: { columns: table.primaryKey.columns } } : {},\n\t\tuniques,\n\t\tforeignKeys\n\t};\n}\nfunction issueConflict(kind, summary, location) {\n\treturn {\n\t\tkind,\n\t\tsummary,\n\t\twhy: \"Use `migration new` to author a custom migration for this change.\",\n\t\t...location ? { location } : {}\n\t};\n}\nfunction issueLocation(tableName, columnName) {\n\treturn columnName !== void 0 ? {\n\t\tentityKind: \"table\",\n\t\tentityName: tableName,\n\t\tcolumn: columnName\n\t} : {\n\t\tentityKind: \"table\",\n\t\tentityName: tableName\n\t};\n}\n/**\n* Conflict kind for a node kind that `recreateTableStrategy` absorbs for\n* every reachable production issue. Reaching `mapNodeIssueToCall` for one of\n* these means the recreate strategy didn't run — mirrors the legacy\n* `conflictKindForIssue` per-kind categorization.\n*/\nfunction absorbedConflictKind(nodeKind) {\n\tswitch (nodeKind) {\n\t\tcase RelationalSchemaNodeKind.primaryKey:\n\t\tcase RelationalSchemaNodeKind.unique: return \"indexIncompatible\";\n\t\tcase RelationalSchemaNodeKind.foreignKey: return \"foreignKeyConflict\";\n\t\tdefault: return \"missingButNonAdditive\";\n\t}\n}\n/**\n* Builds the `CreateTableCall` + per-index `CreateIndexCall`s for a\n* newly-expected table. Reads only the table node's own children — indexes\n* (declared + FK-backing, deduped) are already merged and ordered at\n* derivation (`contractToSchemaIR`'s `convertTable`).\n*/\nfunction buildCreateTableCalls(table, types) {\n\tconst columns = Object.values(table.columns).map((c) => ddlColumnFromNode(c, isInlineAutoincrementPrimaryKeyNode(table, c), types));\n\tconst constraints = tableConstraintsFromNode(table, Object.values(table.columns).some((c) => isInlineAutoincrementPrimaryKeyNode(table, c)));\n\tconst calls = [new CreateTableCall(table.name, columns, constraints.length > 0 ? constraints : void 0)];\n\tfor (const index of table.indexes) {\n\t\tconst indexName = index.name;\n\t\tcalls.push(new CreateIndexCall(table.name, indexName, index.columns ?? []));\n\t}\n\treturn calls;\n}\nfunction mapTableIssue(issue, types) {\n\tif (issueOutcome(issue) === \"not-found\") return ok(buildCreateTableCalls(blindCast(issue.expected), types));\n\tif (issueOutcome(issue) === \"not-expected\") {\n\t\tconst table = blindCast(issue.actual);\n\t\tif (CONTROL_TABLE_NAMES.has(table.name)) return ok([]);\n\t\treturn ok([new DropTableCall(table.name)]);\n\t}\n\treturn notOk(issueConflict(\"unsupportedOperation\", `Unexpected table drift: ${issue.path.join(\"/\")}`));\n}\nfunction mapColumnIssue(issue, ctx) {\n\tconst tableName = issue.path[1];\n\tif (tableName === void 0) return notOk(issueConflict(\"unsupportedOperation\", `Column issue has no table in its path: ${issue.path.join(\"/\")}`));\n\tif (issueOutcome(issue) === \"not-found\") {\n\t\tconst column = blindCast(issue.expected);\n\t\tconst table = ctx.expected.tables[tableName];\n\t\treturn ok([new AddColumnCall(tableName, columnSpecFromNode(column, table !== void 0 && isInlineAutoincrementPrimaryKeyNode(table, column), ctx.types))]);\n\t}\n\tif (issueOutcome(issue) === \"not-expected\") return ok([new DropColumnCall(tableName, blindCast(issue.actual).name)]);\n\tconst expected = blindCast(issue.expected);\n\treturn notOk(issueConflict(columnTypeChanged(expected, blindCast(issue.actual)) ? \"typeMismatch\" : \"nullabilityConflict\", issue.path.join(\"/\"), issueLocation(tableName, expected.name)));\n}\nfunction mapIndexIssue(issue) {\n\tconst tableName = issue.path[1];\n\tif (tableName === void 0) return notOk(issueConflict(\"unsupportedOperation\", `Index issue has no table in its path: ${issue.path.join(\"/\")}`));\n\tif (issueOutcome(issue) === \"not-found\") {\n\t\tconst index = blindCast(issue.expected);\n\t\tconst indexName = index.name;\n\t\treturn ok([new CreateIndexCall(tableName, indexName, index.columns ?? [])]);\n\t}\n\tif (issueOutcome(issue) === \"not-expected\") {\n\t\tconst indexName = blindCast(issue.actual).name;\n\t\treturn ok([new DropIndexCall(tableName, indexName)]);\n\t}\n\treturn notOk(issueConflict(\"indexIncompatible\", issue.path.join(\"/\"), issueLocation(tableName)));\n}\nfunction mapNodeIssueToCall(issue, ctx) {\n\tconst node = issueNode(issue);\n\tif (node === void 0) return notOk(issueConflict(\"unsupportedOperation\", `Issue carries neither an expected nor an actual node: ${issue.path.join(\"/\")}`));\n\tswitch (node.nodeKind) {\n\t\tcase RelationalSchemaNodeKind.table: return mapTableIssue(issue, ctx.types);\n\t\tcase RelationalSchemaNodeKind.column: return mapColumnIssue(issue, ctx);\n\t\tcase RelationalSchemaNodeKind.index: return mapIndexIssue(issue);\n\t\tcase RelationalSchemaNodeKind.columnDefault:\n\t\tcase RelationalSchemaNodeKind.primaryKey:\n\t\tcase RelationalSchemaNodeKind.foreignKey:\n\t\tcase RelationalSchemaNodeKind.unique: return notOk(issueConflict(absorbedConflictKind(node.nodeKind), issue.path.join(\"/\")));\n\t\tcase RelationalSchemaNodeKind.check: return notOk(issueConflict(\"unsupportedOperation\", `The SQLite target does not support CHECK constraint DDL: ${issue.path.join(\"/\")}`));\n\t\tdefault: return notOk(issueConflict(\"unsupportedOperation\", `Unhandled node kind: ${node.nodeKind}`));\n\t}\n}\nfunction classifyCall(call) {\n\tswitch (call.factoryName) {\n\t\tcase \"createTable\": return \"create-table\";\n\t\tcase \"addColumn\": return \"add-column\";\n\t\tcase \"createIndex\": return \"create-index\";\n\t\tcase \"dropColumn\": return \"drop-column\";\n\t\tcase \"dropIndex\": return \"drop-index\";\n\t\tcase \"dropTable\": return \"drop-table\";\n\t\tcase \"recreateTable\": return null;\n\t\tdefault: return null;\n\t}\n}\nconst DEFAULT_POLICY = { allowedOperationClasses: [\n\t\"additive\",\n\t\"widening\",\n\t\"destructive\",\n\t\"data\"\n] };\nfunction planIssues(options) {\n\tconst policyProvided = options.policy !== void 0;\n\tconst policy = options.policy ?? DEFAULT_POLICY;\n\tconst frameworkComponents = options.frameworkComponents ?? [];\n\tconst context = {\n\t\texpected: options.expected ?? emptySchemaIR(),\n\t\tactual: options.actual ?? emptySchemaIR(),\n\t\tpolicy,\n\t\tframeworkComponents,\n\t\ttypes: sqlTypeLookupsOf(frameworkComponents)\n\t};\n\tconst strategies = options.strategies ?? sqlitePlannerStrategies;\n\tlet remaining = options.issues;\n\tconst recipeCalls = [];\n\tconst bucketableCalls = [];\n\tfor (const strategy of strategies) {\n\t\tconst result = strategy(remaining, context);\n\t\tif (result.kind === \"match\") {\n\t\t\tremaining = result.issues;\n\t\t\tif (result.recipe) recipeCalls.push(...result.calls);\n\t\t\telse bucketableCalls.push(...result.calls);\n\t\t}\n\t}\n\tconst sorted = orderIssuesByDependencies(remaining);\n\tconst defaultCalls = [];\n\tconst conflicts = [];\n\tfor (const issue of sorted) {\n\t\tconst result = mapNodeIssueToCall(issue, context);\n\t\tif (result.ok) defaultCalls.push(...result.value);\n\t\telse conflicts.push(result.failure);\n\t}\n\tconst allowed = policy.allowedOperationClasses;\n\tlet gatedRecipe = recipeCalls;\n\tlet gatedBucketable = bucketableCalls;\n\tlet gatedDefault = defaultCalls;\n\tif (policyProvided) {\n\t\tconst sink = (acc) => (call) => {\n\t\t\tif (allowed.includes(call.operationClass)) {\n\t\t\t\tacc.push(call);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconflicts.push(conflictForDisallowedCall(call, allowed));\n\t\t};\n\t\tconst gatedRecipeBucket = [];\n\t\tconst gatedBucketableBucket = [];\n\t\tconst gatedDefaultBucket = [];\n\t\trecipeCalls.forEach(sink(gatedRecipeBucket));\n\t\tbucketableCalls.forEach(sink(gatedBucketableBucket));\n\t\tdefaultCalls.forEach(sink(gatedDefaultBucket));\n\t\tgatedRecipe = gatedRecipeBucket;\n\t\tgatedBucketable = gatedBucketableBucket;\n\t\tgatedDefault = gatedDefaultBucket;\n\t}\n\tif (conflicts.length > 0) return notOk(conflicts);\n\tconst combined = [...gatedDefault, ...gatedBucketable];\n\tconst byCategory = (cat) => combined.filter((c) => classifyCall(c) === cat);\n\treturn ok({ calls: [\n\t\t...byCategory(\"create-table\"),\n\t\t...byCategory(\"add-column\"),\n\t\t...byCategory(\"create-index\"),\n\t\t...gatedRecipe,\n\t\t...byCategory(\"drop-column\"),\n\t\t...byCategory(\"drop-index\"),\n\t\t...byCategory(\"drop-table\")\n\t] });\n}\nfunction emptySchemaIR() {\n\treturn new SqlSchemaIR({ tables: {} });\n}\nfunction conflictForDisallowedCall(call, allowed) {\n\tconst summary = `Operation \"${call.label}\" requires class \"${call.operationClass}\", but policy allows only: ${allowed.join(\", \")}`;\n\tconst location = locationForCall(call);\n\treturn {\n\t\tkind: conflictKindForCall(call),\n\t\tsummary,\n\t\twhy: \"Use `migration new` to author a custom migration for this change.\",\n\t\trefusedOperationClass: call.operationClass,\n\t\t...location ? { location } : {}\n\t};\n}\nfunction conflictKindForCall(call) {\n\tswitch (call.factoryName) {\n\t\tcase \"createIndex\":\n\t\tcase \"dropIndex\": return \"indexIncompatible\";\n\t\tdefault: return \"missingButNonAdditive\";\n\t}\n}\nfunction locationForCall(call) {\n\tconst location = {};\n\tif (\"tableName\" in call) {\n\t\tlocation.entityKind = \"table\";\n\t\tlocation.entityName = call.tableName;\n\t}\n\tif (\"columnName\" in call) location.column = call.columnName;\n\tif (\"indexName\" in call) location.index = call.indexName;\n\treturn Object.keys(location).length > 0 ? location : void 0;\n}\n//#endregion\n//#region src/core/migrations/index-replacements.ts\nfunction indexFindings(issues, outcome) {\n\treturn issues.flatMap((issue) => {\n\t\tconst node = issueNode(issue);\n\t\tconst tableName = issue.path[1];\n\t\tif (node === void 0 || !SqlIndexIR.is(node) || tableName === void 0) return [];\n\t\treturn issueOutcome(issue) === outcome ? [{\n\t\t\tissue,\n\t\t\tindex: node,\n\t\t\ttableName\n\t\t}] : [];\n\t});\n}\n/**\n* An index on a renamed table whose wire name derives from the table name: the old and the new index share their content hash and differ in name.\n*/\nfunction renamedTableIndex(renamedTables) {\n\treturn (old, replacement) => {\n\t\tconst oldWire = parseWireName(old.index.name);\n\t\tconst replacementWire = parseWireName(replacement.index.name);\n\t\treturn renamedTables.has(old.tableName) && old.tableName === replacement.tableName && oldWire !== void 0 && oldWire.hash === replacementWire?.hash && old.index.name !== replacement.index.name;\n\t};\n}\n/**\n* An index on the same table whose new name SQLite takes for the old one, as after a table renamed by hand. Its content is not compared: the old index must be dropped before the new one can be created whatever either defines, and the new one is created from its own definition.\n*/\nconst indexNameCaseChange = (old, replacement) => old.tableName === replacement.tableName && old.index.name !== replacement.index.name && sqliteIdentifiersCollide(old.index.name, replacement.index.name);\n/**\n* Pairs each index the plan drops with the index that replaces it, and plans every paired drop before every paired create. SQLite cannot rename an index, and it compares index names without regard to the case of ASCII letters, so a replacement whose name differs from the old one only in that case would otherwise collide with it. The paired issues are returned as consumed so the ordinary diff does not plan them again.\n*/\nfunction pairIndexReplacements(issues, matches) {\n\tconst missing = indexFindings(issues, \"not-found\");\n\tconst pairs = indexFindings(issues, \"not-expected\").flatMap((old) => {\n\t\tconst replacement = missing.find((candidate) => matches(old, candidate));\n\t\tif (replacement === void 0) return [];\n\t\tmissing.splice(missing.indexOf(replacement), 1);\n\t\treturn [{\n\t\t\told,\n\t\t\treplacement\n\t\t}];\n\t});\n\treturn {\n\t\tcalls: [...pairs.map(({ old }) => new DropIndexCall(old.tableName, old.index.name)), ...pairs.map(({ replacement }) => new CreateIndexCall(replacement.tableName, replacement.index.name, replacement.index.columns ?? []))],\n\t\tconsumed: new Set(pairs.flatMap(({ old, replacement }) => [old.issue, replacement.issue]))\n\t};\n}\n//#endregion\n//#region src/core/migrations/table-rename-calls.ts\n/**\n* The calls a migration's `renameTable` emits: the table rename, then a drop of each wire-named index whose prefix derives from the old table name and a create of it under the new name, since SQLite cannot rename an index. SQLite names no primary key, unique constraint or foreign key the contract leaves unnamed, so those need nothing. Throws `MIGRATION.TABLE_RENAME_UNMATCHED` when the start contract lacks the table or the end contract lacks the new name.\n*/\nfunction sqliteTableRenameCalls(input) {\n\tconst applied = applyTableRename({\n\t\tstartContract: input.startContract,\n\t\tendContract: input.endContract,\n\t\trename: input.rename,\n\t\trenameTableReferences: void 0\n\t});\n\tif (!applied.ok) throw applied.failure;\n\tconst { rename } = applied.value;\n\tconst { issues } = buildSqlitePlanDiff({\n\t\tcontract: input.endContract,\n\t\tactualSchema: sqliteContractToSchema(applied.value.contract, sqlTypeLookupsOf(input.frameworkComponents)),\n\t\tframeworkComponents: input.frameworkComponents\n\t});\n\treturn [new RenameTableCall(rename.from, rename.to), ...pairIndexReplacements(coalesceSubtreeIssues(issues), renamedTableIndex(/* @__PURE__ */ new Set([rename.to]))).calls];\n}\n//#endregion\n//#region src/core/migrations/sqlite-migration.ts\n/**\n* Target-owned base class for SQLite migrations. Fixes the `SqlMigration`\n* generic to `SqlitePlanTargetDetails` and the abstract `targetId` to the\n* SQLite literal, so both user-authored migrations and renderer-generated\n* scaffolds can extend `SqliteMigration` directly without redeclaring\n* target-local identity.\n*\n* The constructor materializes a single SQLite `SqlControlAdapter` from\n* `stack.adapter.create(stack)` and stores it; the protected instance methods\n* forward to the corresponding `*Call` with that stored adapter, so user\n* migrations can write `this.createTable({...})` without threading the adapter\n* through every call.\n*\n* Binds the framework base's `Start` / `End` contract generics so a subclass\n* that assigns its snapshot-store `contract.json` imports to\n* `startContractJson` / `endContractJson` gets fully-typed view accessors:\n* `this.endContract` is a `SqliteContractView<End>`\n* (sole namespace unwrapped to the root — `this.endContract.table.<name>`),\n* built lazily from the JSON fields via the shared `MigrationContractViews`\n* helper. Mirrors `MongoMigration`'s view getters; the framework base derives\n* `describe()` from the same JSON.\n*/\nvar SqliteMigration = class extends Migration {\n\ttargetId = \"sqlite\";\n\t/**\n\t* Materialized SQLite control adapter, created once per migration\n\t* instance from the injected stack. `undefined` only when the migration\n\t* was instantiated without a stack (test fixtures); `controlAdapterFor`\n\t* throws a MIGRATION.SQLITE_CONTROL_STACK_MISSING in that case to surface the misuse.\n\t*/\n\tcontrolAdapter;\n\t#endView = new MigrationContractViews(this, \"SqliteMigration\", (json) => SqliteContractView.fromJson(json));\n\t#startView = new MigrationContractViews(this, \"SqliteMigration\", (json) => SqliteContractView.fromJson(json));\n\tconstructor(stack) {\n\t\tsuper(stack);\n\t\tthis.controlAdapter = stack?.adapter ? blindCast(stack.adapter.create(stack)) : void 0;\n\t}\n\tframeworkComponents() {\n\t\tconst stack = this.stack;\n\t\tif (stack === void 0) return [];\n\t\treturn [\n\t\t\tstack.target,\n\t\t\t...stack.adapter === void 0 ? [] : [stack.adapter],\n\t\t\t...stack.extensions\n\t\t];\n\t}\n\t/**\n\t* Returns the materialized control adapter, or throws a MIGRATION.SQLITE_CONTROL_STACK_MISSING naming\n\t* `operation` when the migration was constructed without a `ControlStack`.\n\t* Single home for the null-check that every DDL/DML method shares.\n\t*/\n\tcontrolAdapterFor(operation) {\n\t\tif (!this.controlAdapter) throw errorSqliteMigrationStackMissing(operation);\n\t\treturn this.controlAdapter;\n\t}\n\t/**\n\t* The typed SQLite view over this migration's end-state contract — sole\n\t* namespace unwrapped to the root, so `this.endContract.table.<name>` etc.\n\t* Throws if no `endContractJson` was provided.\n\t*/\n\tget endContract() {\n\t\treturn this.#endView.endContract;\n\t}\n\t/**\n\t* The typed SQLite view over this migration's start-state contract, or\n\t* `null` for a baseline migration (no `startContractJson`).\n\t*/\n\tget startContract() {\n\t\treturn this.#startView.startContract;\n\t}\n\tcreateTable(options) {\n\t\treturn new CreateTableCall(options.table, options.columns, options.constraints).toOp(this.controlAdapterFor(\"createTable\"));\n\t}\n\tdropTable(options) {\n\t\treturn new DropTableCall(options.table).toOp(this.controlAdapterFor(\"dropTable\"));\n\t}\n\t/**\n\t* Emit the operations that rename a table: the table rename, then a drop and a create under the new name of each index whose name was derived from the old table name, read from this migration's start and end contracts. Spread the result into `operations`: `...this.renameTable({ table: 'userProfile', to: 'UserProfile' })`. Throws `MIGRATION.TABLE_RENAME_UNMATCHED` when the start contract lacks the table or the end contract lacks the new name.\n\t*/\n\trenameTable(options) {\n\t\tconst adapter = this.controlAdapterFor(\"renameTable\");\n\t\treturn sqliteTableRenameCalls({\n\t\t\tstartContract: this.startContract,\n\t\t\tendContract: this.endContract,\n\t\t\trename: {\n\t\t\t\tnamespaceId: void 0,\n\t\t\t\tfrom: options.table,\n\t\t\t\tto: options.to\n\t\t\t},\n\t\t\tframeworkComponents: this.frameworkComponents()\n\t\t}).map(async (call) => call.toOp(adapter));\n\t}\n\taddColumn(options) {\n\t\treturn new AddColumnCall(options.table, options.column).toOp(this.controlAdapterFor(\"addColumn\"));\n\t}\n\tdropColumn(options) {\n\t\treturn new DropColumnCall(options.table, options.column).toOp(this.controlAdapterFor(\"dropColumn\"));\n\t}\n\tcreateIndex(options) {\n\t\treturn new CreateIndexCall(options.table, options.index, options.columns).toOp(this.controlAdapterFor(\"createIndex\"));\n\t}\n\tdropIndex(options) {\n\t\treturn new DropIndexCall(options.table, options.index).toOp(this.controlAdapterFor(\"dropIndex\"));\n\t}\n\trecreateTable(options) {\n\t\treturn new RecreateTableCall(options).toOp(this.controlAdapterFor(\"recreateTable\"));\n\t}\n};\n//#endregion\nexport { conflictForDisallowedCall as a, sqlitePlannerStrategies as c, sqliteContractToSchema as d, verifySqliteDatabaseSchema as f, coalesceSubtreeIssues as i, buildSqlitePlanDiff as l, indexNameCaseChange as n, issueNode as o, pairIndexReplacements as r, planIssues as s, SqliteMigration as t, diffSqliteSchema as u };\n\n//# sourceMappingURL=sqlite-migration-CJFj4Xjj.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,oBAAoB,KAAK,QAAQ;CACzC,IAAI,IAAI,SAAS,YAAY;EAC5B,IAAI,IAAI,eAAe,SAAS,OAAO;EACvC,OAAO,IAAI;CACZ;CACA,OAAO,qBAAqB,IAAI,OAAO,MAAM;AAC9C;;;;;;;;;AASA,SAAS,uBAAuB,UAAU,OAAO;CAChD,OAAO,mBAAmB,UAAU;EACnC,qBAAqB;EACrB,eAAe;EACf,gBAAgB;EAChB,gBAAgB,MAAM;EACtB,aAAa,MAAM;CACpB,CAAC;AACF;;;;;;AAMA,SAAS,2BAA2B,OAAO;CAC1C,OAAO,sBAAsB;EAC5B,UAAU,MAAM;EAChB,QAAQ,MAAM;EACd,QAAQ,MAAM;EACd,qBAAqB,MAAM;EAC3B,YAAY;EACZ,eAAe;CAChB,CAAC;AACF;;;;;;;;;AASA,SAAS,qBAAqB,OAAO,UAAU;CAC9C,MAAM,YAAY,MAAM,KAAK;CAC7B,IAAI,cAAc,KAAK,GAAG,OAAO,KAAK;CACtC,KAAK,MAAM,eAAe,OAAO,KAAK,SAAS,QAAQ,UAAU,GAAG;EACnE,MAAM,QAAQ,SAAS,SAAS,SAAS;GACxC;GACA,YAAY;GACZ,YAAY;EACb,CAAC;EACD,IAAI,UAAU,KAAK,GAAG,OAAO,MAAM;CACpC;AACD;;;;;;;;;;AAUA,SAAS,iBAAiB,OAAO;CAChC,MAAM,QAAQ,iBAAiB,MAAM,mBAAmB;CACxD,MAAM,WAAW,uBAAuB,MAAM,UAAU,KAAK;CAC7D,MAAM,SAAS,MAAM,kBAAkB,cAAc,MAAM,SAAS,UAAU,MAAM,MAAM;CAC1F,OAAO;EACN,QAAQ,YAAY,UAAU,MAAM;EACpC,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AK,kBAAkB,aAAa;EACpD,OAAO,uBAAuB;GAC7B,eAAe,KAAK;GACpB,aAAa,KAAK;GAClB,QAAQ;IACP,aAAa,KAAK;IAClB,MAAM,QAAQ;IACd,IAAI,QAAQ;GACb;GACA,qBAAqB,KAAK,oBAAoB;EAC/C,CAAC,CAAC,CAAC,IAAI,OAAO,SAAS,KAAK,KAAK,OAAO,CAAC;CAC1C;CACA,UAAU,SAAS;EAClB,OAAO,IAAI,cAAc,QAAQ,OAAO,QAAQ,MAAM,CAAC,CAAC,KAAK,KAAK,kBAAkB,WAAW,CAAC;CACjG;CACA,WAAW,SAAS;EACnB,OAAO,IAAI,eAAe,QAAQ,OAAO,QAAQ,MAAM,CAAC,CAAC,KAAK,KAAK,kBAAkB,YAAY,CAAC;CACnG;CACA,YAAY,SAAS;EACpB,OAAO,IAAI,gBAAgB,QAAQ,OAAO,QAAQ,OAAO,QAAQ,OAAO,CAAC,CAAC,KAAK,KAAK,kBAAkB,aAAa,CAAC;CACrH;CACA,UAAU,SAAS;EAClB,OAAO,IAAI,cAAc,QAAQ,OAAO,QAAQ,KAAK,CAAC,CAAC,KAAK,KAAK,kBAAkB,WAAW,CAAC;CAChG;CACA,cAAc,SAAS;EACtB,OAAO,IAAI,kBAAkB,OAAO,CAAC,CAAC,KAAK,KAAK,kBAAkB,eAAe,CAAC;CACnF;AACD"}
|
package/dist/target.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as SqliteCodecOptions, c as isSqliteCodecDescriptor, i as SqliteCodecDescriptorRegistry, l as sqliteCodec, n as AnySqliteCodecDescriptor, o as buildSqliteCodecDescriptorRegistry, r as SqliteCodecDescriptor, s as defineSqliteCodecs, t as AdaptedSqliteCodecDescriptor } from "./codec-descriptor-Bux_tjPl-DBQU4lFR.mjs";
|
|
2
2
|
import "./codec-descriptor-OJw51BEj.mjs";
|
|
3
3
|
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, d as SQL_INT_CODEC_ID, f as SQL_VARCHAR_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, l as SQL_CHAR_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQL_FLOAT_CODEC_ID } from "./codec-ids-CzeDyMWW-BZAcI50I.mjs";
|
|
4
|
-
import { C as
|
|
5
|
-
import "./codecs-
|
|
4
|
+
import { C as sqliteIntegerColumn, E as sqliteTextColumn, S as sqliteDatetimeColumn, T as sqliteRealColumn, _ as sqliteBigintColumn, a as SqliteBlobDescriptor, b as sqliteCodecDescriptorRegistry, c as SqliteIntegerDescriptor, f as SqliteTextDescriptor, g as jsonDocumentRetag, h as createSqliteCodecRegistryWithBuiltins, i as SqliteBigintNumberDescriptor, l as SqliteJsonDescriptor, m as createSqliteBuiltinCodecLookup, n as SQLITE_NOW_EXPRESSION, o as SqliteCodecRegistry, p as assembleSqliteCodecRegistry, r as SqliteBigintDescriptor, s as SqliteDatetimeDescriptor, t as JsonValue$1, u as SqliteRealDescriptor, v as sqliteBigintNumberColumn, w as sqliteJsonColumn, x as sqliteCodecRegistry, y as sqliteBlobColumn } from "./codecs-DeFZ_0jC-CgA8KUIS.mjs";
|
|
5
|
+
import "./codecs-xDq4DNf8.mjs";
|
|
6
6
|
import { i as SqliteDdlVisitor, n as SqliteCreateTable, r as SqliteDdlNode, t as AnySqliteDdlNode } from "./nodes-D8EC1yCx-rpfpuJ4T.mjs";
|
|
7
7
|
import "./ddl-CfSqNT0M.mjs";
|
|
8
|
-
import { t as CodecTypes } from "./codec-types-
|
|
9
|
-
import "./codec-types-
|
|
8
|
+
import { t as CodecTypes } from "./codec-types-0AMy_n05-BJvXpaEh.mjs";
|
|
9
|
+
import "./codec-types-CLFLW8jd.mjs";
|
|
10
10
|
import { n as quoteIdentifier, t as escapeLiteral } from "./sql-utils-0SJZOd7Q.mjs";
|
|
11
11
|
import { t as parseSqliteDefault } from "./default-normalizer-B9V7TY5u.mjs";
|
|
12
12
|
import { t as normalizeSqliteNativeType } from "./native-type-normalizer-CO2wKGL6.mjs";
|
|
@@ -16,15 +16,15 @@ import { a as buildSignMarkerBootstrapQueries, c as datetime, d as jsonText, f a
|
|
|
16
16
|
import { n as buildTargetDetails, t as SqlitePlanTargetDetails } from "./planner-target-details-xR6UfIcz-CMahymzq.mjs";
|
|
17
17
|
import { i as sqlitePslTypeConstructors, r as sqliteCreateNamespace, t as SqliteUnboundDatabase } from "./control-Cg2ATcBk.mjs";
|
|
18
18
|
import { n as LEDGER_TABLE_NAME, r as MARKER_TABLE_NAME, t as CONTROL_TABLE_NAMES } from "./control-tables-Dua-YcJL.mjs";
|
|
19
|
-
import { a as
|
|
20
|
-
import { t as SqliteContractView } from "./sqlite-contract-view-
|
|
21
|
-
import { t as SqliteMigration } from "./sqlite-migration-
|
|
22
|
-
import { a as fn, c as placeholder, d as unique, i as dataTransform, l as primaryKey, n as MigrationCLI, o as foreignKey, r as col, s as lit, t as DataTransformOptions, u as rawSql } from "./migration-
|
|
19
|
+
import { a as sqliteDataTypeEntries, c as sqliteReal, i as sqliteCharacterVarying, l as sqliteText, n as sqliteCharacter, o as sqliteDataTypes, r as sqliteCharacterLengthParams, s as sqliteInteger, t as sqliteBlob } from "./data-types-B_k5-Ohy.mjs";
|
|
20
|
+
import { t as SqliteContractView } from "./sqlite-contract-view-BDw8T5Cp-CbLVOPJq.mjs";
|
|
21
|
+
import { t as SqliteMigration } from "./sqlite-migration-BSUZhMDG-DZU3d7bZ.mjs";
|
|
22
|
+
import { a as fn, c as placeholder, d as unique, i as dataTransform, l as primaryKey, n as MigrationCLI, o as foreignKey, r as col, s as lit, t as DataTransformOptions, u as rawSql } from "./migration-Ccuxti02.mjs";
|
|
23
23
|
import { a as DropColumnCall, c as RawSqlCall, d as SqliteOpFactoryCall, i as DataTransformCall, l as RecreateTableCall, n as CreateIndexCall, o as DropIndexCall, r as CreateTableCall, s as DropTableCall, t as AddColumnCall, u as RenameTableCall } from "./op-factory-call-B_WuATMN.mjs";
|
|
24
|
-
import "./pack-
|
|
25
|
-
import { n as TypeScriptRenderableSqliteMigration, t as SqliteMigrationDestinationInfo } from "./planner-produced-sqlite-migration-
|
|
26
|
-
import { n as SqlitePlanResult, r as createSqliteMigrationPlanner, t as SqliteMigrationPlanner } from "./planner-
|
|
27
|
-
import "./planner-produced-sqlite-migration-
|
|
24
|
+
import "./pack-BIZIGw3P.mjs";
|
|
25
|
+
import { n as TypeScriptRenderableSqliteMigration, t as SqliteMigrationDestinationInfo } from "./planner-produced-sqlite-migration-DXcx0sOR-CcMQKE7n.mjs";
|
|
26
|
+
import { n as SqlitePlanResult, r as createSqliteMigrationPlanner, t as SqliteMigrationPlanner } from "./planner-CFIbY54l.mjs";
|
|
27
|
+
import "./planner-produced-sqlite-migration-sYbbeyyS.mjs";
|
|
28
28
|
import { t as renderOps } from "./render-ops-B10yqmdG.mjs";
|
|
29
|
-
import { n as SqliteRuntimeTargetInstance, t as SqliteContractSerializer } from "./runtime-
|
|
30
|
-
export { type AdaptedSqliteCodecDescriptor, AddColumnCall, type AnySqliteCodecDescriptor, type AnySqliteDdlNode, CONTROL_TABLE_NAMES, CodecTypes, type ColumnExistsCheckBuilder, CreateIndexCall, CreateTableCall, DataTransformCall, type DataTransformOptions, DropColumnCall, DropIndexCall, DropTableCall, type IndexExistsCheckBuilder, type JsonValue$1 as JsonValue, LEDGER_TABLE_NAME, MARKER_TABLE_NAME, SqliteMigration as Migration, MigrationCLI, RawSqlCall, RecreateTableCall, RenameTableCall, SQLITE_BIGINT_CODEC_ID, SQLITE_BIGINT_NUMBER_CODEC_ID, SQLITE_BLOB_CODEC_ID, SQLITE_DATETIME_CODEC_ID, SQLITE_INTEGER_CODEC_ID, SQLITE_JSON_CODEC_ID, SQLITE_NOW_EXPRESSION, SQLITE_REAL_CODEC_ID, SQLITE_TEXT_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_VARCHAR_CODEC_ID, type SqliteBigintDescriptor, type SqliteBigintNumberDescriptor, type SqliteBlobDescriptor, SqliteCodecDescriptor, type SqliteCodecDescriptorRegistry, type SqliteCodecOptions, type SqliteCodecRegistry, SqliteContractSerializer, SqliteContractView, SqliteCreateTable, type SqliteDatetimeDescriptor, SqliteDdlNode, type SqliteDdlVisitor, type SqliteIntegerDescriptor, type SqliteJsonDescriptor, type SqliteMigrationDestinationInfo, SqliteMigrationPlanner, type SqliteOpFactoryCall, type SqlitePlanResult, type SqlitePlanTargetDetails, type SqliteRealDescriptor, type SqliteRuntimeTargetInstance, type SqliteTextDescriptor, SqliteUnboundDatabase, type TableExistsCheckBuilder, TypeScriptRenderableSqliteMigration, assembleSqliteCodecRegistry, buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, buildSqliteCodecDescriptorRegistry, buildTargetDetails, col, columnExistsAst, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, createSqliteMigrationPlanner, createTable, dataTransform, datetime, defineSqliteCodecs, escapeLiteral, fn, foreignKey, indexExistsAst, integer, isSqliteCodecDescriptor, jsonDocumentRetag, jsonText, lit, normalizeSqliteNativeType, parseSqliteDefault, placeholder, primaryKey, quoteIdentifier, rawSql, renderOps, sqliteAggregateDescriptors,
|
|
29
|
+
import { n as SqliteRuntimeTargetInstance, t as SqliteContractSerializer } from "./runtime-8_WfNAcA.mjs";
|
|
30
|
+
export { type AdaptedSqliteCodecDescriptor, AddColumnCall, type AnySqliteCodecDescriptor, type AnySqliteDdlNode, CONTROL_TABLE_NAMES, CodecTypes, type ColumnExistsCheckBuilder, CreateIndexCall, CreateTableCall, DataTransformCall, type DataTransformOptions, DropColumnCall, DropIndexCall, DropTableCall, type IndexExistsCheckBuilder, type JsonValue$1 as JsonValue, LEDGER_TABLE_NAME, MARKER_TABLE_NAME, SqliteMigration as Migration, MigrationCLI, RawSqlCall, RecreateTableCall, RenameTableCall, SQLITE_BIGINT_CODEC_ID, SQLITE_BIGINT_NUMBER_CODEC_ID, SQLITE_BLOB_CODEC_ID, SQLITE_DATETIME_CODEC_ID, SQLITE_INTEGER_CODEC_ID, SQLITE_JSON_CODEC_ID, SQLITE_NOW_EXPRESSION, SQLITE_REAL_CODEC_ID, SQLITE_TEXT_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_VARCHAR_CODEC_ID, type SqliteBigintDescriptor, type SqliteBigintNumberDescriptor, type SqliteBlobDescriptor, SqliteCodecDescriptor, type SqliteCodecDescriptorRegistry, type SqliteCodecOptions, type SqliteCodecRegistry, SqliteContractSerializer, SqliteContractView, SqliteCreateTable, type SqliteDatetimeDescriptor, SqliteDdlNode, type SqliteDdlVisitor, type SqliteIntegerDescriptor, type SqliteJsonDescriptor, type SqliteMigrationDestinationInfo, SqliteMigrationPlanner, type SqliteOpFactoryCall, type SqlitePlanResult, type SqlitePlanTargetDetails, type SqliteRealDescriptor, type SqliteRuntimeTargetInstance, type SqliteTextDescriptor, SqliteUnboundDatabase, type TableExistsCheckBuilder, TypeScriptRenderableSqliteMigration, assembleSqliteCodecRegistry, buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, buildSqliteCodecDescriptorRegistry, buildTargetDetails, col, columnExistsAst, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, createSqliteMigrationPlanner, createTable, dataTransform, datetime, defineSqliteCodecs, escapeLiteral, fn, foreignKey, indexExistsAst, integer, isSqliteCodecDescriptor, jsonDocumentRetag, jsonText, lit, normalizeSqliteNativeType, parseSqliteDefault, placeholder, primaryKey, quoteIdentifier, rawSql, renderOps, sqliteAggregateDescriptors, sqliteBigintColumn, sqliteBigintNumberColumn, sqliteBlob, sqliteBlobColumn, sqliteCharacter, sqliteCharacterLengthParams, sqliteCharacterVarying, sqliteCodec, sqliteCodecDescriptorRegistry, sqliteCodecRegistry, sqliteCreateNamespace, sqliteDataTypeEntries, sqliteDataTypes, sqliteDatetimeColumn, sqliteInteger, sqliteIntegerColumn, sqliteJsonColumn, sqlitePslTypeConstructors, sqliteReal, sqliteRealColumn, sqliteTable, sqliteText, sqliteTextColumn, tableExistsAst, text, unique };
|
package/dist/target.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, d as SQL_INT_CODEC_ID, f as SQL_VARCHAR_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, l as SQL_CHAR_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQL_FLOAT_CODEC_ID } from "./codec-ids-KMliSCRp-BhTbmbGr.mjs";
|
|
2
2
|
import { t as sqliteAggregateDescriptors } from "./aggregates-CATLYJxc.mjs";
|
|
3
|
-
import { a as sqliteCodec, i as isSqliteCodecDescriptor, n as buildSqliteCodecDescriptorRegistry, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from "./codec-descriptor-
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as sqliteBigintColumn, c as sqliteDatetimeColumn, d as sqliteRealColumn, f as sqliteTextColumn, i as jsonDocumentRetag, l as sqliteIntegerColumn, o as sqliteBigintNumberColumn, s as sqliteBlobColumn, u as sqliteJsonColumn } from "./codecs-
|
|
3
|
+
import { a as sqliteCodec, i as isSqliteCodecDescriptor, n as buildSqliteCodecDescriptorRegistry, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from "./codec-descriptor-Bf6MlyeJ-C1PfQ9LO.mjs";
|
|
4
|
+
import { a as sqliteDataTypes, c as sqliteText, i as sqliteCharacterVarying, n as sqliteCharacter, o as sqliteInteger, r as sqliteCharacterLengthParams, s as sqliteReal, t as sqliteBlob } from "./data-types-pFQMl37_-B-3aK_wd.mjs";
|
|
5
|
+
import { a as sqliteBigintColumn, c as sqliteDatetimeColumn, d as sqliteRealColumn, f as sqliteTextColumn, i as jsonDocumentRetag, l as sqliteIntegerColumn, o as sqliteBigintNumberColumn, s as sqliteBlobColumn, u as sqliteJsonColumn } from "./codecs-CaOcjLon-BZ4M7GfD.mjs";
|
|
6
6
|
import { n as SQLITE_NOW_EXPRESSION } from "./datetime-text-Bniwehv--Ddt3VS4z.mjs";
|
|
7
|
-
import { a as sqliteCodecRegistry, i as sqliteCodecDescriptorRegistry, n as createSqliteBuiltinCodecLookup, r as createSqliteCodecRegistryWithBuiltins, t as assembleSqliteCodecRegistry } from "./codecs-
|
|
7
|
+
import { a as sqliteCodecRegistry, i as sqliteCodecDescriptorRegistry, n as createSqliteBuiltinCodecLookup, r as createSqliteCodecRegistryWithBuiltins, t as assembleSqliteCodecRegistry } from "./codecs-ByvSFGut.mjs";
|
|
8
8
|
import { n as SqliteDdlNode, t as SqliteCreateTable } from "./nodes-DUZSdX86-BBEEaxXY.mjs";
|
|
9
9
|
import { i as tableExistsAst, n as createTable, r as indexExistsAst, t as columnExistsAst } from "./ddl-CXduXyOT-nlDP6DGx.mjs";
|
|
10
10
|
import { a as jsonText, i as integer, n as buildSignMarkerBootstrapQueries, o as sqliteTable, r as datetime, s as text, t as buildControlTableBootstrapQueries } from "./contract-free-CH8tBLLe.mjs";
|
|
11
|
-
import { t as sqliteDataTypeEntries } from "./data-type-entries-
|
|
12
|
-
import { t as parseSqliteDefault } from "./default-normalizer-
|
|
11
|
+
import { t as sqliteDataTypeEntries } from "./data-type-entries-Bc09V6WN-Dc00J0G9.mjs";
|
|
12
|
+
import { t as parseSqliteDefault } from "./default-normalizer-Ch3VFnEH-C-h1XtlJ.mjs";
|
|
13
13
|
import { n as quoteIdentifier, t as escapeLiteral } from "./sql-utils-C2O4zVkP-Dz3Hb85I.mjs";
|
|
14
14
|
import { t as buildTargetDetails } from "./planner-target-details-CIQ789Gc-C5U4yVY9.mjs";
|
|
15
|
-
import { a as DropColumnCall, c as RawSqlCall, i as DataTransformCall, l as RecreateTableCall, n as CreateIndexCall, o as DropIndexCall, r as CreateTableCall, s as DropTableCall, t as AddColumnCall, u as RenameTableCall } from "./op-factory-call-
|
|
15
|
+
import { a as DropColumnCall, c as RawSqlCall, i as DataTransformCall, l as RecreateTableCall, n as CreateIndexCall, o as DropIndexCall, r as CreateTableCall, s as DropTableCall, t as AddColumnCall, u as RenameTableCall } from "./op-factory-call-HHnPrspy-7shWKb03.mjs";
|
|
16
16
|
import { n as LEDGER_TABLE_NAME, r as MARKER_TABLE_NAME, t as CONTROL_TABLE_NAMES } from "./control-tables-D_o8dKRB-BXi43noL.mjs";
|
|
17
17
|
import { i as sqliteCreateNamespace, n as SqliteContractView, r as SqliteUnboundDatabase, t as SqliteContractSerializer } from "./sqlite-contract-view-BYR10usg-BteDAUZr.mjs";
|
|
18
|
-
import { t as SqliteMigration } from "./sqlite-migration-
|
|
18
|
+
import { t as SqliteMigration } from "./sqlite-migration-CJFj4Xjj-Bkj6DFpZ.mjs";
|
|
19
19
|
import { t as renderOps } from "./render-ops-KxAmAz6d-W2xyvA5y.mjs";
|
|
20
|
-
import { t as TypeScriptRenderableSqliteMigration } from "./planner-produced-sqlite-migration-
|
|
21
|
-
import { n as createSqliteMigrationPlanner, t as SqliteMigrationPlanner } from "./planner-
|
|
22
|
-
import { n as sqlitePslTypeConstructors } from "./control-
|
|
23
|
-
import { a as foreignKey, c as primaryKey, i as fn, l as rawSql, n as col, o as lit, r as dataTransform, s as placeholder, t as MigrationCLI, u as unique } from "./migration-
|
|
20
|
+
import { t as TypeScriptRenderableSqliteMigration } from "./planner-produced-sqlite-migration-Rsg1Udsi-DMyO7zT3.mjs";
|
|
21
|
+
import { n as createSqliteMigrationPlanner, t as SqliteMigrationPlanner } from "./planner-BgH57J9_-DZQSi5aj.mjs";
|
|
22
|
+
import { n as sqlitePslTypeConstructors } from "./control-B6oLQvl-.mjs";
|
|
23
|
+
import { a as foreignKey, c as primaryKey, i as fn, l as rawSql, n as col, o as lit, r as dataTransform, s as placeholder, t as MigrationCLI, u as unique } from "./migration-Di-URWbl.mjs";
|
|
24
24
|
import { t as normalizeSqliteNativeType } from "./native-type-normalizer-GpQMEyN5.mjs";
|
|
25
|
-
export { AddColumnCall, CONTROL_TABLE_NAMES, CreateIndexCall, CreateTableCall, DataTransformCall, DropColumnCall, DropIndexCall, DropTableCall, LEDGER_TABLE_NAME, MARKER_TABLE_NAME, SqliteMigration as Migration, MigrationCLI, RawSqlCall, RecreateTableCall, RenameTableCall, SQLITE_BIGINT_CODEC_ID, SQLITE_BIGINT_NUMBER_CODEC_ID, SQLITE_BLOB_CODEC_ID, SQLITE_DATETIME_CODEC_ID, SQLITE_INTEGER_CODEC_ID, SQLITE_JSON_CODEC_ID, SQLITE_NOW_EXPRESSION, SQLITE_REAL_CODEC_ID, SQLITE_TEXT_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SqliteCodecDescriptor, SqliteContractSerializer, SqliteContractView, SqliteCreateTable, SqliteDdlNode, SqliteMigrationPlanner, SqliteUnboundDatabase, TypeScriptRenderableSqliteMigration, assembleSqliteCodecRegistry, buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, buildSqliteCodecDescriptorRegistry, buildTargetDetails, col, columnExistsAst, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, createSqliteMigrationPlanner, createTable, dataTransform, datetime, defineSqliteCodecs, escapeLiteral, fn, foreignKey, indexExistsAst, integer, isSqliteCodecDescriptor, jsonDocumentRetag, jsonText, lit, normalizeSqliteNativeType, parseSqliteDefault, placeholder, primaryKey, quoteIdentifier, rawSql, renderOps, sqliteAggregateDescriptors,
|
|
25
|
+
export { AddColumnCall, CONTROL_TABLE_NAMES, CreateIndexCall, CreateTableCall, DataTransformCall, DropColumnCall, DropIndexCall, DropTableCall, LEDGER_TABLE_NAME, MARKER_TABLE_NAME, SqliteMigration as Migration, MigrationCLI, RawSqlCall, RecreateTableCall, RenameTableCall, SQLITE_BIGINT_CODEC_ID, SQLITE_BIGINT_NUMBER_CODEC_ID, SQLITE_BLOB_CODEC_ID, SQLITE_DATETIME_CODEC_ID, SQLITE_INTEGER_CODEC_ID, SQLITE_JSON_CODEC_ID, SQLITE_NOW_EXPRESSION, SQLITE_REAL_CODEC_ID, SQLITE_TEXT_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SqliteCodecDescriptor, SqliteContractSerializer, SqliteContractView, SqliteCreateTable, SqliteDdlNode, SqliteMigrationPlanner, SqliteUnboundDatabase, TypeScriptRenderableSqliteMigration, assembleSqliteCodecRegistry, buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, buildSqliteCodecDescriptorRegistry, buildTargetDetails, col, columnExistsAst, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, createSqliteMigrationPlanner, createTable, dataTransform, datetime, defineSqliteCodecs, escapeLiteral, fn, foreignKey, indexExistsAst, integer, isSqliteCodecDescriptor, jsonDocumentRetag, jsonText, lit, normalizeSqliteNativeType, parseSqliteDefault, placeholder, primaryKey, quoteIdentifier, rawSql, renderOps, sqliteAggregateDescriptors, sqliteBigintColumn, sqliteBigintNumberColumn, sqliteBlob, sqliteBlobColumn, sqliteCharacter, sqliteCharacterLengthParams, sqliteCharacterVarying, sqliteCodec, sqliteCodecDescriptorRegistry, sqliteCodecRegistry, sqliteCreateNamespace, sqliteDataTypeEntries, sqliteDataTypes, sqliteDatetimeColumn, sqliteInteger, sqliteIntegerColumn, sqliteJsonColumn, sqlitePslTypeConstructors, sqliteReal, sqliteRealColumn, sqliteTable, sqliteText, sqliteTextColumn, tableExistsAst, text, unique };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as sqliteCodec, i as isSqliteCodecDescriptor, n as buildSqliteCodecDescriptorRegistry, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from "./codec-descriptor-
|
|
1
|
+
import { a as sqliteCodec, i as isSqliteCodecDescriptor, n as buildSqliteCodecDescriptorRegistry, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from "./codec-descriptor-Bf6MlyeJ-C1PfQ9LO.mjs";
|
|
2
2
|
export { SqliteCodecDescriptor, buildSqliteCodecDescriptorRegistry, defineSqliteCodecs, isSqliteCodecDescriptor, sqliteCodec };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as JsonValue$1 } from "./codecs-
|
|
2
|
-
import { t as CodecTypes } from "./codec-types-
|
|
3
|
-
import "./codec-types-
|
|
1
|
+
import { t as JsonValue$1 } from "./codecs-DeFZ_0jC-CgA8KUIS.mjs";
|
|
2
|
+
import { t as CodecTypes } from "./codec-types-0AMy_n05-BJvXpaEh.mjs";
|
|
3
|
+
import "./codec-types-CLFLW8jd.mjs";
|
|
4
4
|
export { CodecTypes, type JsonValue$1 as JsonValue };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import "./codecs-
|
|
1
|
+
import { C as sqliteIntegerColumn, E as sqliteTextColumn, S as sqliteDatetimeColumn, T as sqliteRealColumn, _ as sqliteBigintColumn, a as SqliteBlobDescriptor, b as sqliteCodecDescriptorRegistry, c as SqliteIntegerDescriptor, f as SqliteTextDescriptor, g as jsonDocumentRetag, h as createSqliteCodecRegistryWithBuiltins, i as SqliteBigintNumberDescriptor, l as SqliteJsonDescriptor, m as createSqliteBuiltinCodecLookup, n as SQLITE_NOW_EXPRESSION, o as SqliteCodecRegistry, p as assembleSqliteCodecRegistry, r as SqliteBigintDescriptor, s as SqliteDatetimeDescriptor, t as JsonValue$1, u as SqliteRealDescriptor, v as sqliteBigintNumberColumn, w as sqliteJsonColumn, x as sqliteCodecRegistry, y as sqliteBlobColumn } from "./codecs-DeFZ_0jC-CgA8KUIS.mjs";
|
|
2
|
+
import "./codecs-xDq4DNf8.mjs";
|
|
3
3
|
export { type JsonValue$1 as JsonValue, SQLITE_NOW_EXPRESSION, type SqliteBigintDescriptor, type SqliteBigintNumberDescriptor, type SqliteBlobDescriptor, type SqliteCodecRegistry, type SqliteDatetimeDescriptor, type SqliteIntegerDescriptor, type SqliteJsonDescriptor, type SqliteRealDescriptor, type SqliteTextDescriptor, assembleSqliteCodecRegistry, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, jsonDocumentRetag, sqliteBigintColumn, sqliteBigintNumberColumn, sqliteBlobColumn, sqliteCodecDescriptorRegistry, sqliteCodecRegistry, sqliteDatetimeColumn, sqliteIntegerColumn, sqliteJsonColumn, sqliteRealColumn, sqliteTextColumn };
|
package/dist/target__codecs.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as sqliteBigintColumn, c as sqliteDatetimeColumn, d as sqliteRealColumn, f as sqliteTextColumn, i as jsonDocumentRetag, l as sqliteIntegerColumn, o as sqliteBigintNumberColumn, s as sqliteBlobColumn, u as sqliteJsonColumn } from "./codecs-
|
|
1
|
+
import { a as sqliteBigintColumn, c as sqliteDatetimeColumn, d as sqliteRealColumn, f as sqliteTextColumn, i as jsonDocumentRetag, l as sqliteIntegerColumn, o as sqliteBigintNumberColumn, s as sqliteBlobColumn, u as sqliteJsonColumn } from "./codecs-CaOcjLon-BZ4M7GfD.mjs";
|
|
2
2
|
import { n as SQLITE_NOW_EXPRESSION } from "./datetime-text-Bniwehv--Ddt3VS4z.mjs";
|
|
3
|
-
import { a as sqliteCodecRegistry, i as sqliteCodecDescriptorRegistry, n as createSqliteBuiltinCodecLookup, r as createSqliteCodecRegistryWithBuiltins, t as assembleSqliteCodecRegistry } from "./codecs-
|
|
3
|
+
import { a as sqliteCodecRegistry, i as sqliteCodecDescriptorRegistry, n as createSqliteBuiltinCodecLookup, r as createSqliteCodecRegistryWithBuiltins, t as assembleSqliteCodecRegistry } from "./codecs-ByvSFGut.mjs";
|
|
4
4
|
export { SQLITE_NOW_EXPRESSION, assembleSqliteCodecRegistry, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, jsonDocumentRetag, sqliteBigintColumn, sqliteBigintNumberColumn, sqliteBlobColumn, sqliteCodecDescriptorRegistry, sqliteCodecRegistry, sqliteDatetimeColumn, sqliteIntegerColumn, sqliteJsonColumn, sqliteRealColumn, sqliteTextColumn };
|
package/dist/target__control.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as sqliteCreateNamespace, r as SqliteUnboundDatabase } from "./sqlite-contract-view-BYR10usg-BteDAUZr.mjs";
|
|
2
|
-
import { n as sqlitePslTypeConstructors, t as sqliteControlTargetDescriptor } from "./control-
|
|
2
|
+
import { n as sqlitePslTypeConstructors, t as sqliteControlTargetDescriptor } from "./control-B6oLQvl-.mjs";
|
|
3
3
|
export { SqliteUnboundDatabase, sqliteControlTargetDescriptor as default, sqliteCreateNamespace, sqlitePslTypeConstructors };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export {
|
|
1
|
+
import { a as sqliteDataTypeEntries, c as sqliteReal, i as sqliteCharacterVarying, l as sqliteText, n as sqliteCharacter, o as sqliteDataTypes, r as sqliteCharacterLengthParams, s as sqliteInteger, t as sqliteBlob } from "./data-types-B_k5-Ohy.mjs";
|
|
2
|
+
export { sqliteBlob, sqliteCharacter, sqliteCharacterLengthParams, sqliteCharacterVarying, sqliteDataTypeEntries, sqliteDataTypes, sqliteInteger, sqliteReal, sqliteText };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as sqliteDataTypeEntries } from "./data-type-entries-
|
|
3
|
-
export {
|
|
1
|
+
import { a as sqliteDataTypes, c as sqliteText, i as sqliteCharacterVarying, n as sqliteCharacter, o as sqliteInteger, r as sqliteCharacterLengthParams, s as sqliteReal, t as sqliteBlob } from "./data-types-pFQMl37_-B-3aK_wd.mjs";
|
|
2
|
+
import { t as sqliteDataTypeEntries } from "./data-type-entries-Bc09V6WN-Dc00J0G9.mjs";
|
|
3
|
+
export { sqliteBlob, sqliteCharacter, sqliteCharacterLengthParams, sqliteCharacterVarying, sqliteDataTypeEntries, sqliteDataTypes, sqliteInteger, sqliteReal, sqliteText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as parseSqliteDefault } from "./default-normalizer-
|
|
1
|
+
import { t as parseSqliteDefault } from "./default-normalizer-Ch3VFnEH-C-h1XtlJ.mjs";
|
|
2
2
|
export { parseSqliteDefault };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as SqliteMigration } from "./sqlite-migration-
|
|
2
|
-
import { a as fn, c as placeholder, d as unique, i as dataTransform, l as primaryKey, n as MigrationCLI, o as foreignKey, r as col, s as lit, t as DataTransformOptions, u as rawSql } from "./migration-
|
|
1
|
+
import { t as SqliteMigration } from "./sqlite-migration-BSUZhMDG-DZU3d7bZ.mjs";
|
|
2
|
+
import { a as fn, c as placeholder, d as unique, i as dataTransform, l as primaryKey, n as MigrationCLI, o as foreignKey, r as col, s as lit, t as DataTransformOptions, u as rawSql } from "./migration-Ccuxti02.mjs";
|
|
3
3
|
export { type DataTransformOptions, SqliteMigration as Migration, MigrationCLI, col, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, unique };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as SqliteMigration } from "./sqlite-migration-
|
|
2
|
-
import { a as foreignKey, c as primaryKey, i as fn, l as rawSql, n as col, o as lit, r as dataTransform, s as placeholder, t as MigrationCLI, u as unique } from "./migration-
|
|
1
|
+
import { t as SqliteMigration } from "./sqlite-migration-CJFj4Xjj-Bkj6DFpZ.mjs";
|
|
2
|
+
import { a as foreignKey, c as primaryKey, i as fn, l as rawSql, n as col, o as lit, r as dataTransform, s as placeholder, t as MigrationCLI, u as unique } from "./migration-Di-URWbl.mjs";
|
|
3
3
|
export { SqliteMigration as Migration, MigrationCLI, col, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, unique };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DropColumnCall, c as RawSqlCall, i as DataTransformCall, l as RecreateTableCall, n as CreateIndexCall, o as DropIndexCall, r as CreateTableCall, s as DropTableCall, t as AddColumnCall, u as RenameTableCall } from "./op-factory-call-
|
|
1
|
+
import { a as DropColumnCall, c as RawSqlCall, i as DataTransformCall, l as RecreateTableCall, n as CreateIndexCall, o as DropIndexCall, r as CreateTableCall, s as DropTableCall, t as AddColumnCall, u as RenameTableCall } from "./op-factory-call-HHnPrspy-7shWKb03.mjs";
|
|
2
2
|
export { AddColumnCall, CreateIndexCall, CreateTableCall, DataTransformCall, DropColumnCall, DropIndexCall, DropTableCall, RawSqlCall, RecreateTableCall, RenameTableCall };
|
package/dist/target__pack.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as sqliteTargetDescriptorMeta } from "./pack-
|
|
1
|
+
import { t as sqliteTargetDescriptorMeta } from "./pack-BIZIGw3P.mjs";
|
|
2
2
|
export { sqliteTargetDescriptorMeta as default };
|
package/dist/target__pack.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as sqliteTargetDescriptorMeta } from "./descriptor-meta-
|
|
1
|
+
import { t as sqliteTargetDescriptorMeta } from "./descriptor-meta-C3n4Dwxu-DJiDDku0.mjs";
|
|
2
2
|
export { sqliteTargetDescriptorMeta as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as TypeScriptRenderableSqliteMigration, t as SqliteMigrationDestinationInfo } from "./planner-produced-sqlite-migration-
|
|
2
|
-
import "./planner-produced-sqlite-migration-
|
|
1
|
+
import { n as TypeScriptRenderableSqliteMigration, t as SqliteMigrationDestinationInfo } from "./planner-produced-sqlite-migration-DXcx0sOR-CcMQKE7n.mjs";
|
|
2
|
+
import "./planner-produced-sqlite-migration-sYbbeyyS.mjs";
|
|
3
3
|
export { type SqliteMigrationDestinationInfo, TypeScriptRenderableSqliteMigration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TypeScriptRenderableSqliteMigration } from "./planner-produced-sqlite-migration-
|
|
1
|
+
import { t as TypeScriptRenderableSqliteMigration } from "./planner-produced-sqlite-migration-Rsg1Udsi-DMyO7zT3.mjs";
|
|
2
2
|
export { TypeScriptRenderableSqliteMigration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SqlitePlanResult, r as createSqliteMigrationPlanner, t as SqliteMigrationPlanner } from "./planner-
|
|
1
|
+
import { n as SqlitePlanResult, r as createSqliteMigrationPlanner, t as SqliteMigrationPlanner } from "./planner-CFIbY54l.mjs";
|
|
2
2
|
export { SqliteMigrationPlanner, type SqlitePlanResult, createSqliteMigrationPlanner };
|
package/dist/target__planner.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createSqliteMigrationPlanner, t as SqliteMigrationPlanner } from "./planner-
|
|
1
|
+
import { n as createSqliteMigrationPlanner, t as SqliteMigrationPlanner } from "./planner-BgH57J9_-DZQSi5aj.mjs";
|
|
2
2
|
export { SqliteMigrationPlanner, createSqliteMigrationPlanner };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as SqliteContractView } from "./sqlite-contract-view-
|
|
2
|
-
import { n as SqliteRuntimeTargetInstance, r as sqliteRuntimeTargetDescriptor, t as SqliteContractSerializer } from "./runtime-
|
|
1
|
+
import { t as SqliteContractView } from "./sqlite-contract-view-BDw8T5Cp-CbLVOPJq.mjs";
|
|
2
|
+
import { n as SqliteRuntimeTargetInstance, r as sqliteRuntimeTargetDescriptor, t as SqliteContractSerializer } from "./runtime-8_WfNAcA.mjs";
|
|
3
3
|
export { SqliteContractSerializer, SqliteContractView, type SqliteRuntimeTargetInstance, sqliteRuntimeTargetDescriptor as default };
|
package/dist/target__runtime.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as sqliteTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-
|
|
1
|
+
import { t as sqliteTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-Dqtz58eJ-BJ4UjLXW.mjs";
|
|
2
2
|
import { n as SqliteContractView, t as SqliteContractSerializer } from "./sqlite-contract-view-BYR10usg-BteDAUZr.mjs";
|
|
3
3
|
//#region ../../../3-targets/3-targets/sqlite/dist/runtime.mjs
|
|
4
4
|
const sqliteRuntimeTargetDescriptor = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target__runtime.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/runtime.mjs"],"sourcesContent":["import { t as sqliteTargetDescriptorMetaRuntime } from \"./descriptor-meta-runtime-
|
|
1
|
+
{"version":3,"file":"target__runtime.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/runtime.mjs"],"sourcesContent":["import { t as sqliteTargetDescriptorMetaRuntime } from \"./descriptor-meta-runtime-Dqtz58eJ.mjs\";\nimport { n as SqliteContractSerializer, t as SqliteContractView } from \"./sqlite-contract-view-BYR10usg.mjs\";\n//#region src/core/runtime-target.ts\nconst sqliteRuntimeTargetDescriptor = {\n\t...sqliteTargetDescriptorMetaRuntime,\n\tcodecs: () => [],\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"sqlite\"\n\t\t};\n\t}\n};\n//#endregion\nexport { SqliteContractSerializer, SqliteContractView, sqliteRuntimeTargetDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;AAGA,MAAM,gCAAgC;CACrC,GAAG;CACH,cAAc,CAAC;CACf,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "./types-RJMd2PlL-CD7b6qkb.mjs";
|
|
2
|
-
import "./codecs-
|
|
2
|
+
import "./codecs-xDq4DNf8.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-target-sqlite",
|
|
3
|
-
"version": "8.0.0-rc.14-dev.
|
|
3
|
+
"version": "8.0.0-rc.14-dev.37",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,19 +9,19 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-family-sql": "8.0.0-rc.14-dev.
|
|
13
|
-
"@prisma/orm-framework": "8.0.0-rc.14-dev.
|
|
14
|
-
"@prisma/orm-toolchain": "8.0.0-rc.14-dev.
|
|
12
|
+
"@prisma/orm-family-sql": "8.0.0-rc.14-dev.37",
|
|
13
|
+
"@prisma/orm-framework": "8.0.0-rc.14-dev.37",
|
|
14
|
+
"@prisma/orm-toolchain": "8.0.0-rc.14-dev.37",
|
|
15
15
|
"@standard-schema/spec": "1.1.0",
|
|
16
16
|
"arktype": "^2.2.2",
|
|
17
17
|
"pathe": "^2.0.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@internal/adapter-sqlite": "8.0.0-rc.14-dev.
|
|
21
|
-
"@internal/driver-sqlite": "8.0.0-rc.14-dev.
|
|
22
|
-
"@internal/target-sqlite": "8.0.0-rc.14-dev.
|
|
23
|
-
"@repo/tsconfig": "8.0.0-rc.14-dev.
|
|
24
|
-
"@repo/tsdown": "8.0.0-rc.14-dev.
|
|
20
|
+
"@internal/adapter-sqlite": "8.0.0-rc.14-dev.37",
|
|
21
|
+
"@internal/driver-sqlite": "8.0.0-rc.14-dev.37",
|
|
22
|
+
"@internal/target-sqlite": "8.0.0-rc.14-dev.37",
|
|
23
|
+
"@repo/tsconfig": "8.0.0-rc.14-dev.37",
|
|
24
|
+
"@repo/tsdown": "8.0.0-rc.14-dev.37",
|
|
25
25
|
"tsdown": "0.22.14",
|
|
26
26
|
"typescript": "5.9.3"
|
|
27
27
|
},
|