drizzle-kit 0.20.17-9d75ea5 → 0.20.17-a2979a1
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +26299 -25536
- package/cli/commands/migrate.d.ts +41 -41
- package/cli/commands/mysqlIntrospect.d.ts +8 -8
- package/cli/commands/pgIntrospect.d.ts +8 -8
- package/cli/commands/sqliteIntrospect.d.ts +12 -12
- package/cli/commands/utils.d.ts +2 -2
- package/cli/validations/cli.d.ts +28 -28
- package/cli/validations/common.d.ts +35 -35
- package/cli/validations/mysql.d.ts +4 -4
- package/cli/validations/outputs.d.ts +2 -1
- package/cli/validations/pg.d.ts +4 -4
- package/index.d.mts +48 -2
- package/index.d.ts +48 -2
- package/package.json +1 -1
- package/payload.js +1079 -475
- package/payload.mjs +886 -282
- package/schemaValidator.d.ts +222 -222
- package/serializer/mysqlSchema.d.ts +892 -892
- package/serializer/pgSchema.d.ts +749 -749
- package/serializer/sqliteSchema.d.ts +457 -457
- package/serializer/studio.d.ts +1 -1
- package/snapshotsDiffer.d.ts +316 -315
- package/utils-studio.js +947 -841
- package/utils-studio.mjs +920 -814
- package/utils.js +844 -219
- package/utils.mjs +819 -194
@@ -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>;
|
@@ -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: "
|
44
|
+
dialect: "pg";
|
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;
|
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>;
|
@@ -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: "
|
73
|
+
dialect: "pg";
|
74
74
|
schemas: Record<string, string>;
|
75
75
|
enums: Record<string, {
|
76
76
|
name: 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: {};
|
@@ -4,30 +4,30 @@ export declare const mysqlPushIntrospect: (db: DB, databaseName: string, filters
|
|
4
4
|
tables: Record<string, {
|
5
5
|
name: string;
|
6
6
|
columns: Record<string, {
|
7
|
-
default?: any;
|
8
|
-
onUpdate?: any;
|
9
|
-
autoincrement?: boolean | undefined;
|
10
7
|
name: string;
|
11
8
|
type: string;
|
12
9
|
primaryKey: boolean;
|
13
10
|
notNull: boolean;
|
11
|
+
default?: any;
|
12
|
+
onUpdate?: any;
|
13
|
+
autoincrement?: boolean | undefined;
|
14
14
|
}>;
|
15
15
|
indexes: Record<string, {
|
16
|
-
using?: "btree" | "hash" | undefined;
|
17
|
-
algorithm?: "default" | "inplace" | "copy" | undefined;
|
18
|
-
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
19
16
|
name: string;
|
20
17
|
columns: string[];
|
21
18
|
isUnique: boolean;
|
19
|
+
using?: "btree" | "hash" | undefined;
|
20
|
+
algorithm?: "default" | "inplace" | "copy" | undefined;
|
21
|
+
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
22
22
|
}>;
|
23
23
|
foreignKeys: Record<string, {
|
24
|
-
onUpdate?: string | undefined;
|
25
|
-
onDelete?: string | undefined;
|
26
24
|
name: string;
|
27
25
|
tableFrom: string;
|
28
26
|
columnsFrom: string[];
|
29
27
|
tableTo: string;
|
30
28
|
columnsTo: string[];
|
29
|
+
onUpdate?: string | undefined;
|
30
|
+
onDelete?: string | undefined;
|
31
31
|
}>;
|
32
32
|
compositePrimaryKeys: Record<string, {
|
33
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, {
|
@@ -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: "
|
46
|
+
dialect: "pg";
|
47
47
|
schemas: Record<string, string>;
|
48
48
|
_meta: {
|
49
49
|
columns: Record<string, string>;
|
@@ -6,31 +6,31 @@ export declare const sqliteIntrospect: (credentials: SqliteCredentials, filters:
|
|
6
6
|
tables: Record<string, {
|
7
7
|
name: string;
|
8
8
|
columns: Record<string, {
|
9
|
-
default?: any;
|
10
|
-
autoincrement?: boolean | undefined;
|
11
9
|
name: string;
|
12
10
|
type: string;
|
13
11
|
primaryKey: boolean;
|
14
12
|
notNull: boolean;
|
13
|
+
default?: any;
|
14
|
+
autoincrement?: boolean | undefined;
|
15
15
|
}>;
|
16
16
|
indexes: Record<string, {
|
17
|
-
where?: string | undefined;
|
18
17
|
name: string;
|
19
18
|
columns: string[];
|
20
19
|
isUnique: boolean;
|
20
|
+
where?: string | undefined;
|
21
21
|
}>;
|
22
22
|
foreignKeys: Record<string, {
|
23
|
-
onUpdate?: string | undefined;
|
24
|
-
onDelete?: string | undefined;
|
25
23
|
name: string;
|
26
24
|
tableFrom: string;
|
27
25
|
columnsFrom: string[];
|
28
26
|
tableTo: string;
|
29
27
|
columnsTo: string[];
|
28
|
+
onUpdate?: string | undefined;
|
29
|
+
onDelete?: string | undefined;
|
30
30
|
}>;
|
31
31
|
compositePrimaryKeys: Record<string, {
|
32
|
-
name?: string | undefined;
|
33
32
|
columns: string[];
|
33
|
+
name?: string | undefined;
|
34
34
|
}>;
|
35
35
|
uniqueConstraints: Record<string, {
|
36
36
|
name: string;
|
@@ -59,31 +59,31 @@ export declare const sqlitePushIntrospect: (db: SQLiteDB, filters: string[]) =>
|
|
59
59
|
tables: Record<string, {
|
60
60
|
name: string;
|
61
61
|
columns: Record<string, {
|
62
|
-
default?: any;
|
63
|
-
autoincrement?: boolean | undefined;
|
64
62
|
name: string;
|
65
63
|
type: string;
|
66
64
|
primaryKey: boolean;
|
67
65
|
notNull: boolean;
|
66
|
+
default?: any;
|
67
|
+
autoincrement?: boolean | undefined;
|
68
68
|
}>;
|
69
69
|
indexes: Record<string, {
|
70
|
-
where?: string | undefined;
|
71
70
|
name: string;
|
72
71
|
columns: string[];
|
73
72
|
isUnique: boolean;
|
73
|
+
where?: string | undefined;
|
74
74
|
}>;
|
75
75
|
foreignKeys: Record<string, {
|
76
|
-
onUpdate?: string | undefined;
|
77
|
-
onDelete?: string | undefined;
|
78
76
|
name: string;
|
79
77
|
tableFrom: string;
|
80
78
|
columnsFrom: string[];
|
81
79
|
tableTo: string;
|
82
80
|
columnsTo: string[];
|
81
|
+
onUpdate?: string | undefined;
|
82
|
+
onDelete?: string | undefined;
|
83
83
|
}>;
|
84
84
|
compositePrimaryKeys: Record<string, {
|
85
|
-
name?: string | undefined;
|
86
85
|
columns: string[];
|
86
|
+
name?: string | undefined;
|
87
87
|
}>;
|
88
88
|
uniqueConstraints: Record<string, {
|
89
89
|
name: string;
|
package/cli/commands/utils.d.ts
CHANGED
@@ -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: "
|
25
|
+
dialect: "pg";
|
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: "
|
41
|
+
dialect: "pg";
|
42
42
|
credentials: PostgresCredentials;
|
43
43
|
} | {
|
44
44
|
dialect: "sqlite";
|
package/cli/validations/cli.d.ts
CHANGED
@@ -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<["
|
3
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "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
|
-
name?: string | undefined;
|
12
|
-
schema?: string | string[] | undefined;
|
13
|
-
dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
|
14
|
-
config?: string | undefined;
|
15
11
|
custom: boolean;
|
16
12
|
out: string;
|
17
13
|
breakpoints: boolean;
|
14
|
+
name?: string | undefined;
|
15
|
+
schema?: string | string[] | undefined;
|
16
|
+
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
17
|
+
config?: string | undefined;
|
18
18
|
}, {
|
19
19
|
name?: string | undefined;
|
20
20
|
custom?: boolean | undefined;
|
21
21
|
schema?: string | string[] | undefined;
|
22
|
-
dialect?: "mysql" | "
|
22
|
+
dialect?: "mysql" | "pg" | "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<["
|
29
|
+
dialect: import("zod").ZodEnum<["pg", "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
|
-
|
33
|
-
driver: import("zod").
|
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
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,6 +44,9 @@ 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;
|
@@ -53,15 +56,14 @@ export declare const pushParams: import("zod").ZodObject<{
|
|
53
56
|
password?: string | undefined;
|
54
57
|
database?: string | undefined;
|
55
58
|
uri?: string | undefined;
|
56
|
-
driver?: string | undefined;
|
57
59
|
connectionString?: string | undefined;
|
58
60
|
ssl?: string | undefined;
|
59
61
|
authToken?: string | undefined;
|
60
62
|
tablesFilter?: string | string[] | undefined;
|
61
63
|
verbose?: boolean | undefined;
|
62
|
-
dialect: "mysql" | "postgresql" | "sqlite";
|
63
|
-
schemaFilter: string | string[];
|
64
64
|
}, {
|
65
|
+
dialect: "mysql" | "pg" | "sqlite";
|
66
|
+
driver: string;
|
65
67
|
strict?: boolean | undefined;
|
66
68
|
schema?: string | string[] | undefined;
|
67
69
|
url?: string | undefined;
|
@@ -71,19 +73,17 @@ export declare const pushParams: import("zod").ZodObject<{
|
|
71
73
|
password?: string | undefined;
|
72
74
|
database?: string | undefined;
|
73
75
|
uri?: string | undefined;
|
74
|
-
driver?: string | undefined;
|
75
76
|
connectionString?: string | undefined;
|
76
77
|
ssl?: string | undefined;
|
77
78
|
authToken?: string | undefined;
|
78
79
|
tablesFilter?: string | string[] | undefined;
|
79
|
-
schemaFilter?: string | string[] | undefined;
|
80
80
|
verbose?: boolean | undefined;
|
81
|
-
|
81
|
+
schemaFilters?: string | string[] | undefined;
|
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<["
|
86
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "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">]>>>;
|
@@ -101,7 +101,11 @@ export declare const pullParams: import("zod").ZodObject<{
|
|
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
|
-
|
104
|
+
out: string;
|
105
|
+
breakpoints: boolean;
|
106
|
+
schemaFilter: string | string[];
|
107
|
+
introspectCasing: "camel" | "preserve";
|
108
|
+
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
105
109
|
url?: string | undefined;
|
106
110
|
host?: string | undefined;
|
107
111
|
port?: string | undefined;
|
@@ -115,12 +119,8 @@ export declare const pullParams: import("zod").ZodObject<{
|
|
115
119
|
authToken?: string | undefined;
|
116
120
|
config?: string | undefined;
|
117
121
|
tablesFilter?: string | string[] | undefined;
|
118
|
-
out: string;
|
119
|
-
breakpoints: boolean;
|
120
|
-
schemaFilter: string | string[];
|
121
|
-
introspectCasing: "camel" | "preserve";
|
122
122
|
}, {
|
123
|
-
dialect?: "mysql" | "
|
123
|
+
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
124
124
|
url?: string | undefined;
|
125
125
|
host?: string | undefined;
|
126
126
|
port?: string | undefined;
|
@@ -141,13 +141,13 @@ export declare const pullParams: import("zod").ZodObject<{
|
|
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<["
|
144
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
|
145
145
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
146
146
|
}, "strip", import("zod").ZodTypeAny, {
|
147
|
-
dialect?: "mysql" | "
|
147
|
+
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
148
148
|
out?: string | undefined;
|
149
149
|
}, {
|
150
|
-
dialect?: "mysql" | "
|
150
|
+
dialect?: "mysql" | "pg" | "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<["
|
160
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
|
161
161
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
162
162
|
}, "strip", import("zod").ZodTypeAny, {
|
163
|
-
dialect?: "mysql" | "
|
163
|
+
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
164
164
|
out?: string | undefined;
|
165
165
|
}, {
|
166
|
-
dialect?: "mysql" | "
|
166
|
+
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
167
167
|
out?: string | undefined;
|
168
168
|
}>>;
|
169
169
|
export type CliCheckConfig = TypeOf<typeof cliConfigCheck>;
|