drizzle-kit 0.20.14-95be75d → 0.20.14-a183d8b

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
- import { Connection } from "mysql2/promise";
2
1
  import { MySQLConfigIntrospect, MySQLConnectionConfig } from "../validations/mysql";
2
+ import { DrizzleDbClient, MySQL2Client } from "src/drivers";
3
3
  export declare const connectToMySQL: (config: MySQLConnectionConfig) => Promise<{
4
- client: Connection;
4
+ client: MySQL2Client;
5
5
  databaseName: string;
6
6
  }>;
7
7
  export declare const mysqlIntrospect: (config: MySQLConfigIntrospect, filters: string[]) => Promise<{
@@ -63,7 +63,7 @@ export declare const mysqlIntrospect: (config: MySQLConfigIntrospect, filters: s
63
63
  };
64
64
  }>;
65
65
  export declare const mysqlPushIntrospect: (connection: {
66
- client: Connection;
66
+ client: DrizzleDbClient;
67
67
  databaseName: string;
68
68
  }, filters: string[]) => Promise<{
69
69
  schema: {
@@ -1,11 +1,11 @@
1
- import { Connection } from "mysql2/promise";
1
+ import { DrizzleDbClient } from "src/drivers";
2
2
  import { JsonStatement } from "../../jsonStatements";
3
3
  import { mysqlSchema } from "../../serializer/mysqlSchema";
4
4
  import { TypeOf } from "zod";
5
5
  export declare const filterStatements: (statements: JsonStatement[], currentSchema: TypeOf<typeof mysqlSchema>, prevSchema: TypeOf<typeof mysqlSchema>) => JsonStatement[];
6
6
  export declare const logSuggestionsAndReturn: ({ connection, statements, json2, }: {
7
7
  statements: JsonStatement[];
8
- connection: Connection;
8
+ connection: DrizzleDbClient;
9
9
  json2: TypeOf<typeof mysqlSchema>;
10
10
  }) => Promise<{
11
11
  statementsToExecute: string[];
@@ -1,4 +1,4 @@
1
- import type { SQLiteCliConfig, SQLiteConnectionConfig } from "./sqliteUtils";
1
+ import type { SQLiteCliConfig, SQLiteConnectionConfig } from "../validations/sqlite";
2
2
  import type { DrizzleDbClient } from "../../drivers";
3
3
  export declare const connectToSQLite: (config: SQLiteConnectionConfig) => Promise<{
4
4
  client: import("../../drivers").BetterSqlite;
@@ -1,25 +1,21 @@
1
- import { TypeOf } from "zod";
2
- import { CliParamsPush } from "..";
1
+ import { CliConfigGenerate, CliParamsPush } from "..";
3
2
  import { MySQLPushConfig } from "../validations/mysql";
4
3
  import { PgPushConfig } from "../validations/pg";
5
4
  import { SQLitePushConfig } from "../validations/sqlite";
5
+ import { CliConfig } from "../validations/common";
6
+ import { Dialect } from "src/schemaValidator";
6
7
  export declare const safeRegister: () => Promise<{
7
8
  unregister: () => void;
8
9
  }>;
9
10
  export type GenerateConfig = {
11
+ dialect: Dialect;
10
12
  schema: string | string[];
11
13
  out: string;
12
14
  breakpoints: boolean;
13
15
  custom: boolean;
14
16
  bundle: boolean;
15
17
  };
16
- export declare const prepareGenerateConfig: (options: {
17
- schema?: string | string[];
18
- out?: string;
19
- config?: string;
20
- breakpoints: boolean;
21
- custom: boolean;
22
- }) => Promise<GenerateConfig>;
18
+ export declare const prepareGenerateConfig: (options: CliConfigGenerate) => Promise<GenerateConfig>;
23
19
  export declare const preparePushConfig: (options: CliParamsPush) => Promise<{
24
20
  config: MySQLPushConfig | PgPushConfig | SQLitePushConfig;
25
21
  schemaFiles: string[];
@@ -30,254 +26,5 @@ export declare const assertOutFolder: (it: {
30
26
  } | {
31
27
  out: string;
32
28
  }) => Promise<string>;
33
- export declare const driver: 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">]>;
34
- export declare const configCommonSchema: import("zod").ZodObject<{
35
- schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
36
- out: import("zod").ZodOptional<import("zod").ZodString>;
37
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
38
- driver: import("zod").ZodOptional<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">]>>;
39
- tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
40
- schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
41
- }, "strip", import("zod").ZodTypeAny, {
42
- out?: string | undefined;
43
- driver?: "turso" | "better-sqlite" | "libsql" | "d1" | "pg" | "mysql2" | "expo" | undefined;
44
- tablesFilter?: string | string[] | undefined;
45
- schema: string | string[];
46
- breakpoints: boolean;
47
- schemaFilter: string | string[];
48
- }, {
49
- out?: string | undefined;
50
- driver?: "turso" | "better-sqlite" | "libsql" | "d1" | "pg" | "mysql2" | "expo" | undefined;
51
- breakpoints?: boolean | undefined;
52
- tablesFilter?: string | string[] | undefined;
53
- schemaFilter?: string | string[] | undefined;
54
- schema: string | string[];
55
- }>;
56
- export declare const introspectCasing: import("zod").ZodDefault<import("zod").ZodObject<{
57
- casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
58
- }, "strip", import("zod").ZodTypeAny, {
59
- casing: "camel" | "preserve";
60
- }, {
61
- casing?: "camel" | "preserve" | undefined;
62
- }>>;
63
- export declare const configIntrospectSchema: import("zod").ZodObject<{
64
- schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
65
- out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
66
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
67
- tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
68
- schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
69
- introspect: import("zod").ZodDefault<import("zod").ZodObject<{
70
- casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
71
- }, "strip", import("zod").ZodTypeAny, {
72
- casing: "camel" | "preserve";
73
- }, {
74
- casing?: "camel" | "preserve" | undefined;
75
- }>>;
76
- }, "strip", import("zod").ZodTypeAny, {
77
- schema?: string | string[] | undefined;
78
- tablesFilter?: string | string[] | undefined;
79
- out: string;
80
- breakpoints: boolean;
81
- schemaFilter: string | string[];
82
- introspect: {
83
- casing: "camel" | "preserve";
84
- };
85
- }, {
86
- schema?: string | string[] | undefined;
87
- out?: string | undefined;
88
- breakpoints?: boolean | undefined;
89
- tablesFilter?: string | string[] | undefined;
90
- schemaFilter?: string | string[] | undefined;
91
- introspect?: {
92
- casing?: "camel" | "preserve" | undefined;
93
- } | undefined;
94
- }>;
95
- export type ConfigIntrospectSchema = TypeOf<typeof configIntrospectSchema>;
96
- export type ConfigIntrospectCasing = TypeOf<typeof introspectCasing>;
97
- export declare const configIntrospectCliSchema: import("zod").ZodObject<{
98
- schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
99
- out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
100
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
101
- tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
102
- schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
103
- introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
104
- }, "strip", import("zod").ZodTypeAny, {
105
- schema?: string | string[] | undefined;
106
- tablesFilter?: string | string[] | undefined;
107
- out: string;
108
- breakpoints: boolean;
109
- schemaFilter: string | string[];
110
- introspectCasing: "camel" | "preserve";
111
- }, {
112
- schema?: string | string[] | undefined;
113
- out?: string | undefined;
114
- breakpoints?: boolean | undefined;
115
- tablesFilter?: string | string[] | undefined;
116
- schemaFilter?: string | string[] | undefined;
117
- introspectCasing?: "camel" | "preserve" | undefined;
118
- }>;
119
- export declare const configGenerateSchema: import("zod").ZodObject<{
120
- schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
121
- out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
122
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
123
- }, "strip", import("zod").ZodTypeAny, {
124
- schema: string | string[];
125
- out: string;
126
- breakpoints: boolean;
127
- }, {
128
- out?: string | undefined;
129
- breakpoints?: boolean | undefined;
130
- schema: string | string[];
131
- }>;
132
- export type GenerateSchema = TypeOf<typeof configGenerateSchema>;
133
- export declare const configPushSchema: import("zod").ZodObject<{
134
- schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
135
- tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
136
- schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
137
- verbose: import("zod").ZodDefault<import("zod").ZodBoolean>;
138
- strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
139
- }, "strip", import("zod").ZodTypeAny, {
140
- tablesFilter?: string | string[] | undefined;
141
- strict: boolean;
142
- schema: string | string[];
143
- schemaFilter: string | string[];
144
- verbose: boolean;
145
- }, {
146
- strict?: boolean | undefined;
147
- tablesFilter?: string | string[] | undefined;
148
- schemaFilter?: string | string[] | undefined;
149
- verbose?: boolean | undefined;
150
- schema: string | string[];
151
- }>;
152
- export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
153
- host: import("zod").ZodString;
154
- port: import("zod").ZodOptional<import("zod").ZodNumber>;
155
- user: import("zod").ZodDefault<import("zod").ZodString>;
156
- password: import("zod").ZodOptional<import("zod").ZodString>;
157
- database: import("zod").ZodString;
158
- }, "strip", import("zod").ZodTypeAny, {
159
- port?: number | undefined;
160
- password?: string | undefined;
161
- host: string;
162
- user: string;
163
- database: string;
164
- }, {
165
- port?: number | undefined;
166
- user?: string | undefined;
167
- password?: string | undefined;
168
- host: string;
169
- database: string;
170
- }>, import("zod").ZodObject<{
171
- connectionString: import("zod").ZodString;
172
- }, "strip", import("zod").ZodTypeAny, {
173
- connectionString: string;
174
- }, {
175
- connectionString: string;
176
- }>, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>;
177
- export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
178
- schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
179
- out: import("zod").ZodOptional<import("zod").ZodString>;
180
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
181
- driver: import("zod").ZodOptional<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">]>>;
182
- tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
183
- schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
184
- }, "strip", import("zod").ZodTypeAny, {
185
- out?: string | undefined;
186
- driver?: "turso" | "better-sqlite" | "libsql" | "d1" | "pg" | "mysql2" | "expo" | undefined;
187
- tablesFilter?: string | string[] | undefined;
188
- schema: string | string[];
189
- breakpoints: boolean;
190
- schemaFilter: string | string[];
191
- }, {
192
- out?: string | undefined;
193
- driver?: "turso" | "better-sqlite" | "libsql" | "d1" | "pg" | "mysql2" | "expo" | undefined;
194
- breakpoints?: boolean | undefined;
195
- tablesFilter?: string | string[] | undefined;
196
- schemaFilter?: string | string[] | undefined;
197
- schema: string | string[];
198
- }>, import("zod").ZodUnion<[import("zod").ZodObject<{
199
- host: import("zod").ZodString;
200
- port: import("zod").ZodOptional<import("zod").ZodNumber>;
201
- user: import("zod").ZodDefault<import("zod").ZodString>;
202
- password: import("zod").ZodOptional<import("zod").ZodString>;
203
- database: import("zod").ZodString;
204
- }, "strip", import("zod").ZodTypeAny, {
205
- port?: number | undefined;
206
- password?: string | undefined;
207
- host: string;
208
- user: string;
209
- database: string;
210
- }, {
211
- port?: number | undefined;
212
- user?: string | undefined;
213
- password?: string | undefined;
214
- host: string;
215
- database: string;
216
- }>, import("zod").ZodObject<{
217
- connectionString: import("zod").ZodString;
218
- }, "strip", import("zod").ZodTypeAny, {
219
- connectionString: string;
220
- }, {
221
- connectionString: string;
222
- }>, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>>;
223
- export declare const mySqlIntrospectConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
224
- schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
225
- out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
226
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
227
- tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
228
- schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
229
- introspect: import("zod").ZodDefault<import("zod").ZodObject<{
230
- casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
231
- }, "strip", import("zod").ZodTypeAny, {
232
- casing: "camel" | "preserve";
233
- }, {
234
- casing?: "camel" | "preserve" | undefined;
235
- }>>;
236
- }, "strip", import("zod").ZodTypeAny, {
237
- schema?: string | string[] | undefined;
238
- tablesFilter?: string | string[] | undefined;
239
- out: string;
240
- breakpoints: boolean;
241
- schemaFilter: string | string[];
242
- introspect: {
243
- casing: "camel" | "preserve";
244
- };
245
- }, {
246
- schema?: string | string[] | undefined;
247
- out?: string | undefined;
248
- breakpoints?: boolean | undefined;
249
- tablesFilter?: string | string[] | undefined;
250
- schemaFilter?: string | string[] | undefined;
251
- introspect?: {
252
- casing?: "camel" | "preserve" | undefined;
253
- } | undefined;
254
- }>, import("zod").ZodUnion<[import("zod").ZodObject<{
255
- host: import("zod").ZodString;
256
- port: import("zod").ZodOptional<import("zod").ZodNumber>;
257
- user: import("zod").ZodDefault<import("zod").ZodString>;
258
- password: import("zod").ZodOptional<import("zod").ZodString>;
259
- database: import("zod").ZodString;
260
- }, "strip", import("zod").ZodTypeAny, {
261
- port?: number | undefined;
262
- password?: string | undefined;
263
- host: string;
264
- user: string;
265
- database: string;
266
- }, {
267
- port?: number | undefined;
268
- user?: string | undefined;
269
- password?: string | undefined;
270
- host: string;
271
- database: string;
272
- }>, import("zod").ZodObject<{
273
- connectionString: import("zod").ZodString;
274
- }, "strip", import("zod").ZodTypeAny, {
275
- connectionString: string;
276
- }, {
277
- connectionString: string;
278
- }>, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>>;
279
- export type MySqlCliConfig = TypeOf<typeof mySqlCliConfigSchema>;
280
- export type CliConfig = MySqlCliConfig;
281
- export type Driver = TypeOf<typeof driver>;
282
29
  export declare const drizzleConfigFromFile: (configPath?: string) => Promise<CliConfig>;
283
30
  export declare const readDrizzleConfig: (configPath?: string) => Promise<any>;
package/cli/index.d.ts CHANGED
@@ -1,12 +1,35 @@
1
1
  import { TypeOf } from "zod";
2
2
  import "../@types/utils";
3
3
  import "dotenv/config";
4
+ declare const cliConfigGenerate: import("zod").ZodObject<{
5
+ dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
6
+ schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
7
+ out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
8
+ config: import("zod").ZodOptional<import("zod").ZodString>;
9
+ breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
10
+ custom: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
11
+ }, "strict", import("zod").ZodTypeAny, {
12
+ schema?: string | string[] | undefined;
13
+ dialect?: "mysql" | "pg" | "sqlite" | undefined;
14
+ config?: string | undefined;
15
+ custom: boolean;
16
+ out: string;
17
+ breakpoints: boolean;
18
+ }, {
19
+ custom?: boolean | undefined;
20
+ schema?: string | string[] | undefined;
21
+ dialect?: "mysql" | "pg" | "sqlite" | undefined;
22
+ out?: string | undefined;
23
+ config?: string | undefined;
24
+ breakpoints?: boolean | undefined;
25
+ }>;
26
+ export type CliConfigGenerate = TypeOf<typeof cliConfigGenerate>;
4
27
  declare const cliParamsPush: import("zod").ZodObject<{
5
28
  config: import("zod").ZodOptional<import("zod").ZodString>;
6
- dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
29
+ dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
7
30
  schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
8
31
  tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
9
- driver: import("zod").ZodString;
32
+ driver: import("zod").ZodOptional<import("zod").ZodString>;
10
33
  connectionString: import("zod").ZodOptional<import("zod").ZodString>;
11
34
  host: import("zod").ZodOptional<import("zod").ZodString>;
12
35
  port: import("zod").ZodOptional<import("zod").ZodString>;
@@ -16,42 +39,42 @@ declare const cliParamsPush: import("zod").ZodObject<{
16
39
  ssl: import("zod").ZodOptional<import("zod").ZodString>;
17
40
  uri: import("zod").ZodOptional<import("zod").ZodString>;
18
41
  authToken: import("zod").ZodOptional<import("zod").ZodString>;
19
- verbose: import("zod").ZodDefault<import("zod").ZodBoolean>;
20
- strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
42
+ verbose: import("zod").ZodOptional<import("zod").ZodBoolean>;
43
+ strict: import("zod").ZodOptional<import("zod").ZodBoolean>;
21
44
  }, "strict", import("zod").ZodTypeAny, {
45
+ strict?: boolean | undefined;
22
46
  schema?: string | string[] | undefined;
23
- authToken?: string | undefined;
24
- tablesFilter?: string | string[] | undefined;
47
+ dialect?: "mysql" | "pg" | "sqlite" | undefined;
25
48
  config?: string | undefined;
49
+ driver?: string | undefined;
50
+ tablesFilter?: string | string[] | undefined;
51
+ verbose?: boolean | undefined;
26
52
  host?: string | undefined;
27
53
  port?: string | undefined;
28
54
  user?: string | undefined;
29
55
  password?: string | undefined;
30
56
  database?: string | undefined;
31
- ssl?: string | undefined;
32
57
  connectionString?: string | undefined;
58
+ authToken?: string | undefined;
59
+ ssl?: string | undefined;
33
60
  uri?: string | undefined;
34
- strict: boolean;
35
- dialect: "pg" | "mysql" | "sqlite";
36
- driver: string;
37
- verbose: boolean;
38
61
  }, {
39
62
  strict?: boolean | undefined;
40
63
  schema?: string | string[] | undefined;
41
- authToken?: string | undefined;
42
- tablesFilter?: string | string[] | undefined;
64
+ dialect?: "mysql" | "pg" | "sqlite" | undefined;
43
65
  config?: string | undefined;
66
+ driver?: string | undefined;
67
+ tablesFilter?: string | string[] | undefined;
44
68
  verbose?: boolean | undefined;
45
69
  host?: string | undefined;
46
70
  port?: string | undefined;
47
71
  user?: string | undefined;
48
72
  password?: string | undefined;
49
73
  database?: string | undefined;
50
- ssl?: string | undefined;
51
74
  connectionString?: string | undefined;
75
+ authToken?: string | undefined;
76
+ ssl?: string | undefined;
52
77
  uri?: string | undefined;
53
- dialect: "pg" | "mysql" | "sqlite";
54
- driver: string;
55
78
  }>;
56
79
  export type CliParamsPush = TypeOf<typeof cliParamsPush>;
57
80
  export declare const checkSchema: import("zod").ZodObject<{
@@ -60,12 +83,12 @@ export declare const checkSchema: import("zod").ZodObject<{
60
83
  driver: import("zod").ZodOptional<import("zod").ZodString>;
61
84
  }, "strict", import("zod").ZodTypeAny, {
62
85
  out?: string | undefined;
63
- driver?: string | undefined;
64
86
  config?: string | undefined;
87
+ driver?: string | undefined;
65
88
  }, {
66
89
  out?: string | undefined;
67
- driver?: string | undefined;
68
90
  config?: string | undefined;
91
+ driver?: string | undefined;
69
92
  }>;
70
93
  export type CheckConfig = TypeOf<typeof checkSchema>;
71
94
  export {};