drizzle-kit 0.20.17-e041df8 → 0.20.17-e0821c1
Sign up to get free protection for your applications and to get access to all the features.
- package/@types/utils.d.ts +1 -0
- package/bin.cjs +30109 -19077
- package/cli/commands/migrate.d.ts +41 -41
- package/cli/commands/mysqlIntrospect.d.ts +8 -8
- package/cli/commands/pgIntrospect.d.ts +8 -8
- package/cli/commands/sqliteIntrospect.d.ts +12 -12
- package/cli/commands/utils.d.ts +125 -3
- package/cli/connections.d.ts +7 -2
- package/cli/validations/cli.d.ts +61 -61
- package/cli/validations/common.d.ts +35 -35
- package/cli/validations/mysql.d.ts +4 -4
- package/cli/validations/outputs.d.ts +1 -2
- package/cli/validations/pg.d.ts +4 -4
- package/cli/validations/studio.d.ts +92 -0
- package/cli/views.d.ts +7 -0
- package/index.d.mts +7 -51
- package/index.d.ts +7 -51
- package/package.json +3 -2
- package/payload.js +1243 -557
- package/payload.mjs +1046 -360
- package/schemaValidator.d.ts +222 -222
- package/serializer/mysqlSchema.d.ts +892 -892
- package/serializer/pgSchema.d.ts +749 -749
- package/serializer/sqliteSchema.d.ts +457 -457
- package/serializer/studio.d.ts +20 -3
- package/snapshotsDiffer.d.ts +315 -316
- package/utils-studio.js +939 -828
- package/utils-studio.mjs +912 -801
- package/utils.js +844 -219
- package/utils.mjs +819 -194
package/index.d.mts
CHANGED
@@ -1,52 +1,5 @@
|
|
1
|
-
import { Dialect } from "./schemaValidator";
|
2
|
-
export type DbConnection = {
|
3
|
-
driver: "turso";
|
4
|
-
dbCredentials: {
|
5
|
-
url: string;
|
6
|
-
authToken?: string;
|
7
|
-
};
|
8
|
-
} | {
|
9
|
-
driver: "better-sqlite";
|
10
|
-
dbCredentials: {
|
11
|
-
url: string;
|
12
|
-
};
|
13
|
-
} | {
|
14
|
-
driver: "libsql";
|
15
|
-
dbCredentials: {
|
16
|
-
url: string;
|
17
|
-
};
|
18
|
-
} | {
|
19
|
-
driver: "d1";
|
20
|
-
dbCredentials: {
|
21
|
-
wranglerConfigPath: string;
|
22
|
-
dbName: string;
|
23
|
-
};
|
24
|
-
} | {
|
25
|
-
driver: "pg";
|
26
|
-
dbCredentials: {
|
27
|
-
host: string;
|
28
|
-
port?: number;
|
29
|
-
user?: string;
|
30
|
-
password?: string;
|
31
|
-
database: string;
|
32
|
-
ssl?: boolean;
|
33
|
-
} | {
|
34
|
-
connectionString: string;
|
35
|
-
};
|
36
|
-
} | {
|
37
|
-
driver: "mysql2";
|
38
|
-
dbCredentials: {
|
39
|
-
host: string;
|
40
|
-
port?: number;
|
41
|
-
user?: string;
|
42
|
-
password?: string;
|
43
|
-
database: string;
|
44
|
-
} | {
|
45
|
-
uri: string;
|
46
|
-
};
|
47
|
-
};
|
48
1
|
export type Config = {
|
49
|
-
dialect:
|
2
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
50
3
|
out?: string;
|
51
4
|
breakpoints?: boolean;
|
52
5
|
tablesFilter?: string | string[];
|
@@ -54,7 +7,10 @@ export type Config = {
|
|
54
7
|
schema?: string | string[];
|
55
8
|
verbose?: boolean;
|
56
9
|
strict?: boolean;
|
57
|
-
|
10
|
+
migrations?: {
|
11
|
+
table?: string;
|
12
|
+
schema?: string;
|
13
|
+
};
|
58
14
|
introspect?: {
|
59
15
|
casing: "camel" | "preserve";
|
60
16
|
};
|
@@ -71,7 +27,7 @@ export type Config = {
|
|
71
27
|
url: string;
|
72
28
|
};
|
73
29
|
} | {
|
74
|
-
dialect: "
|
30
|
+
dialect: "postgresql";
|
75
31
|
dbCredentials: {
|
76
32
|
host: string;
|
77
33
|
port?: number;
|
@@ -83,7 +39,7 @@ export type Config = {
|
|
83
39
|
url: string;
|
84
40
|
};
|
85
41
|
} | {
|
86
|
-
dialect: "
|
42
|
+
dialect: "postgresql";
|
87
43
|
driver: "aws-data-api";
|
88
44
|
dbCredentials: {
|
89
45
|
database: string;
|
package/index.d.ts
CHANGED
@@ -1,52 +1,5 @@
|
|
1
|
-
import { Dialect } from "./schemaValidator";
|
2
|
-
export type DbConnection = {
|
3
|
-
driver: "turso";
|
4
|
-
dbCredentials: {
|
5
|
-
url: string;
|
6
|
-
authToken?: string;
|
7
|
-
};
|
8
|
-
} | {
|
9
|
-
driver: "better-sqlite";
|
10
|
-
dbCredentials: {
|
11
|
-
url: string;
|
12
|
-
};
|
13
|
-
} | {
|
14
|
-
driver: "libsql";
|
15
|
-
dbCredentials: {
|
16
|
-
url: string;
|
17
|
-
};
|
18
|
-
} | {
|
19
|
-
driver: "d1";
|
20
|
-
dbCredentials: {
|
21
|
-
wranglerConfigPath: string;
|
22
|
-
dbName: string;
|
23
|
-
};
|
24
|
-
} | {
|
25
|
-
driver: "pg";
|
26
|
-
dbCredentials: {
|
27
|
-
host: string;
|
28
|
-
port?: number;
|
29
|
-
user?: string;
|
30
|
-
password?: string;
|
31
|
-
database: string;
|
32
|
-
ssl?: boolean;
|
33
|
-
} | {
|
34
|
-
connectionString: string;
|
35
|
-
};
|
36
|
-
} | {
|
37
|
-
driver: "mysql2";
|
38
|
-
dbCredentials: {
|
39
|
-
host: string;
|
40
|
-
port?: number;
|
41
|
-
user?: string;
|
42
|
-
password?: string;
|
43
|
-
database: string;
|
44
|
-
} | {
|
45
|
-
uri: string;
|
46
|
-
};
|
47
|
-
};
|
48
1
|
export type Config = {
|
49
|
-
dialect:
|
2
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
50
3
|
out?: string;
|
51
4
|
breakpoints?: boolean;
|
52
5
|
tablesFilter?: string | string[];
|
@@ -54,7 +7,10 @@ export type Config = {
|
|
54
7
|
schema?: string | string[];
|
55
8
|
verbose?: boolean;
|
56
9
|
strict?: boolean;
|
57
|
-
|
10
|
+
migrations?: {
|
11
|
+
table?: string;
|
12
|
+
schema?: string;
|
13
|
+
};
|
58
14
|
introspect?: {
|
59
15
|
casing: "camel" | "preserve";
|
60
16
|
};
|
@@ -71,7 +27,7 @@ export type Config = {
|
|
71
27
|
url: string;
|
72
28
|
};
|
73
29
|
} | {
|
74
|
-
dialect: "
|
30
|
+
dialect: "postgresql";
|
75
31
|
dbCredentials: {
|
76
32
|
host: string;
|
77
33
|
port?: number;
|
@@ -83,7 +39,7 @@ export type Config = {
|
|
83
39
|
url: string;
|
84
40
|
};
|
85
41
|
} | {
|
86
|
-
dialect: "
|
42
|
+
dialect: "postgresql";
|
87
43
|
driver: "aws-data-api";
|
88
44
|
dbCredentials: {
|
89
45
|
database: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.20.17-
|
3
|
+
"version": "0.20.17-e0821c1",
|
4
4
|
"repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
|
5
5
|
"author": "Drizzle Team",
|
6
6
|
"license": "MIT",
|
@@ -61,12 +61,13 @@
|
|
61
61
|
"@types/ws": "^8.5.10",
|
62
62
|
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
63
63
|
"@typescript-eslint/parser": "^7.2.0",
|
64
|
+
"@vercel/postgres": "^0.8.0",
|
64
65
|
"ava": "^5.1.0",
|
65
66
|
"better-sqlite3": "^9.4.3",
|
66
67
|
"dockerode": "^3.3.4",
|
67
68
|
"dotenv": "^16.0.3",
|
68
69
|
"drizzle-kit": "0.20.14",
|
69
|
-
"drizzle-orm": "0.30.
|
70
|
+
"drizzle-orm": "0.30.9",
|
70
71
|
"esbuild-node-externals": "^1.9.0",
|
71
72
|
"eslint": "^8.57.0",
|
72
73
|
"eslint-config-prettier": "^9.1.0",
|