drizzle-kit 0.20.17-5938f5d → 0.20.17-615c551

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,15 +24,15 @@ export declare const preparePgPush: (schemaPath: string | string[], snapshot: Pg
24
24
  tables: Record<string, {
25
25
  name: string;
26
26
  columns: Record<string, {
27
- name: string;
28
- type: string;
29
- primaryKey: boolean;
30
- notNull: boolean;
31
27
  isUnique?: any;
32
28
  default?: any;
33
29
  typeSchema?: string | undefined;
34
30
  uniqueName?: string | undefined;
35
31
  nullsNotDistinct?: boolean | undefined;
32
+ name: string;
33
+ type: string;
34
+ primaryKey: boolean;
35
+ notNull: boolean;
36
36
  }>;
37
37
  indexes: Record<string, string>;
38
38
  foreignKeys: Record<string, string>;
@@ -41,7 +41,7 @@ export declare const preparePgPush: (schemaPath: string | string[], snapshot: Pg
41
41
  uniqueConstraints: Record<string, string>;
42
42
  }>;
43
43
  version: "6";
44
- dialect: "pg";
44
+ dialect: "postgresql";
45
45
  schemas: Record<string, string>;
46
46
  enums: Record<string, {
47
47
  name: string;
@@ -53,15 +53,15 @@ export declare const preparePgPush: (schemaPath: string | string[], snapshot: Pg
53
53
  tables: Record<string, {
54
54
  name: string;
55
55
  columns: Record<string, {
56
- name: string;
57
- type: string;
58
- primaryKey: boolean;
59
- notNull: boolean;
60
56
  isUnique?: any;
61
57
  default?: any;
62
58
  typeSchema?: string | undefined;
63
59
  uniqueName?: string | undefined;
64
60
  nullsNotDistinct?: boolean | undefined;
61
+ name: string;
62
+ type: string;
63
+ primaryKey: boolean;
64
+ notNull: boolean;
65
65
  }>;
66
66
  indexes: Record<string, string>;
67
67
  foreignKeys: Record<string, string>;
@@ -70,7 +70,7 @@ export declare const preparePgPush: (schemaPath: string | string[], snapshot: Pg
70
70
  uniqueConstraints: Record<string, string>;
71
71
  }>;
72
72
  version: "6";
73
- dialect: "pg";
73
+ dialect: "postgresql";
74
74
  schemas: Record<string, string>;
75
75
  enums: Record<string, {
76
76
  name: string;
@@ -83,33 +83,40 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
83
83
  sqlStatements: string[];
84
84
  statements: import("../../jsonStatements").JsonStatement[];
85
85
  validatedCur: {
86
+ internal?: {
87
+ tables: Record<string, {
88
+ columns: Record<string, {
89
+ isDefaultAnExpression?: boolean | undefined;
90
+ } | undefined>;
91
+ } | undefined>;
92
+ } | undefined;
86
93
  tables: Record<string, {
87
94
  name: string;
88
95
  columns: Record<string, {
96
+ default?: any;
97
+ onUpdate?: any;
98
+ autoincrement?: boolean | undefined;
89
99
  name: string;
90
100
  type: string;
91
101
  primaryKey: boolean;
92
102
  notNull: boolean;
93
- default?: any;
94
- onUpdate?: any;
95
- autoincrement?: boolean | undefined;
96
103
  }>;
97
104
  indexes: Record<string, {
98
- name: string;
99
- columns: string[];
100
- isUnique: boolean;
101
105
  using?: "btree" | "hash" | undefined;
102
106
  algorithm?: "default" | "inplace" | "copy" | undefined;
103
107
  lock?: "default" | "none" | "shared" | "exclusive" | undefined;
108
+ name: string;
109
+ columns: string[];
110
+ isUnique: boolean;
104
111
  }>;
105
112
  foreignKeys: Record<string, {
113
+ onUpdate?: string | undefined;
114
+ onDelete?: string | undefined;
106
115
  name: string;
107
116
  tableFrom: string;
108
117
  columnsFrom: string[];
109
118
  tableTo: string;
110
119
  columnsTo: string[];
111
- onUpdate?: string | undefined;
112
- onDelete?: string | undefined;
113
120
  }>;
114
121
  compositePrimaryKeys: Record<string, {
115
122
  name: string;
@@ -122,12 +129,14 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
122
129
  }>;
123
130
  id: string;
124
131
  prevId: string;
125
- version: "6";
132
+ version: "5";
126
133
  dialect: "mysql";
127
134
  _meta: {
128
135
  columns: Record<string, string>;
129
136
  tables: Record<string, string>;
130
137
  };
138
+ };
139
+ validatedPrev: {
131
140
  internal?: {
132
141
  tables: Record<string, {
133
142
  columns: Record<string, {
@@ -135,35 +144,33 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
135
144
  } | undefined>;
136
145
  } | undefined>;
137
146
  } | undefined;
138
- };
139
- validatedPrev: {
140
147
  tables: Record<string, {
141
148
  name: string;
142
149
  columns: Record<string, {
150
+ default?: any;
151
+ onUpdate?: any;
152
+ autoincrement?: boolean | undefined;
143
153
  name: string;
144
154
  type: string;
145
155
  primaryKey: boolean;
146
156
  notNull: boolean;
147
- default?: any;
148
- onUpdate?: any;
149
- autoincrement?: boolean | undefined;
150
157
  }>;
151
158
  indexes: Record<string, {
152
- name: string;
153
- columns: string[];
154
- isUnique: boolean;
155
159
  using?: "btree" | "hash" | undefined;
156
160
  algorithm?: "default" | "inplace" | "copy" | undefined;
157
161
  lock?: "default" | "none" | "shared" | "exclusive" | undefined;
162
+ name: string;
163
+ columns: string[];
164
+ isUnique: boolean;
158
165
  }>;
159
166
  foreignKeys: Record<string, {
167
+ onUpdate?: string | undefined;
168
+ onDelete?: string | undefined;
160
169
  name: string;
161
170
  tableFrom: string;
162
171
  columnsFrom: string[];
163
172
  tableTo: string;
164
173
  columnsTo: string[];
165
- onUpdate?: string | undefined;
166
- onDelete?: string | undefined;
167
174
  }>;
168
175
  compositePrimaryKeys: Record<string, {
169
176
  name: string;
@@ -176,19 +183,12 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
176
183
  }>;
177
184
  id: string;
178
185
  prevId: string;
179
- version: "6";
186
+ version: "5";
180
187
  dialect: "mysql";
181
188
  _meta: {
182
189
  columns: Record<string, string>;
183
190
  tables: Record<string, string>;
184
191
  };
185
- internal?: {
186
- tables: Record<string, {
187
- columns: Record<string, {
188
- isDefaultAnExpression?: boolean | undefined;
189
- } | undefined>;
190
- } | undefined>;
191
- } | undefined;
192
192
  };
193
193
  }>;
194
194
  export declare const prepareAndMigrateMysql: (config: GenerateConfig) => Promise<void>;
@@ -197,15 +197,16 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
197
197
  sqlStatements: string[];
198
198
  statements: import("../../jsonStatements").JsonStatement[];
199
199
  squashedPrev: {
200
+ enums?: any;
200
201
  tables: Record<string, {
201
202
  name: string;
202
203
  columns: Record<string, {
204
+ default?: any;
205
+ autoincrement?: boolean | undefined;
203
206
  name: string;
204
207
  type: string;
205
208
  primaryKey: boolean;
206
209
  notNull: boolean;
207
- default?: any;
208
- autoincrement?: boolean | undefined;
209
210
  }>;
210
211
  indexes: Record<string, string>;
211
212
  foreignKeys: Record<string, string>;
@@ -214,18 +215,18 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
214
215
  }>;
215
216
  version: "5";
216
217
  dialect: "sqlite";
217
- enums?: any;
218
218
  };
219
219
  squashedCur: {
220
+ enums?: any;
220
221
  tables: Record<string, {
221
222
  name: string;
222
223
  columns: Record<string, {
224
+ default?: any;
225
+ autoincrement?: boolean | undefined;
223
226
  name: string;
224
227
  type: string;
225
228
  primaryKey: boolean;
226
229
  notNull: boolean;
227
- default?: any;
228
- autoincrement?: boolean | undefined;
229
230
  }>;
230
231
  indexes: Record<string, string>;
231
232
  foreignKeys: Record<string, string>;
@@ -234,7 +235,6 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
234
235
  }>;
235
236
  version: "5";
236
237
  dialect: "sqlite";
237
- enums?: any;
238
238
  };
239
239
  meta: {
240
240
  schemas: {};
@@ -1,38 +1,33 @@
1
- import type { MysqlCredentials } from "../validations/mysql";
2
1
  import type { DB } from "../../utils";
3
- export declare const connectToMySQL: (credentials: MysqlCredentials) => Promise<{
4
- db: DB;
5
- database: string;
6
- }>;
7
2
  export declare const mysqlPushIntrospect: (db: DB, databaseName: string, filters: string[]) => Promise<{
8
3
  schema: {
9
4
  tables: Record<string, {
10
5
  name: string;
11
6
  columns: Record<string, {
7
+ default?: any;
8
+ onUpdate?: any;
9
+ autoincrement?: boolean | undefined;
12
10
  name: string;
13
11
  type: string;
14
12
  primaryKey: boolean;
15
13
  notNull: boolean;
16
- default?: any;
17
- onUpdate?: any;
18
- autoincrement?: boolean | undefined;
19
14
  }>;
20
15
  indexes: Record<string, {
21
- name: string;
22
- columns: string[];
23
- isUnique: boolean;
24
16
  using?: "btree" | "hash" | undefined;
25
17
  algorithm?: "default" | "inplace" | "copy" | undefined;
26
18
  lock?: "default" | "none" | "shared" | "exclusive" | undefined;
19
+ name: string;
20
+ columns: string[];
21
+ isUnique: boolean;
27
22
  }>;
28
23
  foreignKeys: Record<string, {
24
+ onUpdate?: string | undefined;
25
+ onDelete?: string | undefined;
29
26
  name: string;
30
27
  tableFrom: string;
31
28
  columnsFrom: string[];
32
29
  tableTo: string;
33
30
  columnsTo: string[];
34
- onUpdate?: string | undefined;
35
- onDelete?: string | undefined;
36
31
  }>;
37
32
  compositePrimaryKeys: Record<string, {
38
33
  name: string;
@@ -45,7 +40,7 @@ export declare const mysqlPushIntrospect: (db: DB, databaseName: string, filters
45
40
  }>;
46
41
  id: string;
47
42
  prevId: string;
48
- version: "6";
43
+ version: "5";
49
44
  dialect: "mysql";
50
45
  _meta: {
51
46
  columns: Record<string, string>;
@@ -4,15 +4,15 @@ export declare const pgPushIntrospect: (db: DB, filters: string[], schemaFilters
4
4
  tables: Record<string, {
5
5
  name: string;
6
6
  columns: Record<string, {
7
- name: string;
8
- type: string;
9
- primaryKey: boolean;
10
- notNull: boolean;
11
7
  isUnique?: any;
12
8
  default?: any;
13
9
  typeSchema?: string | undefined;
14
10
  uniqueName?: string | undefined;
15
11
  nullsNotDistinct?: boolean | undefined;
12
+ name: string;
13
+ type: string;
14
+ primaryKey: boolean;
15
+ notNull: boolean;
16
16
  }>;
17
17
  indexes: Record<string, {
18
18
  name: string;
@@ -20,14 +20,14 @@ export declare const pgPushIntrospect: (db: DB, filters: string[], schemaFilters
20
20
  isUnique: boolean;
21
21
  }>;
22
22
  foreignKeys: Record<string, {
23
+ onUpdate?: string | undefined;
24
+ onDelete?: string | undefined;
25
+ schemaTo?: string | undefined;
23
26
  name: string;
24
27
  tableFrom: string;
25
28
  columnsFrom: string[];
26
29
  tableTo: string;
27
30
  columnsTo: string[];
28
- onUpdate?: string | undefined;
29
- onDelete?: string | undefined;
30
- schemaTo?: string | undefined;
31
31
  }>;
32
32
  schema: string;
33
33
  compositePrimaryKeys: Record<string, {
@@ -43,7 +43,7 @@ export declare const pgPushIntrospect: (db: DB, filters: string[], schemaFilters
43
43
  id: string;
44
44
  prevId: string;
45
45
  version: "6";
46
- dialect: "pg";
46
+ dialect: "postgresql";
47
47
  schemas: Record<string, string>;
48
48
  _meta: {
49
49
  columns: Record<string, string>;
@@ -1,37 +1,36 @@
1
1
  import type { SqliteCredentials } from "../validations/sqlite";
2
2
  import type { SQLiteDB } from "../../utils";
3
3
  import { Casing } from "../validations/common";
4
- export declare const connectToSQLite: (credentials: SqliteCredentials) => Promise<SQLiteDB>;
5
4
  export declare const sqliteIntrospect: (credentials: SqliteCredentials, filters: string[], casing: Casing) => Promise<{
6
5
  schema: {
7
6
  tables: Record<string, {
8
7
  name: string;
9
8
  columns: Record<string, {
9
+ default?: any;
10
+ autoincrement?: boolean | undefined;
10
11
  name: string;
11
12
  type: string;
12
13
  primaryKey: boolean;
13
14
  notNull: boolean;
14
- default?: any;
15
- autoincrement?: boolean | undefined;
16
15
  }>;
17
16
  indexes: Record<string, {
17
+ where?: string | undefined;
18
18
  name: string;
19
19
  columns: string[];
20
20
  isUnique: boolean;
21
- where?: string | undefined;
22
21
  }>;
23
22
  foreignKeys: Record<string, {
23
+ onUpdate?: string | undefined;
24
+ onDelete?: string | undefined;
24
25
  name: string;
25
26
  tableFrom: string;
26
27
  columnsFrom: string[];
27
28
  tableTo: string;
28
29
  columnsTo: string[];
29
- onUpdate?: string | undefined;
30
- onDelete?: string | undefined;
31
30
  }>;
32
31
  compositePrimaryKeys: Record<string, {
33
- columns: string[];
34
32
  name?: string | undefined;
33
+ columns: string[];
35
34
  }>;
36
35
  uniqueConstraints: Record<string, {
37
36
  name: string;
@@ -60,31 +59,31 @@ export declare const sqlitePushIntrospect: (db: SQLiteDB, filters: string[]) =>
60
59
  tables: Record<string, {
61
60
  name: string;
62
61
  columns: Record<string, {
62
+ default?: any;
63
+ autoincrement?: boolean | undefined;
63
64
  name: string;
64
65
  type: string;
65
66
  primaryKey: boolean;
66
67
  notNull: boolean;
67
- default?: any;
68
- autoincrement?: boolean | undefined;
69
68
  }>;
70
69
  indexes: Record<string, {
70
+ where?: string | undefined;
71
71
  name: string;
72
72
  columns: string[];
73
73
  isUnique: boolean;
74
- where?: string | undefined;
75
74
  }>;
76
75
  foreignKeys: Record<string, {
76
+ onUpdate?: string | undefined;
77
+ onDelete?: string | undefined;
77
78
  name: string;
78
79
  tableFrom: string;
79
80
  columnsFrom: string[];
80
81
  tableTo: string;
81
82
  columnsTo: string[];
82
- onUpdate?: string | undefined;
83
- onDelete?: string | undefined;
84
83
  }>;
85
84
  compositePrimaryKeys: Record<string, {
86
- columns: string[];
87
85
  name?: string | undefined;
86
+ columns: string[];
88
87
  }>;
89
88
  uniqueConstraints: Record<string, {
90
89
  name: string;
@@ -1,10 +1,10 @@
1
1
  import { SQLiteSchemaInternal, SQLiteSchemaSquashed } from "../../serializer/sqliteSchema";
2
2
  import type { JsonStatement } from "../../jsonStatements";
3
- import type { DB } from "../../utils";
3
+ import type { SQLiteDB } from "../../utils";
4
4
  export declare const _moveDataStatements: (tableName: string, json: SQLiteSchemaSquashed, dataLoss?: boolean) => string[];
5
5
  export declare const getOldTableName: (tableName: string, meta: SQLiteSchemaInternal["_meta"]) => string;
6
6
  export declare const getNewTableName: (tableName: string, meta: SQLiteSchemaInternal["_meta"]) => string;
7
- export declare const logSuggestionsAndReturn: (connection: DB, statements: JsonStatement[], json1: SQLiteSchemaSquashed, json2: SQLiteSchemaSquashed, meta: SQLiteSchemaInternal["_meta"]) => Promise<{
7
+ export declare const logSuggestionsAndReturn: (connection: SQLiteDB, statements: JsonStatement[], json1: SQLiteSchemaSquashed, json2: SQLiteSchemaSquashed, meta: SQLiteSchemaInternal["_meta"]) => Promise<{
8
8
  statementsToExecute: string[];
9
9
  shouldAskForApprove: boolean;
10
10
  infoToPrint: string[];
@@ -22,7 +22,7 @@ export declare const preparePushConfig: (options: Record<string, unknown>) => Pr
22
22
  dialect: "mysql";
23
23
  credentials: MysqlCredentials;
24
24
  } | {
25
- dialect: "pg";
25
+ dialect: "postgresql";
26
26
  credentials: PostgresCredentials;
27
27
  } | {
28
28
  dialect: "sqlite";
@@ -38,7 +38,7 @@ export declare const preparePullConfig: (options: Record<string, unknown>) => Pr
38
38
  dialect: "mysql";
39
39
  credentials: MysqlCredentials;
40
40
  } | {
41
- dialect: "pg";
41
+ dialect: "postgresql";
42
42
  credentials: PostgresCredentials;
43
43
  } | {
44
44
  dialect: "sqlite";
@@ -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>;
@@ -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<["pg", "mysql", "sqlite"]>>;
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
- custom: boolean;
12
- out: string;
13
- breakpoints: boolean;
14
11
  name?: string | undefined;
15
12
  schema?: string | string[] | undefined;
16
- dialect?: "mysql" | "pg" | "sqlite" | undefined;
13
+ dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
17
14
  config?: string | undefined;
15
+ custom: boolean;
16
+ out: string;
17
+ breakpoints: boolean;
18
18
  }, {
19
19
  name?: string | undefined;
20
20
  custom?: boolean | undefined;
21
21
  schema?: string | string[] | undefined;
22
- dialect?: "mysql" | "pg" | "sqlite" | undefined;
22
+ dialect?: "mysql" | "postgresql" | "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<["pg", "mysql", "sqlite"]>;
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
- 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;
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,46 +44,46 @@ 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: "mysql" | "pg" | "sqlite";
48
- driver: string;
49
- schemaFilters: string | string[];
50
47
  strict?: boolean | undefined;
51
48
  schema?: string | string[] | undefined;
52
49
  url?: string | undefined;
53
- tablesFilter?: string | string[] | undefined;
54
- verbose?: boolean | undefined;
55
50
  host?: string | undefined;
56
51
  port?: string | undefined;
57
52
  user?: string | undefined;
58
53
  password?: string | undefined;
59
54
  database?: string | undefined;
60
- connectionString?: string | undefined;
61
55
  uri?: string | undefined;
56
+ driver?: string | undefined;
57
+ connectionString?: string | undefined;
62
58
  ssl?: string | undefined;
63
59
  authToken?: string | undefined;
60
+ tablesFilter?: string | string[] | undefined;
61
+ verbose?: boolean | undefined;
62
+ dialect: "mysql" | "postgresql" | "sqlite";
63
+ schemaFilter: string | string[];
64
64
  }, {
65
- dialect: "mysql" | "pg" | "sqlite";
66
- driver: string;
67
65
  strict?: boolean | undefined;
68
66
  schema?: string | string[] | undefined;
69
67
  url?: string | undefined;
70
- tablesFilter?: string | string[] | undefined;
71
- verbose?: boolean | undefined;
72
68
  host?: string | undefined;
73
69
  port?: string | undefined;
74
70
  user?: string | undefined;
75
71
  password?: string | undefined;
76
72
  database?: string | undefined;
77
- connectionString?: string | undefined;
78
- schemaFilters?: string | string[] | undefined;
79
73
  uri?: string | undefined;
74
+ driver?: string | undefined;
75
+ connectionString?: string | undefined;
80
76
  ssl?: string | undefined;
81
77
  authToken?: string | undefined;
78
+ tablesFilter?: string | string[] | undefined;
79
+ schemaFilter?: string | string[] | undefined;
80
+ verbose?: boolean | undefined;
81
+ dialect: "mysql" | "postgresql" | "sqlite";
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<["pg", "mysql", "sqlite"]>>;
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">]>>>;
@@ -98,56 +98,56 @@ export declare const pullParams: import("zod").ZodObject<{
98
98
  ssl: import("zod").ZodOptional<import("zod").ZodString>;
99
99
  url: import("zod").ZodOptional<import("zod").ZodString>;
100
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">]>>;
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
- }, "strip", import("zod").ZodTypeAny, {
104
- out: string;
105
- breakpoints: boolean;
106
- schemaFilter: string | string[];
107
- "introspect-casing": "camel" | "preserve";
108
- dialect?: "mysql" | "pg" | "sqlite" | undefined;
103
+ }, "passthrough", import("zod").ZodTypeAny, {
104
+ dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
109
105
  url?: string | undefined;
110
- config?: string | undefined;
111
- driver?: string | undefined;
112
- tablesFilter?: string | string[] | undefined;
113
106
  host?: string | undefined;
114
107
  port?: string | undefined;
115
108
  user?: string | undefined;
116
109
  password?: string | undefined;
117
110
  database?: string | undefined;
118
- connectionString?: string | undefined;
119
111
  uri?: string | undefined;
112
+ driver?: string | undefined;
113
+ connectionString?: string | undefined;
120
114
  ssl?: string | undefined;
121
115
  authToken?: string | undefined;
122
- }, {
123
- dialect?: "mysql" | "pg" | "sqlite" | undefined;
124
- url?: string | undefined;
125
116
  config?: string | undefined;
126
- out?: string | undefined;
127
- breakpoints?: boolean | undefined;
128
- driver?: string | undefined;
129
117
  tablesFilter?: string | string[] | undefined;
130
- schemaFilter?: string | string[] | undefined;
118
+ out: string;
119
+ breakpoints: boolean;
120
+ schemaFilter: string | string[];
121
+ introspectCasing: "camel" | "preserve";
122
+ }, {
123
+ dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
124
+ url?: string | undefined;
131
125
  host?: string | undefined;
132
126
  port?: string | undefined;
133
127
  user?: string | undefined;
134
128
  password?: string | undefined;
135
129
  database?: string | undefined;
136
- connectionString?: string | undefined;
137
130
  uri?: string | undefined;
131
+ driver?: string | undefined;
132
+ connectionString?: string | undefined;
138
133
  ssl?: string | undefined;
139
134
  authToken?: string | undefined;
140
- "introspect-casing"?: "camel" | "preserve" | undefined;
135
+ config?: string | undefined;
136
+ out?: string | undefined;
137
+ breakpoints?: boolean | undefined;
138
+ tablesFilter?: string | string[] | undefined;
139
+ schemaFilter?: string | string[] | undefined;
140
+ introspectCasing?: "camel" | "preserve" | undefined;
141
141
  }>;
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<["pg", "mysql", "sqlite"]>>;
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?: "mysql" | "pg" | "sqlite" | undefined;
147
+ dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
148
148
  out?: string | undefined;
149
149
  }, {
150
- dialect?: "mysql" | "pg" | "sqlite" | undefined;
150
+ dialect?: "mysql" | "postgresql" | "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<["pg", "mysql", "sqlite"]>>;
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?: "mysql" | "pg" | "sqlite" | undefined;
163
+ dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
164
164
  out?: string | undefined;
165
165
  }, {
166
- dialect?: "mysql" | "pg" | "sqlite" | undefined;
166
+ dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
167
167
  out?: string | undefined;
168
168
  }>>;
169
169
  export type CliCheckConfig = TypeOf<typeof cliConfigCheck>;