drizzle-kit 0.20.17-9f0ea64 → 0.20.17-a2979a1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin.cjs +64169 -35166
- package/cli/commands/migrate.d.ts +39 -39
- package/cli/commands/mysqlIntrospect.d.ts +8 -13
- package/cli/commands/pgIntrospect.d.ts +7 -7
- package/cli/commands/sqliteIntrospect.d.ts +12 -13
- package/cli/commands/sqlitePushUtils.d.ts +2 -2
- package/cli/connections.d.ts +13 -0
- package/cli/validations/cli.d.ts +31 -31
- package/cli/validations/common.d.ts +29 -29
- package/cli/validations/mysql.d.ts +7 -13
- package/cli/validations/outputs.d.ts +1 -0
- package/cli/validations/pg.d.ts +22 -7
- package/cli/validations/sqlite.d.ts +0 -12
- package/index.d.mts +5 -5
- package/index.d.ts +5 -5
- package/package.json +4 -1
- package/payload.js +2244 -20023
- package/payload.mjs +2065 -19844
- package/schemaValidator.d.ts +215 -215
- package/serializer/mysqlSchema.d.ts +892 -892
- package/serializer/pgSchema.d.ts +734 -734
- package/serializer/sqliteSchema.d.ts +457 -457
- package/serializer/studio.d.ts +51 -0
- package/snapshotsDiffer.d.ts +314 -314
- package/utils-studio.js +1016 -3346
- package/utils-studio.mjs +989 -3319
- package/utils.d.ts +6 -0
- package/utils.js +839 -214
- package/utils.mjs +814 -189
|
@@ -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;
|
|
27
31
|
isUnique?: any;
|
|
28
32
|
default?: any;
|
|
29
33
|
typeSchema?: string | undefined;
|
|
30
34
|
uniqueName?: string | undefined;
|
|
31
35
|
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>;
|
|
@@ -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;
|
|
56
60
|
isUnique?: any;
|
|
57
61
|
default?: any;
|
|
58
62
|
typeSchema?: string | undefined;
|
|
59
63
|
uniqueName?: string | undefined;
|
|
60
64
|
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>;
|
|
@@ -83,40 +83,33 @@ 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;
|
|
93
86
|
tables: Record<string, {
|
|
94
87
|
name: string;
|
|
95
88
|
columns: Record<string, {
|
|
96
|
-
default?: any;
|
|
97
|
-
onUpdate?: any;
|
|
98
|
-
autoincrement?: boolean | undefined;
|
|
99
89
|
name: string;
|
|
100
90
|
type: string;
|
|
101
91
|
primaryKey: boolean;
|
|
102
92
|
notNull: boolean;
|
|
93
|
+
default?: any;
|
|
94
|
+
onUpdate?: any;
|
|
95
|
+
autoincrement?: boolean | undefined;
|
|
103
96
|
}>;
|
|
104
97
|
indexes: Record<string, {
|
|
105
|
-
using?: "btree" | "hash" | undefined;
|
|
106
|
-
algorithm?: "default" | "inplace" | "copy" | undefined;
|
|
107
|
-
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
|
108
98
|
name: string;
|
|
109
99
|
columns: string[];
|
|
110
100
|
isUnique: boolean;
|
|
101
|
+
using?: "btree" | "hash" | undefined;
|
|
102
|
+
algorithm?: "default" | "inplace" | "copy" | undefined;
|
|
103
|
+
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
|
111
104
|
}>;
|
|
112
105
|
foreignKeys: Record<string, {
|
|
113
|
-
onUpdate?: string | undefined;
|
|
114
|
-
onDelete?: string | undefined;
|
|
115
106
|
name: string;
|
|
116
107
|
tableFrom: string;
|
|
117
108
|
columnsFrom: string[];
|
|
118
109
|
tableTo: string;
|
|
119
110
|
columnsTo: string[];
|
|
111
|
+
onUpdate?: string | undefined;
|
|
112
|
+
onDelete?: string | undefined;
|
|
120
113
|
}>;
|
|
121
114
|
compositePrimaryKeys: Record<string, {
|
|
122
115
|
name: string;
|
|
@@ -135,8 +128,6 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
|
|
|
135
128
|
columns: Record<string, string>;
|
|
136
129
|
tables: Record<string, string>;
|
|
137
130
|
};
|
|
138
|
-
};
|
|
139
|
-
validatedPrev: {
|
|
140
131
|
internal?: {
|
|
141
132
|
tables: Record<string, {
|
|
142
133
|
columns: Record<string, {
|
|
@@ -144,33 +135,35 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
|
|
|
144
135
|
} | undefined>;
|
|
145
136
|
} | undefined>;
|
|
146
137
|
} | undefined;
|
|
138
|
+
};
|
|
139
|
+
validatedPrev: {
|
|
147
140
|
tables: Record<string, {
|
|
148
141
|
name: string;
|
|
149
142
|
columns: Record<string, {
|
|
150
|
-
default?: any;
|
|
151
|
-
onUpdate?: any;
|
|
152
|
-
autoincrement?: boolean | undefined;
|
|
153
143
|
name: string;
|
|
154
144
|
type: string;
|
|
155
145
|
primaryKey: boolean;
|
|
156
146
|
notNull: boolean;
|
|
147
|
+
default?: any;
|
|
148
|
+
onUpdate?: any;
|
|
149
|
+
autoincrement?: boolean | undefined;
|
|
157
150
|
}>;
|
|
158
151
|
indexes: Record<string, {
|
|
159
|
-
using?: "btree" | "hash" | undefined;
|
|
160
|
-
algorithm?: "default" | "inplace" | "copy" | undefined;
|
|
161
|
-
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
|
162
152
|
name: string;
|
|
163
153
|
columns: string[];
|
|
164
154
|
isUnique: boolean;
|
|
155
|
+
using?: "btree" | "hash" | undefined;
|
|
156
|
+
algorithm?: "default" | "inplace" | "copy" | undefined;
|
|
157
|
+
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
|
165
158
|
}>;
|
|
166
159
|
foreignKeys: Record<string, {
|
|
167
|
-
onUpdate?: string | undefined;
|
|
168
|
-
onDelete?: string | undefined;
|
|
169
160
|
name: string;
|
|
170
161
|
tableFrom: string;
|
|
171
162
|
columnsFrom: string[];
|
|
172
163
|
tableTo: string;
|
|
173
164
|
columnsTo: string[];
|
|
165
|
+
onUpdate?: string | undefined;
|
|
166
|
+
onDelete?: string | undefined;
|
|
174
167
|
}>;
|
|
175
168
|
compositePrimaryKeys: Record<string, {
|
|
176
169
|
name: string;
|
|
@@ -189,6 +182,13 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
|
|
|
189
182
|
columns: Record<string, string>;
|
|
190
183
|
tables: Record<string, string>;
|
|
191
184
|
};
|
|
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,16 +197,15 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
|
|
|
197
197
|
sqlStatements: string[];
|
|
198
198
|
statements: import("../../jsonStatements").JsonStatement[];
|
|
199
199
|
squashedPrev: {
|
|
200
|
-
enums?: any;
|
|
201
200
|
tables: Record<string, {
|
|
202
201
|
name: string;
|
|
203
202
|
columns: Record<string, {
|
|
204
|
-
default?: any;
|
|
205
|
-
autoincrement?: boolean | undefined;
|
|
206
203
|
name: string;
|
|
207
204
|
type: string;
|
|
208
205
|
primaryKey: boolean;
|
|
209
206
|
notNull: boolean;
|
|
207
|
+
default?: any;
|
|
208
|
+
autoincrement?: boolean | undefined;
|
|
210
209
|
}>;
|
|
211
210
|
indexes: Record<string, string>;
|
|
212
211
|
foreignKeys: Record<string, string>;
|
|
@@ -215,18 +214,18 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
|
|
|
215
214
|
}>;
|
|
216
215
|
version: "5";
|
|
217
216
|
dialect: "sqlite";
|
|
217
|
+
enums?: any;
|
|
218
218
|
};
|
|
219
219
|
squashedCur: {
|
|
220
|
-
enums?: any;
|
|
221
220
|
tables: Record<string, {
|
|
222
221
|
name: string;
|
|
223
222
|
columns: Record<string, {
|
|
224
|
-
default?: any;
|
|
225
|
-
autoincrement?: boolean | undefined;
|
|
226
223
|
name: string;
|
|
227
224
|
type: string;
|
|
228
225
|
primaryKey: boolean;
|
|
229
226
|
notNull: boolean;
|
|
227
|
+
default?: any;
|
|
228
|
+
autoincrement?: boolean | undefined;
|
|
230
229
|
}>;
|
|
231
230
|
indexes: Record<string, string>;
|
|
232
231
|
foreignKeys: Record<string, string>;
|
|
@@ -235,6 +234,7 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
|
|
|
235
234
|
}>;
|
|
236
235
|
version: "5";
|
|
237
236
|
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, {
|
|
12
|
-
default?: any;
|
|
13
|
-
onUpdate?: any;
|
|
14
|
-
autoincrement?: boolean | undefined;
|
|
15
7
|
name: string;
|
|
16
8
|
type: string;
|
|
17
9
|
primaryKey: boolean;
|
|
18
10
|
notNull: boolean;
|
|
11
|
+
default?: any;
|
|
12
|
+
onUpdate?: any;
|
|
13
|
+
autoincrement?: boolean | undefined;
|
|
19
14
|
}>;
|
|
20
15
|
indexes: Record<string, {
|
|
21
|
-
using?: "btree" | "hash" | undefined;
|
|
22
|
-
algorithm?: "default" | "inplace" | "copy" | undefined;
|
|
23
|
-
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
|
24
16
|
name: string;
|
|
25
17
|
columns: string[];
|
|
26
18
|
isUnique: boolean;
|
|
19
|
+
using?: "btree" | "hash" | undefined;
|
|
20
|
+
algorithm?: "default" | "inplace" | "copy" | undefined;
|
|
21
|
+
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
|
27
22
|
}>;
|
|
28
23
|
foreignKeys: Record<string, {
|
|
29
|
-
onUpdate?: string | undefined;
|
|
30
|
-
onDelete?: string | undefined;
|
|
31
24
|
name: string;
|
|
32
25
|
tableFrom: string;
|
|
33
26
|
columnsFrom: string[];
|
|
34
27
|
tableTo: string;
|
|
35
28
|
columnsTo: string[];
|
|
29
|
+
onUpdate?: string | undefined;
|
|
30
|
+
onDelete?: string | undefined;
|
|
36
31
|
}>;
|
|
37
32
|
compositePrimaryKeys: Record<string, {
|
|
38
33
|
name: 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;
|
|
7
11
|
isUnique?: any;
|
|
8
12
|
default?: any;
|
|
9
13
|
typeSchema?: string | undefined;
|
|
10
14
|
uniqueName?: string | undefined;
|
|
11
15
|
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;
|
|
26
23
|
name: string;
|
|
27
24
|
tableFrom: string;
|
|
28
25
|
columnsFrom: string[];
|
|
29
26
|
tableTo: string;
|
|
30
27
|
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, {
|
|
@@ -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, {
|
|
10
|
-
default?: any;
|
|
11
|
-
autoincrement?: boolean | undefined;
|
|
12
9
|
name: string;
|
|
13
10
|
type: string;
|
|
14
11
|
primaryKey: boolean;
|
|
15
12
|
notNull: boolean;
|
|
13
|
+
default?: any;
|
|
14
|
+
autoincrement?: boolean | undefined;
|
|
16
15
|
}>;
|
|
17
16
|
indexes: Record<string, {
|
|
18
|
-
where?: string | undefined;
|
|
19
17
|
name: string;
|
|
20
18
|
columns: string[];
|
|
21
19
|
isUnique: boolean;
|
|
20
|
+
where?: string | undefined;
|
|
22
21
|
}>;
|
|
23
22
|
foreignKeys: Record<string, {
|
|
24
|
-
onUpdate?: string | undefined;
|
|
25
|
-
onDelete?: string | undefined;
|
|
26
23
|
name: string;
|
|
27
24
|
tableFrom: string;
|
|
28
25
|
columnsFrom: string[];
|
|
29
26
|
tableTo: string;
|
|
30
27
|
columnsTo: string[];
|
|
28
|
+
onUpdate?: string | undefined;
|
|
29
|
+
onDelete?: string | undefined;
|
|
31
30
|
}>;
|
|
32
31
|
compositePrimaryKeys: Record<string, {
|
|
33
|
-
name?: string | undefined;
|
|
34
32
|
columns: string[];
|
|
33
|
+
name?: string | undefined;
|
|
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, {
|
|
63
|
-
default?: any;
|
|
64
|
-
autoincrement?: boolean | undefined;
|
|
65
62
|
name: string;
|
|
66
63
|
type: string;
|
|
67
64
|
primaryKey: boolean;
|
|
68
65
|
notNull: boolean;
|
|
66
|
+
default?: any;
|
|
67
|
+
autoincrement?: boolean | undefined;
|
|
69
68
|
}>;
|
|
70
69
|
indexes: Record<string, {
|
|
71
|
-
where?: string | undefined;
|
|
72
70
|
name: string;
|
|
73
71
|
columns: string[];
|
|
74
72
|
isUnique: boolean;
|
|
73
|
+
where?: string | undefined;
|
|
75
74
|
}>;
|
|
76
75
|
foreignKeys: Record<string, {
|
|
77
|
-
onUpdate?: string | undefined;
|
|
78
|
-
onDelete?: string | undefined;
|
|
79
76
|
name: string;
|
|
80
77
|
tableFrom: string;
|
|
81
78
|
columnsFrom: string[];
|
|
82
79
|
tableTo: string;
|
|
83
80
|
columnsTo: string[];
|
|
81
|
+
onUpdate?: string | undefined;
|
|
82
|
+
onDelete?: string | undefined;
|
|
84
83
|
}>;
|
|
85
84
|
compositePrimaryKeys: Record<string, {
|
|
86
|
-
name?: string | undefined;
|
|
87
85
|
columns: string[];
|
|
86
|
+
name?: string | undefined;
|
|
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 {
|
|
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:
|
|
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[];
|
|
@@ -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/validations/cli.d.ts
CHANGED
|
@@ -8,13 +8,13 @@ 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;
|
|
11
14
|
name?: string | undefined;
|
|
12
15
|
schema?: string | string[] | undefined;
|
|
13
16
|
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
|
14
17
|
config?: string | undefined;
|
|
15
|
-
custom: boolean;
|
|
16
|
-
out: string;
|
|
17
|
-
breakpoints: boolean;
|
|
18
18
|
}, {
|
|
19
19
|
name?: string | undefined;
|
|
20
20
|
custom?: boolean | undefined;
|
|
@@ -44,41 +44,41 @@ 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[];
|
|
47
50
|
strict?: boolean | undefined;
|
|
48
51
|
schema?: string | string[] | undefined;
|
|
49
52
|
url?: string | undefined;
|
|
50
|
-
tablesFilter?: string | string[] | undefined;
|
|
51
|
-
verbose?: boolean | undefined;
|
|
52
53
|
host?: string | undefined;
|
|
53
54
|
port?: string | undefined;
|
|
54
55
|
user?: string | undefined;
|
|
55
56
|
password?: string | undefined;
|
|
56
57
|
database?: string | undefined;
|
|
57
|
-
connectionString?: string | undefined;
|
|
58
58
|
uri?: string | undefined;
|
|
59
|
+
connectionString?: string | undefined;
|
|
59
60
|
ssl?: string | undefined;
|
|
60
61
|
authToken?: string | undefined;
|
|
62
|
+
tablesFilter?: string | string[] | undefined;
|
|
63
|
+
verbose?: boolean | undefined;
|
|
64
|
+
}, {
|
|
61
65
|
dialect: "mysql" | "pg" | "sqlite";
|
|
62
66
|
driver: string;
|
|
63
|
-
schemaFilters: string | string[];
|
|
64
|
-
}, {
|
|
65
67
|
strict?: boolean | undefined;
|
|
66
68
|
schema?: string | string[] | undefined;
|
|
67
69
|
url?: string | undefined;
|
|
68
|
-
tablesFilter?: string | string[] | undefined;
|
|
69
|
-
verbose?: boolean | undefined;
|
|
70
70
|
host?: string | undefined;
|
|
71
71
|
port?: string | undefined;
|
|
72
72
|
user?: string | undefined;
|
|
73
73
|
password?: string | undefined;
|
|
74
74
|
database?: string | undefined;
|
|
75
|
-
connectionString?: string | undefined;
|
|
76
|
-
schemaFilters?: string | string[] | undefined;
|
|
77
75
|
uri?: string | undefined;
|
|
76
|
+
connectionString?: string | undefined;
|
|
78
77
|
ssl?: string | undefined;
|
|
79
78
|
authToken?: string | undefined;
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
tablesFilter?: string | string[] | undefined;
|
|
80
|
+
verbose?: boolean | undefined;
|
|
81
|
+
schemaFilters?: string | string[] | undefined;
|
|
82
82
|
}>;
|
|
83
83
|
export type PushParams = TypeOf<typeof pushParams>;
|
|
84
84
|
export declare const pullParams: import("zod").ZodObject<{
|
|
@@ -98,46 +98,46 @@ 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
|
-
|
|
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
103
|
}, "strip", import("zod").ZodTypeAny, {
|
|
104
|
+
out: string;
|
|
105
|
+
breakpoints: boolean;
|
|
106
|
+
schemaFilter: string | string[];
|
|
107
|
+
introspectCasing: "camel" | "preserve";
|
|
104
108
|
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
|
105
109
|
url?: string | undefined;
|
|
106
|
-
config?: string | undefined;
|
|
107
|
-
driver?: string | undefined;
|
|
108
|
-
tablesFilter?: string | string[] | undefined;
|
|
109
110
|
host?: string | undefined;
|
|
110
111
|
port?: string | undefined;
|
|
111
112
|
user?: string | undefined;
|
|
112
113
|
password?: string | undefined;
|
|
113
114
|
database?: string | undefined;
|
|
114
|
-
connectionString?: string | undefined;
|
|
115
115
|
uri?: string | undefined;
|
|
116
|
+
driver?: string | undefined;
|
|
117
|
+
connectionString?: string | undefined;
|
|
116
118
|
ssl?: string | undefined;
|
|
117
119
|
authToken?: string | undefined;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
schemaFilter: string | string[];
|
|
121
|
-
"introspect-casing": "camel" | "preserve";
|
|
120
|
+
config?: string | undefined;
|
|
121
|
+
tablesFilter?: string | string[] | undefined;
|
|
122
122
|
}, {
|
|
123
123
|
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
|
124
124
|
url?: string | undefined;
|
|
125
|
-
config?: string | undefined;
|
|
126
|
-
out?: string | undefined;
|
|
127
|
-
breakpoints?: boolean | undefined;
|
|
128
|
-
driver?: string | undefined;
|
|
129
|
-
tablesFilter?: string | string[] | undefined;
|
|
130
|
-
schemaFilter?: string | 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
|
-
|
|
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<{
|