drizzle-kit 0.20.17-5938f5d → 0.20.17-76a18b4
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 +33347 -32961
- 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/validations/cli.d.ts +18 -18
- package/cli/validations/common.d.ts +4 -4
- package/cli/validations/mysql.d.ts +3 -9
- package/cli/validations/pg.d.ts +3 -3
- package/cli/validations/sqlite.d.ts +0 -12
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/package.json +2 -1
- package/payload.js +1181 -19605
- package/payload.mjs +1189 -19613
- package/schemaValidator.d.ts +6 -6
- package/serializer/mysqlSchema.d.ts +19 -333
- package/serializer/studio.d.ts +51 -0
- package/utils-studio.js +178 -2633
- package/utils-studio.mjs +178 -2633
- package/utils.d.ts +6 -0
- package/utils.js +3 -13
- package/utils.mjs +3 -13
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
|
@@ -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
|
@@ -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: "",
|