drizzle-kit 0.20.17-8b4d89e → 0.20.17-9f0ea64
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +17975 -7386
- package/cli/commands/migrate.d.ts +41 -41
- package/cli/commands/mysqlIntrospect.d.ts +9 -9
- package/cli/commands/pgIntrospect.d.ts +7 -7
- package/cli/commands/sqliteIntrospect.d.ts +12 -12
- package/cli/utils.d.ts +1 -0
- package/cli/validations/cli.d.ts +11 -11
- package/cli/validations/common.d.ts +27 -27
- package/cli/validations/mysql.d.ts +4 -4
- package/cli/validations/pg.d.ts +4 -10
- package/index.d.mts +15 -9
- package/index.d.ts +15 -9
- package/package.json +9 -6
- package/payload.js +3145 -3787
- package/payload.mjs +322 -964
- package/schemaValidator.d.ts +221 -221
- package/serializer/mysqlSchema.d.ts +910 -1224
- package/serializer/pgSchema.d.ts +734 -734
- package/serializer/sqliteSchema.d.ts +457 -457
- package/snapshotsDiffer.d.ts +314 -314
- package/utils-studio.js +926 -1051
- package/utils-studio.mjs +888 -1013
- package/utils.js +217 -852
- package/utils.mjs +192 -827
@@ -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>;
|
@@ -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>;
|
@@ -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: "
|
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: "
|
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: {};
|
@@ -9,30 +9,30 @@ export declare const mysqlPushIntrospect: (db: DB, databaseName: string, filters
|
|
9
9
|
tables: Record<string, {
|
10
10
|
name: string;
|
11
11
|
columns: Record<string, {
|
12
|
+
default?: any;
|
13
|
+
onUpdate?: any;
|
14
|
+
autoincrement?: boolean | undefined;
|
12
15
|
name: string;
|
13
16
|
type: string;
|
14
17
|
primaryKey: boolean;
|
15
18
|
notNull: boolean;
|
16
|
-
default?: any;
|
17
|
-
onUpdate?: any;
|
18
|
-
autoincrement?: boolean | undefined;
|
19
19
|
}>;
|
20
20
|
indexes: Record<string, {
|
21
|
-
name: string;
|
22
|
-
columns: string[];
|
23
|
-
isUnique: boolean;
|
24
21
|
using?: "btree" | "hash" | undefined;
|
25
22
|
algorithm?: "default" | "inplace" | "copy" | undefined;
|
26
23
|
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
24
|
+
name: string;
|
25
|
+
columns: string[];
|
26
|
+
isUnique: boolean;
|
27
27
|
}>;
|
28
28
|
foreignKeys: Record<string, {
|
29
|
+
onUpdate?: string | undefined;
|
30
|
+
onDelete?: string | undefined;
|
29
31
|
name: string;
|
30
32
|
tableFrom: string;
|
31
33
|
columnsFrom: string[];
|
32
34
|
tableTo: string;
|
33
35
|
columnsTo: string[];
|
34
|
-
onUpdate?: string | undefined;
|
35
|
-
onDelete?: string | undefined;
|
36
36
|
}>;
|
37
37
|
compositePrimaryKeys: Record<string, {
|
38
38
|
name: string;
|
@@ -45,7 +45,7 @@ export declare const mysqlPushIntrospect: (db: DB, databaseName: string, filters
|
|
45
45
|
}>;
|
46
46
|
id: string;
|
47
47
|
prevId: string;
|
48
|
-
version: "
|
48
|
+
version: "5";
|
49
49
|
dialect: "mysql";
|
50
50
|
_meta: {
|
51
51
|
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, {
|
@@ -7,31 +7,31 @@ export declare const sqliteIntrospect: (credentials: SqliteCredentials, filters:
|
|
7
7
|
tables: Record<string, {
|
8
8
|
name: string;
|
9
9
|
columns: Record<string, {
|
10
|
+
default?: any;
|
11
|
+
autoincrement?: boolean | undefined;
|
10
12
|
name: string;
|
11
13
|
type: string;
|
12
14
|
primaryKey: boolean;
|
13
15
|
notNull: boolean;
|
14
|
-
default?: any;
|
15
|
-
autoincrement?: boolean | undefined;
|
16
16
|
}>;
|
17
17
|
indexes: Record<string, {
|
18
|
+
where?: string | undefined;
|
18
19
|
name: string;
|
19
20
|
columns: string[];
|
20
21
|
isUnique: boolean;
|
21
|
-
where?: string | undefined;
|
22
22
|
}>;
|
23
23
|
foreignKeys: Record<string, {
|
24
|
+
onUpdate?: string | undefined;
|
25
|
+
onDelete?: string | undefined;
|
24
26
|
name: string;
|
25
27
|
tableFrom: string;
|
26
28
|
columnsFrom: string[];
|
27
29
|
tableTo: string;
|
28
30
|
columnsTo: string[];
|
29
|
-
onUpdate?: string | undefined;
|
30
|
-
onDelete?: string | undefined;
|
31
31
|
}>;
|
32
32
|
compositePrimaryKeys: Record<string, {
|
33
|
-
columns: string[];
|
34
33
|
name?: string | undefined;
|
34
|
+
columns: string[];
|
35
35
|
}>;
|
36
36
|
uniqueConstraints: Record<string, {
|
37
37
|
name: string;
|
@@ -60,31 +60,31 @@ export declare const sqlitePushIntrospect: (db: SQLiteDB, filters: string[]) =>
|
|
60
60
|
tables: Record<string, {
|
61
61
|
name: string;
|
62
62
|
columns: Record<string, {
|
63
|
+
default?: any;
|
64
|
+
autoincrement?: boolean | undefined;
|
63
65
|
name: string;
|
64
66
|
type: string;
|
65
67
|
primaryKey: boolean;
|
66
68
|
notNull: boolean;
|
67
|
-
default?: any;
|
68
|
-
autoincrement?: boolean | undefined;
|
69
69
|
}>;
|
70
70
|
indexes: Record<string, {
|
71
|
+
where?: string | undefined;
|
71
72
|
name: string;
|
72
73
|
columns: string[];
|
73
74
|
isUnique: boolean;
|
74
|
-
where?: string | undefined;
|
75
75
|
}>;
|
76
76
|
foreignKeys: Record<string, {
|
77
|
+
onUpdate?: string | undefined;
|
78
|
+
onDelete?: string | undefined;
|
77
79
|
name: string;
|
78
80
|
tableFrom: string;
|
79
81
|
columnsFrom: string[];
|
80
82
|
tableTo: string;
|
81
83
|
columnsTo: string[];
|
82
|
-
onUpdate?: string | undefined;
|
83
|
-
onDelete?: string | undefined;
|
84
84
|
}>;
|
85
85
|
compositePrimaryKeys: Record<string, {
|
86
|
-
columns: string[];
|
87
86
|
name?: string | undefined;
|
87
|
+
columns: string[];
|
88
88
|
}>;
|
89
89
|
uniqueConstraints: Record<string, {
|
90
90
|
name: string;
|
package/cli/utils.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
export declare const assertExists: (it?: any) => void;
|
2
2
|
export declare const assertStudioNodeVersion: () => void;
|
3
|
+
export declare const checkPackage: (it: string) => Promise<boolean>;
|
3
4
|
export declare const assertPackages: (...pkgs: string[]) => Promise<void>;
|
4
5
|
export declare const assertEitherPackage: (...pkgs: string[]) => Promise<string[]>;
|
5
6
|
export declare const assertOrmCoreVersion: () => Promise<void>;
|
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;
|
14
11
|
name?: string | undefined;
|
15
12
|
schema?: string | string[] | undefined;
|
16
13
|
dialect?: "mysql" | "pg" | "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;
|
@@ -44,9 +44,6 @@ 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;
|
@@ -61,9 +58,10 @@ export declare const pushParams: import("zod").ZodObject<{
|
|
61
58
|
uri?: string | undefined;
|
62
59
|
ssl?: string | undefined;
|
63
60
|
authToken?: string | undefined;
|
64
|
-
}, {
|
65
61
|
dialect: "mysql" | "pg" | "sqlite";
|
66
62
|
driver: string;
|
63
|
+
schemaFilters: string | string[];
|
64
|
+
}, {
|
67
65
|
strict?: boolean | undefined;
|
68
66
|
schema?: string | string[] | undefined;
|
69
67
|
url?: string | undefined;
|
@@ -79,6 +77,8 @@ export declare const pushParams: import("zod").ZodObject<{
|
|
79
77
|
uri?: string | undefined;
|
80
78
|
ssl?: string | undefined;
|
81
79
|
authToken?: string | undefined;
|
80
|
+
dialect: "mysql" | "pg" | "sqlite";
|
81
|
+
driver: string;
|
82
82
|
}>;
|
83
83
|
export type PushParams = TypeOf<typeof pushParams>;
|
84
84
|
export declare const pullParams: import("zod").ZodObject<{
|
@@ -101,10 +101,6 @@ export declare const pullParams: import("zod").ZodObject<{
|
|
101
101
|
"introspect-casing": 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
|
-
"introspect-casing": "camel" | "preserve";
|
108
104
|
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
109
105
|
url?: string | undefined;
|
110
106
|
config?: string | undefined;
|
@@ -119,6 +115,10 @@ export declare const pullParams: import("zod").ZodObject<{
|
|
119
115
|
uri?: string | undefined;
|
120
116
|
ssl?: string | undefined;
|
121
117
|
authToken?: string | undefined;
|
118
|
+
out: string;
|
119
|
+
breakpoints: boolean;
|
120
|
+
schemaFilter: string | string[];
|
121
|
+
"introspect-casing": "camel" | "preserve";
|
122
122
|
}, {
|
123
123
|
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
124
124
|
url?: string | undefined;
|
@@ -20,21 +20,21 @@ export declare const configCommonSchema: import("zod").ZodObject<{
|
|
20
20
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
21
21
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
22
22
|
}, "strip", import("zod").ZodTypeAny, {
|
23
|
-
schema: string | string[];
|
24
|
-
dialect: "mysql" | "pg" | "sqlite";
|
25
|
-
breakpoints: boolean;
|
26
|
-
schemaFilter: string | string[];
|
27
23
|
out?: string | undefined;
|
28
24
|
driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
|
29
25
|
tablesFilter?: string | string[] | undefined;
|
30
|
-
}, {
|
31
26
|
schema: string | string[];
|
32
27
|
dialect: "mysql" | "pg" | "sqlite";
|
28
|
+
breakpoints: boolean;
|
29
|
+
schemaFilter: string | string[];
|
30
|
+
}, {
|
33
31
|
out?: string | undefined;
|
34
32
|
breakpoints?: boolean | undefined;
|
35
33
|
driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
|
36
34
|
tablesFilter?: string | string[] | undefined;
|
37
35
|
schemaFilter?: string | string[] | undefined;
|
36
|
+
schema: string | string[];
|
37
|
+
dialect: "mysql" | "pg" | "sqlite";
|
38
38
|
}>;
|
39
39
|
export declare const casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
40
40
|
export declare const introspectParams: import("zod").ZodObject<{
|
@@ -51,14 +51,14 @@ export declare const introspectParams: import("zod").ZodObject<{
|
|
51
51
|
casing?: "camel" | "preserve" | undefined;
|
52
52
|
}>>;
|
53
53
|
}, "strip", import("zod").ZodTypeAny, {
|
54
|
+
schema?: string | string[] | undefined;
|
55
|
+
tablesFilter?: string | string[] | undefined;
|
54
56
|
introspect: {
|
55
57
|
casing: "camel" | "preserve";
|
56
58
|
};
|
57
59
|
out: string;
|
58
60
|
breakpoints: boolean;
|
59
61
|
schemaFilter: string | string[];
|
60
|
-
schema?: string | string[] | undefined;
|
61
|
-
tablesFilter?: string | string[] | undefined;
|
62
62
|
}, {
|
63
63
|
schema?: string | string[] | undefined;
|
64
64
|
introspect?: {
|
@@ -79,12 +79,12 @@ export declare const configIntrospectCliSchema: import("zod").ZodObject<{
|
|
79
79
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
80
80
|
introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
81
81
|
}, "strip", import("zod").ZodTypeAny, {
|
82
|
+
schema?: string | string[] | undefined;
|
83
|
+
tablesFilter?: string | string[] | undefined;
|
82
84
|
out: string;
|
83
85
|
breakpoints: boolean;
|
84
86
|
schemaFilter: string | string[];
|
85
87
|
introspectCasing: "camel" | "preserve";
|
86
|
-
schema?: string | string[] | undefined;
|
87
|
-
tablesFilter?: string | string[] | undefined;
|
88
88
|
}, {
|
89
89
|
schema?: string | string[] | undefined;
|
90
90
|
out?: string | undefined;
|
@@ -102,9 +102,9 @@ export declare const configGenerateSchema: import("zod").ZodObject<{
|
|
102
102
|
out: string;
|
103
103
|
breakpoints: boolean;
|
104
104
|
}, {
|
105
|
-
schema: string | string[];
|
106
105
|
out?: string | undefined;
|
107
106
|
breakpoints?: boolean | undefined;
|
107
|
+
schema: string | string[];
|
108
108
|
}>;
|
109
109
|
export type GenerateSchema = TypeOf<typeof configGenerateSchema>;
|
110
110
|
export declare const configPushSchema: import("zod").ZodObject<{
|
@@ -116,21 +116,21 @@ export declare const configPushSchema: import("zod").ZodObject<{
|
|
116
116
|
strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
117
117
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
118
118
|
}, "strip", import("zod").ZodTypeAny, {
|
119
|
+
out?: string | undefined;
|
120
|
+
tablesFilter?: string | string[] | undefined;
|
119
121
|
strict: boolean;
|
120
122
|
schema: string | string[];
|
121
123
|
dialect: "mysql" | "pg" | "sqlite";
|
122
124
|
schemaFilter: string | string[];
|
123
125
|
verbose: boolean;
|
124
|
-
out?: string | undefined;
|
125
|
-
tablesFilter?: string | string[] | undefined;
|
126
126
|
}, {
|
127
|
-
schema: string | string[];
|
128
|
-
dialect: "mysql" | "pg" | "sqlite";
|
129
127
|
strict?: boolean | undefined;
|
130
128
|
out?: string | undefined;
|
131
129
|
tablesFilter?: string | string[] | undefined;
|
132
130
|
schemaFilter?: string | string[] | undefined;
|
133
131
|
verbose?: boolean | undefined;
|
132
|
+
schema: string | string[];
|
133
|
+
dialect: "mysql" | "pg" | "sqlite";
|
134
134
|
}>;
|
135
135
|
export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
|
136
136
|
host: import("zod").ZodString;
|
@@ -139,17 +139,17 @@ export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod"
|
|
139
139
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
140
140
|
database: import("zod").ZodString;
|
141
141
|
}, "strip", import("zod").ZodTypeAny, {
|
142
|
-
host: string;
|
143
|
-
user: string;
|
144
|
-
database: string;
|
145
142
|
port?: number | undefined;
|
146
143
|
password?: string | undefined;
|
147
|
-
}, {
|
148
144
|
host: string;
|
145
|
+
user: string;
|
149
146
|
database: string;
|
147
|
+
}, {
|
150
148
|
port?: number | undefined;
|
151
149
|
user?: string | undefined;
|
152
150
|
password?: string | undefined;
|
151
|
+
host: string;
|
152
|
+
database: string;
|
153
153
|
}>, import("zod").ZodObject<{
|
154
154
|
connectionString: import("zod").ZodString;
|
155
155
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -166,21 +166,21 @@ export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import(
|
|
166
166
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
167
167
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
168
168
|
}, "strip", import("zod").ZodTypeAny, {
|
169
|
-
schema: string | string[];
|
170
|
-
dialect: "mysql" | "pg" | "sqlite";
|
171
|
-
breakpoints: boolean;
|
172
|
-
schemaFilter: string | string[];
|
173
169
|
out?: string | undefined;
|
174
170
|
driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
|
175
171
|
tablesFilter?: string | string[] | undefined;
|
176
|
-
}, {
|
177
172
|
schema: string | string[];
|
178
173
|
dialect: "mysql" | "pg" | "sqlite";
|
174
|
+
breakpoints: boolean;
|
175
|
+
schemaFilter: string | string[];
|
176
|
+
}, {
|
179
177
|
out?: string | undefined;
|
180
178
|
breakpoints?: boolean | undefined;
|
181
179
|
driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
|
182
180
|
tablesFilter?: string | string[] | undefined;
|
183
181
|
schemaFilter?: string | string[] | undefined;
|
182
|
+
schema: string | string[];
|
183
|
+
dialect: "mysql" | "pg" | "sqlite";
|
184
184
|
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
185
185
|
host: import("zod").ZodString;
|
186
186
|
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
@@ -188,17 +188,17 @@ export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import(
|
|
188
188
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
189
189
|
database: import("zod").ZodString;
|
190
190
|
}, "strip", import("zod").ZodTypeAny, {
|
191
|
-
host: string;
|
192
|
-
user: string;
|
193
|
-
database: string;
|
194
191
|
port?: number | undefined;
|
195
192
|
password?: string | undefined;
|
196
|
-
}, {
|
197
193
|
host: string;
|
194
|
+
user: string;
|
198
195
|
database: string;
|
196
|
+
}, {
|
199
197
|
port?: number | undefined;
|
200
198
|
user?: string | undefined;
|
201
199
|
password?: string | undefined;
|
200
|
+
host: string;
|
201
|
+
database: string;
|
202
202
|
}>, import("zod").ZodObject<{
|
203
203
|
connectionString: import("zod").ZodString;
|
204
204
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -6,17 +6,17 @@ export declare const mysqlCredentials: import("zod").ZodUnion<[import("zod").Zod
|
|
6
6
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
7
7
|
database: import("zod").ZodString;
|
8
8
|
}, "strip", import("zod").ZodTypeAny, {
|
9
|
-
host: string;
|
10
|
-
user: string;
|
11
|
-
database: string;
|
12
9
|
port?: number | undefined;
|
13
10
|
password?: string | undefined;
|
14
|
-
}, {
|
15
11
|
host: string;
|
12
|
+
user: string;
|
16
13
|
database: string;
|
14
|
+
}, {
|
17
15
|
port?: number | undefined;
|
18
16
|
user?: string | undefined;
|
19
17
|
password?: string | undefined;
|
18
|
+
host: string;
|
19
|
+
database: string;
|
20
20
|
}>, import("zod").ZodObject<{
|
21
21
|
uri: import("zod").ZodString;
|
22
22
|
}, "strip", import("zod").ZodTypeAny, {
|
package/cli/validations/pg.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { TypeOf } from "zod";
|
2
2
|
export declare const postgresCredentials: import("zod").ZodUnion<[import("zod").ZodObject<{
|
3
|
-
driver: import("zod").ZodLiteral<"pg">;
|
4
3
|
host: import("zod").ZodString;
|
5
4
|
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
6
5
|
user: import("zod").ZodDefault<import("zod").ZodString>;
|
@@ -8,29 +7,24 @@ export declare const postgresCredentials: import("zod").ZodUnion<[import("zod").
|
|
8
7
|
database: import("zod").ZodString;
|
9
8
|
ssl: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
10
9
|
}, "strip", import("zod").ZodTypeAny, {
|
11
|
-
driver: "pg";
|
12
|
-
host: string;
|
13
|
-
user: string;
|
14
|
-
database: string;
|
15
10
|
port?: number | undefined;
|
16
11
|
password?: string | undefined;
|
17
12
|
ssl?: boolean | undefined;
|
18
|
-
}, {
|
19
|
-
driver: "pg";
|
20
13
|
host: string;
|
14
|
+
user: string;
|
21
15
|
database: string;
|
16
|
+
}, {
|
22
17
|
port?: number | undefined;
|
23
18
|
user?: string | undefined;
|
24
19
|
password?: string | undefined;
|
25
20
|
ssl?: boolean | undefined;
|
21
|
+
host: string;
|
22
|
+
database: string;
|
26
23
|
}>, import("zod").ZodObject<{
|
27
|
-
driver: import("zod").ZodLiteral<"pg">;
|
28
24
|
connectionString: import("zod").ZodString;
|
29
25
|
}, "strip", import("zod").ZodTypeAny, {
|
30
|
-
driver: "pg";
|
31
26
|
connectionString: string;
|
32
27
|
}, {
|
33
|
-
driver: "pg";
|
34
28
|
connectionString: string;
|
35
29
|
}>]>;
|
36
30
|
export type PostgresCredentials = TypeOf<typeof postgresCredentials>;
|