drizzle-kit 0.19.14-039355d → 0.20.0-5198fb7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/@types/utils.d.ts +12 -0
  2. package/cli/commands/migrate.d.ts +260 -0
  3. package/cli/commands/mysqlUp.d.ts +4 -0
  4. package/cli/commands/pgIntrospect.d.ts +118 -0
  5. package/cli/commands/pgPushUtils.d.ts +14 -0
  6. package/cli/commands/pgUp.d.ts +4 -0
  7. package/cli/commands/sqliteIntrospect.d.ts +102 -0
  8. package/cli/commands/sqliteUtils.d.ts +162 -0
  9. package/cli/commands/upFolders.d.ts +27 -0
  10. package/cli/commands/utils.d.ts +265 -0
  11. package/cli/selector-ui.d.ts +13 -0
  12. package/cli/validations/common.d.ts +13 -0
  13. package/cli/validations/mysql.d.ts +414 -0
  14. package/cli/validations/outputs.d.ts +40 -0
  15. package/cli/validations/pg.d.ts +438 -0
  16. package/cli/validations/sqlite.d.ts +220 -0
  17. package/cli/validations/studio.d.ts +548 -0
  18. package/cli/views.d.ts +61 -0
  19. package/drivers/index.d.ts +25 -0
  20. package/global.d.ts +2 -0
  21. package/index.cjs +28813 -37075
  22. package/index.d.ts +47 -0
  23. package/introspect.d.ts +4 -0
  24. package/jsonDiffer.d.ts +76 -0
  25. package/jsonStatements.d.ts +349 -0
  26. package/migrationPreparator.d.ts +35 -0
  27. package/orm-extenstions/d1-driver/driver.d.ts +8 -0
  28. package/orm-extenstions/d1-driver/session.d.ts +52 -0
  29. package/orm-extenstions/d1-driver/wrangler-client.d.ts +3 -0
  30. package/package.json +4 -3
  31. package/schemaValidator.d.ts +1306 -0
  32. package/serializer/index.d.ts +9 -0
  33. package/serializer/mysqlImports.d.ts +6 -0
  34. package/serializer/mysqlSchema.d.ts +3833 -0
  35. package/serializer/mysqlSerializer.d.ts +7 -0
  36. package/serializer/pgImports.d.ts +11 -0
  37. package/serializer/pgSchema.d.ts +4244 -0
  38. package/serializer/pgSerializer.d.ts +7 -0
  39. package/serializer/sqliteImports.d.ts +5 -0
  40. package/serializer/sqliteSchema.d.ts +3227 -0
  41. package/serializer/sqliteSerializer.d.ts +8 -0
  42. package/serializer/studioUtils.d.ts +35 -0
  43. package/snapshotsDiffer.d.ts +2660 -0
  44. package/sqlgenerator.d.ts +33 -0
  45. package/sqlite-introspect.d.ts +5 -0
  46. package/utils/words.d.ts +7 -0
  47. package/utils.d.ts +33 -0
  48. package/utils.js +51597 -11732
  49. package/utilsR.d.ts +232 -0
