drizzle-kit 0.20.16-ca9dd07 → 0.20.17-0d9aa5f

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/bin.cjs +69184 -39095
  2. package/cli/commands/migrate.d.ts +123 -106
  3. package/cli/commands/mysqlIntrospect.d.ts +2 -71
  4. package/cli/commands/mysqlPushUtils.d.ts +4 -8
  5. package/cli/commands/pgIntrospect.d.ts +6 -70
  6. package/cli/commands/pgPushUtils.d.ts +3 -6
  7. package/cli/commands/sqliteIntrospect.d.ts +13 -17
  8. package/cli/commands/sqlitePushUtils.d.ts +4 -10
  9. package/cli/commands/utils.d.ts +39 -255
  10. package/cli/connections.d.ts +13 -0
  11. package/cli/utils.d.ts +13 -0
  12. package/cli/validations/cli.d.ts +169 -0
  13. package/cli/validations/common.d.ts +208 -7
  14. package/cli/validations/mysql.d.ts +6 -342
  15. package/cli/validations/outputs.d.ts +2 -0
  16. package/cli/validations/pg.d.ts +16 -408
  17. package/cli/validations/sqlite.d.ts +22 -0
  18. package/cli/views.d.ts +7 -5
  19. package/global.d.ts +3 -1
  20. package/index.d.mts +25 -17
  21. package/index.d.ts +25 -17
  22. package/index.js +1 -0
  23. package/introspect-sqlite.d.ts +2 -2
  24. package/jsonDiffer.d.ts +14 -29
  25. package/jsonStatements.d.ts +38 -11
  26. package/package.json +28 -51
  27. package/payload.d.mts +5 -5
  28. package/payload.d.ts +5 -5
  29. package/payload.js +16621 -33841
  30. package/payload.mjs +16673 -33904
  31. package/schemaValidator.d.ts +72 -69
  32. package/serializer/mysqlImports.d.ts +3 -7
  33. package/serializer/mysqlSchema.d.ts +1404 -587
  34. package/serializer/mysqlSerializer.d.ts +6 -6
  35. package/serializer/pgImports.d.ts +2 -2
  36. package/serializer/pgSchema.d.ts +1260 -801
  37. package/serializer/pgSerializer.d.ts +2 -2
  38. package/serializer/sqliteImports.d.ts +2 -4
  39. package/serializer/sqliteSchema.d.ts +144 -570
  40. package/serializer/sqliteSerializer.d.ts +4 -4
  41. package/serializer/studio.d.ts +51 -0
  42. package/snapshotsDiffer.d.ts +2334 -1057
  43. package/utils/words.d.ts +1 -1
  44. package/utils-studio.d.mts +0 -1
  45. package/utils-studio.d.ts +0 -1
  46. package/utils-studio.js +3817 -169
  47. package/utils-studio.mjs +3817 -172
  48. package/utils.d.ts +20 -141
  49. package/utils.js +3899 -7070
  50. package/utils.mjs +3972 -7143
  51. package/cli/commands/mysqlUp.d.ts +0 -4
  52. package/cli/commands/pgConnect.d.ts +0 -5
  53. package/cli/commands/pgUp.d.ts +0 -4
  54. package/cli/commands/sqliteUtils.d.ts +0 -162
  55. package/cli/commands/upFolders.d.ts +0 -27
  56. package/drivers/index.d.ts +0 -39
  57. package/introspect-mysql.d.ts +0 -9
  58. package/introspect-pg.d.ts +0 -12
@@ -1,274 +1,58 @@
1
- import { TypeOf } from "zod";
1
+ import { MysqlCredentials } from "../validations/mysql";
2
+ import { PostgresCredentials } from "../validations/pg";
3
+ import { SqliteCredentials } from "../validations/sqlite";
4
+ import { Casing, CliConfig } from "../validations/common";
5
+ import type { Dialect } from "../../schemaValidator";
6
+ import { CliCheckConfig, CliConfigGenerate } from "../validations/cli";
2
7
  export declare const safeRegister: () => Promise<{
3
8
  unregister: () => void;
4
9
  }>;
5
10
  export type GenerateConfig = {
11
+ dialect: Dialect;
6
12
  schema: string | string[];
7
13
  out: string;
8
14
  breakpoints: boolean;
15
+ name?: string;
9
16
  custom: boolean;
10
17
  bundle: boolean;
11
18
  };
