drizzle-kit 0.20.14-a77266f → 0.20.14-b6f235e
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +21882 -21527
- package/cli/commands/migrate.d.ts +121 -97
- package/cli/commands/mysqlIntrospect.d.ts +8 -14
- package/cli/commands/mysqlPushUtils.d.ts +2 -2
- package/cli/commands/pgConnect.d.ts +1 -1
- package/cli/commands/pgIntrospect.d.ts +18 -11
- package/cli/commands/pgPushUtils.d.ts +2 -2
- package/cli/commands/sqliteIntrospect.d.ts +9 -9
- package/cli/commands/sqlitePushUtils.d.ts +3 -3
- package/cli/commands/utils.d.ts +15 -259
- package/cli/validations/cli.d.ts +107 -0
- package/cli/validations/common.d.ts +205 -7
- package/cli/validations/mysql.d.ts +6 -1
- package/cli/validations/pg.d.ts +6 -1
- package/cli/validations/sqlite.d.ts +382 -0
- package/cli/views.d.ts +7 -5
- package/global.d.ts +3 -1
- package/index.d.mts +8 -6
- package/index.d.ts +8 -6
- package/index.js +1 -0
- package/introspect-mysql.d.ts +1 -1
- package/introspect-pg.d.ts +5 -2
- package/introspect-sqlite.d.ts +1 -1
- package/jsonDiffer.d.ts +14 -29
- package/jsonStatements.d.ts +38 -11
- package/package.json +18 -50
- package/payload.js +8053 -8337
- package/payload.mjs +9022 -9312
- package/schemaValidator.d.ts +73 -70
- package/serializer/mysqlImports.d.ts +3 -7
- package/serializer/mysqlSchema.d.ts +1624 -493
- package/serializer/mysqlSerializer.d.ts +4 -4
- package/serializer/pgImports.d.ts +2 -2
- package/serializer/pgSchema.d.ts +1260 -801
- package/serializer/sqliteImports.d.ts +2 -4
- package/serializer/sqliteSchema.d.ts +144 -570
- package/serializer/sqliteSerializer.d.ts +3 -3
- package/snapshotsDiffer.d.ts +1908 -1050
- package/utils/words.d.ts +1 -1
- package/utils-studio.js +4147 -83
- package/utils-studio.mjs +4147 -83
- package/utils.d.ts +6 -140
- package/utils.js +3903 -7064
- package/utils.mjs +3982 -7143
- package/cli/commands/mysqlUp.d.ts +0 -4
- package/cli/commands/pgUp.d.ts +0 -4
- package/cli/commands/sqliteUtils.d.ts +0 -162
- package/cli/commands/upFolders.d.ts +0 -27
package/schemaValidator.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { TypeOf } from "zod";
|
2
|
-
declare const dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
|
2
|
+
export declare const dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
|
3
3
|
export type Dialect = TypeOf<typeof dialect>;
|
4
4
|
declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
|
5
|
-
version: import("zod").ZodLiteral<"
|
5
|
+
version: import("zod").ZodLiteral<"6">;
|
6
6
|
dialect: import("zod").ZodEnum<["pg"]>;
|
7
7
|
tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
8
8
|
name: import("zod").ZodString;
|
@@ -10,6 +10,7 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
10
10
|
columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
11
11
|
name: import("zod").ZodString;
|
12
12
|
type: import("zod").ZodString;
|
13
|
+
typeSchema: import("zod").ZodOptional<import("zod").ZodString>;
|
13
14
|
primaryKey: import("zod").ZodBoolean;
|
14
15
|
notNull: import("zod").ZodBoolean;
|
15
16
|
default: import("zod").ZodOptional<import("zod").ZodAny>;
|
@@ -19,6 +20,7 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
19
20
|
}, "strict", import("zod").ZodTypeAny, {
|
20
21
|
isUnique?: any;
|
21
22
|
default?: any;
|
23
|
+
typeSchema?: string | undefined;
|
22
24
|
uniqueName?: string | undefined;
|
23
25
|
nullsNotDistinct?: boolean | undefined;
|
24
26
|
name: string;
|
@@ -28,6 +30,7 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
28
30
|
}, {
|
29
31
|
isUnique?: any;
|
30
32
|
default?: any;
|
33
|
+
typeSchema?: string | undefined;
|
31
34
|
uniqueName?: string | undefined;
|
32
35
|
nullsNotDistinct?: boolean | undefined;
|
33
36
|
name: string;
|
@@ -44,6 +47,7 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
44
47
|
columns: Record<string, {
|
45
48
|
isUnique?: any;
|
46
49
|
default?: any;
|
50
|
+
typeSchema?: string | undefined;
|
47
51
|
uniqueName?: string | undefined;
|
48
52
|
nullsNotDistinct?: boolean | undefined;
|
49
53
|
name: string;
|
@@ -61,6 +65,7 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
61
65
|
columns: Record<string, {
|
62
66
|
isUnique?: any;
|
63
67
|
default?: any;
|
68
|
+
typeSchema?: string | undefined;
|
64
69
|
uniqueName?: string | undefined;
|
65
70
|
nullsNotDistinct?: boolean | undefined;
|
66
71
|
name: string;
|
@@ -76,23 +81,25 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
76
81
|
}>>;
|
77
82
|
enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
78
83
|
name: import("zod").ZodString;
|
79
|
-
|
84
|
+
schema: import("zod").ZodString;
|
85
|
+
values: import("zod").ZodArray<import("zod").ZodString, "many">;
|
80
86
|
}, "strict", import("zod").ZodTypeAny, {
|
81
87
|
name: string;
|
82
|
-
values:
|
88
|
+
values: string[];
|
89
|
+
schema: string;
|
83
90
|
}, {
|
84
91
|
name: string;
|
85
|
-
values:
|
92
|
+
values: string[];
|
93
|
+
schema: string;
|
86
94
|
}>>;
|
87
95
|
schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
88
96
|
}, "strict", import("zod").ZodTypeAny, {
|
89
|
-
version: "5";
|
90
|
-
dialect: "pg";
|
91
97
|
tables: Record<string, {
|
92
98
|
name: string;
|
93
99
|
columns: Record<string, {
|
94
100
|
isUnique?: any;
|
95
101
|
default?: any;
|
102
|
+
typeSchema?: string | undefined;
|
96
103
|
uniqueName?: string | undefined;
|
97
104
|
nullsNotDistinct?: boolean | undefined;
|
98
105
|
name: string;
|
@@ -106,19 +113,21 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
106
113
|
compositePrimaryKeys: Record<string, string>;
|
107
114
|
uniqueConstraints: Record<string, string>;
|
108
115
|
}>;
|
116
|
+
version: "6";
|
117
|
+
dialect: "pg";
|
109
118
|
schemas: Record<string, string>;
|
110
119
|
enums: Record<string, {
|
111
120
|
name: string;
|
112
|
-
values:
|
121
|
+
values: string[];
|
122
|
+
schema: string;
|
113
123
|
}>;
|
114
124
|
}, {
|
115
|
-
version: "5";
|
116
|
-
dialect: "pg";
|
117
125
|
tables: Record<string, {
|
118
126
|
name: string;
|
119
127
|
columns: Record<string, {
|
120
128
|
isUnique?: any;
|
121
129
|
default?: any;
|
130
|
+
typeSchema?: string | undefined;
|
122
131
|
uniqueName?: string | undefined;
|
123
132
|
nullsNotDistinct?: boolean | undefined;
|
124
133
|
name: string;
|
@@ -132,17 +141,19 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
132
141
|
compositePrimaryKeys: Record<string, string>;
|
133
142
|
uniqueConstraints: Record<string, string>;
|
134
143
|
}>;
|
144
|
+
version: "6";
|
145
|
+
dialect: "pg";
|
135
146
|
schemas: Record<string, string>;
|
136
147
|
enums: Record<string, {
|
137
148
|
name: string;
|
138
|
-
values:
|
149
|
+
values: string[];
|
150
|
+
schema: string;
|
139
151
|
}>;
|
140
152
|
}>, import("zod").ZodObject<{
|
141
153
|
version: import("zod").ZodLiteral<"5">;
|
142
154
|
dialect: import("zod").ZodLiteral<"mysql">;
|
143
155
|
tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
144
156
|
name: import("zod").ZodString;
|
145
|
-
schema: import("zod").ZodOptional<import("zod").ZodString>;
|
146
157
|
columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
147
158
|
name: import("zod").ZodString;
|
148
159
|
type: import("zod").ZodString;
|
@@ -173,7 +184,6 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
173
184
|
compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
174
185
|
uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
175
186
|
}, "strict", import("zod").ZodTypeAny, {
|
176
|
-
schema?: string | undefined;
|
177
187
|
name: string;
|
178
188
|
columns: Record<string, {
|
179
189
|
default?: any;
|
@@ -189,7 +199,6 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
189
199
|
compositePrimaryKeys: Record<string, string>;
|
190
200
|
uniqueConstraints: Record<string, string>;
|
191
201
|
}, {
|
192
|
-
schema?: string | undefined;
|
193
202
|
uniqueConstraints?: Record<string, string> | undefined;
|
194
203
|
name: string;
|
195
204
|
columns: Record<string, {
|
@@ -205,12 +214,8 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
205
214
|
foreignKeys: Record<string, string>;
|
206
215
|
compositePrimaryKeys: Record<string, string>;
|
207
216
|
}>>;
|
208
|
-
schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
209
217
|
}, "strict", import("zod").ZodTypeAny, {
|
210
|
-
version: "5";
|
211
|
-
dialect: "mysql";
|
212
218
|
tables: Record<string, {
|
213
|
-
schema?: string | undefined;
|
214
219
|
name: string;
|
215
220
|
columns: Record<string, {
|
216
221
|
default?: any;
|
@@ -226,12 +231,10 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
226
231
|
compositePrimaryKeys: Record<string, string>;
|
227
232
|
uniqueConstraints: Record<string, string>;
|
228
233
|
}>;
|
229
|
-
schemas: Record<string, string>;
|
230
|
-
}, {
|
231
234
|
version: "5";
|
232
235
|
dialect: "mysql";
|
236
|
+
}, {
|
233
237
|
tables: Record<string, {
|
234
|
-
schema?: string | undefined;
|
235
238
|
uniqueConstraints?: Record<string, string> | undefined;
|
236
239
|
name: string;
|
237
240
|
columns: Record<string, {
|
@@ -247,7 +250,8 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
247
250
|
foreignKeys: Record<string, string>;
|
248
251
|
compositePrimaryKeys: Record<string, string>;
|
249
252
|
}>;
|
250
|
-
|
253
|
+
version: "5";
|
254
|
+
dialect: "mysql";
|
251
255
|
}>, import("zod").ZodObject<{
|
252
256
|
version: import("zod").ZodLiteral<"5">;
|
253
257
|
dialect: import("zod").ZodEnum<["sqlite"]>;
|
@@ -311,8 +315,6 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
311
315
|
enums: import("zod").ZodAny;
|
312
316
|
}, "strict", import("zod").ZodTypeAny, {
|
313
317
|
enums?: any;
|
314
|
-
version: "5";
|
315
|
-
dialect: "sqlite";
|
316
318
|
tables: Record<string, {
|
317
319
|
name: string;
|
318
320
|
columns: Record<string, {
|
@@ -328,10 +330,10 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
328
330
|
compositePrimaryKeys: Record<string, string>;
|
329
331
|
uniqueConstraints: Record<string, string>;
|
330
332
|
}>;
|
331
|
-
}, {
|
332
|
-
enums?: any;
|
333
333
|
version: "5";
|
334
334
|
dialect: "sqlite";
|
335
|
+
}, {
|
336
|
+
enums?: any;
|
335
337
|
tables: Record<string, {
|
336
338
|
uniqueConstraints?: Record<string, string> | undefined;
|
337
339
|
name: string;
|
@@ -347,9 +349,11 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
347
349
|
foreignKeys: Record<string, string>;
|
348
350
|
compositePrimaryKeys: Record<string, string>;
|
349
351
|
}>;
|
352
|
+
version: "5";
|
353
|
+
dialect: "sqlite";
|
350
354
|
}>]>;
|
351
355
|
declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<import("zod").extendShape<{
|
352
|
-
version: import("zod").ZodLiteral<"
|
356
|
+
version: import("zod").ZodLiteral<"6">;
|
353
357
|
dialect: import("zod").ZodLiteral<"pg">;
|
354
358
|
tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
355
359
|
name: import("zod").ZodString;
|
@@ -357,6 +361,7 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
357
361
|
columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
358
362
|
name: import("zod").ZodString;
|
359
363
|
type: import("zod").ZodString;
|
364
|
+
typeSchema: import("zod").ZodOptional<import("zod").ZodString>;
|
360
365
|
primaryKey: import("zod").ZodBoolean;
|
361
366
|
notNull: import("zod").ZodBoolean;
|
362
367
|
default: import("zod").ZodOptional<import("zod").ZodAny>;
|
@@ -366,6 +371,7 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
366
371
|
}, "strict", import("zod").ZodTypeAny, {
|
367
372
|
isUnique?: any;
|
368
373
|
default?: any;
|
374
|
+
typeSchema?: string | undefined;
|
369
375
|
uniqueName?: string | undefined;
|
370
376
|
nullsNotDistinct?: boolean | undefined;
|
371
377
|
name: string;
|
@@ -375,6 +381,7 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
375
381
|
}, {
|
376
382
|
isUnique?: any;
|
377
383
|
default?: any;
|
384
|
+
typeSchema?: string | undefined;
|
378
385
|
uniqueName?: string | undefined;
|
379
386
|
nullsNotDistinct?: boolean | undefined;
|
380
387
|
name: string;
|
@@ -451,6 +458,7 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
451
458
|
columns: Record<string, {
|
452
459
|
isUnique?: any;
|
453
460
|
default?: any;
|
461
|
+
typeSchema?: string | undefined;
|
454
462
|
uniqueName?: string | undefined;
|
455
463
|
nullsNotDistinct?: boolean | undefined;
|
456
464
|
name: string;
|
@@ -493,6 +501,7 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
493
501
|
columns: Record<string, {
|
494
502
|
isUnique?: any;
|
495
503
|
default?: any;
|
504
|
+
typeSchema?: string | undefined;
|
496
505
|
uniqueName?: string | undefined;
|
497
506
|
nullsNotDistinct?: boolean | undefined;
|
498
507
|
name: string;
|
@@ -523,13 +532,16 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
523
532
|
}>>;
|
524
533
|
enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
525
534
|
name: import("zod").ZodString;
|
526
|
-
|
535
|
+
schema: import("zod").ZodString;
|
536
|
+
values: import("zod").ZodArray<import("zod").ZodString, "many">;
|
527
537
|
}, "strict", import("zod").ZodTypeAny, {
|
528
538
|
name: string;
|
529
|
-
values:
|
539
|
+
values: string[];
|
540
|
+
schema: string;
|
530
541
|
}, {
|
531
542
|
name: string;
|
532
|
-
values:
|
543
|
+
values: string[];
|
544
|
+
schema: string;
|
533
545
|
}>>;
|
534
546
|
schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
535
547
|
_meta: import("zod").ZodObject<{
|
@@ -603,15 +615,12 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
603
615
|
} | undefined>;
|
604
616
|
} | undefined>;
|
605
617
|
} | undefined;
|
606
|
-
id: string;
|
607
|
-
prevId: string;
|
608
|
-
version: "5";
|
609
|
-
dialect: "pg";
|
610
618
|
tables: Record<string, {
|
611
619
|
name: string;
|
612
620
|
columns: Record<string, {
|
613
621
|
isUnique?: any;
|
614
622
|
default?: any;
|
623
|
+
typeSchema?: string | undefined;
|
615
624
|
uniqueName?: string | undefined;
|
616
625
|
nullsNotDistinct?: boolean | undefined;
|
617
626
|
name: string;
|
@@ -645,6 +654,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
645
654
|
nullsNotDistinct: boolean;
|
646
655
|
}>;
|
647
656
|
}>;
|
657
|
+
id: string;
|
658
|
+
prevId: string;
|
659
|
+
version: "6";
|
660
|
+
dialect: "pg";
|
648
661
|
schemas: Record<string, string>;
|
649
662
|
_meta: {
|
650
663
|
columns: Record<string, string>;
|
@@ -653,7 +666,8 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
653
666
|
};
|
654
667
|
enums: Record<string, {
|
655
668
|
name: string;
|
656
|
-
values:
|
669
|
+
values: string[];
|
670
|
+
schema: string;
|
657
671
|
}>;
|
658
672
|
}, {
|
659
673
|
internal?: {
|
@@ -665,10 +679,6 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
665
679
|
} | undefined>;
|
666
680
|
} | undefined>;
|
667
681
|
} | undefined;
|
668
|
-
id: string;
|
669
|
-
prevId: string;
|
670
|
-
version: "5";
|
671
|
-
dialect: "pg";
|
672
682
|
tables: Record<string, {
|
673
683
|
uniqueConstraints?: Record<string, {
|
674
684
|
name: string;
|
@@ -679,6 +689,7 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
679
689
|
columns: Record<string, {
|
680
690
|
isUnique?: any;
|
681
691
|
default?: any;
|
692
|
+
typeSchema?: string | undefined;
|
682
693
|
uniqueName?: string | undefined;
|
683
694
|
nullsNotDistinct?: boolean | undefined;
|
684
695
|
name: string;
|
@@ -707,6 +718,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
707
718
|
columns: string[];
|
708
719
|
}>;
|
709
720
|
}>;
|
721
|
+
id: string;
|
722
|
+
prevId: string;
|
723
|
+
version: "6";
|
724
|
+
dialect: "pg";
|
710
725
|
schemas: Record<string, string>;
|
711
726
|
_meta: {
|
712
727
|
columns: Record<string, string>;
|
@@ -715,14 +730,14 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
715
730
|
};
|
716
731
|
enums: Record<string, {
|
717
732
|
name: string;
|
718
|
-
values:
|
733
|
+
values: string[];
|
734
|
+
schema: string;
|
719
735
|
}>;
|
720
736
|
}>, import("zod").ZodObject<import("zod").extendShape<{
|
721
|
-
version: import("zod").ZodLiteral<"
|
737
|
+
version: import("zod").ZodLiteral<"6">;
|
722
738
|
dialect: import("zod").ZodLiteral<"mysql">;
|
723
739
|
tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
724
740
|
name: import("zod").ZodString;
|
725
|
-
schema: import("zod").ZodOptional<import("zod").ZodString>;
|
726
741
|
columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
727
742
|
name: import("zod").ZodString;
|
728
743
|
type: import("zod").ZodString;
|
@@ -816,7 +831,6 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
816
831
|
columns: string[];
|
817
832
|
}>>>;
|
818
833
|
}, "strict", import("zod").ZodTypeAny, {
|
819
|
-
schema?: string | undefined;
|
820
834
|
name: string;
|
821
835
|
columns: Record<string, {
|
822
836
|
default?: any;
|
@@ -853,7 +867,6 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
853
867
|
columns: string[];
|
854
868
|
}>;
|
855
869
|
}, {
|
856
|
-
schema?: string | undefined;
|
857
870
|
uniqueConstraints?: Record<string, {
|
858
871
|
name: string;
|
859
872
|
columns: string[];
|
@@ -890,19 +903,15 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
890
903
|
columns: string[];
|
891
904
|
}>;
|
892
905
|
}>>;
|
893
|
-
schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
894
906
|
_meta: import("zod").ZodObject<{
|
895
|
-
schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
896
907
|
tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
897
908
|
columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
898
909
|
}, "strip", import("zod").ZodTypeAny, {
|
899
910
|
columns: Record<string, string>;
|
900
911
|
tables: Record<string, string>;
|
901
|
-
schemas: Record<string, string>;
|
902
912
|
}, {
|
903
913
|
columns: Record<string, string>;
|
904
914
|
tables: Record<string, string>;
|
905
|
-
schemas: Record<string, string>;
|
906
915
|
}>;
|
907
916
|
internal: import("zod").ZodOptional<import("zod").ZodObject<{
|
908
917
|
tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodObject<{
|
@@ -946,12 +955,7 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
946
955
|
} | undefined>;
|
947
956
|
} | undefined>;
|
948
957
|
} | undefined;
|
949
|
-
id: string;
|
950
|
-
prevId: string;
|
951
|
-
version: "5";
|
952
|
-
dialect: "mysql";
|
953
958
|
tables: Record<string, {
|
954
|
-
schema?: string | undefined;
|
955
959
|
name: string;
|
956
960
|
columns: Record<string, {
|
957
961
|
default?: any;
|
@@ -988,11 +992,13 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
988
992
|
columns: string[];
|
989
993
|
}>;
|
990
994
|
}>;
|
991
|
-
|
995
|
+
id: string;
|
996
|
+
prevId: string;
|
997
|
+
version: "6";
|
998
|
+
dialect: "mysql";
|
992
999
|
_meta: {
|
993
1000
|
columns: Record<string, string>;
|
994
1001
|
tables: Record<string, string>;
|
995
|
-
schemas: Record<string, string>;
|
996
1002
|
};
|
997
1003
|
}, {
|
998
1004
|
internal?: {
|
@@ -1002,12 +1008,7 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
1002
1008
|
} | undefined>;
|
1003
1009
|
} | undefined>;
|
1004
1010
|
} | undefined;
|
1005
|
-
id: string;
|
1006
|
-
prevId: string;
|
1007
|
-
version: "5";
|
1008
|
-
dialect: "mysql";
|
1009
1011
|
tables: Record<string, {
|
1010
|
-
schema?: string | undefined;
|
1011
1012
|
uniqueConstraints?: Record<string, {
|
1012
1013
|
name: string;
|
1013
1014
|
columns: string[];
|
@@ -1044,11 +1045,13 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
1044
1045
|
columns: string[];
|
1045
1046
|
}>;
|
1046
1047
|
}>;
|
1047
|
-
|
1048
|
+
id: string;
|
1049
|
+
prevId: string;
|
1050
|
+
version: "6";
|
1051
|
+
dialect: "mysql";
|
1048
1052
|
_meta: {
|
1049
1053
|
columns: Record<string, string>;
|
1050
1054
|
tables: Record<string, string>;
|
1051
|
-
schemas: Record<string, string>;
|
1052
1055
|
};
|
1053
1056
|
}>, import("zod").ZodObject<import("zod").extendShape<{
|
1054
1057
|
version: import("zod").ZodLiteral<"5">;
|
@@ -1220,10 +1223,6 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
1220
1223
|
id: import("zod").ZodString;
|
1221
1224
|
prevId: import("zod").ZodString;
|
1222
1225
|
}>, "strict", import("zod").ZodTypeAny, {
|
1223
|
-
id: string;
|
1224
|
-
prevId: string;
|
1225
|
-
version: "5";
|
1226
|
-
dialect: "sqlite";
|
1227
1226
|
tables: Record<string, {
|
1228
1227
|
name: string;
|
1229
1228
|
columns: Record<string, {
|
@@ -1258,16 +1257,16 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
1258
1257
|
columns: string[];
|
1259
1258
|
}>;
|
1260
1259
|
}>;
|
1260
|
+
id: string;
|
1261
|
+
prevId: string;
|
1262
|
+
version: "5";
|
1263
|
+
dialect: "sqlite";
|
1261
1264
|
_meta: {
|
1262
1265
|
columns: Record<string, string>;
|
1263
1266
|
tables: Record<string, string>;
|
1264
1267
|
};
|
1265
1268
|
enums: {};
|
1266
1269
|
}, {
|
1267
|
-
id: string;
|
1268
|
-
prevId: string;
|
1269
|
-
version: "5";
|
1270
|
-
dialect: "sqlite";
|
1271
1270
|
tables: Record<string, {
|
1272
1271
|
uniqueConstraints?: Record<string, {
|
1273
1272
|
name: string;
|
@@ -1302,6 +1301,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
1302
1301
|
columns: string[];
|
1303
1302
|
}>;
|
1304
1303
|
}>;
|
1304
|
+
id: string;
|
1305
|
+
prevId: string;
|
1306
|
+
version: "5";
|
1307
|
+
dialect: "sqlite";
|
1305
1308
|
_meta: {
|
1306
1309
|
columns: Record<string, string>;
|
1307
1310
|
tables: Record<string, string>;
|
@@ -1,11 +1,7 @@
|
|
1
|
-
import { AnyMySqlTable
|
1
|
+
import { AnyMySqlTable } from "drizzle-orm/mysql-core";
|
2
2
|
export declare const prepareFromExports: (exports: Record<string, unknown>) => {
|
3
|
-
tables: AnyMySqlTable
|
4
|
-
enums: any[];
|
5
|
-
schemas: MySqlSchema<string>[];
|
3
|
+
tables: AnyMySqlTable[];
|
6
4
|
};
|
7
5
|
export declare const prepareFromMySqlImports: (imports: string[]) => Promise<{
|
8
|
-
tables: AnyMySqlTable
|
9
|
-
enums: any[];
|
10
|
-
schemas: MySqlSchema<string>[];
|
6
|
+
tables: AnyMySqlTable[];
|
11
7
|
}>;
|