drizzle-kit 0.25.0-1fba875 → 0.25.0-20acc2f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.mts +86 -3
- package/api.d.ts +86 -3
- package/api.js +16847 -89308
- package/api.mjs +16847 -89305
- package/bin.cjs +1459 -582
- package/common-DYjgLS6u.d.mts +8 -0
- package/common-DYjgLS6u.d.ts +8 -0
- package/index.d.mts +2 -5
- package/index.d.ts +2 -5
- package/package.json +2 -2
- package/utils.js +32 -6
- package/utils.mjs +31 -6
package/api.d.mts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
2
2
|
import { MySql2Database } from 'drizzle-orm/mysql2';
|
3
3
|
import { PgDatabase } from 'drizzle-orm/pg-core';
|
4
|
+
import { C as CasingType } from './common-DYjgLS6u.mjs';
|
4
5
|
import * as zod from 'zod';
|
5
6
|
import { TypeOf } from 'zod';
|
6
7
|
|
@@ -119,6 +120,16 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
119
120
|
name: string;
|
120
121
|
columns: string[];
|
121
122
|
}>>>;
|
123
|
+
checkConstraint: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
124
|
+
name: zod.ZodString;
|
125
|
+
value: zod.ZodString;
|
126
|
+
}, "strict", zod.ZodTypeAny, {
|
127
|
+
name: string;
|
128
|
+
value: string;
|
129
|
+
}, {
|
130
|
+
name: string;
|
131
|
+
value: string;
|
132
|
+
}>>>;
|
122
133
|
}, "strict", zod.ZodTypeAny, {
|
123
134
|
name: string;
|
124
135
|
columns: Record<string, {
|
@@ -159,6 +170,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
159
170
|
name: string;
|
160
171
|
columns: string[];
|
161
172
|
}>;
|
173
|
+
checkConstraint: Record<string, {
|
174
|
+
name: string;
|
175
|
+
value: string;
|
176
|
+
}>;
|
162
177
|
}, {
|
163
178
|
name: string;
|
164
179
|
columns: Record<string, {
|
@@ -199,6 +214,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
199
214
|
name: string;
|
200
215
|
columns: string[];
|
201
216
|
}> | undefined;
|
217
|
+
checkConstraint?: Record<string, {
|
218
|
+
name: string;
|
219
|
+
value: string;
|
220
|
+
}> | undefined;
|
202
221
|
}>>;
|
203
222
|
_meta: zod.ZodObject<{
|
204
223
|
tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
@@ -312,6 +331,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
312
331
|
name: string;
|
313
332
|
columns: string[];
|
314
333
|
}>;
|
334
|
+
checkConstraint: Record<string, {
|
335
|
+
name: string;
|
336
|
+
value: string;
|
337
|
+
}>;
|
315
338
|
}>;
|
316
339
|
id: string;
|
317
340
|
prevId: string;
|
@@ -374,6 +397,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
374
397
|
name: string;
|
375
398
|
columns: string[];
|
376
399
|
}> | undefined;
|
400
|
+
checkConstraint?: Record<string, {
|
401
|
+
name: string;
|
402
|
+
value: string;
|
403
|
+
}> | undefined;
|
377
404
|
}>;
|
378
405
|
id: string;
|
379
406
|
prevId: string;
|
@@ -613,6 +640,16 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
613
640
|
columns: string[];
|
614
641
|
nullsNotDistinct: boolean;
|
615
642
|
}>>>;
|
643
|
+
checkConstraints: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
644
|
+
name: zod.ZodString;
|
645
|
+
value: zod.ZodString;
|
646
|
+
}, "strict", zod.ZodTypeAny, {
|
647
|
+
name: string;
|
648
|
+
value: string;
|
649
|
+
}, {
|
650
|
+
name: string;
|
651
|
+
value: string;
|
652
|
+
}>>>;
|
616
653
|
}, "strict", zod.ZodTypeAny, {
|
617
654
|
name: string;
|
618
655
|
columns: Record<string, {
|
@@ -676,6 +713,10 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
676
713
|
columns: string[];
|
677
714
|
nullsNotDistinct: boolean;
|
678
715
|
}>;
|
716
|
+
checkConstraints: Record<string, {
|
717
|
+
name: string;
|
718
|
+
value: string;
|
719
|
+
}>;
|
679
720
|
}, {
|
680
721
|
name: string;
|
681
722
|
columns: Record<string, {
|
@@ -739,6 +780,10 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
739
780
|
columns: string[];
|
740
781
|
nullsNotDistinct: boolean;
|
741
782
|
}> | undefined;
|
783
|
+
checkConstraints?: Record<string, {
|
784
|
+
name: string;
|
785
|
+
value: string;
|
786
|
+
}> | undefined;
|
742
787
|
}>>;
|
743
788
|
enums: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
744
789
|
name: zod.ZodString;
|
@@ -914,6 +959,10 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
914
959
|
columns: string[];
|
915
960
|
nullsNotDistinct: boolean;
|
916
961
|
}>;
|
962
|
+
checkConstraints: Record<string, {
|
963
|
+
name: string;
|
964
|
+
value: string;
|
965
|
+
}>;
|
917
966
|
}>;
|
918
967
|
id: string;
|
919
968
|
prevId: string;
|
@@ -1014,6 +1063,10 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1014
1063
|
columns: string[];
|
1015
1064
|
nullsNotDistinct: boolean;
|
1016
1065
|
}> | undefined;
|
1066
|
+
checkConstraints?: Record<string, {
|
1067
|
+
name: string;
|
1068
|
+
value: string;
|
1069
|
+
}> | undefined;
|
1017
1070
|
}>;
|
1018
1071
|
id: string;
|
1019
1072
|
prevId: string;
|
@@ -1159,6 +1212,16 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1159
1212
|
name: string;
|
1160
1213
|
columns: string[];
|
1161
1214
|
}>>>;
|
1215
|
+
checkConstraints: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
1216
|
+
name: zod.ZodString;
|
1217
|
+
value: zod.ZodString;
|
1218
|
+
}, "strict", zod.ZodTypeAny, {
|
1219
|
+
name: string;
|
1220
|
+
value: string;
|
1221
|
+
}, {
|
1222
|
+
name: string;
|
1223
|
+
value: string;
|
1224
|
+
}>>>;
|
1162
1225
|
}, "strict", zod.ZodTypeAny, {
|
1163
1226
|
name: string;
|
1164
1227
|
columns: Record<string, {
|
@@ -1196,6 +1259,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1196
1259
|
name: string;
|
1197
1260
|
columns: string[];
|
1198
1261
|
}>;
|
1262
|
+
checkConstraints: Record<string, {
|
1263
|
+
name: string;
|
1264
|
+
value: string;
|
1265
|
+
}>;
|
1199
1266
|
}, {
|
1200
1267
|
name: string;
|
1201
1268
|
columns: Record<string, {
|
@@ -1233,6 +1300,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1233
1300
|
name: string;
|
1234
1301
|
columns: string[];
|
1235
1302
|
}> | undefined;
|
1303
|
+
checkConstraints?: Record<string, {
|
1304
|
+
name: string;
|
1305
|
+
value: string;
|
1306
|
+
}> | undefined;
|
1236
1307
|
}>>;
|
1237
1308
|
enums: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
1238
1309
|
_meta: zod.ZodObject<{
|
@@ -1317,6 +1388,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1317
1388
|
name: string;
|
1318
1389
|
columns: string[];
|
1319
1390
|
}>;
|
1391
|
+
checkConstraints: Record<string, {
|
1392
|
+
name: string;
|
1393
|
+
value: string;
|
1394
|
+
}>;
|
1320
1395
|
}>;
|
1321
1396
|
id: string;
|
1322
1397
|
prevId: string;
|
@@ -1372,6 +1447,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1372
1447
|
name: string;
|
1373
1448
|
columns: string[];
|
1374
1449
|
}> | undefined;
|
1450
|
+
checkConstraints?: Record<string, {
|
1451
|
+
name: string;
|
1452
|
+
value: string;
|
1453
|
+
}> | undefined;
|
1375
1454
|
}>;
|
1376
1455
|
id: string;
|
1377
1456
|
prevId: string;
|
@@ -1395,7 +1474,7 @@ type SQLiteSchema = TypeOf<typeof schema>;
|
|
1395
1474
|
type DrizzleSnapshotJSON = PgSchema;
|
1396
1475
|
type DrizzleSQLiteSnapshotJSON = SQLiteSchema;
|
1397
1476
|
type DrizzleMySQLSnapshotJSON = MySqlSchema;
|
1398
|
-
declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[]) => PgSchema;
|
1477
|
+
declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema;
|
1399
1478
|
declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
|
1400
1479
|
declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[]) => Promise<{
|
1401
1480
|
hasDataLoss: boolean;
|
@@ -1403,7 +1482,7 @@ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: Pg
|
|
1403
1482
|
statementsToExecute: string[];
|
1404
1483
|
apply: () => Promise<void>;
|
1405
1484
|
}>;
|
1406
|
-
declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => Promise<SQLiteSchema>;
|
1485
|
+
declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SQLiteSchema>;
|
1407
1486
|
declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
|
1408
1487
|
declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any>) => Promise<{
|
1409
1488
|
hasDataLoss: boolean;
|
@@ -1411,7 +1490,7 @@ declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstan
|
|
1411
1490
|
statementsToExecute: string[];
|
1412
1491
|
apply: () => Promise<void>;
|
1413
1492
|
}>;
|
1414
|
-
declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => Promise<MySqlSchema>;
|
1493
|
+
declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<MySqlSchema>;
|
1415
1494
|
declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise<string[]>;
|
1416
1495
|
declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstance: MySql2Database<any>, databaseName: string) => Promise<{
|
1417
1496
|
hasDataLoss: boolean;
|
@@ -1485,6 +1564,10 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1485
1564
|
columns: string[];
|
1486
1565
|
nullsNotDistinct: boolean;
|
1487
1566
|
}>;
|
1567
|
+
checkConstraints: Record<string, {
|
1568
|
+
value: string;
|
1569
|
+
name: string;
|
1570
|
+
}>;
|
1488
1571
|
}>;
|
1489
1572
|
enums: Record<string, {
|
1490
1573
|
values: string[];
|
package/api.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
2
2
|
import { MySql2Database } from 'drizzle-orm/mysql2';
|
3
3
|
import { PgDatabase } from 'drizzle-orm/pg-core';
|
4
|
+
import { C as CasingType } from './common-DYjgLS6u.js';
|
4
5
|
import * as zod from 'zod';
|
5
6
|
import { TypeOf } from 'zod';
|
6
7
|
|
@@ -119,6 +120,16 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
119
120
|
name: string;
|
120
121
|
columns: string[];
|
121
122
|
}>>>;
|
123
|
+
checkConstraint: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
124
|
+
name: zod.ZodString;
|
125
|
+
value: zod.ZodString;
|
126
|
+
}, "strict", zod.ZodTypeAny, {
|
127
|
+
name: string;
|
128
|
+
value: string;
|
129
|
+
}, {
|
130
|
+
name: string;
|
131
|
+
value: string;
|
132
|
+
}>>>;
|
122
133
|
}, "strict", zod.ZodTypeAny, {
|
123
134
|
name: string;
|
124
135
|
columns: Record<string, {
|
@@ -159,6 +170,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
159
170
|
name: string;
|
160
171
|
columns: string[];
|
161
172
|
}>;
|
173
|
+
checkConstraint: Record<string, {
|
174
|
+
name: string;
|
175
|
+
value: string;
|
176
|
+
}>;
|
162
177
|
}, {
|
163
178
|
name: string;
|
164
179
|
columns: Record<string, {
|
@@ -199,6 +214,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
199
214
|
name: string;
|
200
215
|
columns: string[];
|
201
216
|
}> | undefined;
|
217
|
+
checkConstraint?: Record<string, {
|
218
|
+
name: string;
|
219
|
+
value: string;
|
220
|
+
}> | undefined;
|
202
221
|
}>>;
|
203
222
|
_meta: zod.ZodObject<{
|
204
223
|
tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
@@ -312,6 +331,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
312
331
|
name: string;
|
313
332
|
columns: string[];
|
314
333
|
}>;
|
334
|
+
checkConstraint: Record<string, {
|
335
|
+
name: string;
|
336
|
+
value: string;
|
337
|
+
}>;
|
315
338
|
}>;
|
316
339
|
id: string;
|
317
340
|
prevId: string;
|
@@ -374,6 +397,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
374
397
|
name: string;
|
375
398
|
columns: string[];
|
376
399
|
}> | undefined;
|
400
|
+
checkConstraint?: Record<string, {
|
401
|
+
name: string;
|
402
|
+
value: string;
|
403
|
+
}> | undefined;
|
377
404
|
}>;
|
378
405
|
id: string;
|
379
406
|
prevId: string;
|
@@ -613,6 +640,16 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
613
640
|
columns: string[];
|
614
641
|
nullsNotDistinct: boolean;
|
615
642
|
}>>>;
|
643
|
+
checkConstraints: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
644
|
+
name: zod.ZodString;
|
645
|
+
value: zod.ZodString;
|
646
|
+
}, "strict", zod.ZodTypeAny, {
|
647
|
+
name: string;
|
648
|
+
value: string;
|
649
|
+
}, {
|
650
|
+
name: string;
|
651
|
+
value: string;
|
652
|
+
}>>>;
|
616
653
|
}, "strict", zod.ZodTypeAny, {
|
617
654
|
name: string;
|
618
655
|
columns: Record<string, {
|
@@ -676,6 +713,10 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
676
713
|
columns: string[];
|
677
714
|
nullsNotDistinct: boolean;
|
678
715
|
}>;
|
716
|
+
checkConstraints: Record<string, {
|
717
|
+
name: string;
|
718
|
+
value: string;
|
719
|
+
}>;
|
679
720
|
}, {
|
680
721
|
name: string;
|
681
722
|
columns: Record<string, {
|
@@ -739,6 +780,10 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
739
780
|
columns: string[];
|
740
781
|
nullsNotDistinct: boolean;
|
741
782
|
}> | undefined;
|
783
|
+
checkConstraints?: Record<string, {
|
784
|
+
name: string;
|
785
|
+
value: string;
|
786
|
+
}> | undefined;
|
742
787
|
}>>;
|
743
788
|
enums: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
744
789
|
name: zod.ZodString;
|
@@ -914,6 +959,10 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
914
959
|
columns: string[];
|
915
960
|
nullsNotDistinct: boolean;
|
916
961
|
}>;
|
962
|
+
checkConstraints: Record<string, {
|
963
|
+
name: string;
|
964
|
+
value: string;
|
965
|
+
}>;
|
917
966
|
}>;
|
918
967
|
id: string;
|
919
968
|
prevId: string;
|
@@ -1014,6 +1063,10 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1014
1063
|
columns: string[];
|
1015
1064
|
nullsNotDistinct: boolean;
|
1016
1065
|
}> | undefined;
|
1066
|
+
checkConstraints?: Record<string, {
|
1067
|
+
name: string;
|
1068
|
+
value: string;
|
1069
|
+
}> | undefined;
|
1017
1070
|
}>;
|
1018
1071
|
id: string;
|
1019
1072
|
prevId: string;
|
@@ -1159,6 +1212,16 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1159
1212
|
name: string;
|
1160
1213
|
columns: string[];
|
1161
1214
|
}>>>;
|
1215
|
+
checkConstraints: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
1216
|
+
name: zod.ZodString;
|
1217
|
+
value: zod.ZodString;
|
1218
|
+
}, "strict", zod.ZodTypeAny, {
|
1219
|
+
name: string;
|
1220
|
+
value: string;
|
1221
|
+
}, {
|
1222
|
+
name: string;
|
1223
|
+
value: string;
|
1224
|
+
}>>>;
|
1162
1225
|
}, "strict", zod.ZodTypeAny, {
|
1163
1226
|
name: string;
|
1164
1227
|
columns: Record<string, {
|
@@ -1196,6 +1259,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1196
1259
|
name: string;
|
1197
1260
|
columns: string[];
|
1198
1261
|
}>;
|
1262
|
+
checkConstraints: Record<string, {
|
1263
|
+
name: string;
|
1264
|
+
value: string;
|
1265
|
+
}>;
|
1199
1266
|
}, {
|
1200
1267
|
name: string;
|
1201
1268
|
columns: Record<string, {
|
@@ -1233,6 +1300,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1233
1300
|
name: string;
|
1234
1301
|
columns: string[];
|
1235
1302
|
}> | undefined;
|
1303
|
+
checkConstraints?: Record<string, {
|
1304
|
+
name: string;
|
1305
|
+
value: string;
|
1306
|
+
}> | undefined;
|
1236
1307
|
}>>;
|
1237
1308
|
enums: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
1238
1309
|
_meta: zod.ZodObject<{
|
@@ -1317,6 +1388,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1317
1388
|
name: string;
|
1318
1389
|
columns: string[];
|
1319
1390
|
}>;
|
1391
|
+
checkConstraints: Record<string, {
|
1392
|
+
name: string;
|
1393
|
+
value: string;
|
1394
|
+
}>;
|
1320
1395
|
}>;
|
1321
1396
|
id: string;
|
1322
1397
|
prevId: string;
|
@@ -1372,6 +1447,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1372
1447
|
name: string;
|
1373
1448
|
columns: string[];
|
1374
1449
|
}> | undefined;
|
1450
|
+
checkConstraints?: Record<string, {
|
1451
|
+
name: string;
|
1452
|
+
value: string;
|
1453
|
+
}> | undefined;
|
1375
1454
|
}>;
|
1376
1455
|
id: string;
|
1377
1456
|
prevId: string;
|
@@ -1395,7 +1474,7 @@ type SQLiteSchema = TypeOf<typeof schema>;
|
|
1395
1474
|
type DrizzleSnapshotJSON = PgSchema;
|
1396
1475
|
type DrizzleSQLiteSnapshotJSON = SQLiteSchema;
|
1397
1476
|
type DrizzleMySQLSnapshotJSON = MySqlSchema;
|
1398
|
-
declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[]) => PgSchema;
|
1477
|
+
declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema;
|
1399
1478
|
declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
|
1400
1479
|
declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[]) => Promise<{
|
1401
1480
|
hasDataLoss: boolean;
|
@@ -1403,7 +1482,7 @@ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: Pg
|
|
1403
1482
|
statementsToExecute: string[];
|
1404
1483
|
apply: () => Promise<void>;
|
1405
1484
|
}>;
|
1406
|
-
declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => Promise<SQLiteSchema>;
|
1485
|
+
declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SQLiteSchema>;
|
1407
1486
|
declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
|
1408
1487
|
declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any>) => Promise<{
|
1409
1488
|
hasDataLoss: boolean;
|
@@ -1411,7 +1490,7 @@ declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstan
|
|
1411
1490
|
statementsToExecute: string[];
|
1412
1491
|
apply: () => Promise<void>;
|
1413
1492
|
}>;
|
1414
|
-
declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => Promise<MySqlSchema>;
|
1493
|
+
declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<MySqlSchema>;
|
1415
1494
|
declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise<string[]>;
|
1416
1495
|
declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstance: MySql2Database<any>, databaseName: string) => Promise<{
|
1417
1496
|
hasDataLoss: boolean;
|
@@ -1485,6 +1564,10 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1485
1564
|
columns: string[];
|
1486
1565
|
nullsNotDistinct: boolean;
|
1487
1566
|
}>;
|
1567
|
+
checkConstraints: Record<string, {
|
1568
|
+
value: string;
|
1569
|
+
name: string;
|
1570
|
+
}>;
|
1488
1571
|
}>;
|
1489
1572
|
enums: Record<string, {
|
1490
1573
|
values: string[];
|