@prisma/orm-target-sqlite 8.0.0-rc.19-dev.1 → 8.0.0-rc.19-dev.3
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-DKUHH8BN.d.mts → adapter-e4_SMdnY.d.mts} +4 -4
- package/dist/{adapter-DKUHH8BN.d.mts.map → adapter-e4_SMdnY.d.mts.map} +1 -1
- package/dist/adapter.d.mts +1 -1
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__control.mjs +1 -5
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/{aggregates-D-yzAlbC.d.mts → aggregates-CP9IZJhO.d.mts} +4 -4
- package/dist/{aggregates-D-yzAlbC.d.mts.map → aggregates-CP9IZJhO.d.mts.map} +1 -1
- package/dist/{control-BY0lE0MI.d.mts → control-CqSlwRpm.d.mts} +4 -4
- package/dist/{control-BY0lE0MI.d.mts.map → control-CqSlwRpm.d.mts.map} +1 -1
- package/dist/descriptor-meta-BWlR2rDN-Y8Y4_jie.mjs +109 -0
- package/dist/descriptor-meta-BWlR2rDN-Y8Y4_jie.mjs.map +1 -0
- package/dist/{migration-B5NMdcC0.mjs → migration-DpfbaaqJ.mjs} +2 -2
- package/dist/{migration-B5NMdcC0.mjs.map → migration-DpfbaaqJ.mjs.map} +1 -1
- package/dist/{migration-DLJQnUxF.d.mts → migration-p83G5mtQ.d.mts} +3 -3
- package/dist/{migration-DLJQnUxF.d.mts.map → migration-p83G5mtQ.d.mts.map} +1 -1
- package/dist/{op-factory-call-DAI1NqNz.d.mts → op-factory-call-CnufFdpE.d.mts} +2 -2
- package/dist/{op-factory-call-DAI1NqNz.d.mts.map → op-factory-call-CnufFdpE.d.mts.map} +1 -1
- package/dist/{op-factory-call-Dzsgcf3B-B7IaqEjE.mjs → op-factory-call-D2bHVPKQ-BdwLsMzU.mjs} +30 -28
- package/dist/op-factory-call-D2bHVPKQ-BdwLsMzU.mjs.map +1 -0
- package/dist/{pack-DVMuQib7.d.mts → pack-D09sgwDC.d.mts} +92 -4
- package/dist/{pack-DVMuQib7.d.mts.map → pack-D09sgwDC.d.mts.map} +1 -1
- package/dist/{planner-D65FzuZZ.d.mts → planner-ChwhExQU.d.mts} +2 -2
- package/dist/{planner-D65FzuZZ.d.mts.map → planner-ChwhExQU.d.mts.map} +1 -1
- package/dist/{planner-DD8nGrZ_-BcGCsYVP.mjs → planner-IcAu5SpS-BxzZlOe3.mjs} +5 -5
- package/dist/{planner-DD8nGrZ_-BcGCsYVP.mjs.map → planner-IcAu5SpS-BxzZlOe3.mjs.map} +1 -1
- package/dist/{planner-produced-sqlite-migration-DZcAhOaD-D71e7xGn.mjs → planner-produced-sqlite-migration-8onGxp5C-SfQsPkc5.mjs} +4 -4
- package/dist/{planner-produced-sqlite-migration-DZcAhOaD-D71e7xGn.mjs.map → planner-produced-sqlite-migration-8onGxp5C-SfQsPkc5.mjs.map} +1 -1
- package/dist/planner-produced-sqlite-migration-D0aHh8Z9.d.mts +1 -0
- package/dist/{planner-produced-sqlite-migration-CkHb8T4n-DD8b29qz.d.mts → planner-produced-sqlite-migration-DuM9c3YI-COeeqS8N.d.mts} +3 -3
- package/dist/planner-produced-sqlite-migration-DuM9c3YI-COeeqS8N.d.mts.map +1 -0
- package/dist/{render-ops-DG-QUw8Q-DC6TMBgU.mjs → render-ops-DkPGXHWU-6FZfFCF5.mjs} +3 -3
- package/dist/{render-ops-DG-QUw8Q-DC6TMBgU.mjs.map → render-ops-DkPGXHWU-6FZfFCF5.mjs.map} +1 -1
- package/dist/{sqlite-migration-B7LD9iDG-BTpw_zNF.mjs → sqlite-migration-BM-4t7pA-Cf3heN-E.mjs} +3 -3
- package/dist/{sqlite-migration-B7LD9iDG-BTpw_zNF.mjs.map → sqlite-migration-BM-4t7pA-Cf3heN-E.mjs.map} +1 -1
- package/dist/{sqlite-migration-BqbQmUY1-CdxaTXni.d.mts → sqlite-migration-CLIMaHLy-BQ6vv7gq.d.mts} +3 -3
- package/dist/{sqlite-migration-BqbQmUY1-CdxaTXni.d.mts.map → sqlite-migration-CLIMaHLy-BQ6vv7gq.d.mts.map} +1 -1
- package/dist/{tables-DD_EmImp-B8ZaVBMr.d.mts → tables-C6oejIsc-BgxW5wBn.d.mts} +3 -3
- package/dist/{tables-DD_EmImp-B8ZaVBMr.d.mts.map → tables-C6oejIsc-BgxW5wBn.d.mts.map} +1 -1
- package/dist/target.d.mts +10 -10
- package/dist/target.mjs +8 -8
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__control.d.mts +2 -2
- package/dist/target__control.mjs +528 -3
- package/dist/target__control.mjs.map +1 -0
- package/dist/target__migration.d.mts +2 -2
- package/dist/target__migration.mjs +2 -2
- package/dist/target__op-factory-call.d.mts +1 -1
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__pack.d.mts +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-produced-sqlite-migration.d.mts +2 -2
- package/dist/target__planner-produced-sqlite-migration.mjs +1 -1
- package/dist/target__planner.d.mts +1 -1
- package/dist/target__planner.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/package.json +9 -9
- package/dist/control-Oq9sp9Tq.mjs +0 -574
- package/dist/control-Oq9sp9Tq.mjs.map +0 -1
- package/dist/descriptor-meta-B9drv0U6-DoV55ut2.mjs +0 -54
- package/dist/descriptor-meta-B9drv0U6-DoV55ut2.mjs.map +0 -1
- package/dist/op-factory-call-Dzsgcf3B-B7IaqEjE.mjs.map +0 -1
- package/dist/planner-produced-sqlite-migration-AnV25lXu.d.mts +0 -1
- package/dist/planner-produced-sqlite-migration-CkHb8T4n-DD8b29qz.d.mts.map +0 -1
|
@@ -64,7 +64,7 @@ declare const sqliteAdapterContractContributions: {
|
|
|
64
64
|
readonly operation: "sum";
|
|
65
65
|
readonly input: {
|
|
66
66
|
readonly kind: "codec";
|
|
67
|
-
readonly codecId: "sql/int@1" | "sqlite/
|
|
67
|
+
readonly codecId: "sql/int@1" | "sqlite/integer@1" | "sqlite/bigint@1" | "sqlite/bigintnumber@1";
|
|
68
68
|
};
|
|
69
69
|
readonly output: {
|
|
70
70
|
readonly kind: "codec";
|
|
@@ -75,7 +75,7 @@ declare const sqliteAdapterContractContributions: {
|
|
|
75
75
|
readonly operation: "sumBigInt";
|
|
76
76
|
readonly input: {
|
|
77
77
|
readonly kind: "codec";
|
|
78
|
-
readonly codecId: "sql/int@1" | "sqlite/
|
|
78
|
+
readonly codecId: "sql/int@1" | "sqlite/integer@1" | "sqlite/bigint@1" | "sqlite/bigintnumber@1";
|
|
79
79
|
};
|
|
80
80
|
readonly output: {
|
|
81
81
|
readonly kind: "codec";
|
|
@@ -100,7 +100,7 @@ declare const sqliteAdapterContractContributions: {
|
|
|
100
100
|
readonly operation: "avg";
|
|
101
101
|
readonly input: {
|
|
102
102
|
readonly kind: "codec";
|
|
103
|
-
readonly codecId: "sql/int@1" | "sql/float@1" | "sqlite/
|
|
103
|
+
readonly codecId: "sql/int@1" | "sql/float@1" | "sqlite/integer@1" | "sqlite/bigint@1" | "sqlite/real@1" | "sqlite/bigintnumber@1";
|
|
104
104
|
};
|
|
105
105
|
readonly output: {
|
|
106
106
|
readonly kind: "codec";
|
|
@@ -194,4 +194,4 @@ declare const sqliteAdapterContractContributions: {
|
|
|
194
194
|
};
|
|
195
195
|
//#endregion
|
|
196
196
|
export { sqliteAdapterContractContributions as n, sqliteAdapterCapabilities as t };
|
|
197
|
-
//# sourceMappingURL=adapter-
|
|
197
|
+
//# sourceMappingURL=adapter-e4_SMdnY.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-
|
|
1
|
+
{"version":3,"file":"adapter-e4_SMdnY.d.mts","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/adapter.d.mts"],"mappings":";;;;cAGc,2BAA2B;WAC9B;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;;;;;;;cAQC;WACH,cAAc;aACZ;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;;WAGJ;aACE;eACE;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;eACA,6EAA6E;;eAE7E;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;eACA,6EAA6E;;eAE7E,8EAA8E;eAC9E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;eACA,6EAA6E;;eAE7E,8EAA8E;eAC9E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,8EAA8E;eAC9E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;eACA,6EAA6E;;eAE7E;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;eACA,6EAA6E"}
|
package/dist/adapter.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as SqliteContract, r as SqliteLoweredStatement, t as SqliteAdapterOptions } from "./types-RJMd2PlL-EuhZF7B6.mjs";
|
|
2
2
|
import { m as createSqliteCodecRegistryWithBuiltins, o as SqliteCodecRegistry, p as createSqliteBuiltinCodecLookup, t as JsonValue$1 } from "./codecs-BJYruC-a-gv28KlTa.mjs";
|
|
3
3
|
import { i as sqliteRawCodecInferer, r as renderLoweredSql, t as createSqliteAdapter } from "./adapter-xFPDhkod-BsfRQfp6.mjs";
|
|
4
|
-
import { n as sqliteAdapterContractContributions, t as sqliteAdapterCapabilities } from "./adapter-
|
|
4
|
+
import { n as sqliteAdapterContractContributions, t as sqliteAdapterCapabilities } from "./adapter-e4_SMdnY.mjs";
|
|
5
5
|
import { t as CodecTypes } from "./codec-types-COh75Bop-YF2hiOlF.mjs";
|
|
6
6
|
import "./codec-types-CLxV6VvX.mjs";
|
|
7
7
|
import { a as jsonColumn, c as textColumn, i as integerColumn, n as blobColumn, o as rawColumn, r as datetimeColumn, s as realColumn, t as bigintColumn } from "./column-types-D4Dmbaa6.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as SqliteAdapterOptions } from "./types-RJMd2PlL-EuhZF7B6.mjs";
|
|
2
2
|
import { i as sqliteRawCodecInferer, t as createSqliteAdapter } from "./adapter-xFPDhkod-BsfRQfp6.mjs";
|
|
3
|
-
import { n as sqliteAdapterContractContributions, t as sqliteAdapterCapabilities } from "./adapter-
|
|
3
|
+
import { n as sqliteAdapterContractContributions, t as sqliteAdapterCapabilities } from "./adapter-e4_SMdnY.mjs";
|
|
4
4
|
export { type SqliteAdapterOptions, createSqliteAdapter, sqliteAdapterCapabilities, sqliteAdapterContractContributions, sqliteRawCodecInferer };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { n as createSqliteBuiltinCodecLookup, r as createSqliteCodecRegistryWithBuiltins, t as assembleSqliteCodecRegistry } from "./codecs-B7dd4E74.mjs";
|
|
2
2
|
import { t as readSqliteDefault } from "./default-normalizer-DGMXypHg-Q0mNIQC6.mjs";
|
|
3
3
|
import { n as escapeLiteral, r as quoteIdentifier } from "./sql-utils-XGT5Esi2-5k9pvJeF.mjs";
|
|
4
|
-
import { n as sqlitePslTypeConstructors } from "./control-Oq9sp9Tq.mjs";
|
|
5
4
|
import { t as SqliteControlAdapter } from "./adapter-7m8HU4rt-D9MMwvqc.mjs";
|
|
6
5
|
import { t as sqliteAdapterDescriptorMeta } from "./descriptor-meta-DrNwC4vO-CzrflkeC.mjs";
|
|
7
6
|
import { sqlDefaultFunctions } from "@prisma/orm-family-sql/family/control";
|
|
@@ -12,10 +11,7 @@ function createSqliteDefaultFunctionRegistry() {
|
|
|
12
11
|
}
|
|
13
12
|
const sqliteAdapterDescriptor = {
|
|
14
13
|
...sqliteAdapterDescriptorMeta,
|
|
15
|
-
authoring: {
|
|
16
|
-
type: sqlitePslTypeConstructors,
|
|
17
|
-
valueObjectStorageType: "Json"
|
|
18
|
-
},
|
|
14
|
+
authoring: { valueObjectStorageType: "Json" },
|
|
19
15
|
controlMutationDefaults: {
|
|
20
16
|
defaultFunctionRegistry: createSqliteDefaultFunctionRegistry(),
|
|
21
17
|
generatorDescriptors: []
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter__control.mjs","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/control.mjs"],"sourcesContent":["import { a as SqliteControlAdapter } from \"./adapter-7m8HU4rt.mjs\";\nimport { t as sqliteAdapterDescriptorMeta } from \"./descriptor-meta-DrNwC4vO.mjs\";\nimport { assembleSqliteCodecRegistry, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins } from \"@internal/target-sqlite/codecs\";\nimport { escapeLiteral, quoteIdentifier } from \"@internal/target-sqlite/sql-utils\";\nimport { sqlDefaultFunctions } from \"@internal/family-sql/control\";\nimport { readSqliteDefault } from \"@internal/target-sqlite/default-normalizer\";\
|
|
1
|
+
{"version":3,"file":"adapter__control.mjs","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/control.mjs"],"sourcesContent":["import { a as SqliteControlAdapter } from \"./adapter-7m8HU4rt.mjs\";\nimport { t as sqliteAdapterDescriptorMeta } from \"./descriptor-meta-DrNwC4vO.mjs\";\nimport { assembleSqliteCodecRegistry, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins } from \"@internal/target-sqlite/codecs\";\nimport { escapeLiteral, quoteIdentifier } from \"@internal/target-sqlite/sql-utils\";\nimport { sqlDefaultFunctions } from \"@internal/family-sql/control\";\nimport { readSqliteDefault } from \"@internal/target-sqlite/default-normalizer\";\n//#region src/core/control-mutation-defaults.ts\nconst sqliteDefaultFunctionRegistryEntries = Object.entries(sqlDefaultFunctions());\nfunction createSqliteDefaultFunctionRegistry() {\n\treturn new Map(sqliteDefaultFunctionRegistryEntries);\n}\n//#endregion\n//#region src/exports/control.ts\nconst sqliteAdapterDescriptor = {\n\t...sqliteAdapterDescriptorMeta,\n\tauthoring: { valueObjectStorageType: \"Json\" },\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: createSqliteDefaultFunctionRegistry(),\n\t\tgeneratorDescriptors: []\n\t},\n\tcreate(stack) {\n\t\treturn new SqliteControlAdapter(assembleSqliteCodecRegistry(stack.target, stack.extensions), stack.declaredDataTypes.map(({ type }) => type));\n\t}\n};\n//#endregion\nexport { SqliteControlAdapter, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, sqliteAdapterDescriptor as default, escapeLiteral, quoteIdentifier, readSqliteDefault };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,uCAAuC,OAAO,QAAQ,oBAAoB,CAAC;AACjF,SAAS,sCAAsC;CAC9C,OAAO,IAAI,IAAI,oCAAoC;AACpD;AAGA,MAAM,0BAA0B;CAC/B,GAAG;CACH,WAAW,EAAE,wBAAwB,OAAO;CAC5C,yBAAyB;EACxB,yBAAyB,oCAAoC;EAC7D,sBAAsB,CAAC;CACxB;CACA,OAAO,OAAO;EACb,OAAO,IAAI,qBAAqB,4BAA4B,MAAM,QAAQ,MAAM,UAAU,GAAG,MAAM,kBAAkB,KAAK,EAAE,WAAW,IAAI,CAAC;CAC7I;AACD"}
|
|
@@ -33,7 +33,7 @@ declare const sqliteAggregateDescriptors: readonly [{
|
|
|
33
33
|
readonly operation: "sum";
|
|
34
34
|
readonly input: {
|
|
35
35
|
readonly kind: "codec";
|
|
36
|
-
readonly codecId: "sql/int@1" | "sqlite/
|
|
36
|
+
readonly codecId: "sql/int@1" | "sqlite/integer@1" | "sqlite/bigint@1" | "sqlite/bigintnumber@1";
|
|
37
37
|
};
|
|
38
38
|
readonly output: {
|
|
39
39
|
readonly kind: "codec";
|
|
@@ -44,7 +44,7 @@ declare const sqliteAggregateDescriptors: readonly [{
|
|
|
44
44
|
readonly operation: "sumBigInt";
|
|
45
45
|
readonly input: {
|
|
46
46
|
readonly kind: "codec";
|
|
47
|
-
readonly codecId: "sql/int@1" | "sqlite/
|
|
47
|
+
readonly codecId: "sql/int@1" | "sqlite/integer@1" | "sqlite/bigint@1" | "sqlite/bigintnumber@1";
|
|
48
48
|
};
|
|
49
49
|
readonly output: {
|
|
50
50
|
readonly kind: "codec";
|
|
@@ -69,7 +69,7 @@ declare const sqliteAggregateDescriptors: readonly [{
|
|
|
69
69
|
readonly operation: "avg";
|
|
70
70
|
readonly input: {
|
|
71
71
|
readonly kind: "codec";
|
|
72
|
-
readonly codecId: "sql/int@1" | "sql/float@1" | "sqlite/
|
|
72
|
+
readonly codecId: "sql/int@1" | "sql/float@1" | "sqlite/integer@1" | "sqlite/bigint@1" | "sqlite/real@1" | "sqlite/bigintnumber@1";
|
|
73
73
|
};
|
|
74
74
|
readonly output: {
|
|
75
75
|
readonly kind: "codec";
|
|
@@ -161,4 +161,4 @@ declare const sqliteAggregateDescriptors: readonly [{
|
|
|
161
161
|
}];
|
|
162
162
|
//#endregion
|
|
163
163
|
export { sqliteAggregateDescriptors as t };
|
|
164
|
-
//# sourceMappingURL=aggregates-
|
|
164
|
+
//# sourceMappingURL=aggregates-CP9IZJhO.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregates-
|
|
1
|
+
{"version":3,"file":"aggregates-CP9IZJhO.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/aggregates.d.mts"],"mappings":";;;;;;cAKc;WACH;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;WACA,OAAO;;WAEP;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;WACA,OAAO;;WAEP,QAAQ;WACR;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;WACA,OAAO;;WAEP,QAAQ;WACR;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,QAAQ;WACR;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;WACA,OAAO;;WAEP;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;WACA,OAAO"}
|
|
@@ -65,9 +65,9 @@ declare function sqliteCreateNamespace(input: SqlNamespaceInput): SqliteDatabase
|
|
|
65
65
|
* The type position is the only storage decider: a mutation-default generator
|
|
66
66
|
* (`@onCreate(uuid())`) never re-picks a column's storage.
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
* The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.
|
|
69
69
|
*/
|
|
70
|
-
declare const
|
|
70
|
+
declare const sqliteScalarTypeConstructors: {
|
|
71
71
|
readonly String: {
|
|
72
72
|
readonly kind: "typeConstructor";
|
|
73
73
|
readonly documentation: "Variable-length text stored as SQLite text.";
|
|
@@ -126,5 +126,5 @@ declare const sqlitePslTypeConstructors: {
|
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
128
|
//#endregion
|
|
129
|
-
export {
|
|
130
|
-
//# sourceMappingURL=control-
|
|
129
|
+
export { sqliteScalarTypeConstructors as i, sqliteControlTargetDescriptor as n, sqliteCreateNamespace as r, SqliteUnboundDatabase as t };
|
|
130
|
+
//# sourceMappingURL=control-CqSlwRpm.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-
|
|
1
|
+
{"version":3,"file":"control-CqSlwRpm.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/control.d.mts"],"mappings":";;;;;cAIc,+BAA+B,qCAAqC;;;KAG7E;WACM;WACA,SAAS;;;;;;;cAON,uBAAuB;WAC1B;WACA;WACA,SAAS;EAClB,YAAY,OAAO;MACf,SAAS,SAAS,eAAe;EACrC;EACA,aAAa;;;;;;;;;;;;;;;;;;;cAmBD,8BAA8B;kBAC1B,UAAU;UAClB;;;;;;;;;;;;iBAYO,sBAAsB,OAAO,oBAAoB,iBAAiB;;;;;;;;;;;;cAYrE;WACH;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-wgEvkCkg-8bxcCujY.mjs";
|
|
2
|
+
import { l as sqliteInteger, p as sqliteTextDataTypes } from "./data-types-Cwfbq6Pw-DrDgiBdP.mjs";
|
|
3
|
+
import { t as sqliteDataTypeEntries } from "./data-type-entries-CiM-fwrn-AGrcQ2Op.mjs";
|
|
4
|
+
import { t as sqliteTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-Cyy0Sdmo-BPBqWSpP.mjs";
|
|
5
|
+
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
6
|
+
import { idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors } from "@prisma/orm-family-sql/family/pack";
|
|
7
|
+
import { TIMESTAMP_NOW_GENERATOR_ID, temporalAuthoringPresets, temporalCodecPreset, temporalTypeAliases } from "@prisma/orm-framework/components/authoring";
|
|
8
|
+
import { singleGeneratorBinding } from "@prisma/orm-framework/components/components";
|
|
9
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/descriptor-meta-BWlR2rDN.mjs
|
|
10
|
+
const sqliteAuthoringTypes = {
|
|
11
|
+
.../* @__PURE__ */ sqlTargetTypeConstructors({ sizeType: "sqlite/real" }),
|
|
12
|
+
BigIntNumber: {
|
|
13
|
+
kind: "typeConstructor",
|
|
14
|
+
documentation: "A SQLite integer represented as a JavaScript number within its safe integer range.",
|
|
15
|
+
output: { codecId: "sqlite/bigintnumber@1" }
|
|
16
|
+
},
|
|
17
|
+
temporal: /* @__PURE__ */ temporalTypeAliases({ codecId: "sqlite/datetime@1" }, "a JavaScript Date")
|
|
18
|
+
};
|
|
19
|
+
const sqliteAuthoringFieldPresets = { temporal: {
|
|
20
|
+
.../* @__PURE__ */ temporalAuthoringPresets({ codecId: "sqlite/datetime@1" }),
|
|
21
|
+
datetime: /* @__PURE__ */ temporalCodecPreset({ codecId: "sqlite/datetime@1" })
|
|
22
|
+
} };
|
|
23
|
+
const sqliteGeneratorFunctions = [
|
|
24
|
+
...sqlIntegerArgumentGeneratorFunctions({ integer: sqliteInteger.id }),
|
|
25
|
+
{
|
|
26
|
+
name: "now",
|
|
27
|
+
bindings: [singleGeneratorBinding({
|
|
28
|
+
codecIds: [SQLITE_DATETIME_CODEC_ID],
|
|
29
|
+
generatorId: TIMESTAMP_NOW_GENERATOR_ID
|
|
30
|
+
})]
|
|
31
|
+
},
|
|
32
|
+
...idGeneratorFunctionBindings({ text: [SQLITE_TEXT_CODEC_ID] })
|
|
33
|
+
];
|
|
34
|
+
/** The `now` generator SQLite binds. The SQL family registers the identifier generators. */
|
|
35
|
+
const sqliteGeneratorDescriptors = [{ id: TIMESTAMP_NOW_GENERATOR_ID }];
|
|
36
|
+
/**
|
|
37
|
+
* The base PSL scalars as zero-arg type constructors in the unified authoring
|
|
38
|
+
* channel. Each names a codec; the column's database type is its data type's.
|
|
39
|
+
*
|
|
40
|
+
* The type position is the only storage decider: a mutation-default generator
|
|
41
|
+
* (`@onCreate(uuid())`) never re-picks a column's storage.
|
|
42
|
+
*
|
|
43
|
+
* The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.
|
|
44
|
+
*/
|
|
45
|
+
const sqliteScalarTypeConstructors = {
|
|
46
|
+
String: {
|
|
47
|
+
kind: "typeConstructor",
|
|
48
|
+
documentation: "Variable-length text stored as SQLite text.",
|
|
49
|
+
output: { codecId: SQLITE_TEXT_CODEC_ID }
|
|
50
|
+
},
|
|
51
|
+
Int: {
|
|
52
|
+
kind: "typeConstructor",
|
|
53
|
+
documentation: "An integer stored as SQLite integer and represented as a JavaScript number.",
|
|
54
|
+
output: { codecId: SQLITE_INTEGER_CODEC_ID }
|
|
55
|
+
},
|
|
56
|
+
BigInt: {
|
|
57
|
+
kind: "typeConstructor",
|
|
58
|
+
documentation: "An integer stored as SQLite integer and represented as a JavaScript bigint.",
|
|
59
|
+
output: { codecId: SQLITE_BIGINT_CODEC_ID }
|
|
60
|
+
},
|
|
61
|
+
Float: {
|
|
62
|
+
kind: "typeConstructor",
|
|
63
|
+
documentation: "A floating-point number stored as SQLite real.",
|
|
64
|
+
output: { codecId: SQLITE_REAL_CODEC_ID }
|
|
65
|
+
},
|
|
66
|
+
Decimal: {
|
|
67
|
+
kind: "typeConstructor",
|
|
68
|
+
documentation: "A decimal value stored and represented as text to preserve precision.",
|
|
69
|
+
output: { codecId: SQLITE_TEXT_CODEC_ID }
|
|
70
|
+
},
|
|
71
|
+
DateTime: {
|
|
72
|
+
kind: "typeConstructor",
|
|
73
|
+
documentation: "A date and time stored as SQLite text.",
|
|
74
|
+
output: { codecId: SQLITE_DATETIME_CODEC_ID }
|
|
75
|
+
},
|
|
76
|
+
Json: {
|
|
77
|
+
kind: "typeConstructor",
|
|
78
|
+
documentation: "A JSON value serialized to SQLite text.",
|
|
79
|
+
output: { codecId: SQLITE_JSON_CODEC_ID }
|
|
80
|
+
},
|
|
81
|
+
Bytes: {
|
|
82
|
+
kind: "typeConstructor",
|
|
83
|
+
documentation: "Binary data stored as a SQLite blob.",
|
|
84
|
+
output: { codecId: SQLITE_BLOB_CODEC_ID }
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const sqliteTargetDescriptorMeta = {
|
|
88
|
+
...sqliteTargetDescriptorMetaRuntime,
|
|
89
|
+
defaultNamespaceId: UNBOUND_NAMESPACE_ID,
|
|
90
|
+
supportsNamespaces: false,
|
|
91
|
+
authoring: {
|
|
92
|
+
type: {
|
|
93
|
+
...sqliteScalarTypeConstructors,
|
|
94
|
+
...sqliteAuthoringTypes
|
|
95
|
+
},
|
|
96
|
+
field: sqliteAuthoringFieldPresets,
|
|
97
|
+
dataTypes: sqliteDataTypeEntries(),
|
|
98
|
+
textDataTypes: sqliteTextDataTypes
|
|
99
|
+
},
|
|
100
|
+
generatorFunctions: sqliteGeneratorFunctions,
|
|
101
|
+
controlMutationDefaults: {
|
|
102
|
+
defaultFunctionRegistry: /* @__PURE__ */ new Map(),
|
|
103
|
+
generatorDescriptors: sqliteGeneratorDescriptors
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
//#endregion
|
|
107
|
+
export { sqliteTargetDescriptorMeta as n, sqliteScalarTypeConstructors as t };
|
|
108
|
+
|
|
109
|
+
//# sourceMappingURL=descriptor-meta-BWlR2rDN-Y8Y4_jie.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptor-meta-BWlR2rDN-Y8Y4_jie.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/descriptor-meta-BWlR2rDN.mjs"],"sourcesContent":["import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from \"./codec-ids-wgEvkCkg.mjs\";\nimport { l as sqliteInteger, p as sqliteTextDataTypes } from \"./data-types-Cwfbq6Pw.mjs\";\nimport { t as sqliteDataTypeEntries } from \"./data-type-entries-CiM-fwrn.mjs\";\nimport { t as sqliteTargetDescriptorMetaRuntime } from \"./descriptor-meta-runtime-Cyy0Sdmo.mjs\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors } from \"@internal/family-sql/pack\";\nimport { TIMESTAMP_NOW_GENERATOR_ID, temporalAuthoringPresets, temporalCodecPreset, temporalTypeAliases } from \"@internal/framework-components/authoring\";\nimport { singleGeneratorBinding } from \"@internal/framework-components/components\";\n//#region src/core/authoring.ts\nconst sqliteAuthoringTypes = {\n\t.../* @__PURE__ */ sqlTargetTypeConstructors({ sizeType: \"sqlite/real\" }),\n\tBigIntNumber: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A SQLite integer represented as a JavaScript number within its safe integer range.\",\n\t\toutput: { codecId: \"sqlite/bigintnumber@1\" }\n\t},\n\ttemporal: /* @__PURE__ */ temporalTypeAliases({ codecId: \"sqlite/datetime@1\" }, \"a JavaScript Date\")\n};\nconst sqliteAuthoringFieldPresets = { temporal: {\n\t.../* @__PURE__ */ temporalAuthoringPresets({ codecId: \"sqlite/datetime@1\" }),\n\tdatetime: /* @__PURE__ */ temporalCodecPreset({ codecId: \"sqlite/datetime@1\" })\n} };\n//#endregion\n//#region src/core/generator-functions.ts\nconst sqliteGeneratorFunctions = [\n\t...sqlIntegerArgumentGeneratorFunctions({ integer: sqliteInteger.id }),\n\t{\n\t\tname: \"now\",\n\t\tbindings: [singleGeneratorBinding({\n\t\t\tcodecIds: [SQLITE_DATETIME_CODEC_ID],\n\t\t\tgeneratorId: TIMESTAMP_NOW_GENERATOR_ID\n\t\t})]\n\t},\n\t...idGeneratorFunctionBindings({ text: [SQLITE_TEXT_CODEC_ID] })\n];\n/** The `now` generator SQLite binds. The SQL family registers the identifier generators. */\nconst sqliteGeneratorDescriptors = [{ id: TIMESTAMP_NOW_GENERATOR_ID }];\n//#endregion\n//#region src/core/type-constructors.ts\n/**\n* The base PSL scalars as zero-arg type constructors in the unified authoring\n* channel. Each names a codec; the column's database type is its data type's.\n*\n* The type position is the only storage decider: a mutation-default generator\n* (`@onCreate(uuid())`) never re-picks a column's storage.\n*\n* The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.\n*/\nconst sqliteScalarTypeConstructors = {\n\tString: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Variable-length text stored as SQLite text.\",\n\t\toutput: { codecId: SQLITE_TEXT_CODEC_ID }\n\t},\n\tInt: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An integer stored as SQLite integer and represented as a JavaScript number.\",\n\t\toutput: { codecId: SQLITE_INTEGER_CODEC_ID }\n\t},\n\tBigInt: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An integer stored as SQLite integer and represented as a JavaScript bigint.\",\n\t\toutput: { codecId: SQLITE_BIGINT_CODEC_ID }\n\t},\n\tFloat: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A floating-point number stored as SQLite real.\",\n\t\toutput: { codecId: SQLITE_REAL_CODEC_ID }\n\t},\n\tDecimal: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A decimal value stored and represented as text to preserve precision.\",\n\t\toutput: { codecId: SQLITE_TEXT_CODEC_ID }\n\t},\n\tDateTime: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A date and time stored as SQLite text.\",\n\t\toutput: { codecId: SQLITE_DATETIME_CODEC_ID }\n\t},\n\tJson: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A JSON value serialized to SQLite text.\",\n\t\toutput: { codecId: SQLITE_JSON_CODEC_ID }\n\t},\n\tBytes: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Binary data stored as a SQLite blob.\",\n\t\toutput: { codecId: SQLITE_BLOB_CODEC_ID }\n\t}\n};\nconst sqliteTargetDescriptorMeta = {\n\t...sqliteTargetDescriptorMetaRuntime,\n\tdefaultNamespaceId: UNBOUND_NAMESPACE_ID,\n\tsupportsNamespaces: false,\n\tauthoring: {\n\t\ttype: {\n\t\t\t...sqliteScalarTypeConstructors,\n\t\t\t...sqliteAuthoringTypes\n\t\t},\n\t\tfield: sqliteAuthoringFieldPresets,\n\t\tdataTypes: sqliteDataTypeEntries(),\n\t\ttextDataTypes: sqliteTextDataTypes\n\t},\n\tgeneratorFunctions: sqliteGeneratorFunctions,\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: /* @__PURE__ */ new Map(),\n\t\tgeneratorDescriptors: sqliteGeneratorDescriptors\n\t}\n};\n//#endregion\nexport { sqliteScalarTypeConstructors as n, sqliteTargetDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-BWlR2rDN.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,uBAAuB;CAC5B,GAAmB,0CAA0B,EAAE,UAAU,cAAc,CAAC;CACxE,cAAc;EACb,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,wBAAwB;CAC5C;CACA,UAA0B,oCAAoB,EAAE,SAAS,oBAAoB,GAAG,mBAAmB;AACpG;AACA,MAAM,8BAA8B,EAAE,UAAU;CAC/C,GAAmB,yCAAyB,EAAE,SAAS,oBAAoB,CAAC;CAC5E,UAA0B,oCAAoB,EAAE,SAAS,oBAAoB,CAAC;AAC/E,EAAE;AAGF,MAAM,2BAA2B;CAChC,GAAG,qCAAqC,EAAE,SAAS,cAAc,GAAG,CAAC;CACrE;EACC,MAAM;EACN,UAAU,CAAC,uBAAuB;GACjC,UAAU,CAAC,wBAAwB;GACnC,aAAa;EACd,CAAC,CAAC;CACH;CACA,GAAG,4BAA4B,EAAE,MAAM,CAAC,oBAAoB,EAAE,CAAC;AAChE;;AAEA,MAAM,6BAA6B,CAAC,EAAE,IAAI,2BAA2B,CAAC;;;;;;;;;;AAYtE,MAAM,+BAA+B;CACpC,QAAQ;EACP,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,qBAAqB;CACzC;CACA,KAAK;EACJ,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,wBAAwB;CAC5C;CACA,QAAQ;EACP,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,uBAAuB;CAC3C;CACA,OAAO;EACN,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,qBAAqB;CACzC;CACA,SAAS;EACR,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,qBAAqB;CACzC;CACA,UAAU;EACT,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,yBAAyB;CAC7C;CACA,MAAM;EACL,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,qBAAqB;CACzC;CACA,OAAO;EACN,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,qBAAqB;CACzC;AACD;AACA,MAAM,6BAA6B;CAClC,GAAG;CACH,oBAAoB;CACpB,oBAAoB;CACpB,WAAW;EACV,MAAM;GACL,GAAG;GACH,GAAG;EACJ;EACA,OAAO;EACP,WAAW,sBAAsB;EACjC,eAAe;CAChB;CACA,oBAAoB;CACpB,yBAAyB;EACxB,yCAAyC,IAAI,IAAI;EACjD,sBAAsB;CACvB;AACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as buildTargetDetails } from "./planner-target-details-CIQ789Gc-C5U4yVY9.mjs";
|
|
2
|
-
import { C as step } from "./op-factory-call-
|
|
2
|
+
import { C as step } from "./op-factory-call-D2bHVPKQ-BdwLsMzU.mjs";
|
|
3
3
|
import { col as col$1, fn as fn$1, foreignKey, lit as lit$1, primaryKey, unique } from "@prisma/orm-family-sql/relational-core/contract-free";
|
|
4
4
|
import { placeholder } from "@prisma/orm-framework/errors/migration";
|
|
5
5
|
import { MigrationCLI } from "@prisma/orm-toolchain/cli/migration-cli";
|
|
@@ -45,4 +45,4 @@ function rawSql(op) {
|
|
|
45
45
|
//#endregion
|
|
46
46
|
export { foreignKey as a, primaryKey as c, unique as d, fn$1 as i, rawSql as l, col$1 as n, lit$1 as o, dataTransform as r, placeholder as s, MigrationCLI as t, sql as u };
|
|
47
47
|
|
|
48
|
-
//# sourceMappingURL=migration-
|
|
48
|
+
//# sourceMappingURL=migration-DpfbaaqJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-
|
|
1
|
+
{"version":3,"file":"migration-DpfbaaqJ.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/migration.mjs"],"sourcesContent":["import { t as SqliteMigration } from \"./sqlite-migration-BM-4t7pA.mjs\";\nimport { S as step } from \"./op-factory-call-D2bHVPKQ.mjs\";\nimport { t as buildTargetDetails } from \"./planner-target-details-CIQ789Gc.mjs\";\nimport { placeholder } from \"@internal/errors/migration\";\nimport { col, fn, foreignKey, lit, primaryKey, unique } from \"@internal/sql-relational-core/contract-free\";\nimport { MigrationCLI } from \"@internal/cli/migration-cli\";\nimport { sql } from \"@internal/sql-contract/sql-expression\";\n//#region src/core/migrations/operations/data-transform.ts\n/**\n* User-facing `dataTransform` factory for the SQLite migration authoring\n* surface. Invoked directly inside a `migration.ts` file to supply a\n* user-authored SQL statement that runs with operation class `'data'`.\n*\n* Typical use: the planner emits a `DataTransformCall` stub when a NOT NULL\n* tightening requires a backfill. The rendered `migration.ts` exposes the\n* backfill as a `placeholder(\"…\")` slot the user fills in with an\n* `UPDATE … WHERE col IS NULL` statement. The filled-in `dataTransform(...)`\n* invocation returns a runnable operation the runner executes before the\n* subsequent recreate-table op copies data into the tightened schema.\n*/\nfunction dataTransform(opts) {\n\treturn {\n\t\tid: opts.id,\n\t\tlabel: opts.label,\n\t\tsummary: opts.description,\n\t\toperationClass: \"data\",\n\t\ttarget: {\n\t\t\tid: \"sqlite\",\n\t\t\tdetails: buildTargetDetails(\"table\", opts.table)\n\t\t},\n\t\tprecheck: [],\n\t\texecute: [step(opts.description, opts.run())],\n\t\tpostcheck: []\n\t};\n}\n//#endregion\n//#region src/core/migrations/operations/raw.ts\n/**\n* Identity factory for an already-materialized\n* `SqlMigrationPlanOperation<SqlitePlanTargetDetails>`. Mirrors the Postgres\n* `rawSql` factory: the planner uses this to carry ops produced by SQL-family\n* paths (codec lifecycle hooks, raw-SQL escape hatches) alongside structured\n* call IR without reverse-engineering their shape.\n*/\nfunction rawSql(op) {\n\treturn op;\n}\n//#endregion\nexport { SqliteMigration as Migration, MigrationCLI, col, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, sql, unique };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBA,SAAS,cAAc,MAAM;CAC5B,OAAO;EACN,IAAI,KAAK;EACT,OAAO,KAAK;EACZ,SAAS,KAAK;EACd,gBAAgB;EAChB,QAAQ;GACP,IAAI;GACJ,SAAS,mBAAmB,SAAS,KAAK,KAAK;EAChD;EACA,UAAU,CAAC;EACX,SAAS,CAAC,KAAK,KAAK,aAAa,KAAK,IAAI,CAAC,CAAC;EAC5C,WAAW,CAAC;CACb;AACD;;;;;;;;AAUA,SAAS,OAAO,IAAI;CACnB,OAAO;AACR"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Op } from "./tables-
|
|
2
|
-
import "./sqlite-migration-
|
|
1
|
+
import { t as Op } from "./tables-C6oejIsc-BgxW5wBn.mjs";
|
|
2
|
+
import "./sqlite-migration-CLIMaHLy-BQ6vv7gq.mjs";
|
|
3
3
|
import { col as col$1, fn as fn$1, foreignKey, lit as lit$1, primaryKey, unique } from "@prisma/orm-family-sql/relational-core/contract-free";
|
|
4
4
|
import { placeholder } from "@prisma/orm-framework/errors/migration";
|
|
5
5
|
import { MigrationCLI } from "@prisma/orm-toolchain/cli/migration-cli";
|
|
@@ -41,4 +41,4 @@ declare function dataTransform(opts: DataTransformOptions): Op;
|
|
|
41
41
|
declare function rawSql(op: Op): Op;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { fn$1 as a, placeholder as c, sql as d, unique as f, dataTransform as i, primaryKey as l, MigrationCLI as n, foreignKey as o, col$1 as r, lit$1 as s, DataTransformOptions as t, rawSql as u };
|
|
44
|
-
//# sourceMappingURL=migration-
|
|
44
|
+
//# sourceMappingURL=migration-p83G5mtQ.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-
|
|
1
|
+
{"version":3,"file":"migration-p83G5mtQ.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/migration.d.mts"],"mappings":";;;;;;;;UAOU;;WAEC;;WAEA;;WAEA;;;;;WAKA;;;;;;;;;WASA;;iBAEM,cAAc,MAAM,uBAAuB;;;;;;;;;;iBAU3C,OAAO,IAAI,KAAK"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as SqlitePlanTargetDetails } from "./planner-target-details-xR6UfIcz-CMahymzq.mjs";
|
|
2
|
-
import { a as SqliteTableSpec, i as SqliteIndexSpec, n as RecreatePostcheck, r as SqliteColumnSpec } from "./tables-
|
|
2
|
+
import { a as SqliteTableSpec, i as SqliteIndexSpec, n as RecreatePostcheck, r as SqliteColumnSpec } from "./tables-C6oejIsc-BgxW5wBn.mjs";
|
|
3
3
|
import { DdlColumn, DdlTableConstraint } from "@prisma/orm-family-sql/relational-core/ast";
|
|
4
4
|
import { OpFactoryCall } from "@prisma/orm-framework/components/control";
|
|
5
5
|
import { MigrationOperationClass, SqlMigrationPlanOperation, SqlSlot } from "@prisma/orm-family-sql/family/control";
|
|
@@ -222,4 +222,4 @@ declare class RawSqlCall extends SqliteOpFactoryCallNode {
|
|
|
222
222
|
type SqliteOpFactoryCall = CreateTableCall | DropTableCall | RecreateTableCall | RenameTableCall | RenameColumnCall | AddColumnCall | DropColumnCall | CreateIndexCall | DropIndexCall | DataTransformCall | RawSqlCall;
|
|
223
223
|
//#endregion
|
|
224
224
|
export { DropColumnCall as a, RawSqlCall as c, RenameTableCall as d, SqliteOpFactoryCall as f, DataTransformCall as i, RecreateTableCall as l, CreateIndexCall as n, DropIndexCall as o, CreateTableCall as r, DropTableCall as s, AddColumnCall as t, RenameColumnCall as u };
|
|
225
|
-
//# sourceMappingURL=op-factory-call-
|
|
225
|
+
//# sourceMappingURL=op-factory-call-CnufFdpE.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"op-factory-call-
|
|
1
|
+
{"version":3,"file":"op-factory-call-CnufFdpE.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/op-factory-call.d.mts"],"mappings":";;;;;;;;;KAQK,KAAK,0BAA0B;uBACb,gCAAgC,wBAAwB;oBAC3D;oBACA,gBAAgB;oBAChB;WACT,KAAK,UAAU,UAAU,KAAK,QAAQ;;EAE/C,MAAM,UAAU,kCAAkC,KAAK,QAAQ;EAC/D,+BAA+B;YACrB;;cAEE,wBAAwB;;WAE3B;WACA;WACA;WACA,kBAAkB;WAClB,sBAAsB;WACtB;EACT,YAAY,mBAAmB,kBAAkB,aAAa,uBAAuB;EACrF,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,sBAAsB;WACzB;WACA;WACA;WACA;EACT,YAAY;EACZ,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;;UAGvB;WACC,MAAM;WACN,QAAQ;;;KAGd,sBAAsB,gBAAgB;cAC7B,wBAAwB;WAC3B;WACA;WACA;;WAEA;WACA;;WAEA,4BAA4B;;;;;WAK5B,qBAAqB;EAC9B,YAAY,sBAAsB,mBAAmB,4BAA4B;;MAE7E;EACJ,MAAM,UAAU,iCAAiC,QAAQ;EACzD,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,yBAAyB;WAC5B;WACA;WACA;WACA;;WAEA;WACA;;WAEA,4BAA4B;;;;;WAK5B,qBAAqB;EAC9B,YAAY,mBAAmB,uBAAuB,oBAAoB,4BAA4B;EACtG,MAAM,UAAU,iCAAiC,QAAQ;EACzD,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,0BAA0B;;WAE7B;WACA,gBAAgB;WAChB;WACA,eAAe;WACf;WACA,kBAAkB;WAClB;WACA,qBAAqB;WACrB;;WAEA,iBAAiB,SAAS,eAAe;;WAEzC,iBAAiB,SAAS,eAAe;;WAEzC;EACT,YAAY;IACV;IACA,eAAe;IACf;IACA,kBAAkB;IAClB;IACA,qBAAqB;IACrB,gBAAgB;IAChB,kBAAkB,SAAS,eAAe;IAC1C,kBAAkB,SAAS,eAAe;IAC1C;;EAEF,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,sBAAsB;;WAEzB;WACA;WACA;WACA;WACA,QAAQ;WACR;EACT,YAAY,mBAAmB,QAAQ;EACvC,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,uBAAuB;WAC1B;WACA;WACA;WACA;WACA;EACT,YAAY,mBAAmB;EAC/B,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,wBAAwB;WAC3B;WACA;WACA;WACA;WACA;WACA;EACT,YAAY,mBAAmB,mBAAmB;;MAE9C;EACJ,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,sBAAsB;WACzB;WACA;WACA;WACA;WACA;EACT,YAAY,mBAAmB;;MAE3B;EACJ,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;;;;;;;;;;;;;cAcnB,0BAA0B;WAC7B;WACA;WACA;WACA;WACA;WACA;;WAEA;EACT,YAAY,YAAY,eAAe,mBAAmB,oBAAoB;EAC9E,KAAK,WAAW,UAAU,QAAQ;EAClC;EACA,+BAA+B;;;;;;;;;;;cAWnB,mBAAmB;WACtB;WACA,gBAAgB;WAChB;WACA,IAAI;EACb,YAAY,IAAI;EAChB,KAAK,WAAW,UAAU;EAC1B;;KAEG,sBAAsB,kBAAkB,gBAAgB,oBAAoB,kBAAkB,mBAAmB,gBAAgB,iBAAiB,kBAAkB,gBAAgB,oBAAoB"}
|
package/dist/{op-factory-call-Dzsgcf3B-B7IaqEjE.mjs → op-factory-call-D2bHVPKQ-BdwLsMzU.mjs}
RENAMED
|
@@ -10,13 +10,13 @@ import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
|
10
10
|
import { assertNever } from "@prisma/orm-framework/utils/internal-error";
|
|
11
11
|
import "@prisma/orm-family-sql/contract/data-type";
|
|
12
12
|
import { type } from "arktype";
|
|
13
|
-
import { issueOutcome } from "@prisma/orm-framework/components/control";
|
|
13
|
+
import { expectAbsent, expectPresent, issueOutcome } from "@prisma/orm-framework/components/control";
|
|
14
14
|
import { checkSqlExpressionText, convertedColumnMeta, createSqlTextSources, isUnfilledSlot, requiredColumnMeta, slotSource, sqlOfSlot } from "@prisma/orm-family-sql/family/control";
|
|
15
15
|
import { RelationalSchemaNodeKind, sqlColumnTypesEqual } from "@prisma/orm-family-sql/schema-ir/types";
|
|
16
16
|
import { errorMigrationOperationOptionRemoved, unfilledPlaceholderOperation } from "@prisma/orm-framework/errors/migration";
|
|
17
17
|
import { REFERENTIAL_ACTION_SQL } from "@prisma/orm-family-sql/contract/referential-action-sql";
|
|
18
18
|
import { TsExpression, jsonToTsSource, tsArraySource, tsObjectSource, tsQuotedTextSource } from "@prisma/orm-framework/ts-render";
|
|
19
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/op-factory-call-
|
|
19
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/op-factory-call-D2bHVPKQ.mjs
|
|
20
20
|
function foldAsciiLetters(identifier) {
|
|
21
21
|
return identifier.replace(/[A-Z]/g, (letter) => letter.toLowerCase());
|
|
22
22
|
}
|
|
@@ -26,11 +26,12 @@ function foldAsciiLetters(identifier) {
|
|
|
26
26
|
function sqliteIdentifiersCollide(left, right) {
|
|
27
27
|
return foldAsciiLetters(left) === foldAsciiLetters(right);
|
|
28
28
|
}
|
|
29
|
-
function step(description, sql, params) {
|
|
29
|
+
function step(description, sql, params, expectation) {
|
|
30
30
|
return {
|
|
31
31
|
description,
|
|
32
32
|
sql,
|
|
33
|
-
...ifDefined("params", params)
|
|
33
|
+
...ifDefined("params", params),
|
|
34
|
+
...ifDefined("expectation", expectation)
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
/** The text a `DdlColumn`'s type ends with when the column is SQLite's inline `INTEGER PRIMARY KEY AUTOINCREMENT`. */
|
|
@@ -156,9 +157,9 @@ async function addColumn(tableName, column, lowerer) {
|
|
|
156
157
|
id: "sqlite",
|
|
157
158
|
details: buildTargetDetails("column", column.name, tableName)
|
|
158
159
|
},
|
|
159
|
-
precheck: [step(`ensure column "${column.name}" is missing`, absent.sql, absent.params)],
|
|
160
|
+
precheck: [step(`ensure column "${column.name}" is missing`, absent.sql, absent.params, expectAbsent(`column "${column.name}" on "${tableName}"`))],
|
|
160
161
|
execute: [step(`add column "${column.name}"`, addColumnExecuteSql(tableName, column, defaultClause))],
|
|
161
|
-
postcheck: [step(`verify column "${column.name}" exists`, present.sql, present.params), columnShapeCheck(tableName, {
|
|
162
|
+
postcheck: [step(`verify column "${column.name}" exists`, present.sql, present.params, expectPresent(`column "${column.name}" on "${tableName}"`)), columnShapeCheck(tableName, {
|
|
162
163
|
name: column.name,
|
|
163
164
|
typeSql: column.typeSql,
|
|
164
165
|
notNull: !column.nullable
|
|
@@ -181,7 +182,8 @@ async function renameColumn(tableName, fromName, toName, lowerer) {
|
|
|
181
182
|
const fromChecks = columnExistsAst(tableName, fromName);
|
|
182
183
|
const toChecks = columnExistsAst(tableName, toName);
|
|
183
184
|
const fromPresent = await lowerer.lowerToExecuteRequest(fromChecks.columnPresent());
|
|
184
|
-
const
|
|
185
|
+
const onlyCase = sqliteIdentifiersCollide(fromName, toName);
|
|
186
|
+
const toAbsent = await lowerer.lowerToExecuteRequest(onlyCase ? toChecks.columnAbsent() : columnNameTakenAst(tableName, toName).nameFree());
|
|
185
187
|
const toPresent = await lowerer.lowerToExecuteRequest(toChecks.columnPresent());
|
|
186
188
|
const fromAbsent = await lowerer.lowerToExecuteRequest(fromChecks.columnAbsent());
|
|
187
189
|
return {
|
|
@@ -193,9 +195,9 @@ async function renameColumn(tableName, fromName, toName, lowerer) {
|
|
|
193
195
|
id: "sqlite",
|
|
194
196
|
details: buildTargetDetails("column", toName, tableName)
|
|
195
197
|
},
|
|
196
|
-
precheck: [step(`ensure column "${fromName}" exists on "${tableName}"`, fromPresent.sql, fromPresent.params), step(`ensure column "${toName}" does not exist on "${tableName}"`, toAbsent.sql, toAbsent.params)],
|
|
198
|
+
precheck: [step(`ensure column "${fromName}" exists on "${tableName}"`, fromPresent.sql, fromPresent.params, expectPresent(`column "${fromName}" on "${tableName}"`)), step(`ensure column "${toName}" does not exist on "${tableName}"`, toAbsent.sql, toAbsent.params, expectAbsent(onlyCase ? `column "${toName}" on "${tableName}"` : `a column named "${toName}" on "${tableName}" in any case`))],
|
|
197
199
|
execute: [step(`rename column "${fromName}" on "${tableName}" to "${toName}"`, renameColumnExecuteSql(tableName, fromName, toName))],
|
|
198
|
-
postcheck: [step(`verify column "${toName}" exists on "${tableName}"`, toPresent.sql, toPresent.params), step(`verify column "${fromName}" no longer exists on "${tableName}"`, fromAbsent.sql, fromAbsent.params)]
|
|
200
|
+
postcheck: [step(`verify column "${toName}" exists on "${tableName}"`, toPresent.sql, toPresent.params, expectPresent(`column "${toName}" on "${tableName}"`)), step(`verify column "${fromName}" no longer exists on "${tableName}"`, fromAbsent.sql, fromAbsent.params, expectAbsent(`column "${fromName}" on "${tableName}"`))]
|
|
199
201
|
};
|
|
200
202
|
}
|
|
201
203
|
function buildCreateIndexSql(tableName, indexName, columns, unique = false) {
|
|
@@ -295,8 +297,8 @@ async function recreateTable(args, lowerer) {
|
|
|
295
297
|
details: buildTargetDetails("table", tableName)
|
|
296
298
|
},
|
|
297
299
|
precheck: [
|
|
298
|
-
step(`ensure table "${tableName}" exists`, tableSteps.present.sql, tableSteps.present.params),
|
|
299
|
-
step(`ensure temp table "${tempName}" does not exist`, tempSteps.absent.sql, tempSteps.absent.params),
|
|
300
|
+
step(`ensure table "${tableName}" exists`, tableSteps.present.sql, tableSteps.present.params, expectPresent(`table "${tableName}"`)),
|
|
301
|
+
step(`ensure temp table "${tempName}" does not exist`, tempSteps.absent.sql, tempSteps.absent.params, expectAbsent(`temp table "${tempName}"`)),
|
|
300
302
|
sourceColumnsCheck(tableName, schemaColumnNames)
|
|
301
303
|
],
|
|
302
304
|
execute: [
|
|
@@ -307,8 +309,8 @@ async function recreateTable(args, lowerer) {
|
|
|
307
309
|
...indexStatements
|
|
308
310
|
],
|
|
309
311
|
postcheck: [
|
|
310
|
-
step(`verify table "${tableName}" exists`, tableSteps.present.sql, tableSteps.present.params),
|
|
311
|
-
step(`verify temp table "${tempName}" is gone`, tempSteps.absent.sql, tempSteps.absent.params),
|
|
312
|
+
step(`verify table "${tableName}" exists`, tableSteps.present.sql, tableSteps.present.params, expectPresent(`table "${tableName}"`)),
|
|
313
|
+
step(`verify temp table "${tempName}" is gone`, tempSteps.absent.sql, tempSteps.absent.params, expectAbsent(`temp table "${tempName}"`)),
|
|
312
314
|
rebuiltTableCheck(tableName, renderCreateTableSql(tableName, contractTable, defaultClauses)),
|
|
313
315
|
...postchecks.flatMap((check) => "sql" in check ? [markedStep(tableName, check)] : defaultPostcheck(tableName, check, clauseByColumn.get(check.columnDefault))),
|
|
314
316
|
...contractTable.columns.flatMap((column) => {
|
|
@@ -735,13 +737,13 @@ var CreateTableCall = class extends SqliteOpFactoryCallNode {
|
|
|
735
737
|
id: "sqlite",
|
|
736
738
|
details: buildTargetDetails("table", tableName)
|
|
737
739
|
},
|
|
738
|
-
precheck: [step(`ensure table "${tableName}" does not exist`, absent.sql, absent.params)],
|
|
740
|
+
precheck: [step(`ensure table "${tableName}" does not exist`, absent.sql, absent.params, expectAbsent(`table "${tableName}"`))],
|
|
739
741
|
execute: [{
|
|
740
742
|
description: `create table "${tableName}"`,
|
|
741
743
|
sql: statement.sql,
|
|
742
744
|
params: statement.params ?? []
|
|
743
745
|
}],
|
|
744
|
-
postcheck: [step(`verify table "${tableName}" exists`, present.sql, present.params), tableColumnsCheck(tableName, columnShapesOf(this.columns, this.constraints))]
|
|
746
|
+
postcheck: [step(`verify table "${tableName}" exists`, present.sql, present.params, expectPresent(`table "${tableName}"`)), tableColumnsCheck(tableName, columnShapesOf(this.columns, this.constraints))]
|
|
745
747
|
};
|
|
746
748
|
}
|
|
747
749
|
renderTypeScript() {
|
|
@@ -808,9 +810,9 @@ var DropTableCall = class extends SqliteOpFactoryCallNode {
|
|
|
808
810
|
id: "sqlite",
|
|
809
811
|
details: buildTargetDetails("table", this.tableName)
|
|
810
812
|
},
|
|
811
|
-
precheck: [step(`ensure table "${this.tableName}" exists`, present.sql, present.params)],
|
|
813
|
+
precheck: [step(`ensure table "${this.tableName}" exists`, present.sql, present.params, expectPresent(`table "${this.tableName}"`))],
|
|
812
814
|
execute: [step(`drop table "${this.tableName}"`, `DROP TABLE ${quoteIdentifier(this.tableName)}`)],
|
|
813
|
-
postcheck: [step(`verify table "${this.tableName}" is gone`, absent.sql, absent.params)]
|
|
815
|
+
postcheck: [step(`verify table "${this.tableName}" is gone`, absent.sql, absent.params, expectAbsent(`table "${this.tableName}"`))]
|
|
814
816
|
};
|
|
815
817
|
}
|
|
816
818
|
renderTypeScript() {
|
|
@@ -878,12 +880,12 @@ var RenameTableCall = class extends SqliteOpFactoryCallNode {
|
|
|
878
880
|
details: buildTargetDetails("table", this.tableName)
|
|
879
881
|
},
|
|
880
882
|
precheck: [
|
|
881
|
-
step(`ensure table "${this.oldTableName}" exists`, fromPresent.sql, fromPresent.params),
|
|
882
|
-
step(onlyCase ? `ensure table "${this.tableName}" does not exist` : `ensure no table or index is named "${this.tableName}" in any case`, toAbsent.sql, toAbsent.params),
|
|
883
|
-
...viaAbsent === void 0 ? [] : [step(`ensure table "${viaName}" does not exist (a rename that only changes case passes through this temporary name, because SQLite compares table names without case)`, viaAbsent.sql, viaAbsent.params)]
|
|
883
|
+
step(`ensure table "${this.oldTableName}" exists`, fromPresent.sql, fromPresent.params, expectPresent(`table "${this.oldTableName}"`)),
|
|
884
|
+
step(onlyCase ? `ensure table "${this.tableName}" does not exist` : `ensure no table or index is named "${this.tableName}" in any case`, toAbsent.sql, toAbsent.params, expectAbsent(onlyCase ? `table "${this.tableName}"` : `a table or index named "${this.tableName}" in any case`)),
|
|
885
|
+
...viaAbsent === void 0 ? [] : [step(`ensure table "${viaName}" does not exist (a rename that only changes case passes through this temporary name, because SQLite compares table names without case)`, viaAbsent.sql, viaAbsent.params, expectAbsent(`table "${viaName}"`))]
|
|
884
886
|
],
|
|
885
887
|
execute: renameTableSteps(this.oldTableName, this.tableName),
|
|
886
|
-
postcheck: [step(`verify table "${this.tableName}" exists`, toPresent.sql, toPresent.params), step(`verify table "${this.oldTableName}" no longer exists`, fromAbsent.sql, fromAbsent.params)]
|
|
888
|
+
postcheck: [step(`verify table "${this.tableName}" exists`, toPresent.sql, toPresent.params, expectPresent(`table "${this.tableName}"`)), step(`verify table "${this.oldTableName}" no longer exists`, fromAbsent.sql, fromAbsent.params, expectAbsent(`table "${this.oldTableName}"`))]
|
|
887
889
|
};
|
|
888
890
|
}
|
|
889
891
|
renderTypeScript() {
|
|
@@ -1173,9 +1175,9 @@ var DropColumnCall = class extends SqliteOpFactoryCallNode {
|
|
|
1173
1175
|
id: "sqlite",
|
|
1174
1176
|
details: buildTargetDetails("column", this.columnName, this.tableName)
|
|
1175
1177
|
},
|
|
1176
|
-
precheck: [step(`ensure column "${this.columnName}" exists on "${this.tableName}"`, present.sql, present.params)],
|
|
1178
|
+
precheck: [step(`ensure column "${this.columnName}" exists on "${this.tableName}"`, present.sql, present.params, expectPresent(`column "${this.columnName}" on "${this.tableName}"`))],
|
|
1177
1179
|
execute: [step(`drop column "${this.columnName}" from "${this.tableName}"`, dropColumnExecuteSql(this.tableName, this.columnName))],
|
|
1178
|
-
postcheck: [step(`verify column "${this.columnName}" is gone from "${this.tableName}"`, absent.sql, absent.params)]
|
|
1180
|
+
postcheck: [step(`verify column "${this.columnName}" is gone from "${this.tableName}"`, absent.sql, absent.params, expectAbsent(`column "${this.columnName}" on "${this.tableName}"`))]
|
|
1179
1181
|
};
|
|
1180
1182
|
}
|
|
1181
1183
|
renderTypeScript() {
|
|
@@ -1222,9 +1224,9 @@ var CreateIndexCall = class extends SqliteOpFactoryCallNode {
|
|
|
1222
1224
|
id: "sqlite",
|
|
1223
1225
|
details: buildTargetDetails("index", this.indexName, this.tableName)
|
|
1224
1226
|
},
|
|
1225
|
-
precheck: [step(`ensure index "${this.indexName}" is missing`, absent.sql, absent.params)],
|
|
1227
|
+
precheck: [step(`ensure index "${this.indexName}" is missing`, absent.sql, absent.params, expectAbsent(`index "${this.indexName}"`))],
|
|
1226
1228
|
execute: [step(`create index "${this.indexName}"`, buildCreateIndexSql(this.tableName, this.indexName, this.columns))],
|
|
1227
|
-
postcheck: [step(`verify index "${this.indexName}" exists`, present.sql, present.params), indexDefinitionCheck(this.tableName, this.indexName, this.columns, false)]
|
|
1229
|
+
postcheck: [step(`verify index "${this.indexName}" exists`, present.sql, present.params, expectPresent(`index "${this.indexName}"`)), indexDefinitionCheck(this.tableName, this.indexName, this.columns, false)]
|
|
1228
1230
|
};
|
|
1229
1231
|
}
|
|
1230
1232
|
renderTypeScript() {
|
|
@@ -1269,9 +1271,9 @@ var DropIndexCall = class extends SqliteOpFactoryCallNode {
|
|
|
1269
1271
|
id: "sqlite",
|
|
1270
1272
|
details: buildTargetDetails("index", this.indexName, this.tableName)
|
|
1271
1273
|
},
|
|
1272
|
-
precheck: [step(`ensure index "${this.indexName}" exists`, present.sql, present.params)],
|
|
1274
|
+
precheck: [step(`ensure index "${this.indexName}" exists`, present.sql, present.params, expectPresent(`index "${this.indexName}"`))],
|
|
1273
1275
|
execute: [step(`drop index "${this.indexName}"`, buildDropIndexSql(this.indexName))],
|
|
1274
|
-
postcheck: [step(`verify index "${this.indexName}" is gone`, absent.sql, absent.params)]
|
|
1276
|
+
postcheck: [step(`verify index "${this.indexName}" is gone`, absent.sql, absent.params, expectAbsent(`index "${this.indexName}"`))]
|
|
1275
1277
|
};
|
|
1276
1278
|
}
|
|
1277
1279
|
renderTypeScript() {
|
|
@@ -1409,4 +1411,4 @@ function renderPostcheck(postcheck) {
|
|
|
1409
1411
|
//#endregion
|
|
1410
1412
|
export { step as C, sqliteIdentifiersCollide as S, indexReplacementCalls as _, DropColumnCall as a, renameTableSteps as b, INLINE_AUTOINCREMENT_PRIMARY_KEY as c, RenameColumnCall as d, RenameTableCall as f, conversionCopyOf as g, buildRecreateSummary as h, DataTransformCall as i, RawSqlCall as l, buildRecreatePostchecks as m, CreateIndexCall as n, DropIndexCall as o, affinityStorageClasses as p, CreateTableCall as r, DropTableCall as s, AddColumnCall as t, RecreateTableCall as u, isSqliteOpFactoryCall as v, sqliteDefaultToDdlColumnDefault as x, rebuiltTableName as y };
|
|
1411
1413
|
|
|
1412
|
-
//# sourceMappingURL=op-factory-call-
|
|
1414
|
+
//# sourceMappingURL=op-factory-call-D2bHVPKQ-BdwLsMzU.mjs.map
|