drizzle-kit 0.20.17-8b4d89e → 0.20.17-92ad3af
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/bin.cjs +43435 -3844
- package/cli/commands/migrate.d.ts +2 -2
- package/cli/commands/mysqlIntrospect.d.ts +1 -6
- package/cli/commands/sqliteIntrospect.d.ts +0 -1
- package/cli/commands/sqlitePushUtils.d.ts +2 -2
- package/cli/connections.d.ts +13 -0
- package/cli/utils.d.ts +1 -0
- package/cli/validations/cli.d.ts +21 -21
- package/cli/validations/common.d.ts +4 -4
- package/cli/validations/mysql.d.ts +3 -9
- package/cli/validations/outputs.d.ts +1 -0
- package/cli/validations/pg.d.ts +18 -9
- package/cli/validations/sqlite.d.ts +0 -12
- package/index.d.mts +17 -11
- package/index.d.ts +17 -11
- package/package.json +12 -6
- package/payload.js +1191 -19612
- package/payload.mjs +1198 -19619
- package/schemaValidator.d.ts +6 -6
- package/serializer/mysqlSchema.d.ts +19 -333
- package/serializer/studio.d.ts +51 -0
- package/utils-studio.js +180 -2635
- package/utils-studio.mjs +180 -2635
- package/utils.d.ts +6 -0
- package/utils.js +4 -14
- package/utils.mjs +4 -14
package/utils.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { Dialect } from "./schemaValidator";
|
|
2
2
|
import type { NamedWithSchema } from "./cli/commands/migrate";
|
|
3
|
+
import type { ProxyParams } from "./serializer/studio";
|
|
4
|
+
import type { RunResult } from "better-sqlite3";
|
|
5
|
+
export type Proxy = (params: ProxyParams) => Promise<any[]>;
|
|
6
|
+
export type SqliteProxy = {
|
|
7
|
+
proxy: (params: ProxyParams) => Promise<any[] | RunResult>;
|
|
8
|
+
};
|
|
3
9
|
export type DB = {
|
|
4
10
|
query: <T extends any = any>(sql: string, params?: any[]) => Promise<T[]>;
|
|
5
11
|
};
|
package/utils.js
CHANGED
|
@@ -1079,7 +1079,7 @@ var info = (msg, greyMsg = "") => {
|
|
|
1079
1079
|
var originUUID = "00000000-0000-0000-0000-000000000000";
|
|
1080
1080
|
var snapshotVersion = "6";
|
|
1081
1081
|
|
|
1082
|
-
// node_modules/.pnpm/zod@3.23.
|
|
1082
|
+
// node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs
|
|
1083
1083
|
var util;
|
|
1084
1084
|
(function(util2) {
|
|
1085
1085
|
util2.assertEqual = (val) => val;
|
|
@@ -4937,18 +4937,8 @@ var schemaInternalV5 = objectType({
|
|
|
4937
4937
|
}),
|
|
4938
4938
|
internal: kitInternals
|
|
4939
4939
|
}).strict();
|
|
4940
|
-
var schemaInternalV6 = objectType({
|
|
4941
|
-
version: literalType("6"),
|
|
4942
|
-
dialect,
|
|
4943
|
-
tables: recordType(stringType(), table),
|
|
4944
|
-
_meta: objectType({
|
|
4945
|
-
tables: recordType(stringType(), stringType()),
|
|
4946
|
-
columns: recordType(stringType(), stringType())
|
|
4947
|
-
}),
|
|
4948
|
-
internal: kitInternals
|
|
4949
|
-
}).strict();
|
|
4950
4940
|
var schemaInternal = objectType({
|
|
4951
|
-
version: literalType("
|
|
4941
|
+
version: literalType("5"),
|
|
4952
4942
|
dialect,
|
|
4953
4943
|
tables: recordType(stringType(), table),
|
|
4954
4944
|
_meta: objectType({
|
|
@@ -4977,7 +4967,7 @@ var tableSquashed = objectType({
|
|
|
4977
4967
|
uniqueConstraints: recordType(stringType(), stringType()).default({})
|
|
4978
4968
|
}).strict();
|
|
4979
4969
|
var schemaSquashed = objectType({
|
|
4980
|
-
version: literalType("
|
|
4970
|
+
version: literalType("5"),
|
|
4981
4971
|
dialect,
|
|
4982
4972
|
tables: recordType(stringType(), tableSquashed)
|
|
4983
4973
|
}).strict();
|
|
@@ -4991,7 +4981,7 @@ var mysqlSchema = schema;
|
|
|
4991
4981
|
var mysqlSchemaV5 = schemaV5;
|
|
4992
4982
|
var backwardCompatibleMysqlSchema = unionType([mysqlSchemaV5, schema]);
|
|
4993
4983
|
var dryMySql = mysqlSchema.parse({
|
|
4994
|
-
version:
|
|
4984
|
+
version: "5",
|
|
4995
4985
|
dialect: "mysql",
|
|
4996
4986
|
id: originUUID,
|
|
4997
4987
|
prevId: "",
|
package/utils.mjs
CHANGED
|
@@ -1070,7 +1070,7 @@ var info = (msg, greyMsg = "") => {
|
|
|
1070
1070
|
var originUUID = "00000000-0000-0000-0000-000000000000";
|
|
1071
1071
|
var snapshotVersion = "6";
|
|
1072
1072
|
|
|
1073
|
-
// node_modules/.pnpm/zod@3.23.
|
|
1073
|
+
// node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs
|
|
1074
1074
|
var util;
|
|
1075
1075
|
(function(util2) {
|
|
1076
1076
|
util2.assertEqual = (val) => val;
|
|
@@ -4928,18 +4928,8 @@ var schemaInternalV5 = objectType({
|
|
|
4928
4928
|
}),
|
|
4929
4929
|
internal: kitInternals
|
|
4930
4930
|
}).strict();
|
|
4931
|
-
var schemaInternalV6 = objectType({
|
|
4932
|
-
version: literalType("6"),
|
|
4933
|
-
dialect,
|
|
4934
|
-
tables: recordType(stringType(), table),
|
|
4935
|
-
_meta: objectType({
|
|
4936
|
-
tables: recordType(stringType(), stringType()),
|
|
4937
|
-
columns: recordType(stringType(), stringType())
|
|
4938
|
-
}),
|
|
4939
|
-
internal: kitInternals
|
|
4940
|
-
}).strict();
|
|
4941
4931
|
var schemaInternal = objectType({
|
|
4942
|
-
version: literalType("
|
|
4932
|
+
version: literalType("5"),
|
|
4943
4933
|
dialect,
|
|
4944
4934
|
tables: recordType(stringType(), table),
|
|
4945
4935
|
_meta: objectType({
|
|
@@ -4968,7 +4958,7 @@ var tableSquashed = objectType({
|
|
|
4968
4958
|
uniqueConstraints: recordType(stringType(), stringType()).default({})
|
|
4969
4959
|
}).strict();
|
|
4970
4960
|
var schemaSquashed = objectType({
|
|
4971
|
-
version: literalType("
|
|
4961
|
+
version: literalType("5"),
|
|
4972
4962
|
dialect,
|
|
4973
4963
|
tables: recordType(stringType(), tableSquashed)
|
|
4974
4964
|
}).strict();
|
|
@@ -4982,7 +4972,7 @@ var mysqlSchema = schema;
|
|
|
4982
4972
|
var mysqlSchemaV5 = schemaV5;
|
|
4983
4973
|
var backwardCompatibleMysqlSchema = unionType([mysqlSchemaV5, schema]);
|
|
4984
4974
|
var dryMySql = mysqlSchema.parse({
|
|
4985
|
-
version:
|
|
4975
|
+
version: "5",
|
|
4986
4976
|
dialect: "mysql",
|
|
4987
4977
|
id: originUUID,
|
|
4988
4978
|
prevId: "",
|