drizzle-kit 0.20.16 → 0.20.17-0d9aa5f
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +69120 -38874
- package/cli/commands/migrate.d.ts +123 -106
- package/cli/commands/mysqlIntrospect.d.ts +2 -71
- package/cli/commands/mysqlPushUtils.d.ts +4 -8
- package/cli/commands/pgIntrospect.d.ts +6 -70
- package/cli/commands/pgPushUtils.d.ts +3 -6
- package/cli/commands/sqliteIntrospect.d.ts +13 -17
- package/cli/commands/sqlitePushUtils.d.ts +4 -10
- package/cli/commands/utils.d.ts +39 -255
- package/cli/connections.d.ts +13 -0
- package/cli/utils.d.ts +13 -0
- package/cli/validations/cli.d.ts +169 -0
- package/cli/validations/common.d.ts +208 -7
- package/cli/validations/mysql.d.ts +6 -342
- package/cli/validations/outputs.d.ts +2 -0
- package/cli/validations/pg.d.ts +16 -408
- package/cli/validations/sqlite.d.ts +22 -0
- package/cli/views.d.ts +7 -5
- package/global.d.ts +3 -1
- package/index.d.mts +25 -17
- package/index.d.ts +25 -17
- package/index.js +1 -0
- package/introspect-sqlite.d.ts +2 -2
- package/jsonDiffer.d.ts +14 -29
- package/jsonStatements.d.ts +38 -11
- package/package.json +28 -51
- package/payload.d.mts +5 -5
- package/payload.d.ts +5 -5
- package/payload.js +16621 -33841
- package/payload.mjs +16673 -33904
- package/schemaValidator.d.ts +72 -69
- package/serializer/mysqlImports.d.ts +3 -7
- package/serializer/mysqlSchema.d.ts +1404 -587
- package/serializer/mysqlSerializer.d.ts +6 -6
- package/serializer/pgImports.d.ts +2 -2
- package/serializer/pgSchema.d.ts +1260 -801
- package/serializer/pgSerializer.d.ts +2 -2
- package/serializer/sqliteImports.d.ts +2 -4
- package/serializer/sqliteSchema.d.ts +144 -570
- package/serializer/sqliteSerializer.d.ts +4 -4
- package/serializer/studio.d.ts +51 -0
- package/snapshotsDiffer.d.ts +2334 -1057
- package/utils/words.d.ts +1 -1
- package/utils-studio.d.mts +0 -1
- package/utils-studio.d.ts +0 -1
- package/utils-studio.js +3817 -169
- package/utils-studio.mjs +3817 -172
- package/utils.d.ts +20 -141
- package/utils.js +3899 -7070
- package/utils.mjs +3972 -7143
- package/cli/commands/mysqlUp.d.ts +0 -4
- package/cli/commands/pgConnect.d.ts +0 -5
- package/cli/commands/pgUp.d.ts +0 -4
- package/cli/commands/sqliteUtils.d.ts +0 -162
- package/cli/commands/upFolders.d.ts +0 -27
- package/drivers/index.d.ts +0 -39
- package/introspect-mysql.d.ts +0 -9
- package/introspect-pg.d.ts +0 -12
@@ -1,13 +1,214 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
message?: string;
|
4
|
-
action: "config" | "cli" | "error";
|
5
|
-
};
|
6
|
-
export type Commands = "push:sqlite" | "introspect:sqlite" | "introspect:pg" | "generate:pg" | "generate:sqlite" | "generate:mysql" | "check:pg" | "check:mysql" | "check:sqlite" | "up:pg" | "up:mysql" | "up:sqlite" | "drop" | "introspect:mysql" | "push:mysql" | "push:pg";
|
1
|
+
import { TypeOf } from "zod";
|
2
|
+
export type Commands = "introspect" | "generate" | "check" | "up" | "drop" | "push";
|
7
3
|
/**
|
8
4
|
* This function checks an input from a user and if there are any params together with config path - return true
|
9
5
|
* @param options - user input
|
10
6
|
* @param inputWhitelist - whitelist some cli options that can be used together with config option
|
11
7
|
* @returns true if there was a collision, false if everything is valid
|
12
8
|
*/
|
13
|
-
export declare const
|
9
|
+
export declare const assertCollisions: (options: Record<string, unknown>, command: Commands, inputWhitelist?: string[]) => "config" | "cli";
|
10
|
+
export declare const sqliteDriver: import("zod").ZodUnion<[import("zod").ZodLiteral<"better-sqlite">, import("zod").ZodLiteral<"turso">, import("zod").ZodLiteral<"libsql">, import("zod").ZodLiteral<"d1">, import("zod").ZodLiteral<"expo">]>;
|
11
|
+
export declare const postgresDriver: import("zod").ZodLiteral<"pg">;
|
12
|
+
export declare const mysqlDriver: import("zod").ZodLiteral<"mysql2">;
|
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
|
+
export declare const configCommonSchema: import("zod").ZodObject<{
|
15
|
+
dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
|
16
|
+
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
17
|
+
out: import("zod").ZodOptional<import("zod").ZodString>;
|
18
|
+
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
19
|
+
driver: import("zod").ZodOptional<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">]>>;
|
20
|
+
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
21
|
+
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
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
|
+
schema: string | string[];
|
27
|
+
dialect: "mysql" | "pg" | "sqlite";
|
28
|
+
breakpoints: boolean;
|
29
|
+
schemaFilter: string | string[];
|
30
|
+
}, {
|
31
|
+
driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
|
32
|
+
out?: string | undefined;
|
33
|
+
breakpoints?: boolean | undefined;
|
34
|
+
tablesFilter?: string | string[] | undefined;
|
35
|
+
schemaFilter?: string | string[] | undefined;
|
36
|
+
schema: string | string[];
|
37
|
+
dialect: "mysql" | "pg" | "sqlite";
|
38
|
+
}>;
|
39
|
+
export declare const casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
40
|
+
export declare const introspectParams: import("zod").ZodObject<{
|
41
|
+
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
42
|
+
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
43
|
+
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
44
|
+
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
45
|
+
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
46
|
+
introspect: import("zod").ZodDefault<import("zod").ZodObject<{
|
47
|
+
casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
48
|
+
}, "strip", import("zod").ZodTypeAny, {
|
49
|
+
casing: "camel" | "preserve";
|
50
|
+
}, {
|
51
|
+
casing?: "camel" | "preserve" | undefined;
|
52
|
+
}>>;
|
53
|
+
}, "strip", import("zod").ZodTypeAny, {
|
54
|
+
schema?: string | string[] | undefined;
|
55
|
+
tablesFilter?: string | string[] | undefined;
|
56
|
+
introspect: {
|
57
|
+
casing: "camel" | "preserve";
|
58
|
+
};
|
59
|
+
out: string;
|
60
|
+
breakpoints: boolean;
|
61
|
+
schemaFilter: string | string[];
|
62
|
+
}, {
|
63
|
+
schema?: string | string[] | undefined;
|
64
|
+
introspect?: {
|
65
|
+
casing?: "camel" | "preserve" | undefined;
|
66
|
+
} | undefined;
|
67
|
+
out?: string | undefined;
|
68
|
+
breakpoints?: boolean | undefined;
|
69
|
+
tablesFilter?: string | string[] | undefined;
|
70
|
+
schemaFilter?: string | string[] | undefined;
|
71
|
+
}>;
|
72
|
+
export type IntrospectParams = TypeOf<typeof introspectParams>;
|
73
|
+
export type Casing = TypeOf<typeof casing>;
|
74
|
+
export declare const configIntrospectCliSchema: import("zod").ZodObject<{
|
75
|
+
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
76
|
+
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
77
|
+
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
78
|
+
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
79
|
+
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
80
|
+
introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
81
|
+
}, "strip", import("zod").ZodTypeAny, {
|
82
|
+
schema?: string | string[] | undefined;
|
83
|
+
tablesFilter?: string | string[] | undefined;
|
84
|
+
out: string;
|
85
|
+
breakpoints: boolean;
|
86
|
+
schemaFilter: string | string[];
|
87
|
+
introspectCasing: "camel" | "preserve";
|
88
|
+
}, {
|
89
|
+
schema?: string | string[] | undefined;
|
90
|
+
out?: string | undefined;
|
91
|
+
breakpoints?: boolean | undefined;
|
92
|
+
tablesFilter?: string | string[] | undefined;
|
93
|
+
schemaFilter?: string | string[] | undefined;
|
94
|
+
introspectCasing?: "camel" | "preserve" | undefined;
|
95
|
+
}>;
|
96
|
+
export declare const configGenerateSchema: import("zod").ZodObject<{
|
97
|
+
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
98
|
+
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
99
|
+
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
100
|
+
}, "strip", import("zod").ZodTypeAny, {
|
101
|
+
schema: string | string[];
|
102
|
+
out: string;
|
103
|
+
breakpoints: boolean;
|
104
|
+
}, {
|
105
|
+
out?: string | undefined;
|
106
|
+
breakpoints?: boolean | undefined;
|
107
|
+
schema: string | string[];
|
108
|
+
}>;
|
109
|
+
export type GenerateSchema = TypeOf<typeof configGenerateSchema>;
|
110
|
+
export declare const configPushSchema: import("zod").ZodObject<{
|
111
|
+
dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
|
112
|
+
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
113
|
+
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
114
|
+
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
115
|
+
verbose: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
116
|
+
strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
117
|
+
out: import("zod").ZodOptional<import("zod").ZodString>;
|
118
|
+
}, "strip", import("zod").ZodTypeAny, {
|
119
|
+
out?: string | undefined;
|
120
|
+
tablesFilter?: string | string[] | undefined;
|
121
|
+
strict: boolean;
|
122
|
+
schema: string | string[];
|
123
|
+
dialect: "mysql" | "pg" | "sqlite";
|
124
|
+
schemaFilter: string | string[];
|
125
|
+
verbose: boolean;
|
126
|
+
}, {
|
127
|
+
strict?: boolean | undefined;
|
128
|
+
out?: string | undefined;
|
129
|
+
tablesFilter?: string | string[] | undefined;
|
130
|
+
schemaFilter?: string | string[] | undefined;
|
131
|
+
verbose?: boolean | undefined;
|
132
|
+
schema: string | string[];
|
133
|
+
dialect: "mysql" | "pg" | "sqlite";
|
134
|
+
}>;
|
135
|
+
export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
|
136
|
+
host: import("zod").ZodString;
|
137
|
+
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
138
|
+
user: import("zod").ZodDefault<import("zod").ZodString>;
|
139
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
140
|
+
database: import("zod").ZodString;
|
141
|
+
}, "strip", import("zod").ZodTypeAny, {
|
142
|
+
port?: number | undefined;
|
143
|
+
password?: string | undefined;
|
144
|
+
host: string;
|
145
|
+
user: string;
|
146
|
+
database: string;
|
147
|
+
}, {
|
148
|
+
port?: number | undefined;
|
149
|
+
user?: string | undefined;
|
150
|
+
password?: string | undefined;
|
151
|
+
host: string;
|
152
|
+
database: string;
|
153
|
+
}>, import("zod").ZodObject<{
|
154
|
+
connectionString: import("zod").ZodString;
|
155
|
+
}, "strip", import("zod").ZodTypeAny, {
|
156
|
+
connectionString: string;
|
157
|
+
}, {
|
158
|
+
connectionString: string;
|
159
|
+
}>, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>;
|
160
|
+
export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
|
161
|
+
dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
|
162
|
+
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
163
|
+
out: import("zod").ZodOptional<import("zod").ZodString>;
|
164
|
+
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
165
|
+
driver: import("zod").ZodOptional<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">]>>;
|
166
|
+
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
167
|
+
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
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
|
+
schema: string | string[];
|
173
|
+
dialect: "mysql" | "pg" | "sqlite";
|
174
|
+
breakpoints: boolean;
|
175
|
+
schemaFilter: string | string[];
|
176
|
+
}, {
|
177
|
+
driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
|
178
|
+
out?: string | undefined;
|
179
|
+
breakpoints?: boolean | undefined;
|
180
|
+
tablesFilter?: string | string[] | undefined;
|
181
|
+
schemaFilter?: string | string[] | undefined;
|
182
|
+
schema: string | string[];
|
183
|
+
dialect: "mysql" | "pg" | "sqlite";
|
184
|
+
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
185
|
+
host: import("zod").ZodString;
|
186
|
+
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
187
|
+
user: import("zod").ZodDefault<import("zod").ZodString>;
|
188
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
189
|
+
database: import("zod").ZodString;
|
190
|
+
}, "strip", import("zod").ZodTypeAny, {
|
191
|
+
port?: number | undefined;
|
192
|
+
password?: string | undefined;
|
193
|
+
host: string;
|
194
|
+
user: string;
|
195
|
+
database: string;
|
196
|
+
}, {
|
197
|
+
port?: number | undefined;
|
198
|
+
user?: string | undefined;
|
199
|
+
password?: string | undefined;
|
200
|
+
host: string;
|
201
|
+
database: string;
|
202
|
+
}>, import("zod").ZodObject<{
|
203
|
+
connectionString: import("zod").ZodString;
|
204
|
+
}, "strip", import("zod").ZodTypeAny, {
|
205
|
+
connectionString: string;
|
206
|
+
}, {
|
207
|
+
connectionString: string;
|
208
|
+
}>, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>>;
|
209
|
+
export type MySqlCliConfig = TypeOf<typeof mySqlCliConfigSchema>;
|
210
|
+
export type CliConfig = MySqlCliConfig;
|
211
|
+
export type SqliteDriver = TypeOf<typeof sqliteDriver>;
|
212
|
+
export type MysqlDriver = TypeOf<typeof mysqlDriver>;
|
213
|
+
export type PostgresDriver = TypeOf<typeof postgresDriver>;
|
214
|
+
export type Driver = TypeOf<typeof driver>;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { TypeOf } from "zod";
|
2
|
-
export declare const
|
3
|
-
driver: import("zod").ZodLiteral<"mysql2">;
|
2
|
+
export declare const mysqlCredentials: import("zod").ZodUnion<[import("zod").ZodObject<{
|
4
3
|
host: import("zod").ZodString;
|
5
4
|
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
6
5
|
user: import("zod").ZodDefault<import("zod").ZodString>;
|
@@ -9,7 +8,6 @@ export declare const mysqlConnectionCli: import("zod").ZodUnion<[import("zod").Z
|
|
9
8
|
}, "strip", import("zod").ZodTypeAny, {
|
10
9
|
port?: number | undefined;
|
11
10
|
password?: string | undefined;
|
12
|
-
driver: "mysql2";
|
13
11
|
host: string;
|
14
12
|
user: string;
|
15
13
|
database: string;
|
@@ -17,349 +15,15 @@ export declare const mysqlConnectionCli: import("zod").ZodUnion<[import("zod").Z
|
|
17
15
|
port?: number | undefined;
|
18
16
|
user?: string | undefined;
|
19
17
|
password?: string | undefined;
|
20
|
-
driver: "mysql2";
|
21
18
|
host: string;
|
22
19
|
database: string;
|
23
20
|
}>, import("zod").ZodObject<{
|
24
|
-
|
25
|
-
uri: import("zod").ZodString;
|
21
|
+
url: import("zod").ZodString;
|
26
22
|
}, "strip", import("zod").ZodTypeAny, {
|
27
|
-
|
28
|
-
uri: string;
|
23
|
+
url: string;
|
29
24
|
}, {
|
30
|
-
|
31
|
-
uri: string;
|
25
|
+
url: string;
|
32
26
|
}>]>;
|
33
|
-
export
|
34
|
-
host: import("zod").ZodString;
|
35
|
-
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
36
|
-
user: import("zod").ZodDefault<import("zod").ZodString>;
|
37
|
-
password: import("zod").ZodOptional<import("zod").ZodString>;
|
38
|
-
database: import("zod").ZodString;
|
39
|
-
}, "strip", import("zod").ZodTypeAny, {
|
40
|
-
port?: number | undefined;
|
41
|
-
password?: string | undefined;
|
42
|
-
host: string;
|
43
|
-
user: string;
|
44
|
-
database: string;
|
45
|
-
}, {
|
46
|
-
port?: number | undefined;
|
47
|
-
user?: string | undefined;
|
48
|
-
password?: string | undefined;
|
49
|
-
host: string;
|
50
|
-
database: string;
|
51
|
-
}>, import("zod").ZodObject<{
|
52
|
-
uri: import("zod").ZodString;
|
53
|
-
}, "strip", import("zod").ZodTypeAny, {
|
54
|
-
uri: string;
|
55
|
-
}, {
|
56
|
-
uri: string;
|
57
|
-
}>]>;
|
58
|
-
export declare const mysqlConnectionConfig: import("zod").ZodObject<{
|
59
|
-
driver: import("zod").ZodLiteral<"mysql2">;
|
60
|
-
dbCredentials: import("zod").ZodUnion<[import("zod").ZodObject<{
|
61
|
-
host: import("zod").ZodString;
|
62
|
-
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
63
|
-
user: import("zod").ZodDefault<import("zod").ZodString>;
|
64
|
-
password: import("zod").ZodOptional<import("zod").ZodString>;
|
65
|
-
database: import("zod").ZodString;
|
66
|
-
}, "strip", import("zod").ZodTypeAny, {
|
67
|
-
port?: number | undefined;
|
68
|
-
password?: string | undefined;
|
69
|
-
host: string;
|
70
|
-
user: string;
|
71
|
-
database: string;
|
72
|
-
}, {
|
73
|
-
port?: number | undefined;
|
74
|
-
user?: string | undefined;
|
75
|
-
password?: string | undefined;
|
76
|
-
host: string;
|
77
|
-
database: string;
|
78
|
-
}>, import("zod").ZodObject<{
|
79
|
-
uri: import("zod").ZodString;
|
80
|
-
}, "strip", import("zod").ZodTypeAny, {
|
81
|
-
uri: string;
|
82
|
-
}, {
|
83
|
-
uri: string;
|
84
|
-
}>]>;
|
85
|
-
}, "strip", import("zod").ZodTypeAny, {
|
86
|
-
driver: "mysql2";
|
87
|
-
dbCredentials: {
|
88
|
-
port?: number | undefined;
|
89
|
-
password?: string | undefined;
|
90
|
-
host: string;
|
91
|
-
user: string;
|
92
|
-
database: string;
|
93
|
-
} | {
|
94
|
-
uri: string;
|
95
|
-
};
|
96
|
-
}, {
|
97
|
-
driver: "mysql2";
|
98
|
-
dbCredentials: {
|
99
|
-
port?: number | undefined;
|
100
|
-
user?: string | undefined;
|
101
|
-
password?: string | undefined;
|
102
|
-
host: string;
|
103
|
-
database: string;
|
104
|
-
} | {
|
105
|
-
uri: string;
|
106
|
-
};
|
107
|
-
}>;
|
108
|
-
export declare const mysqlConfigIntrospectSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
|
109
|
-
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
110
|
-
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
111
|
-
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
112
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
113
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
114
|
-
introspect: import("zod").ZodDefault<import("zod").ZodObject<{
|
115
|
-
casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
116
|
-
}, "strip", import("zod").ZodTypeAny, {
|
117
|
-
casing: "camel" | "preserve";
|
118
|
-
}, {
|
119
|
-
casing?: "camel" | "preserve" | undefined;
|
120
|
-
}>>;
|
121
|
-
}, "strip", import("zod").ZodTypeAny, {
|
122
|
-
schema?: string | string[] | undefined;
|
123
|
-
tablesFilter?: string | string[] | undefined;
|
124
|
-
out: string;
|
125
|
-
breakpoints: boolean;
|
126
|
-
schemaFilter: string | string[];
|
127
|
-
introspect: {
|
128
|
-
casing: "camel" | "preserve";
|
129
|
-
};
|
130
|
-
}, {
|
131
|
-
schema?: string | string[] | undefined;
|
132
|
-
out?: string | undefined;
|
133
|
-
breakpoints?: boolean | undefined;
|
134
|
-
tablesFilter?: string | string[] | undefined;
|
135
|
-
schemaFilter?: string | string[] | undefined;
|
136
|
-
introspect?: {
|
137
|
-
casing?: "camel" | "preserve" | undefined;
|
138
|
-
} | undefined;
|
139
|
-
}>, import("zod").ZodObject<{
|
140
|
-
driver: import("zod").ZodLiteral<"mysql2">;
|
141
|
-
dbCredentials: import("zod").ZodUnion<[import("zod").ZodObject<{
|
142
|
-
host: import("zod").ZodString;
|
143
|
-
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
144
|
-
user: import("zod").ZodDefault<import("zod").ZodString>;
|
145
|
-
password: import("zod").ZodOptional<import("zod").ZodString>;
|
146
|
-
database: import("zod").ZodString;
|
147
|
-
}, "strip", import("zod").ZodTypeAny, {
|
148
|
-
port?: number | undefined;
|
149
|
-
password?: string | undefined;
|
150
|
-
host: string;
|
151
|
-
user: string;
|
152
|
-
database: string;
|
153
|
-
}, {
|
154
|
-
port?: number | undefined;
|
155
|
-
user?: string | undefined;
|
156
|
-
password?: string | undefined;
|
157
|
-
host: string;
|
158
|
-
database: string;
|
159
|
-
}>, import("zod").ZodObject<{
|
160
|
-
uri: import("zod").ZodString;
|
161
|
-
}, "strip", import("zod").ZodTypeAny, {
|
162
|
-
uri: string;
|
163
|
-
}, {
|
164
|
-
uri: string;
|
165
|
-
}>]>;
|
166
|
-
}, "strip", import("zod").ZodTypeAny, {
|
167
|
-
driver: "mysql2";
|
168
|
-
dbCredentials: {
|
169
|
-
port?: number | undefined;
|
170
|
-
password?: string | undefined;
|
171
|
-
host: string;
|
172
|
-
user: string;
|
173
|
-
database: string;
|
174
|
-
} | {
|
175
|
-
uri: string;
|
176
|
-
};
|
177
|
-
}, {
|
178
|
-
driver: "mysql2";
|
179
|
-
dbCredentials: {
|
180
|
-
port?: number | undefined;
|
181
|
-
user?: string | undefined;
|
182
|
-
password?: string | undefined;
|
183
|
-
host: string;
|
184
|
-
database: string;
|
185
|
-
} | {
|
186
|
-
uri: string;
|
187
|
-
};
|
188
|
-
}>>;
|
189
|
-
export declare const mysqlCliIntrospectParams: import("zod").ZodIntersection<import("zod").ZodObject<{
|
190
|
-
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
191
|
-
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
192
|
-
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
193
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
194
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
195
|
-
introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
196
|
-
}, "strip", import("zod").ZodTypeAny, {
|
197
|
-
schema?: string | string[] | undefined;
|
198
|
-
tablesFilter?: string | string[] | undefined;
|
199
|
-
out: string;
|
200
|
-
breakpoints: boolean;
|
201
|
-
schemaFilter: string | string[];
|
202
|
-
introspectCasing: "camel" | "preserve";
|
203
|
-
}, {
|
204
|
-
schema?: string | string[] | undefined;
|
205
|
-
out?: string | undefined;
|
206
|
-
breakpoints?: boolean | undefined;
|
207
|
-
tablesFilter?: string | string[] | undefined;
|
208
|
-
schemaFilter?: string | string[] | undefined;
|
209
|
-
introspectCasing?: "camel" | "preserve" | undefined;
|
210
|
-
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
211
|
-
driver: import("zod").ZodLiteral<"mysql2">;
|
212
|
-
host: import("zod").ZodString;
|
213
|
-
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
214
|
-
user: import("zod").ZodDefault<import("zod").ZodString>;
|
215
|
-
password: import("zod").ZodOptional<import("zod").ZodString>;
|
216
|
-
database: import("zod").ZodString;
|
217
|
-
}, "strip", import("zod").ZodTypeAny, {
|
218
|
-
port?: number | undefined;
|
219
|
-
password?: string | undefined;
|
220
|
-
driver: "mysql2";
|
221
|
-
host: string;
|
222
|
-
user: string;
|
223
|
-
database: string;
|
224
|
-
}, {
|
225
|
-
port?: number | undefined;
|
226
|
-
user?: string | undefined;
|
227
|
-
password?: string | undefined;
|
228
|
-
driver: "mysql2";
|
229
|
-
host: string;
|
230
|
-
database: string;
|
231
|
-
}>, import("zod").ZodObject<{
|
232
|
-
driver: import("zod").ZodLiteral<"mysql2">;
|
233
|
-
uri: import("zod").ZodString;
|
234
|
-
}, "strip", import("zod").ZodTypeAny, {
|
235
|
-
driver: "mysql2";
|
236
|
-
uri: string;
|
237
|
-
}, {
|
238
|
-
driver: "mysql2";
|
239
|
-
uri: string;
|
240
|
-
}>]>>;
|
241
|
-
export declare const mysqlCliPushParams: import("zod").ZodIntersection<import("zod").ZodObject<{
|
242
|
-
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
243
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
244
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
245
|
-
verbose: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
246
|
-
strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
247
|
-
}, "strip", import("zod").ZodTypeAny, {
|
248
|
-
tablesFilter?: string | string[] | undefined;
|
249
|
-
strict: boolean;
|
250
|
-
schema: string | string[];
|
251
|
-
schemaFilter: string | string[];
|
252
|
-
verbose: boolean;
|
253
|
-
}, {
|
254
|
-
strict?: boolean | undefined;
|
255
|
-
tablesFilter?: string | string[] | undefined;
|
256
|
-
schemaFilter?: string | string[] | undefined;
|
257
|
-
verbose?: boolean | undefined;
|
258
|
-
schema: string | string[];
|
259
|
-
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
260
|
-
driver: import("zod").ZodLiteral<"mysql2">;
|
261
|
-
host: import("zod").ZodString;
|
262
|
-
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
263
|
-
user: import("zod").ZodDefault<import("zod").ZodString>;
|
264
|
-
password: import("zod").ZodOptional<import("zod").ZodString>;
|
265
|
-
database: import("zod").ZodString;
|
266
|
-
}, "strip", import("zod").ZodTypeAny, {
|
267
|
-
port?: number | undefined;
|
268
|
-
password?: string | undefined;
|
269
|
-
driver: "mysql2";
|
270
|
-
host: string;
|
271
|
-
user: string;
|
272
|
-
database: string;
|
273
|
-
}, {
|
274
|
-
port?: number | undefined;
|
275
|
-
user?: string | undefined;
|
276
|
-
password?: string | undefined;
|
277
|
-
driver: "mysql2";
|
278
|
-
host: string;
|
279
|
-
database: string;
|
280
|
-
}>, import("zod").ZodObject<{
|
281
|
-
driver: import("zod").ZodLiteral<"mysql2">;
|
282
|
-
uri: import("zod").ZodString;
|
283
|
-
}, "strip", import("zod").ZodTypeAny, {
|
284
|
-
driver: "mysql2";
|
285
|
-
uri: string;
|
286
|
-
}, {
|
287
|
-
driver: "mysql2";
|
288
|
-
uri: string;
|
289
|
-
}>]>>;
|
290
|
-
export declare const mysqlConfigPushParams: import("zod").ZodIntersection<import("zod").ZodObject<{
|
291
|
-
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
292
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
293
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
294
|
-
verbose: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
295
|
-
strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
296
|
-
}, "strip", import("zod").ZodTypeAny, {
|
297
|
-
tablesFilter?: string | string[] | undefined;
|
298
|
-
strict: boolean;
|
299
|
-
schema: string | string[];
|
300
|
-
schemaFilter: string | string[];
|
301
|
-
verbose: boolean;
|
302
|
-
}, {
|
303
|
-
strict?: boolean | undefined;
|
304
|
-
tablesFilter?: string | string[] | undefined;
|
305
|
-
schemaFilter?: string | string[] | undefined;
|
306
|
-
verbose?: boolean | undefined;
|
307
|
-
schema: string | string[];
|
308
|
-
}>, import("zod").ZodObject<{
|
309
|
-
driver: import("zod").ZodLiteral<"mysql2">;
|
310
|
-
dbCredentials: import("zod").ZodUnion<[import("zod").ZodObject<{
|
311
|
-
host: import("zod").ZodString;
|
312
|
-
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
313
|
-
user: import("zod").ZodDefault<import("zod").ZodString>;
|
314
|
-
password: import("zod").ZodOptional<import("zod").ZodString>;
|
315
|
-
database: import("zod").ZodString;
|
316
|
-
}, "strip", import("zod").ZodTypeAny, {
|
317
|
-
port?: number | undefined;
|
318
|
-
password?: string | undefined;
|
319
|
-
host: string;
|
320
|
-
user: string;
|
321
|
-
database: string;
|
322
|
-
}, {
|
323
|
-
port?: number | undefined;
|
324
|
-
user?: string | undefined;
|
325
|
-
password?: string | undefined;
|
326
|
-
host: string;
|
327
|
-
database: string;
|
328
|
-
}>, import("zod").ZodObject<{
|
329
|
-
uri: import("zod").ZodString;
|
330
|
-
}, "strip", import("zod").ZodTypeAny, {
|
331
|
-
uri: string;
|
332
|
-
}, {
|
333
|
-
uri: string;
|
334
|
-
}>]>;
|
335
|
-
}, "strip", import("zod").ZodTypeAny, {
|
336
|
-
driver: "mysql2";
|
337
|
-
dbCredentials: {
|
338
|
-
port?: number | undefined;
|
339
|
-
password?: string | undefined;
|
340
|
-
host: string;
|
341
|
-
user: string;
|
342
|
-
database: string;
|
343
|
-
} | {
|
344
|
-
uri: string;
|
345
|
-
};
|
346
|
-
}, {
|
347
|
-
driver: "mysql2";
|
348
|
-
dbCredentials: {
|
349
|
-
port?: number | undefined;
|
350
|
-
user?: string | undefined;
|
351
|
-
password?: string | undefined;
|
352
|
-
host: string;
|
353
|
-
database: string;
|
354
|
-
} | {
|
355
|
-
uri: string;
|
356
|
-
};
|
357
|
-
}>>;
|
358
|
-
export type MySQLPushConfig = TypeOf<typeof mysqlConfigPushParams>;
|
359
|
-
export type MySQLConfigIntrospect = TypeOf<typeof mysqlConfigIntrospectSchema>;
|
360
|
-
export type MySQLCliIntrospect = TypeOf<typeof mysqlCliIntrospectParams>;
|
361
|
-
export type MySQLConnectionConfig = TypeOf<typeof mysqlConnectionConfig>;
|
27
|
+
export type MysqlCredentials = TypeOf<typeof mysqlCredentials>;
|
362
28
|
export declare const printCliConnectionIssues: (options: any) => void;
|
363
|
-
export declare const printConfigConnectionIssues: (options:
|
364
|
-
export declare const validateMySqlIntrospect: (options: Record<string, any>) => Promise<MySQLConfigIntrospect>;
|
365
|
-
export declare const validateMySqlPush: (options: Record<string, unknown>) => Promise<MySQLPushConfig>;
|
29
|
+
export declare const printConfigConnectionIssues: (options: Record<string, unknown>) => void;
|
@@ -10,6 +10,7 @@ export declare const outputs: {
|
|
10
10
|
drivers: (param: string) => string;
|
11
11
|
noCredentials: () => string;
|
12
12
|
noDriver: () => string;
|
13
|
+
noDialect: () => string;
|
13
14
|
};
|
14
15
|
common: {
|
15
16
|
ambiguousParams: (command: string) => string;
|
@@ -20,6 +21,7 @@ export declare const outputs: {
|
|
20
21
|
connection: {
|
21
22
|
driver: () => string;
|
22
23
|
required: () => string;
|
24
|
+
awsDataApi: () => void;
|
23
25
|
};
|
24
26
|
};
|
25
27
|
mysql: {
|