drizzle-kit 0.20.14-c82ab68 → 0.20.14-dc0459e
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +36904 -34432
- package/cli/commands/migrate.d.ts +24 -24
- package/cli/commands/mysqlIntrospect.d.ts +8 -8
- package/cli/commands/mysqlPushUtils.d.ts +2 -2
- package/cli/commands/mysqlUp.d.ts +2 -2
- package/cli/commands/pgConnect.d.ts +1 -1
- package/cli/commands/pgIntrospect.d.ts +9 -12
- package/cli/commands/pgPushUtils.d.ts +2 -2
- package/cli/commands/pgUp.d.ts +2 -2
- package/cli/commands/sqliteIntrospect.d.ts +9 -9
- package/cli/commands/sqlitePushUtils.d.ts +3 -3
- package/cli/commands/sqliteUtils.d.ts +162 -0
- package/cli/commands/upFolders.d.ts +1 -1
- package/cli/commands/utils.d.ts +259 -14
- package/cli/validations/common.d.ts +7 -205
- package/cli/validations/mysql.d.ts +1 -6
- package/cli/validations/pg.d.ts +1 -6
- package/cli/views.d.ts +1 -1
- package/global.d.ts +1 -1
- package/index.d.mts +6 -8
- package/index.d.ts +6 -8
- package/index.js +0 -1
- package/introspect-mysql.d.ts +1 -1
- package/introspect-pg.d.ts +2 -5
- package/introspect-sqlite.d.ts +1 -1
- package/jsonStatements.d.ts +1 -1
- package/package.json +8 -7
- package/payload.js +1534 -2210
- package/payload.mjs +1538 -2213
- package/schemaValidator.d.ts +40 -40
- package/serializer/mysqlSchema.d.ts +616 -1854
- package/serializer/mysqlSerializer.d.ts +2 -2
- package/serializer/pgSchema.d.ts +684 -1009
- package/serializer/sqliteSchema.d.ts +570 -144
- package/serializer/sqliteSerializer.d.ts +2 -2
- package/snapshotsDiffer.d.ts +20 -24
- package/utils-studio.js +15 -390
- package/utils-studio.mjs +15 -389
- package/utils.d.ts +12 -12
- package/utils.js +735 -849
- package/utils.mjs +736 -849
- package/cli/validations/cli.d.ts +0 -104
- package/cli/validations/sqlite.d.ts +0 -382
package/cli/validations/cli.d.ts
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
import { TypeOf } from "zod";
|
2
|
-
export declare const cliConfigGenerate: import("zod").ZodObject<{
|
3
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
|
4
|
-
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
5
|
-
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
6
|
-
config: import("zod").ZodOptional<import("zod").ZodString>;
|
7
|
-
breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
8
|
-
custom: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
9
|
-
}, "strict", import("zod").ZodTypeAny, {
|
10
|
-
schema?: string | string[] | undefined;
|
11
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
12
|
-
config?: string | undefined;
|
13
|
-
custom: boolean;
|
14
|
-
out: string;
|
15
|
-
breakpoints: boolean;
|
16
|
-
}, {
|
17
|
-
custom?: boolean | undefined;
|
18
|
-
schema?: string | string[] | undefined;
|
19
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
20
|
-
config?: string | undefined;
|
21
|
-
out?: string | undefined;
|
22
|
-
breakpoints?: boolean | undefined;
|
23
|
-
}>;
|
24
|
-
export type CliConfigGenerate = TypeOf<typeof cliConfigGenerate>;
|
25
|
-
export declare const cliParamsPush: import("zod").ZodObject<{
|
26
|
-
config: import("zod").ZodOptional<import("zod").ZodString>;
|
27
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
|
28
|
-
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
29
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
30
|
-
driver: import("zod").ZodOptional<import("zod").ZodString>;
|
31
|
-
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
32
|
-
uri: import("zod").ZodOptional<import("zod").ZodString>;
|
33
|
-
host: import("zod").ZodOptional<import("zod").ZodString>;
|
34
|
-
port: import("zod").ZodOptional<import("zod").ZodString>;
|
35
|
-
user: import("zod").ZodOptional<import("zod").ZodString>;
|
36
|
-
password: import("zod").ZodOptional<import("zod").ZodString>;
|
37
|
-
database: import("zod").ZodOptional<import("zod").ZodString>;
|
38
|
-
ssl: import("zod").ZodOptional<import("zod").ZodString>;
|
39
|
-
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
40
|
-
verbose: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
41
|
-
strict: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
42
|
-
}, "strict", import("zod").ZodTypeAny, {
|
43
|
-
strict?: boolean | undefined;
|
44
|
-
schema?: string | string[] | undefined;
|
45
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
46
|
-
config?: string | undefined;
|
47
|
-
driver?: string | undefined;
|
48
|
-
tablesFilter?: string | string[] | undefined;
|
49
|
-
verbose?: boolean | undefined;
|
50
|
-
host?: string | undefined;
|
51
|
-
port?: string | undefined;
|
52
|
-
user?: string | undefined;
|
53
|
-
password?: string | undefined;
|
54
|
-
database?: string | undefined;
|
55
|
-
connectionString?: string | undefined;
|
56
|
-
uri?: string | undefined;
|
57
|
-
ssl?: string | undefined;
|
58
|
-
authToken?: string | undefined;
|
59
|
-
}, {
|
60
|
-
strict?: boolean | undefined;
|
61
|
-
schema?: string | string[] | undefined;
|
62
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
63
|
-
config?: string | undefined;
|
64
|
-
driver?: string | undefined;
|
65
|
-
tablesFilter?: string | string[] | undefined;
|
66
|
-
verbose?: boolean | undefined;
|
67
|
-
host?: string | undefined;
|
68
|
-
port?: string | undefined;
|
69
|
-
user?: string | undefined;
|
70
|
-
password?: string | undefined;
|
71
|
-
database?: string | undefined;
|
72
|
-
connectionString?: string | undefined;
|
73
|
-
uri?: string | undefined;
|
74
|
-
ssl?: string | undefined;
|
75
|
-
authToken?: string | undefined;
|
76
|
-
}>;
|
77
|
-
export type CliParamsPush = TypeOf<typeof cliParamsPush>;
|
78
|
-
export declare const configCheck: import("zod").ZodObject<{
|
79
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
|
80
|
-
out: import("zod").ZodOptional<import("zod").ZodString>;
|
81
|
-
}, "strip", import("zod").ZodTypeAny, {
|
82
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
83
|
-
out?: string | undefined;
|
84
|
-
}, {
|
85
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
86
|
-
out?: string | undefined;
|
87
|
-
}>;
|
88
|
-
export declare const cliConfigCheck: import("zod").ZodIntersection<import("zod").ZodObject<{
|
89
|
-
config: import("zod").ZodOptional<import("zod").ZodString>;
|
90
|
-
}, "strip", import("zod").ZodTypeAny, {
|
91
|
-
config?: string | undefined;
|
92
|
-
}, {
|
93
|
-
config?: string | undefined;
|
94
|
-
}>, import("zod").ZodObject<{
|
95
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
|
96
|
-
out: import("zod").ZodOptional<import("zod").ZodString>;
|
97
|
-
}, "strip", import("zod").ZodTypeAny, {
|
98
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
99
|
-
out?: string | undefined;
|
100
|
-
}, {
|
101
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
102
|
-
out?: string | undefined;
|
103
|
-
}>>;
|
104
|
-
export type CliCheckConfig = TypeOf<typeof cliConfigCheck>;
|
@@ -1,382 +0,0 @@
|
|
1
|
-
import { TypeOf } from "zod";
|
2
|
-
export declare const sqliteConnectionCli: import("zod").ZodUnion<[import("zod").ZodObject<{
|
3
|
-
driver: import("zod").ZodLiteral<"turso">;
|
4
|
-
url: import("zod").ZodString;
|
5
|
-
authToken: import("zod").ZodString;
|
6
|
-
}, "strip", import("zod").ZodTypeAny, {
|
7
|
-
url: string;
|
8
|
-
driver: "turso";
|
9
|
-
authToken: string;
|
10
|
-
}, {
|
11
|
-
url: string;
|
12
|
-
driver: "turso";
|
13
|
-
authToken: string;
|
14
|
-
}>, import("zod").ZodObject<{
|
15
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
16
|
-
url: import("zod").ZodString;
|
17
|
-
}, "strip", import("zod").ZodTypeAny, {
|
18
|
-
url: string;
|
19
|
-
driver: "better-sqlite";
|
20
|
-
}, {
|
21
|
-
url: string;
|
22
|
-
driver: "better-sqlite";
|
23
|
-
}>, import("zod").ZodObject<{
|
24
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
25
|
-
url: import("zod").ZodString;
|
26
|
-
}, "strip", import("zod").ZodTypeAny, {
|
27
|
-
url: string;
|
28
|
-
driver: "libsql";
|
29
|
-
}, {
|
30
|
-
url: string;
|
31
|
-
driver: "libsql";
|
32
|
-
}>]>;
|
33
|
-
export declare const sqliteConnectionSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
|
34
|
-
driver: import("zod").ZodLiteral<"turso">;
|
35
|
-
dbCredentials: import("zod").ZodObject<{
|
36
|
-
url: import("zod").ZodString;
|
37
|
-
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
38
|
-
}, "strip", import("zod").ZodTypeAny, {
|
39
|
-
authToken?: string | undefined;
|
40
|
-
url: string;
|
41
|
-
}, {
|
42
|
-
authToken?: string | undefined;
|
43
|
-
url: string;
|
44
|
-
}>;
|
45
|
-
}, "strip", import("zod").ZodTypeAny, {
|
46
|
-
driver: "turso";
|
47
|
-
dbCredentials: {
|
48
|
-
authToken?: string | undefined;
|
49
|
-
url: string;
|
50
|
-
};
|
51
|
-
}, {
|
52
|
-
driver: "turso";
|
53
|
-
dbCredentials: {
|
54
|
-
authToken?: string | undefined;
|
55
|
-
url: string;
|
56
|
-
};
|
57
|
-
}>, import("zod").ZodObject<{
|
58
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
59
|
-
dbCredentials: import("zod").ZodObject<{
|
60
|
-
url: import("zod").ZodString;
|
61
|
-
}, "strip", import("zod").ZodTypeAny, {
|
62
|
-
url: string;
|
63
|
-
}, {
|
64
|
-
url: string;
|
65
|
-
}>;
|
66
|
-
}, "strip", import("zod").ZodTypeAny, {
|
67
|
-
driver: "libsql";
|
68
|
-
dbCredentials: {
|
69
|
-
url: string;
|
70
|
-
};
|
71
|
-
}, {
|
72
|
-
driver: "libsql";
|
73
|
-
dbCredentials: {
|
74
|
-
url: string;
|
75
|
-
};
|
76
|
-
}>, import("zod").ZodObject<{
|
77
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
78
|
-
dbCredentials: import("zod").ZodObject<{
|
79
|
-
url: import("zod").ZodString;
|
80
|
-
}, "strip", import("zod").ZodTypeAny, {
|
81
|
-
url: string;
|
82
|
-
}, {
|
83
|
-
url: string;
|
84
|
-
}>;
|
85
|
-
}, "strip", import("zod").ZodTypeAny, {
|
86
|
-
driver: "better-sqlite";
|
87
|
-
dbCredentials: {
|
88
|
-
url: string;
|
89
|
-
};
|
90
|
-
}, {
|
91
|
-
driver: "better-sqlite";
|
92
|
-
dbCredentials: {
|
93
|
-
url: string;
|
94
|
-
};
|
95
|
-
}>]>;
|
96
|
-
export declare const sqliteCliConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
|
97
|
-
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
98
|
-
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
99
|
-
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
100
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
101
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
102
|
-
introspect: import("zod").ZodDefault<import("zod").ZodObject<{
|
103
|
-
casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
104
|
-
}, "strip", import("zod").ZodTypeAny, {
|
105
|
-
casing: "camel" | "preserve";
|
106
|
-
}, {
|
107
|
-
casing?: "camel" | "preserve" | undefined;
|
108
|
-
}>>;
|
109
|
-
}, "strip", import("zod").ZodTypeAny, {
|
110
|
-
schema?: string | string[] | undefined;
|
111
|
-
tablesFilter?: string | string[] | undefined;
|
112
|
-
out: string;
|
113
|
-
breakpoints: boolean;
|
114
|
-
schemaFilter: string | string[];
|
115
|
-
introspect: {
|
116
|
-
casing: "camel" | "preserve";
|
117
|
-
};
|
118
|
-
}, {
|
119
|
-
schema?: string | string[] | undefined;
|
120
|
-
out?: string | undefined;
|
121
|
-
breakpoints?: boolean | undefined;
|
122
|
-
tablesFilter?: string | string[] | undefined;
|
123
|
-
schemaFilter?: string | string[] | undefined;
|
124
|
-
introspect?: {
|
125
|
-
casing?: "camel" | "preserve" | undefined;
|
126
|
-
} | undefined;
|
127
|
-
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
128
|
-
driver: import("zod").ZodLiteral<"turso">;
|
129
|
-
dbCredentials: import("zod").ZodObject<{
|
130
|
-
url: import("zod").ZodString;
|
131
|
-
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
132
|
-
}, "strip", import("zod").ZodTypeAny, {
|
133
|
-
authToken?: string | undefined;
|
134
|
-
url: string;
|
135
|
-
}, {
|
136
|
-
authToken?: string | undefined;
|
137
|
-
url: string;
|
138
|
-
}>;
|
139
|
-
}, "strip", import("zod").ZodTypeAny, {
|
140
|
-
driver: "turso";
|
141
|
-
dbCredentials: {
|
142
|
-
authToken?: string | undefined;
|
143
|
-
url: string;
|
144
|
-
};
|
145
|
-
}, {
|
146
|
-
driver: "turso";
|
147
|
-
dbCredentials: {
|
148
|
-
authToken?: string | undefined;
|
149
|
-
url: string;
|
150
|
-
};
|
151
|
-
}>, import("zod").ZodObject<{
|
152
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
153
|
-
dbCredentials: import("zod").ZodObject<{
|
154
|
-
url: import("zod").ZodString;
|
155
|
-
}, "strip", import("zod").ZodTypeAny, {
|
156
|
-
url: string;
|
157
|
-
}, {
|
158
|
-
url: string;
|
159
|
-
}>;
|
160
|
-
}, "strip", import("zod").ZodTypeAny, {
|
161
|
-
driver: "libsql";
|
162
|
-
dbCredentials: {
|
163
|
-
url: string;
|
164
|
-
};
|
165
|
-
}, {
|
166
|
-
driver: "libsql";
|
167
|
-
dbCredentials: {
|
168
|
-
url: string;
|
169
|
-
};
|
170
|
-
}>, import("zod").ZodObject<{
|
171
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
172
|
-
dbCredentials: import("zod").ZodObject<{
|
173
|
-
url: import("zod").ZodString;
|
174
|
-
}, "strip", import("zod").ZodTypeAny, {
|
175
|
-
url: string;
|
176
|
-
}, {
|
177
|
-
url: string;
|
178
|
-
}>;
|
179
|
-
}, "strip", import("zod").ZodTypeAny, {
|
180
|
-
driver: "better-sqlite";
|
181
|
-
dbCredentials: {
|
182
|
-
url: string;
|
183
|
-
};
|
184
|
-
}, {
|
185
|
-
driver: "better-sqlite";
|
186
|
-
dbCredentials: {
|
187
|
-
url: string;
|
188
|
-
};
|
189
|
-
}>]>>;
|
190
|
-
export type SQLiteCliConfig = TypeOf<typeof sqliteCliConfigSchema>;
|
191
|
-
export type SQLiteConnectionConfig = TypeOf<typeof sqliteConnectionSchema>;
|
192
|
-
export declare const sqliteCliIntrospectParams: import("zod").ZodIntersection<import("zod").ZodObject<{
|
193
|
-
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
194
|
-
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
195
|
-
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
196
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
197
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
198
|
-
introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
199
|
-
}, "strip", import("zod").ZodTypeAny, {
|
200
|
-
schema?: string | string[] | undefined;
|
201
|
-
tablesFilter?: string | string[] | undefined;
|
202
|
-
out: string;
|
203
|
-
breakpoints: boolean;
|
204
|
-
schemaFilter: string | string[];
|
205
|
-
introspectCasing: "camel" | "preserve";
|
206
|
-
}, {
|
207
|
-
schema?: string | string[] | undefined;
|
208
|
-
out?: string | undefined;
|
209
|
-
breakpoints?: boolean | undefined;
|
210
|
-
tablesFilter?: string | string[] | undefined;
|
211
|
-
schemaFilter?: string | string[] | undefined;
|
212
|
-
introspectCasing?: "camel" | "preserve" | undefined;
|
213
|
-
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
214
|
-
driver: import("zod").ZodLiteral<"turso">;
|
215
|
-
url: import("zod").ZodString;
|
216
|
-
authToken: import("zod").ZodString;
|
217
|
-
}, "strip", import("zod").ZodTypeAny, {
|
218
|
-
url: string;
|
219
|
-
driver: "turso";
|
220
|
-
authToken: string;
|
221
|
-
}, {
|
222
|
-
url: string;
|
223
|
-
driver: "turso";
|
224
|
-
authToken: string;
|
225
|
-
}>, import("zod").ZodObject<{
|
226
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
227
|
-
url: import("zod").ZodString;
|
228
|
-
}, "strip", import("zod").ZodTypeAny, {
|
229
|
-
url: string;
|
230
|
-
driver: "better-sqlite";
|
231
|
-
}, {
|
232
|
-
url: string;
|
233
|
-
driver: "better-sqlite";
|
234
|
-
}>, import("zod").ZodObject<{
|
235
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
236
|
-
url: import("zod").ZodString;
|
237
|
-
}, "strip", import("zod").ZodTypeAny, {
|
238
|
-
url: string;
|
239
|
-
driver: "libsql";
|
240
|
-
}, {
|
241
|
-
url: string;
|
242
|
-
driver: "libsql";
|
243
|
-
}>]>>;
|
244
|
-
export declare const sqliteCliPushParams: import("zod").ZodIntersection<import("zod").ZodObject<{
|
245
|
-
dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
|
246
|
-
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
247
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
248
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
249
|
-
verbose: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
250
|
-
strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
251
|
-
}, "strip", import("zod").ZodTypeAny, {
|
252
|
-
tablesFilter?: string | string[] | undefined;
|
253
|
-
strict: boolean;
|
254
|
-
schema: string | string[];
|
255
|
-
dialect: "mysql" | "pg" | "sqlite";
|
256
|
-
schemaFilter: string | string[];
|
257
|
-
verbose: boolean;
|
258
|
-
}, {
|
259
|
-
strict?: boolean | undefined;
|
260
|
-
tablesFilter?: string | string[] | undefined;
|
261
|
-
schemaFilter?: string | string[] | undefined;
|
262
|
-
verbose?: boolean | undefined;
|
263
|
-
schema: string | string[];
|
264
|
-
dialect: "mysql" | "pg" | "sqlite";
|
265
|
-
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
266
|
-
driver: import("zod").ZodLiteral<"turso">;
|
267
|
-
url: import("zod").ZodString;
|
268
|
-
authToken: import("zod").ZodString;
|
269
|
-
}, "strip", import("zod").ZodTypeAny, {
|
270
|
-
url: string;
|
271
|
-
driver: "turso";
|
272
|
-
authToken: string;
|
273
|
-
}, {
|
274
|
-
url: string;
|
275
|
-
driver: "turso";
|
276
|
-
authToken: string;
|
277
|
-
}>, import("zod").ZodObject<{
|
278
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
279
|
-
url: import("zod").ZodString;
|
280
|
-
}, "strip", import("zod").ZodTypeAny, {
|
281
|
-
url: string;
|
282
|
-
driver: "better-sqlite";
|
283
|
-
}, {
|
284
|
-
url: string;
|
285
|
-
driver: "better-sqlite";
|
286
|
-
}>, import("zod").ZodObject<{
|
287
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
288
|
-
url: import("zod").ZodString;
|
289
|
-
}, "strip", import("zod").ZodTypeAny, {
|
290
|
-
url: string;
|
291
|
-
driver: "libsql";
|
292
|
-
}, {
|
293
|
-
url: string;
|
294
|
-
driver: "libsql";
|
295
|
-
}>]>>;
|
296
|
-
export declare const sqliteConfigPushParams: import("zod").ZodIntersection<import("zod").ZodObject<{
|
297
|
-
dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
|
298
|
-
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
299
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
300
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
301
|
-
verbose: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
302
|
-
strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
303
|
-
}, "strip", import("zod").ZodTypeAny, {
|
304
|
-
tablesFilter?: string | string[] | undefined;
|
305
|
-
strict: boolean;
|
306
|
-
schema: string | string[];
|
307
|
-
dialect: "mysql" | "pg" | "sqlite";
|
308
|
-
schemaFilter: string | string[];
|
309
|
-
verbose: boolean;
|
310
|
-
}, {
|
311
|
-
strict?: boolean | undefined;
|
312
|
-
tablesFilter?: string | string[] | undefined;
|
313
|
-
schemaFilter?: string | string[] | undefined;
|
314
|
-
verbose?: boolean | undefined;
|
315
|
-
schema: string | string[];
|
316
|
-
dialect: "mysql" | "pg" | "sqlite";
|
317
|
-
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
318
|
-
driver: import("zod").ZodLiteral<"turso">;
|
319
|
-
dbCredentials: import("zod").ZodObject<{
|
320
|
-
url: import("zod").ZodString;
|
321
|
-
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
322
|
-
}, "strip", import("zod").ZodTypeAny, {
|
323
|
-
authToken?: string | undefined;
|
324
|
-
url: string;
|
325
|
-
}, {
|
326
|
-
authToken?: string | undefined;
|
327
|
-
url: string;
|
328
|
-
}>;
|
329
|
-
}, "strip", import("zod").ZodTypeAny, {
|
330
|
-
driver: "turso";
|
331
|
-
dbCredentials: {
|
332
|
-
authToken?: string | undefined;
|
333
|
-
url: string;
|
334
|
-
};
|
335
|
-
}, {
|
336
|
-
driver: "turso";
|
337
|
-
dbCredentials: {
|
338
|
-
authToken?: string | undefined;
|
339
|
-
url: string;
|
340
|
-
};
|
341
|
-
}>, import("zod").ZodObject<{
|
342
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
343
|
-
dbCredentials: import("zod").ZodObject<{
|
344
|
-
url: import("zod").ZodString;
|
345
|
-
}, "strip", import("zod").ZodTypeAny, {
|
346
|
-
url: string;
|
347
|
-
}, {
|
348
|
-
url: string;
|
349
|
-
}>;
|
350
|
-
}, "strip", import("zod").ZodTypeAny, {
|
351
|
-
driver: "libsql";
|
352
|
-
dbCredentials: {
|
353
|
-
url: string;
|
354
|
-
};
|
355
|
-
}, {
|
356
|
-
driver: "libsql";
|
357
|
-
dbCredentials: {
|
358
|
-
url: string;
|
359
|
-
};
|
360
|
-
}>, import("zod").ZodObject<{
|
361
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
362
|
-
dbCredentials: import("zod").ZodObject<{
|
363
|
-
url: import("zod").ZodString;
|
364
|
-
}, "strip", import("zod").ZodTypeAny, {
|
365
|
-
url: string;
|
366
|
-
}, {
|
367
|
-
url: string;
|
368
|
-
}>;
|
369
|
-
}, "strip", import("zod").ZodTypeAny, {
|
370
|
-
driver: "better-sqlite";
|
371
|
-
dbCredentials: {
|
372
|
-
url: string;
|
373
|
-
};
|
374
|
-
}, {
|
375
|
-
driver: "better-sqlite";
|
376
|
-
dbCredentials: {
|
377
|
-
url: string;
|
378
|
-
};
|
379
|
-
}>]>>;
|
380
|
-
export type SQLitePushConfig = TypeOf<typeof sqliteConfigPushParams>;
|
381
|
-
export declare const printConfigConnectionIssues: (options: any) => void;
|
382
|
-
export declare const validateIntrospect: (options: Record<string, any>) => Promise<SQLiteCliConfig>;
|