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/cli/validations/cli.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { TypeOf } from "zod";
|
2
2
|
export declare const cliConfigGenerate: import("zod").ZodObject<{
|
3
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["
|
3
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
|
4
4
|
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
5
5
|
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
6
6
|
config: import("zod").ZodOptional<import("zod").ZodString>;
|
@@ -8,29 +8,29 @@ export declare const cliConfigGenerate: import("zod").ZodObject<{
|
|
8
8
|
breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
9
9
|
custom: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
10
10
|
}, "strict", import("zod").ZodTypeAny, {
|
11
|
-
name?: string | undefined;
|
12
|
-
schema?: string | string[] | undefined;
|
13
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
14
|
-
config?: string | undefined;
|
15
11
|
custom: boolean;
|
16
12
|
out: string;
|
17
13
|
breakpoints: boolean;
|
14
|
+
name?: string | undefined;
|
15
|
+
schema?: string | string[] | undefined;
|
16
|
+
dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
|
17
|
+
config?: string | undefined;
|
18
18
|
}, {
|
19
19
|
name?: string | undefined;
|
20
20
|
custom?: boolean | undefined;
|
21
21
|
schema?: string | string[] | undefined;
|
22
|
-
dialect?: "
|
22
|
+
dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
|
23
23
|
config?: string | undefined;
|
24
24
|
out?: string | undefined;
|
25
25
|
breakpoints?: boolean | undefined;
|
26
26
|
}>;
|
27
27
|
export type CliConfigGenerate = TypeOf<typeof cliConfigGenerate>;
|
28
28
|
export declare const pushParams: import("zod").ZodObject<{
|
29
|
-
dialect: import("zod").ZodEnum<["
|
29
|
+
dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
30
30
|
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
31
31
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
32
|
-
|
33
|
-
driver: import("zod").ZodString
|
32
|
+
schemaFilter: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
|
33
|
+
driver: import("zod").ZodOptional<import("zod").ZodString>;
|
34
34
|
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
35
35
|
uri: import("zod").ZodOptional<import("zod").ZodString>;
|
36
36
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
@@ -44,6 +44,8 @@ export declare const pushParams: import("zod").ZodObject<{
|
|
44
44
|
verbose: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
45
45
|
strict: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
46
46
|
}, "strip", import("zod").ZodTypeAny, {
|
47
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
48
|
+
schemaFilter: string | string[];
|
47
49
|
strict?: boolean | undefined;
|
48
50
|
schema?: string | string[] | undefined;
|
49
51
|
url?: string | undefined;
|
@@ -53,15 +55,14 @@ export declare const pushParams: import("zod").ZodObject<{
|
|
53
55
|
password?: string | undefined;
|
54
56
|
database?: string | undefined;
|
55
57
|
uri?: string | undefined;
|
58
|
+
driver?: string | undefined;
|
56
59
|
connectionString?: string | undefined;
|
57
60
|
ssl?: string | undefined;
|
58
61
|
authToken?: string | undefined;
|
59
62
|
tablesFilter?: string | string[] | undefined;
|
60
63
|
verbose?: boolean | undefined;
|
61
|
-
dialect: "mysql" | "pg" | "sqlite";
|
62
|
-
driver: string;
|
63
|
-
schemaFilters: string | string[];
|
64
64
|
}, {
|
65
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
65
66
|
strict?: boolean | undefined;
|
66
67
|
schema?: string | string[] | undefined;
|
67
68
|
url?: string | undefined;
|
@@ -71,19 +72,18 @@ export declare const pushParams: import("zod").ZodObject<{
|
|
71
72
|
password?: string | undefined;
|
72
73
|
database?: string | undefined;
|
73
74
|
uri?: string | undefined;
|
75
|
+
driver?: string | undefined;
|
74
76
|
connectionString?: string | undefined;
|
75
77
|
ssl?: string | undefined;
|
76
78
|
authToken?: string | undefined;
|
77
79
|
tablesFilter?: string | string[] | undefined;
|
80
|
+
schemaFilter?: string | string[] | undefined;
|
78
81
|
verbose?: boolean | undefined;
|
79
|
-
schemaFilters?: string | string[] | undefined;
|
80
|
-
dialect: "mysql" | "pg" | "sqlite";
|
81
|
-
driver: string;
|
82
82
|
}>;
|
83
83
|
export type PushParams = TypeOf<typeof pushParams>;
|
84
84
|
export declare const pullParams: import("zod").ZodObject<{
|
85
85
|
config: import("zod").ZodOptional<import("zod").ZodString>;
|
86
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["
|
86
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
|
87
87
|
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
88
88
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
89
89
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
|
@@ -100,54 +100,54 @@ export declare const pullParams: import("zod").ZodObject<{
|
|
100
100
|
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
101
101
|
introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
102
102
|
breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
103
|
-
}, "
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
uri
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
}, {
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
uri
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
}
|
103
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
104
|
+
config: import("zod").ZodOptional<import("zod").ZodString>;
|
105
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
|
106
|
+
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
107
|
+
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
108
|
+
schemaFilter: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
|
109
|
+
driver: import("zod").ZodOptional<import("zod").ZodString>;
|
110
|
+
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
111
|
+
uri: import("zod").ZodOptional<import("zod").ZodString>;
|
112
|
+
host: import("zod").ZodOptional<import("zod").ZodString>;
|
113
|
+
port: import("zod").ZodOptional<import("zod").ZodString>;
|
114
|
+
user: import("zod").ZodOptional<import("zod").ZodString>;
|
115
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
116
|
+
database: import("zod").ZodOptional<import("zod").ZodString>;
|
117
|
+
ssl: import("zod").ZodOptional<import("zod").ZodString>;
|
118
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
119
|
+
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
120
|
+
introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
121
|
+
breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
122
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
123
|
+
config: import("zod").ZodOptional<import("zod").ZodString>;
|
124
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
|
125
|
+
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
126
|
+
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
127
|
+
schemaFilter: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
|
128
|
+
driver: import("zod").ZodOptional<import("zod").ZodString>;
|
129
|
+
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
130
|
+
uri: import("zod").ZodOptional<import("zod").ZodString>;
|
131
|
+
host: import("zod").ZodOptional<import("zod").ZodString>;
|
132
|
+
port: import("zod").ZodOptional<import("zod").ZodString>;
|
133
|
+
user: import("zod").ZodOptional<import("zod").ZodString>;
|
134
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
135
|
+
database: import("zod").ZodOptional<import("zod").ZodString>;
|
136
|
+
ssl: import("zod").ZodOptional<import("zod").ZodString>;
|
137
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
138
|
+
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
139
|
+
introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
140
|
+
breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
141
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
142
142
|
export type PullParams = TypeOf<typeof pullParams>;
|
143
143
|
export declare const configCheck: import("zod").ZodObject<{
|
144
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["
|
144
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
|
145
145
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
146
146
|
}, "strip", import("zod").ZodTypeAny, {
|
147
|
-
dialect?: "
|
147
|
+
dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
|
148
148
|
out?: string | undefined;
|
149
149
|
}, {
|
150
|
-
dialect?: "
|
150
|
+
dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
|
151
151
|
out?: string | undefined;
|
152
152
|
}>;
|
153
153
|
export declare const cliConfigCheck: import("zod").ZodIntersection<import("zod").ZodObject<{
|
@@ -157,13 +157,13 @@ export declare const cliConfigCheck: import("zod").ZodIntersection<import("zod")
|
|
157
157
|
}, {
|
158
158
|
config?: string | undefined;
|
159
159
|
}>, import("zod").ZodObject<{
|
160
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["
|
160
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
|
161
161
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
162
162
|
}, "strip", import("zod").ZodTypeAny, {
|
163
|
-
dialect?: "
|
163
|
+
dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
|
164
164
|
out?: string | undefined;
|
165
165
|
}, {
|
166
|
-
dialect?: "
|
166
|
+
dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
|
167
167
|
out?: string | undefined;
|
168
168
|
}>>;
|
169
169
|
export type CliCheckConfig = TypeOf<typeof cliConfigCheck>;
|
@@ -12,7 +12,7 @@ export declare const postgresDriver: import("zod").ZodLiteral<"pg">;
|
|
12
12
|
export declare const mysqlDriver: import("zod").ZodLiteral<"mysql2">;
|
13
13
|
export declare const driver: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"better-sqlite">, import("zod").ZodLiteral<"turso">, import("zod").ZodLiteral<"libsql">, import("zod").ZodLiteral<"d1">, import("zod").ZodLiteral<"expo">]>, import("zod").ZodLiteral<"pg">, import("zod").ZodLiteral<"mysql2">]>;
|
14
14
|
export declare const configCommonSchema: import("zod").ZodObject<{
|
15
|
-
dialect: import("zod").ZodEnum<["
|
15
|
+
dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
16
16
|
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
17
17
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
18
18
|
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
@@ -20,21 +20,21 @@ export declare const configCommonSchema: import("zod").ZodObject<{
|
|
20
20
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
21
21
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
22
22
|
}, "strip", import("zod").ZodTypeAny, {
|
23
|
-
driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
|
24
|
-
out?: string | undefined;
|
25
|
-
tablesFilter?: string | string[] | undefined;
|
26
23
|
schema: string | string[];
|
27
|
-
dialect: "
|
24
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
28
25
|
breakpoints: boolean;
|
29
26
|
schemaFilter: string | string[];
|
27
|
+
driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
|
28
|
+
out?: string | undefined;
|
29
|
+
tablesFilter?: string | string[] | undefined;
|
30
30
|
}, {
|
31
|
-
|
31
|
+
schema: string | string[];
|
32
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
33
|
+
driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
|
32
34
|
out?: string | undefined;
|
33
35
|
breakpoints?: boolean | undefined;
|
34
36
|
tablesFilter?: string | string[] | undefined;
|
35
37
|
schemaFilter?: string | string[] | undefined;
|
36
|
-
schema: string | string[];
|
37
|
-
dialect: "mysql" | "pg" | "sqlite";
|
38
38
|
}>;
|
39
39
|
export declare const casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
40
40
|
export declare const introspectParams: import("zod").ZodObject<{
|
@@ -51,14 +51,14 @@ export declare const introspectParams: import("zod").ZodObject<{
|
|
51
51
|
casing?: "camel" | "preserve" | undefined;
|
52
52
|
}>>;
|
53
53
|
}, "strip", import("zod").ZodTypeAny, {
|
54
|
-
schema?: string | string[] | undefined;
|
55
|
-
tablesFilter?: string | string[] | undefined;
|
56
54
|
introspect: {
|
57
55
|
casing: "camel" | "preserve";
|
58
56
|
};
|
59
57
|
out: string;
|
60
58
|
breakpoints: boolean;
|
61
59
|
schemaFilter: string | string[];
|
60
|
+
schema?: string | string[] | undefined;
|
61
|
+
tablesFilter?: string | string[] | undefined;
|
62
62
|
}, {
|
63
63
|
schema?: string | string[] | undefined;
|
64
64
|
introspect?: {
|
@@ -79,12 +79,12 @@ export declare const configIntrospectCliSchema: import("zod").ZodObject<{
|
|
79
79
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
80
80
|
introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
81
81
|
}, "strip", import("zod").ZodTypeAny, {
|
82
|
-
schema?: string | string[] | undefined;
|
83
|
-
tablesFilter?: string | string[] | undefined;
|
84
82
|
out: string;
|
85
83
|
breakpoints: boolean;
|
86
84
|
schemaFilter: string | string[];
|
87
85
|
introspectCasing: "camel" | "preserve";
|
86
|
+
schema?: string | string[] | undefined;
|
87
|
+
tablesFilter?: string | string[] | undefined;
|
88
88
|
}, {
|
89
89
|
schema?: string | string[] | undefined;
|
90
90
|
out?: string | undefined;
|
@@ -102,13 +102,13 @@ export declare const configGenerateSchema: import("zod").ZodObject<{
|
|
102
102
|
out: string;
|
103
103
|
breakpoints: boolean;
|
104
104
|
}, {
|
105
|
+
schema: string | string[];
|
105
106
|
out?: string | undefined;
|
106
107
|
breakpoints?: boolean | undefined;
|
107
|
-
schema: string | string[];
|
108
108
|
}>;
|
109
109
|
export type GenerateSchema = TypeOf<typeof configGenerateSchema>;
|
110
110
|
export declare const configPushSchema: import("zod").ZodObject<{
|
111
|
-
dialect: import("zod").ZodEnum<["
|
111
|
+
dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
112
112
|
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
113
113
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
114
114
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
@@ -116,21 +116,21 @@ export declare const configPushSchema: import("zod").ZodObject<{
|
|
116
116
|
strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
117
117
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
118
118
|
}, "strip", import("zod").ZodTypeAny, {
|
119
|
-
out?: string | undefined;
|
120
|
-
tablesFilter?: string | string[] | undefined;
|
121
119
|
strict: boolean;
|
122
120
|
schema: string | string[];
|
123
|
-
dialect: "
|
121
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
124
122
|
schemaFilter: string | string[];
|
125
123
|
verbose: boolean;
|
124
|
+
out?: string | undefined;
|
125
|
+
tablesFilter?: string | string[] | undefined;
|
126
126
|
}, {
|
127
|
+
schema: string | string[];
|
128
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
127
129
|
strict?: boolean | undefined;
|
128
130
|
out?: string | undefined;
|
129
131
|
tablesFilter?: string | string[] | undefined;
|
130
132
|
schemaFilter?: string | string[] | undefined;
|
131
133
|
verbose?: boolean | undefined;
|
132
|
-
schema: string | string[];
|
133
|
-
dialect: "mysql" | "pg" | "sqlite";
|
134
134
|
}>;
|
135
135
|
export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
|
136
136
|
host: import("zod").ZodString;
|
@@ -139,17 +139,17 @@ export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod"
|
|
139
139
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
140
140
|
database: import("zod").ZodString;
|
141
141
|
}, "strip", import("zod").ZodTypeAny, {
|
142
|
-
port?: number | undefined;
|
143
|
-
password?: string | undefined;
|
144
142
|
host: string;
|
145
143
|
user: string;
|
146
144
|
database: string;
|
147
|
-
}, {
|
148
145
|
port?: number | undefined;
|
149
|
-
user?: string | undefined;
|
150
146
|
password?: string | undefined;
|
147
|
+
}, {
|
151
148
|
host: string;
|
152
149
|
database: string;
|
150
|
+
port?: number | undefined;
|
151
|
+
user?: string | undefined;
|
152
|
+
password?: string | undefined;
|
153
153
|
}>, import("zod").ZodObject<{
|
154
154
|
connectionString: import("zod").ZodString;
|
155
155
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -158,7 +158,7 @@ export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod"
|
|
158
158
|
connectionString: string;
|
159
159
|
}>, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>;
|
160
160
|
export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
|
161
|
-
dialect: import("zod").ZodEnum<["
|
161
|
+
dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
162
162
|
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
163
163
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
164
164
|
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
@@ -166,21 +166,21 @@ export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import(
|
|
166
166
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
167
167
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
168
168
|
}, "strip", import("zod").ZodTypeAny, {
|
169
|
-
driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
|
170
|
-
out?: string | undefined;
|
171
|
-
tablesFilter?: string | string[] | undefined;
|
172
169
|
schema: string | string[];
|
173
|
-
dialect: "
|
170
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
174
171
|
breakpoints: boolean;
|
175
172
|
schemaFilter: string | string[];
|
173
|
+
driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
|
174
|
+
out?: string | undefined;
|
175
|
+
tablesFilter?: string | string[] | undefined;
|
176
176
|
}, {
|
177
|
-
|
177
|
+
schema: string | string[];
|
178
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
179
|
+
driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
|
178
180
|
out?: string | undefined;
|
179
181
|
breakpoints?: boolean | undefined;
|
180
182
|
tablesFilter?: string | string[] | undefined;
|
181
183
|
schemaFilter?: string | string[] | undefined;
|
182
|
-
schema: string | string[];
|
183
|
-
dialect: "mysql" | "pg" | "sqlite";
|
184
184
|
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
185
185
|
host: import("zod").ZodString;
|
186
186
|
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
@@ -188,17 +188,17 @@ export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import(
|
|
188
188
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
189
189
|
database: import("zod").ZodString;
|
190
190
|
}, "strip", import("zod").ZodTypeAny, {
|
191
|
-
port?: number | undefined;
|
192
|
-
password?: string | undefined;
|
193
191
|
host: string;
|
194
192
|
user: string;
|
195
193
|
database: string;
|
196
|
-
}, {
|
197
194
|
port?: number | undefined;
|
198
|
-
user?: string | undefined;
|
199
195
|
password?: string | undefined;
|
196
|
+
}, {
|
200
197
|
host: string;
|
201
198
|
database: string;
|
199
|
+
port?: number | undefined;
|
200
|
+
user?: string | undefined;
|
201
|
+
password?: string | undefined;
|
202
202
|
}>, import("zod").ZodObject<{
|
203
203
|
connectionString: import("zod").ZodString;
|
204
204
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -6,17 +6,17 @@ export declare const mysqlCredentials: import("zod").ZodUnion<[import("zod").Zod
|
|
6
6
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
7
7
|
database: import("zod").ZodString;
|
8
8
|
}, "strip", import("zod").ZodTypeAny, {
|
9
|
-
port?: number | undefined;
|
10
|
-
password?: string | undefined;
|
11
9
|
host: string;
|
12
10
|
user: string;
|
13
11
|
database: string;
|
14
|
-
}, {
|
15
12
|
port?: number | undefined;
|
16
|
-
user?: string | undefined;
|
17
13
|
password?: string | undefined;
|
14
|
+
}, {
|
18
15
|
host: string;
|
19
16
|
database: string;
|
17
|
+
port?: number | undefined;
|
18
|
+
user?: string | undefined;
|
19
|
+
password?: string | undefined;
|
20
20
|
}>, import("zod").ZodObject<{
|
21
21
|
url: import("zod").ZodString;
|
22
22
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -4,6 +4,7 @@ export declare const withStyle: {
|
|
4
4
|
errorWarning: (str: string) => string;
|
5
5
|
fullWarning: (str: string) => string;
|
6
6
|
suggestion: (str: string) => string;
|
7
|
+
info: (str: string) => string;
|
7
8
|
};
|
8
9
|
export declare const outputs: {
|
9
10
|
studio: {
|
@@ -15,11 +16,9 @@ export declare const outputs: {
|
|
15
16
|
common: {
|
16
17
|
ambiguousParams: (command: string) => string;
|
17
18
|
schema: (command: string) => string;
|
18
|
-
schemaConfig: (command: string) => string;
|
19
19
|
};
|
20
20
|
postgres: {
|
21
21
|
connection: {
|
22
|
-
driver: () => string;
|
23
22
|
required: () => string;
|
24
23
|
awsDataApi: () => void;
|
25
24
|
};
|
package/cli/validations/pg.d.ts
CHANGED
@@ -7,19 +7,19 @@ export declare const postgresCredentials: import("zod").ZodUnion<[import("zod").
|
|
7
7
|
database: import("zod").ZodString;
|
8
8
|
ssl: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
9
9
|
}, "strip", import("zod").ZodTypeAny, {
|
10
|
+
host: string;
|
11
|
+
user: string;
|
12
|
+
database: string;
|
10
13
|
port?: number | undefined;
|
11
14
|
password?: string | undefined;
|
12
15
|
ssl?: boolean | undefined;
|
16
|
+
}, {
|
13
17
|
host: string;
|
14
|
-
user: string;
|
15
18
|
database: string;
|
16
|
-
}, {
|
17
19
|
port?: number | undefined;
|
18
20
|
user?: string | undefined;
|
19
21
|
password?: string | undefined;
|
20
22
|
ssl?: boolean | undefined;
|
21
|
-
host: string;
|
22
|
-
database: string;
|
23
23
|
}>, import("zod").ZodObject<{
|
24
24
|
url: import("zod").ZodString;
|
25
25
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -0,0 +1,92 @@
|
|
1
|
+
import { TypeOf } from "zod";
|
2
|
+
export declare const credentials: import("zod").ZodIntersection<import("zod").ZodUnion<[import("zod").ZodObject<{
|
3
|
+
host: import("zod").ZodString;
|
4
|
+
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
5
|
+
user: import("zod").ZodDefault<import("zod").ZodString>;
|
6
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
7
|
+
database: import("zod").ZodString;
|
8
|
+
ssl: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
9
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10
|
+
host: string;
|
11
|
+
user: string;
|
12
|
+
database: string;
|
13
|
+
port?: number | undefined;
|
14
|
+
password?: string | undefined;
|
15
|
+
ssl?: boolean | undefined;
|
16
|
+
}, {
|
17
|
+
host: string;
|
18
|
+
database: string;
|
19
|
+
port?: number | undefined;
|
20
|
+
user?: string | undefined;
|
21
|
+
password?: string | undefined;
|
22
|
+
ssl?: boolean | undefined;
|
23
|
+
}>, import("zod").ZodObject<{
|
24
|
+
url: import("zod").ZodString;
|
25
|
+
}, "strip", import("zod").ZodTypeAny, {
|
26
|
+
url: string;
|
27
|
+
}, {
|
28
|
+
url: string;
|
29
|
+
}>, import("zod").ZodObject<{
|
30
|
+
driver: import("zod").ZodLiteral<"aws-data-api">;
|
31
|
+
database: import("zod").ZodString;
|
32
|
+
secretArn: import("zod").ZodString;
|
33
|
+
resourceArn: import("zod").ZodString;
|
34
|
+
}, "strip", import("zod").ZodTypeAny, {
|
35
|
+
database: string;
|
36
|
+
driver: "aws-data-api";
|
37
|
+
secretArn: string;
|
38
|
+
resourceArn: string;
|
39
|
+
}, {
|
40
|
+
database: string;
|
41
|
+
driver: "aws-data-api";
|
42
|
+
secretArn: string;
|
43
|
+
resourceArn: string;
|
44
|
+
}>]>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
45
|
+
host: import("zod").ZodString;
|
46
|
+
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
47
|
+
user: import("zod").ZodDefault<import("zod").ZodString>;
|
48
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
49
|
+
database: import("zod").ZodString;
|
50
|
+
}, "strip", import("zod").ZodTypeAny, {
|
51
|
+
host: string;
|
52
|
+
user: string;
|
53
|
+
database: string;
|
54
|
+
port?: number | undefined;
|
55
|
+
password?: string | undefined;
|
56
|
+
}, {
|
57
|
+
host: string;
|
58
|
+
database: string;
|
59
|
+
port?: number | undefined;
|
60
|
+
user?: string | undefined;
|
61
|
+
password?: string | undefined;
|
62
|
+
}>, import("zod").ZodObject<{
|
63
|
+
url: import("zod").ZodString;
|
64
|
+
}, "strip", import("zod").ZodTypeAny, {
|
65
|
+
url: string;
|
66
|
+
}, {
|
67
|
+
url: string;
|
68
|
+
}>]>>;
|
69
|
+
export type Credentials = TypeOf<typeof credentials>;
|
70
|
+
export declare const studioCliParams: import("zod").ZodObject<{
|
71
|
+
port: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
72
|
+
host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
73
|
+
config: import("zod").ZodOptional<import("zod").ZodString>;
|
74
|
+
}, "strip", import("zod").ZodTypeAny, {
|
75
|
+
host: string;
|
76
|
+
port: number;
|
77
|
+
config?: string | undefined;
|
78
|
+
}, {
|
79
|
+
host?: string | undefined;
|
80
|
+
port?: number | undefined;
|
81
|
+
config?: string | undefined;
|
82
|
+
}>;
|
83
|
+
export declare const studioConfig: import("zod").ZodObject<{
|
84
|
+
dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
85
|
+
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
86
|
+
}, "strip", import("zod").ZodTypeAny, {
|
87
|
+
schema: string | string[];
|
88
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
89
|
+
}, {
|
90
|
+
schema: string | string[];
|
91
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
92
|
+
}>;
|
package/cli/views.d.ts
CHANGED
@@ -4,6 +4,7 @@ import type { Named, NamedWithSchema } from "./commands/migrate";
|
|
4
4
|
export declare const warning: (msg: string) => void;
|
5
5
|
export declare const err: (msg: string) => void;
|
6
6
|
export declare const info: (msg: string, greyMsg?: string) => string;
|
7
|
+
export declare const grey: (msg: string) => string;
|
7
8
|
export declare const error: (error: string, greyMsg?: string) => string;
|
8
9
|
export declare const schema: (schema: CommonSchema) => string;
|
9
10
|
export interface RenamePropmtItem<T> {
|
@@ -47,6 +48,12 @@ export declare class IntrospectProgress extends TaskView {
|
|
47
48
|
private statusText;
|
48
49
|
render(): string;
|
49
50
|
}
|
51
|
+
export declare class MigrateProgress extends TaskView {
|
52
|
+
private readonly spinner;
|
53
|
+
private timeout;
|
54
|
+
constructor();
|
55
|
+
render(status: "pending" | "done"): string;
|
56
|
+
}
|
50
57
|
export declare class DropMigrationView<T extends {
|
51
58
|
tag: string;
|
52
59
|
}> extends Prompt<T> {
|