@@ -0,0 +1,12 @@
1
+ declare global {
2
+ interface String {
3
+ trimChar(char: string): string;
4
+ squashSpaces(): string;
5
+ camelCase(): string;
6
+ concatIf(it: string, condition: boolean): string;
7
+ }
8
+ interface Array<T> {
9
+ random(): T;
10
+ }
11
+ }
12
+ export {};
@@ -0,0 +1,260 @@
1
+ import { CommonSchema, CommonSquashedSchema, Dialect } from "../../schemaValidator";
2
+ import { schema } from "../views";
3
+ import { PgSchema } from "src/serializer/pgSchema";
4
+ import { SQLiteSchema } from "src/serializer/sqliteSchema";
5
+ import { MySqlSchema } from "src/serializer/mysqlSchema";
6
+ import { Journal } from "src/utilsR";
7
+ import { GenerateConfig } from "./utils";
8
+ export type Named = {
9
+ name: string;
10
+ };
11
+ export type NamedWithSchema = {
12
+ name: string;
13
+ schema?: string;
14
+ };
15
+ export declare const prepareAndMigratePg: (config: GenerateConfig) => Promise<void>;
16
+ export declare const prepareMySQLPush: (config: {
17
+ schema: string | string[];
18
+ }, snapshot: MySqlSchema) => Promise<{
19
+ sqlStatements: string[];
20
+ statements: import("../../jsonStatements").JsonStatement[];
21
+ validatedCur: {
22
+ internal?: {
23
+ tables: Record<string, {
24
+ columns: Record<string, {
25
+ isDefaultAnExpression?: boolean | undefined;
26
+ } | undefined>;
27
+ } | undefined>;
28
+ } | undefined;
29
+ id: string;
30
+ prevId: string;
31
+ version: "5";
32
+ dialect: "mysql";
33
+ tables: Record<string, {
34
+ schema?: string | undefined;
35
+ name: string;
36
+ columns: Record<string, {
37
+ default?: any;
38
+ onUpdate?: any;
39
+ autoincrement?: boolean | undefined;
40
+ name: string;
41
+ type: string;
42
+ primaryKey: boolean;
43
+ notNull: boolean;
44
+ }>;
45
+ indexes: Record<string, {
46
+ using?: "btree" | "hash" | undefined;
47
+ algorithm?: "default" | "inplace" | "copy" | undefined;
48
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
49
+ name: string;
50
+ columns: string[];
51
+ isUnique: boolean;
52
+ }>;
53
+ foreignKeys: Record<string, {
54
+ onUpdate?: string | undefined;
55
+ onDelete?: string | undefined;
56
+ name: string;
57
+ tableFrom: string;
58
+ columnsFrom: string[];
59
+ tableTo: string;
60
+ columnsTo: string[];
61
+ }>;
62
+ compositePrimaryKeys: Record<string, {
63
+ name: string;
64
+ columns: string[];
65
+ }>;
66
+ uniqueConstraints: Record<string, {
67
+ name: string;
68
+ columns: string[];
69
+ }>;
70
+ }>;
71
+ schemas: Record<string, string>;
72
+ _meta: {
73
+ columns: Record<string, string>;
74
+ tables: Record<string, string>;
75
+ schemas: Record<string, string>;
76
+ };
77
+ };
78
+ validatedPrev: {
79
+ internal?: {
80
+ tables: Record<string, {
81
+ columns: Record<string, {
82
+ isDefaultAnExpression?: boolean | undefined;
83
+ } | undefined>;
84
+ } | undefined>;
85
+ } | undefined;
86
+ id: string;
87
+ prevId: string;
88
+ version: "5";
89
+ dialect: "mysql";
90
+ tables: Record<string, {
91
+ schema?: string | undefined;
92
+ name: string;
93
+ columns: Record<string, {
94
+ default?: any;
95
+ onUpdate?: any;
96
+ autoincrement?: boolean | undefined;
97
+ name: string;
98
+ type: string;
99
+ primaryKey: boolean;
100
+ notNull: boolean;
101
+ }>;
102
+ indexes: Record<string, {
103
+ using?: "btree" | "hash" | undefined;
104
+ algorithm?: "default" | "inplace" | "copy" | undefined;
105
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
106
+ name: string;
107
+ columns: string[];
108
+ isUnique: boolean;
109
+ }>;
110
+ foreignKeys: Record<string, {
111
+ onUpdate?: string | undefined;
112
+ onDelete?: string | undefined;
113
+ name: string;
114
+ tableFrom: string;
115
+ columnsFrom: string[];
116
+ tableTo: string;
117
+ columnsTo: string[];
118
+ }>;
119
+ compositePrimaryKeys: Record<string, {
120
+ name: string;
121
+ columns: string[];
122
+ }>;
123
+ uniqueConstraints: Record<string, {
124
+ name: string;
125
+ columns: string[];
126
+ }>;
127
+ }>;
128
+ schemas: Record<string, string>;
129
+ _meta: {
130
+ columns: Record<string, string>;
131
+ tables: Record<string, string>;
132
+ schemas: Record<string, string>;
133
+ };
134
+ };
135
+ } | undefined>;
136
+ export declare const prepareSQLitePush: (config: {
137
+ schema: string | string[];
138
+ }, snapshot: SQLiteSchema) => Promise<{
139
+ sqlStatements: string[];
140
+ statements: import("../../jsonStatements").JsonStatement[];
141
+ squashedPrev: {
142
+ enums?: any;
143
+ version: "5";
144
+ dialect: "sqlite";
145
+ tables: Record<string, {
146
+ name: string;
147
+ columns: Record<string, {
148
+ default?: any;
149
+ autoincrement?: boolean | undefined;
150
+ name: string;
151
+ type: string;
152
+ primaryKey: boolean;
153
+ notNull: boolean;
154
+ }>;
155
+ indexes: Record<string, string>;
156
+ foreignKeys: Record<string, string>;
157
+ compositePrimaryKeys: Record<string, string>;
158
+ uniqueConstraints: Record<string, string>;
159
+ }>;
160
+ };
161
+ squashedCur: {
162
+ enums?: any;
163
+ version: "5";
164
+ dialect: "sqlite";
165
+ tables: Record<string, {
166
+ name: string;
167
+ columns: Record<string, {
168
+ default?: any;
169
+ autoincrement?: boolean | undefined;
170
+ name: string;
171
+ type: string;
172
+ primaryKey: boolean;
173
+ notNull: boolean;
174
+ }>;
175
+ indexes: Record<string, string>;
176
+ foreignKeys: Record<string, string>;
177
+ compositePrimaryKeys: Record<string, string>;
178
+ uniqueConstraints: Record<string, string>;
179
+ }>;
180
+ };
181
+ meta: {
182
+ schemas: {};
183
+ tables: {};
184
+ columns: {};
185
+ } | undefined;
186
+ } | undefined>;
187
+ export declare const preparePgPush: (config: {
188
+ schema: string | string[];
189
+ }, snapshot: PgSchema, schemaFilter: string[]) => Promise<{
190
+ sqlStatements: string[];
191
+ statements: import("../../jsonStatements").JsonStatement[];
192
+ squashedPrev: {
193
+ version: "5";
194
+ dialect: "pg";
195
+ tables: Record<string, {
196
+ name: string;
197
+ columns: Record<string, {
198
+ isUnique?: any;
199
+ default?: any;
200
+ uniqueName?: string | undefined;
201
+ nullsNotDistinct?: boolean | undefined;
202
+ name: string;
203
+ type: string;
204
+ primaryKey: boolean;
205
+ notNull: boolean;
206
+ }>;
207
+ indexes: Record<string, string>;
208
+ foreignKeys: Record<string, string>;
209
+ schema: string;
210
+ compositePrimaryKeys: Record<string, string>;
211
+ uniqueConstraints: Record<string, string>;
212
+ }>;
213
+ schemas: Record<string, string>;
214
+ enums: Record<string, {
215
+ name: string;
216
+ values: Record<string, string>;
217
+ }>;
218
+ };
219
+ squashedCur: {
220
+ version: "5";
221
+ dialect: "pg";
222
+ tables: Record<string, {
223
+ name: string;
224
+ columns: Record<string, {
225
+ isUnique?: any;
226
+ default?: any;
227
+ uniqueName?: string | undefined;
228
+ nullsNotDistinct?: boolean | undefined;
229
+ name: string;
230
+ type: string;
231
+ primaryKey: boolean;
232
+ notNull: boolean;
233
+ }>;
234
+ indexes: Record<string, string>;
235
+ foreignKeys: Record<string, string>;
236
+ schema: string;
237
+ compositePrimaryKeys: Record<string, string>;
238
+ uniqueConstraints: Record<string, string>;
239
+ }>;
240
+ schemas: Record<string, string>;
241
+ enums: Record<string, {
242
+ name: string;
243
+ values: Record<string, string>;
244
+ }>;
245
+ };
246
+ } | undefined>;
247
+ export declare const prepareAndMigrateMySql: (config: GenerateConfig) => Promise<void>;
248
+ export declare const prepareAndMigrateSqlite: (config: GenerateConfig) => Promise<void>;
249
+ export declare const prepareSQL: (prev: CommonSquashedSchema, cur: CommonSquashedSchema, dialect: Dialect, prevFull?: any, curFull?: any) => Promise<{
250
+ statements: import("../../jsonStatements").JsonStatement[];
251
+ sqlStatements: string[];
252
+ _meta: {
253
+ schemas: {};
254
+ tables: {};
255
+ columns: {};
256
+ } | undefined;
257
+ }>;
258
+ export declare const BREAKPOINT = "--> statement-breakpoint\n";
259
+ export declare const writeResult: (cur: CommonSchema, sqlStatements: string[], journal: Journal, _meta: any, outFolder: string, breakpoints: boolean, type?: "introspect" | "custom" | "none") => void;
260
+ export declare const prepareSnapshotFolderName: () => string;
@@ -0,0 +1,4 @@
1
+ import { MySqlSchema, MySqlSchemaV4 } from "src/serializer/mysqlSchema";
2
+ export declare const upMysqlHandler: (out: string) => void;
3
+ export declare const upMySqlHandlerV4toV5: (obj: MySqlSchemaV4) => MySqlSchema;
4
+ export declare const upMysqlHandlerV4: (out: string) => void;
@@ -0,0 +1,118 @@
1
+ import { PgConfigIntrospect, PgConnectionConfig } from "../validations/pg";
2
+ import { DrizzleDbClient, PgPostgres } from "src/drivers";
3
+ export declare const connectToPg: (config: PgConnectionConfig) => Promise<{
4
+ client: PgPostgres;
5
+ }>;
6
+ export declare const pgPushIntrospect: (connection: {
7
+ client: DrizzleDbClient;
8
+ }, filters: string[], schemaFilters: string[]) => Promise<{
9
+ schema: {
10
+ id: string;
11
+ prevId: string;
12
+ version: "5";
13
+ dialect: "pg";
14
+ tables: Record<string, {
15
+ name: string;
16
+ columns: Record<string, {
17
+ isUnique?: any;
18
+ default?: any;
19
+ uniqueName?: string | undefined;
20
+ nullsNotDistinct?: boolean | undefined;
21
+ name: string;
22
+ type: string;
23
+ primaryKey: boolean;
24
+ notNull: boolean;
25
+ }>;
26
+ indexes: Record<string, {
27
+ name: string;
28
+ columns: string[];
29
+ isUnique: boolean;
30
+ }>;
31
+ foreignKeys: Record<string, {
32
+ onUpdate?: string | undefined;
33
+ onDelete?: string | undefined;
34
+ name: string;
35
+ tableFrom: string;
36
+ columnsFrom: string[];
37
+ tableTo: string;
38
+ columnsTo: string[];
39
+ }>;
40
+ schema: string;
41
+ compositePrimaryKeys: Record<string, {
42
+ name: string;
43
+ columns: string[];
44
+ }>;
45
+ uniqueConstraints: Record<string, {
46
+ name: string;
47
+ columns: string[];
48
+ nullsNotDistinct: boolean;
49
+ }>;
50
+ }>;
51
+ schemas: Record<string, string>;
52
+ _meta: {
53
+ columns: Record<string, string>;
54
+ tables: Record<string, string>;
55
+ schemas: Record<string, string>;
56
+ };
57
+ enums: Record<string, {
58
+ name: string;
59
+ values: Record<string, string>;
60
+ }>;
61
+ };
62
+ }>;
63
+ export declare const pgIntrospect: (config: PgConfigIntrospect, filters: string[], schemaFilters: string[]) => Promise<{
64
+ schema: {
65
+ id: string;
66
+ prevId: string;
67
+ version: "5";
68
+ dialect: "pg";
69
+ tables: Record<string, {
70
+ name: string;
71
+ columns: Record<string, {
72
+ isUnique?: any;
73
+ default?: any;
74
+ uniqueName?: string | undefined;
75
+ nullsNotDistinct?: boolean | undefined;
76
+ name: string;
77
+ type: string;
78
+ primaryKey: boolean;
79
+ notNull: boolean;
80
+ }>;
81
+ indexes: Record<string, {
82
+ name: string;
83
+ columns: string[];
84
+ isUnique: boolean;
85
+ }>;
86
+ foreignKeys: Record<string, {
87
+ onUpdate?: string | undefined;
88
+ onDelete?: string | undefined;
89
+ name: string;
90
+ tableFrom: string;
91
+ columnsFrom: string[];
92
+ tableTo: string;
93
+ columnsTo: string[];
94
+ }>;
95
+ schema: string;
96
+ compositePrimaryKeys: Record<string, {
97
+ name: string;
98
+ columns: string[];
99
+ }>;
100
+ uniqueConstraints: Record<string, {
101
+ name: string;
102
+ columns: string[];
103
+ nullsNotDistinct: boolean;
104
+ }>;
105
+ }>;
106
+ schemas: Record<string, string>;
107
+ _meta: {
108
+ columns: Record<string, string>;
109
+ tables: Record<string, string>;
110
+ schemas: Record<string, string>;
111
+ };
112
+ enums: Record<string, {
113
+ name: string;
114
+ values: Record<string, string>;
115
+ }>;
116
+ };
117
+ ts: string;
118
+ }>;
@@ -0,0 +1,14 @@
1
+ import { DrizzleDbClient } from "src/drivers";
2
+ import { JsonStatement } from "src/jsonStatements";
3
+ export declare const pgSuggestions: ({ connection, statements, }: {
4
+ statements: JsonStatement[];
5
+ connection: DrizzleDbClient;
6
+ }) => Promise<{
7
+ statementsToExecute: string[];
8
+ shouldAskForApprove: boolean;
9
+ infoToPrint: string[];
10
+ columnsToRemove: string[];
11
+ schemasToRemove: string[];
12
+ tablesToTruncate: string[];
13
+ tablesToRemove: string[];
14
+ }>;
@@ -0,0 +1,4 @@
1
+ import { PgSchema, PgSchemaV4 } from "src/serializer/pgSchema";
2
+ export declare const upPgHandlerV4toV5: (obj: PgSchemaV4) => PgSchema;
3
+ export declare const upPgHandler: (out: string) => void;
4
+ export declare const upPgHandlerV4: (out: string) => void;
@@ -0,0 +1,102 @@
1
+ import { SQLiteCliConfig, SQLiteConnectionConfig } from "./sqliteUtils";
2
+ import { BetterSqlite, DrizzleDbClient } from "src/drivers";
3
+ export declare const connectToSQLite: (config: SQLiteConnectionConfig) => Promise<{
4
+ client: BetterSqlite;
5
+ } | {
6
+ client?: undefined;
7
+ }>;
8
+ export declare const sqliteIntrospect: (config: SQLiteCliConfig, filters: string[]) => Promise<{
9
+ schema: {
10
+ id: string;
11
+ prevId: string;
12
+ version: "5";
13
+ dialect: "sqlite";
14
+ tables: Record<string, {
15
+ name: string;
16
+ columns: Record<string, {
17
+ default?: any;
18
+ autoincrement?: boolean | undefined;
19
+ name: string;
20
+ type: string;
21
+ primaryKey: boolean;
22
+ notNull: boolean;
23
+ }>;
24
+ indexes: Record<string, {
25
+ where?: string | undefined;
26
+ name: string;
27
+ columns: string[];
28
+ isUnique: boolean;
29
+ }>;
30
+ foreignKeys: Record<string, {
31
+ onUpdate?: string | undefined;
32
+ onDelete?: string | undefined;
33
+ name: string;
34
+ tableFrom: string;
35
+ columnsFrom: string[];
36
+ tableTo: string;
37
+ columnsTo: string[];
38
+ }>;
39
+ compositePrimaryKeys: Record<string, {
40
+ name: string;
41
+ columns: string[];
42
+ }>;
43
+ uniqueConstraints: Record<string, {
44
+ name: string;
45
+ columns: string[];
46
+ }>;
47
+ }>;
48
+ _meta: {
49
+ columns: Record<string, string>;
50
+ tables: Record<string, string>;
51
+ };
52
+ enums: {};
53
+ };
54
+ ts: string;
55
+ }>;
56
+ export declare const sqlitePushIntrospect: (client: DrizzleDbClient, filters: string[]) => Promise<{
57
+ schema: {
58
+ id: string;
59
+ prevId: string;
60
+ version: "5";
61
+ dialect: "sqlite";
62
+ tables: Record<string, {
63
+ name: string;
64
+ columns: Record<string, {
65
+ default?: any;
66
+ autoincrement?: boolean | undefined;
67
+ name: string;
68
+ type: string;
69
+ primaryKey: boolean;
70
+ notNull: boolean;
71
+ }>;
72
+ indexes: Record<string, {
73
+ where?: string | undefined;
74
+ name: string;
75
+ columns: string[];
76
+ isUnique: boolean;
77
+ }>;
78
+ foreignKeys: Record<string, {
79
+ onUpdate?: string | undefined;
80
+ onDelete?: string | undefined;
81
+ name: string;
82
+ tableFrom: string;
83
+ columnsFrom: string[];
84
+ tableTo: string;
85
+ columnsTo: string[];
86
+ }>;
87
+ compositePrimaryKeys: Record<string, {
88
+ name: string;
89
+ columns: string[];
90
+ }>;
91
+ uniqueConstraints: Record<string, {
92
+ name: string;
93
+ columns: string[];
94
+ }>;
95
+ }>;
96
+ _meta: {
97
+ columns: Record<string, string>;
98
+ tables: Record<string, string>;
99
+ };
100
+ enums: {};
101
+ };
102
+ }>;
@@ -0,0 +1,162 @@
1
+ import { TypeOf } from "zod";
2
+ import { configIntrospectSchema } from "./utils";
3
+ export declare const sqliteConnectionSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
4
+ driver: import("zod").ZodLiteral<"turso">;
5
+ dbCredentials: import("zod").ZodObject<{
6
+ url: import("zod").ZodString;
7
+ authToken: import("zod").ZodOptional<import("zod").ZodString>;
8
+ }, "strip", import("zod").ZodTypeAny, {
9
+ authToken?: string | undefined;
10
+ url: string;
11
+ }, {
12
+ authToken?: string | undefined;
13
+ url: string;
14
+ }>;
15
+ }, "strip", import("zod").ZodTypeAny, {
16
+ driver: "turso";
17
+ dbCredentials: {
18
+ authToken?: string | undefined;
19
+ url: string;
20
+ };
21
+ }, {
22
+ driver: "turso";
23
+ dbCredentials: {
24
+ authToken?: string | undefined;
25
+ url: string;
26
+ };
27
+ }>, import("zod").ZodObject<{
28
+ driver: import("zod").ZodLiteral<"libsql">;
29
+ dbCredentials: import("zod").ZodObject<{
30
+ url: import("zod").ZodString;
31
+ }, "strip", import("zod").ZodTypeAny, {
32
+ url: string;
33
+ }, {
34
+ url: string;
35
+ }>;
36
+ }, "strip", import("zod").ZodTypeAny, {
37
+ driver: "libsql";
38
+ dbCredentials: {
39
+ url: string;
40
+ };
41
+ }, {
42
+ driver: "libsql";
43
+ dbCredentials: {
44
+ url: string;
45
+ };
46
+ }>, import("zod").ZodObject<{
47
+ driver: import("zod").ZodLiteral<"better-sqlite">;
48
+ dbCredentials: import("zod").ZodObject<{
49
+ url: import("zod").ZodString;
50
+ }, "strip", import("zod").ZodTypeAny, {
51
+ url: string;
52
+ }, {
53
+ url: string;
54
+ }>;
55
+ }, "strip", import("zod").ZodTypeAny, {
56
+ driver: "better-sqlite";
57
+ dbCredentials: {
58
+ url: string;
59
+ };
60
+ }, {
61
+ driver: "better-sqlite";
62
+ dbCredentials: {
63
+ url: string;
64
+ };
65
+ }>]>;
66
+ export declare const sqliteCliConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
67
+ schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
68
+ out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
69
+ breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
70
+ tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
71
+ schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
72
+ introspect: import("zod").ZodDefault<import("zod").ZodObject<{
73
+ casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
74
+ }, "strip", import("zod").ZodTypeAny, {
75
+ casing: "camel" | "preserve";
76
+ }, {
77
+ casing?: "camel" | "preserve" | undefined;
78
+ }>>;
79
+ }, "strip", import("zod").ZodTypeAny, {
80
+ schema?: string | string[] | undefined;
81
+ tablesFilter?: string | string[] | undefined;
82
+ out: string;
83
+ breakpoints: boolean;
84
+ schemaFilter: string | string[];
85
+ introspect: {
86
+ casing: "camel" | "preserve";
87
+ };
88
+ }, {
89
+ schema?: string | string[] | undefined;
90
+ out?: string | undefined;
91
+ breakpoints?: boolean | undefined;
92
+ tablesFilter?: string | string[] | undefined;
93
+ schemaFilter?: string | string[] | undefined;
94
+ introspect?: {
95
+ casing?: "camel" | "preserve" | undefined;
96
+ } | undefined;
97
+ }>, import("zod").ZodUnion<[import("zod").ZodObject<{
98
+ driver: import("zod").ZodLiteral<"turso">;
99
+ dbCredentials: import("zod").ZodObject<{
100
+ url: import("zod").ZodString;
101
+ authToken: import("zod").ZodOptional<import("zod").ZodString>;
102
+ }, "strip", import("zod").ZodTypeAny, {
103
+ authToken?: string | undefined;
104
+ url: string;
105
+ }, {
106
+ authToken?: string | undefined;
107
+ url: string;
108
+ }>;
109
+ }, "strip", import("zod").ZodTypeAny, {
110
+ driver: "turso";
111
+ dbCredentials: {
112
+ authToken?: string | undefined;
113
+ url: string;
114
+ };
115
+ }, {
116
+ driver: "turso";
117
+ dbCredentials: {
118
+ authToken?: string | undefined;
119
+ url: string;
120
+ };
121
+ }>, import("zod").ZodObject<{
122
+ driver: import("zod").ZodLiteral<"libsql">;
123
+ dbCredentials: import("zod").ZodObject<{
124
+ url: import("zod").ZodString;
125
+ }, "strip", import("zod").ZodTypeAny, {
126
+ url: string;
127
+ }, {
128
+ url: string;
129
+ }>;
130
+ }, "strip", import("zod").ZodTypeAny, {
131
+ driver: "libsql";
132
+ dbCredentials: {
133
+ url: string;
134
+ };
135
+ }, {
136
+ driver: "libsql";
137
+ dbCredentials: {
138
+ url: string;
139
+ };
140
+ }>, import("zod").ZodObject<{
141
+ driver: import("zod").ZodLiteral<"better-sqlite">;
142
+ dbCredentials: import("zod").ZodObject<{
143
+ url: import("zod").ZodString;
144
+ }, "strip", import("zod").ZodTypeAny, {
145
+ url: string;
146
+ }, {
147
+ url: string;
148
+ }>;
149
+ }, "strip", import("zod").ZodTypeAny, {
150
+ driver: "better-sqlite";
151
+ dbCredentials: {
152
+ url: string;
153
+ };
154
+ }, {
155
+ driver: "better-sqlite";
156
+ dbCredentials: {
157
+ url: string;
158
+ };
159
+ }>]>>;
160
+ export type SQLiteCliConfig = TypeOf<typeof sqliteCliConfigSchema>;
161
+ export type SQLiteConnectionConfig = TypeOf<typeof sqliteConnectionSchema>;
162
+ export { configIntrospectSchema };