12
- export declare const prepareGenerateConfig: (options: {
13
- schema?: string | string[];
14
- out?: string;
15
- config?: string;
16
- breakpoints: boolean;
17
- custom: boolean;
18
- }) => Promise<GenerateConfig>;
19
- export declare const assertOutFolder: (it: {
20
- config?: string;
19
+ export declare const prepareGenerateConfig: (options: CliConfigGenerate) => Promise<GenerateConfig>;
20
+ export declare const flattenDatabaseCredentials: (config: any) => any;
21
+ export declare const preparePushConfig: (options: Record<string, unknown>) => Promise<({
22
+ dialect: "mysql";
23
+ credentials: MysqlCredentials;
21
24
  } | {
22
- out: string;
23
- }) => Promise<string>;
24
- 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">]>;
25
- export declare const configCommonSchema: import("zod").ZodObject<{
26
- schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
27
- out: import("zod").ZodOptional<import("zod").ZodString>;
28
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
29
- 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">]>>;
30
- tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
31
- schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
32
- }, "strip", import("zod").ZodTypeAny, {
33
- out?: string | undefined;
34
- driver?: "turso" | "better-sqlite" | "libsql" | "d1" | "pg" | "mysql2" | "expo" | undefined;
35
- tablesFilter?: string | string[] | undefined;
36
- schema: string | string[];
37
- breakpoints: boolean;
38
- schemaFilter: string | string[];
39
- }, {
40
- out?: string | undefined;
41
- breakpoints?: boolean | undefined;
42
- driver?: "turso" | "better-sqlite" | "libsql" | "d1" | "pg" | "mysql2" | "expo" | undefined;
43
- tablesFilter?: string | string[] | undefined;
44
- schemaFilter?: string | string[] | undefined;
45
- schema: string | string[];
25
+ dialect: "pg";
26
+ credentials: PostgresCredentials;
27
+ } | {
28
+ dialect: "sqlite";
29
+ credentials: SqliteCredentials;
30
+ }) & {
31
+ schemaPath: string | string[];
32
+ verbose: boolean;
33
+ strict: boolean;
34
+ tablesFilter: string[];
35
+ schemasFilter: string[];
46
36
  }>;
47
- export declare const introspectCasing: import("zod").ZodDefault<import("zod").ZodObject<{
48
- casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
49
- }, "strip", import("zod").ZodTypeAny, {
50
- casing: "camel" | "preserve";
51
- }, {
52
- casing?: "camel" | "preserve" | undefined;
53
- }>>;
54
- export declare const configIntrospectSchema: import("zod").ZodObject<{
55
- schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
56
- out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
57
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
58
- tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
59
- schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
60
- introspect: import("zod").ZodDefault<import("zod").ZodObject<{
61
- casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
62
- }, "strip", import("zod").ZodTypeAny, {
63
- casing: "camel" | "preserve";
64
- }, {
65
- casing?: "camel" | "preserve" | undefined;
66
- }>>;
67
- }, "strip", import("zod").ZodTypeAny, {
68
- schema?: string | string[] | undefined;
69
- tablesFilter?: string | string[] | undefined;
37
+ export declare const preparePullConfig: (options: Record<string, unknown>) => Promise<({
38
+ dialect: "mysql";
39
+ credentials: MysqlCredentials;
40
+ } | {
41
+ dialect: "pg";
42
+ credentials: PostgresCredentials;
43
+ } | {
44
+ dialect: "sqlite";
45
+ credentials: SqliteCredentials;
46
+ }) & {
70
47
  out: string;
71
48
  breakpoints: boolean;
72
- schemaFilter: string | string[];
73
- introspect: {
74
- casing: "camel" | "preserve";
75
- };
76
- }, {
77
- schema?: string | string[] | undefined;
78
- out?: string | undefined;
79
- breakpoints?: boolean | undefined;
80
- tablesFilter?: string | string[] | undefined;
81
- schemaFilter?: string | string[] | undefined;
82
- introspect?: {
83
- casing?: "camel" | "preserve" | undefined;
84
- } | undefined;
49
+ casing: Casing;
50
+ tablesFilter: string[];
51
+ schemasFilter: string[];
85
52
  }>;
86
- export type ConfigIntrospectSchema = TypeOf<typeof configIntrospectSchema>;
87
- export type ConfigIntrospectCasing = TypeOf<typeof introspectCasing>;
88
- export declare const configIntrospectCliSchema: import("zod").ZodObject<{
89
- schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
90
- out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
91
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
92
- tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
93
- schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
94
- introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
95
- }, "strip", import("zod").ZodTypeAny, {
96
- schema?: string | string[] | undefined;
97
- tablesFilter?: string | string[] | undefined;
53
+ export declare const assertOutFolder: (it: CliCheckConfig) => Promise<{
98
54
  out: string;
99
- breakpoints: boolean;
100
- schemaFilter: string | string[];
101
- introspectCasing: "camel" | "preserve";
102
- }, {
103
- schema?: string | string[] | undefined;
104
- out?: string | undefined;
105
- breakpoints?: boolean | undefined;
106
- tablesFilter?: string | string[] | undefined;
107
- schemaFilter?: string | string[] | undefined;
108
- introspectCasing?: "camel" | "preserve" | undefined;
55
+ dialect: Dialect;
109
56
  }>;
110
- export declare const configGenerateSchema: import("zod").ZodObject<{
111
- schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
112
- out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
113
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
114
- }, "strip", import("zod").ZodTypeAny, {
115
- schema: string | string[];
116
- out: string;
117
- breakpoints: boolean;
118
- }, {
119
- out?: string | undefined;
120
- breakpoints?: boolean | undefined;
121
- schema: string | string[];
122
- }>;
123
- export type GenerateSchema = TypeOf<typeof configGenerateSchema>;
124
- export declare const configPushSchema: import("zod").ZodObject<{
125
- schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
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").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
128
- verbose: import("zod").ZodDefault<import("zod").ZodBoolean>;
129
- strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
130
- }, "strip", import("zod").ZodTypeAny, {
131
- tablesFilter?: string | string[] | undefined;
132
- strict: boolean;
133
- schema: string | string[];
134
- schemaFilter: string | string[];
135
- verbose: boolean;
136
- }, {
137
- strict?: boolean | undefined;
138
- tablesFilter?: string | string[] | undefined;
139
- schemaFilter?: string | string[] | undefined;
140
- verbose?: boolean | undefined;
141
- schema: string | string[];
142
- }>;
143
- export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
144
- host: import("zod").ZodString;
145
- port: import("zod").ZodOptional<import("zod").ZodNumber>;
146
- user: import("zod").ZodDefault<import("zod").ZodString>;
147
- password: import("zod").ZodOptional<import("zod").ZodString>;
148
- database: import("zod").ZodString;
149
- }, "strip", import("zod").ZodTypeAny, {
150
- port?: number | undefined;
151
- password?: string | undefined;
152
- host: string;
153
- user: string;
154
- database: string;
155
- }, {
156
- port?: number | undefined;
157
- user?: string | undefined;
158
- password?: string | undefined;
159
- host: string;
160
- database: string;
161
- }>, import("zod").ZodObject<{
162
- connectionString: import("zod").ZodString;
163
- }, "strip", import("zod").ZodTypeAny, {
164
- connectionString: string;
165
- }, {
166
- connectionString: string;
167
- }>, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>;
168
- export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
169
- schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
170
- out: import("zod").ZodOptional<import("zod").ZodString>;
171
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
172
- 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">]>>;
173
- tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
174
- schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
175
- }, "strip", import("zod").ZodTypeAny, {
176
- out?: string | undefined;
177
- driver?: "turso" | "better-sqlite" | "libsql" | "d1" | "pg" | "mysql2" | "expo" | undefined;
178
- tablesFilter?: string | string[] | undefined;
179
- schema: string | string[];
180
- breakpoints: boolean;
181
- schemaFilter: string | string[];
182
- }, {
183
- out?: string | undefined;
184
- breakpoints?: boolean | undefined;
185
- driver?: "turso" | "better-sqlite" | "libsql" | "d1" | "pg" | "mysql2" | "expo" | undefined;
186
- tablesFilter?: string | string[] | undefined;
187
- schemaFilter?: string | string[] | undefined;
188
- schema: string | string[];
189
- }>, import("zod").ZodUnion<[import("zod").ZodObject<{
190
- host: import("zod").ZodString;
191
- port: import("zod").ZodOptional<import("zod").ZodNumber>;
192
- user: import("zod").ZodDefault<import("zod").ZodString>;
193
- password: import("zod").ZodOptional<import("zod").ZodString>;
194
- database: import("zod").ZodString;
195
- }, "strip", import("zod").ZodTypeAny, {
196
- port?: number | undefined;
197
- password?: string | undefined;
198
- host: string;
199
- user: string;
200
- database: string;
201
- }, {
202
- port?: number | undefined;
203
- user?: string | undefined;
204
- password?: string | undefined;
205
- host: string;
206
- database: string;
207
- }>, import("zod").ZodObject<{
208
- connectionString: import("zod").ZodString;
209
- }, "strip", import("zod").ZodTypeAny, {
210
- connectionString: string;
211
- }, {
212
- connectionString: string;
213
- }>, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>>;
214
- export declare const mySqlIntrospectConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
215
- schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
216
- out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
217
- breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
218
- tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
219
- schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
220
- introspect: import("zod").ZodDefault<import("zod").ZodObject<{
221
- casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
222
- }, "strip", import("zod").ZodTypeAny, {
223
- casing: "camel" | "preserve";
224
- }, {
225
- casing?: "camel" | "preserve" | undefined;
226
- }>>;
227
- }, "strip", import("zod").ZodTypeAny, {
228
- schema?: string | string[] | undefined;
229
- tablesFilter?: string | string[] | undefined;
230
- out: string;
231
- breakpoints: boolean;
232
- schemaFilter: string | string[];
233
- introspect: {
234
- casing: "camel" | "preserve";
235
- };
236
- }, {
237
- schema?: string | string[] | undefined;
238
- out?: string | undefined;
239
- breakpoints?: boolean | undefined;
240
- tablesFilter?: string | string[] | undefined;
241
- schemaFilter?: string | string[] | undefined;
242
- introspect?: {
243
- casing?: "camel" | "preserve" | undefined;
244
- } | undefined;
245
- }>, import("zod").ZodUnion<[import("zod").ZodObject<{
246
- host: import("zod").ZodString;
247
- port: import("zod").ZodOptional<import("zod").ZodNumber>;
248
- user: import("zod").ZodDefault<import("zod").ZodString>;
249
- password: import("zod").ZodOptional<import("zod").ZodString>;
250
- database: import("zod").ZodString;
251
- }, "strip", import("zod").ZodTypeAny, {
252
- port?: number | undefined;
253
- password?: string | undefined;
254
- host: string;
255
- user: string;
256
- database: string;
257
- }, {
258
- port?: number | undefined;
259
- user?: string | undefined;
260
- password?: string | undefined;
261
- host: string;
262
- database: string;
263
- }>, import("zod").ZodObject<{
264
- connectionString: import("zod").ZodString;
265
- }, "strip", import("zod").ZodTypeAny, {
266
- connectionString: string;
267
- }, {
268
- connectionString: string;
269
- }>, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>>;
270
- export type MySqlCliConfig = TypeOf<typeof mySqlCliConfigSchema>;
271
- export type CliConfig = MySqlCliConfig;
272
- export type Driver = TypeOf<typeof driver>;
273
57
  export declare const drizzleConfigFromFile: (configPath?: string) => Promise<CliConfig>;
274
58
  export declare const readDrizzleConfig: (configPath?: string) => Promise<any>;
@@ -0,0 +1,13 @@
1
+ import type { DB, Proxy, SQLiteDB, SqliteProxy } from "../utils";
2
+ import type { PostgresCredentials } from "./validations/pg";
3
+ import type { MysqlCredentials } from "./validations/mysql";
4
+ import { SqliteCredentials } from "./validations/sqlite";
5
+ export declare const preparePostgresDB: (credentials: PostgresCredentials) => Promise<DB & {
6
+ proxy: Proxy;
7
+ }>;
8
+ export declare const connectToMySQL: (it: MysqlCredentials) => Promise<{
9
+ db: DB;
10
+ proxy: Proxy;
11
+ database: string;
12
+ }>;
13
+ export declare const connectToSQLite: (credentials: SqliteCredentials) => Promise<SQLiteDB & SqliteProxy>;
package/cli/utils.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ export declare const assertExists: (it?: any) => void;
2
+ export declare const assertStudioNodeVersion: () => void;
3
+ export declare const checkPackage: (it: string) => Promise<boolean>;
4
+ export declare const assertPackages: (...pkgs: string[]) => Promise<void>;
5
+ export declare const assertEitherPackage: (...pkgs: string[]) => Promise<string[]>;
6
+ export declare const assertOrmCoreVersion: () => Promise<void>;
7
+ export declare const ormCoreVersions: () => Promise<{
8
+ compatibilityVersion: number;
9
+ npmVersion: string;
10
+ } | {
11
+ compatibilityVersion?: undefined;
12
+ npmVersion?: undefined;
13
+ }>;
@@ -0,0 +1,169 @@
1
+ import { TypeOf } from "zod";
2
+ export declare const cliConfigGenerate: import("zod").ZodObject<{
3
+ dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
4
+ schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
5
+ out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
6
+ config: import("zod").ZodOptional<import("zod").ZodString>;
7
+ name: import("zod").ZodOptional<import("zod").ZodString>;
8
+ breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
9
+ custom: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
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
+ custom: boolean;
16
+ out: string;
17
+ breakpoints: boolean;
18
+ }, {
19
+ name?: string | undefined;
20
+ custom?: boolean | undefined;
21
+ schema?: string | string[] | undefined;
22
+ dialect?: "mysql" | "pg" | "sqlite" | undefined;
23
+ config?: string | undefined;
24
+ out?: string | undefined;
25
+ breakpoints?: boolean | undefined;
26
+ }>;
27
+ export type CliConfigGenerate = TypeOf<typeof cliConfigGenerate>;
28
+ export declare const pushParams: import("zod").ZodObject<{
29
+ dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
30
+ schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
31
+ tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
32
+ schemaFilters: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
33
+ driver: import("zod").ZodString;
34
+ connectionString: import("zod").ZodOptional<import("zod").ZodString>;
35
+ uri: import("zod").ZodOptional<import("zod").ZodString>;
36
+ url: import("zod").ZodOptional<import("zod").ZodString>;
37
+ host: import("zod").ZodOptional<import("zod").ZodString>;
38
+ port: import("zod").ZodOptional<import("zod").ZodString>;
39
+ user: import("zod").ZodOptional<import("zod").ZodString>;
40
+ password: import("zod").ZodOptional<import("zod").ZodString>;
41
+ database: import("zod").ZodOptional<import("zod").ZodString>;
42
+ ssl: import("zod").ZodOptional<import("zod").ZodString>;
43
+ authToken: import("zod").ZodOptional<import("zod").ZodString>;
44
+ verbose: import("zod").ZodOptional<import("zod").ZodBoolean>;
45
+ strict: import("zod").ZodOptional<import("zod").ZodBoolean>;
46
+ }, "strip", import("zod").ZodTypeAny, {
47
+ strict?: boolean | undefined;
48
+ schema?: string | string[] | undefined;
49
+ url?: string | undefined;
50
+ host?: string | undefined;
51
+ port?: string | undefined;
52
+ user?: string | undefined;
53
+ password?: string | undefined;
54
+ database?: string | undefined;
55
+ uri?: string | undefined;
56
+ connectionString?: string | undefined;
57
+ ssl?: string | undefined;
58
+ authToken?: string | undefined;
59
+ tablesFilter?: string | string[] | undefined;
60
+ verbose?: boolean | undefined;
61
+ dialect: "mysql" | "pg" | "sqlite";
62
+ driver: string;
63
+ schemaFilters: string | string[];
64
+ }, {
65
+ strict?: boolean | undefined;
66
+ schema?: string | string[] | undefined;
67
+ url?: string | undefined;
68
+ host?: string | undefined;
69
+ port?: string | undefined;
70
+ user?: string | undefined;
71
+ password?: string | undefined;
72
+ database?: string | undefined;
73
+ uri?: string | undefined;
74
+ connectionString?: string | undefined;
75
+ ssl?: string | undefined;
76
+ authToken?: string | undefined;
77
+ tablesFilter?: string | string[] | undefined;
78
+ verbose?: boolean | undefined;
79
+ schemaFilters?: string | string[] | undefined;
80
+ dialect: "mysql" | "pg" | "sqlite";
81
+ driver: string;
82
+ }>;
83
+ export type PushParams = TypeOf<typeof pushParams>;
84
+ export declare const pullParams: import("zod").ZodObject<{
85
+ config: import("zod").ZodOptional<import("zod").ZodString>;
86
+ dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
87
+ out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
88
+ tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
89
+ schemaFilter: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
90
+ driver: import("zod").ZodOptional<import("zod").ZodString>;
91
+ connectionString: import("zod").ZodOptional<import("zod").ZodString>;
92
+ uri: import("zod").ZodOptional<import("zod").ZodString>;
93
+ host: import("zod").ZodOptional<import("zod").ZodString>;
94
+ port: import("zod").ZodOptional<import("zod").ZodString>;
95
+ user: import("zod").ZodOptional<import("zod").ZodString>;
96
+ password: import("zod").ZodOptional<import("zod").ZodString>;
97
+ database: import("zod").ZodOptional<import("zod").ZodString>;
98
+ ssl: import("zod").ZodOptional<import("zod").ZodString>;
99
+ url: import("zod").ZodOptional<import("zod").ZodString>;
100
+ authToken: import("zod").ZodOptional<import("zod").ZodString>;
101
+ "introspect-casing": import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
102
+ breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
103
+ }, "strip", import("zod").ZodTypeAny, {
104
+ dialect?: "mysql" | "pg" | "sqlite" | undefined;
105
+ url?: string | undefined;
106
+ host?: string | undefined;
107
+ port?: string | undefined;
108
+ user?: string | undefined;
109
+ password?: string | undefined;
110
+ database?: string | undefined;
111
+ uri?: string | undefined;
112
+ driver?: string | undefined;
113
+ connectionString?: string | undefined;
114
+ ssl?: string | undefined;
115
+ authToken?: string | undefined;
116
+ config?: string | undefined;
117
+ tablesFilter?: string | string[] | undefined;
118
+ out: string;
119
+ breakpoints: boolean;
120
+ schemaFilter: string | string[];
121
+ "introspect-casing": "camel" | "preserve";
122
+ }, {
123
+ dialect?: "mysql" | "pg" | "sqlite" | undefined;
124
+ url?: string | undefined;
125
+ host?: string | undefined;
126
+ port?: string | undefined;
127
+ user?: string | undefined;
128
+ password?: string | undefined;
129
+ database?: string | undefined;
130
+ uri?: string | undefined;
131
+ driver?: string | undefined;
132
+ connectionString?: string | undefined;
133
+ ssl?: string | undefined;
134
+ authToken?: string | undefined;
135
+ config?: string | undefined;
136
+ out?: string | undefined;
137
+ breakpoints?: boolean | undefined;
138
+ tablesFilter?: string | string[] | undefined;
139
+ schemaFilter?: string | string[] | undefined;
140
+ "introspect-casing"?: "camel" | "preserve" | undefined;
141
+ }>;
142
+ export type PullParams = TypeOf<typeof pullParams>;
143
+ export declare const configCheck: import("zod").ZodObject<{
144
+ dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
145
+ out: import("zod").ZodOptional<import("zod").ZodString>;
146
+ }, "strip", import("zod").ZodTypeAny, {
147
+ dialect?: "mysql" | "pg" | "sqlite" | undefined;
148
+ out?: string | undefined;
149
+ }, {
150
+ dialect?: "mysql" | "pg" | "sqlite" | undefined;
151
+ out?: string | undefined;
152
+ }>;
153
+ export declare const cliConfigCheck: import("zod").ZodIntersection<import("zod").ZodObject<{
154
+ config: import("zod").ZodOptional<import("zod").ZodString>;
155
+ }, "strip", import("zod").ZodTypeAny, {
156
+ config?: string | undefined;
157
+ }, {
158
+ config?: string | undefined;
159
+ }>, import("zod").ZodObject<{
160
+ dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
161
+ out: import("zod").ZodOptional<import("zod").ZodString>;
162
+ }, "strip", import("zod").ZodTypeAny, {
163
+ dialect?: "mysql" | "pg" | "sqlite" | undefined;
164
+ out?: string | undefined;
165
+ }, {
166
+ dialect?: "mysql" | "pg" | "sqlite" | undefined;
167
+ out?: string | undefined;
168
+ }>>;
169
+ export type CliCheckConfig = TypeOf<typeof cliConfigCheck>;