drizzle-kit 0.23.2 → 0.24.0-5df8253
Sign up to get free protection for your applications and to get access to all the features.
- package/api.d.mts +30 -4
- package/api.d.ts +30 -4
- package/api.js +252 -120
- package/api.mjs +252 -120
- package/bin.cjs +439 -251
- package/package.json +2 -1
- package/utils.js +7 -1
- package/utils.mjs +6 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.24.0-5df8253",
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
5
5
|
"keywords": [
|
6
6
|
"drizzle",
|
@@ -98,6 +98,7 @@
|
|
98
98
|
"pluralize": "^8.0.0",
|
99
99
|
"postgres": "^3.4.4",
|
100
100
|
"prettier": "^2.8.1",
|
101
|
+
"pure-rand": "^6.1.0",
|
101
102
|
"semver": "^7.5.4",
|
102
103
|
"superjson": "^2.2.1",
|
103
104
|
"tsup": "^8.0.2",
|
package/utils.js
CHANGED
@@ -568,6 +568,7 @@ __export(utils_exports, {
|
|
568
568
|
columnRenameKey: () => columnRenameKey,
|
569
569
|
copy: () => copy,
|
570
570
|
dryJournal: () => dryJournal,
|
571
|
+
isPgArrayType: () => isPgArrayType,
|
571
572
|
kloudMeta: () => kloudMeta,
|
572
573
|
normaliseSQLiteUrl: () => normaliseSQLiteUrl,
|
573
574
|
objectValues: () => objectValues,
|
@@ -5263,7 +5264,8 @@ var kitInternals2 = objectType({
|
|
5263
5264
|
objectType({
|
5264
5265
|
isArray: booleanType().optional(),
|
5265
5266
|
dimensions: numberType().optional(),
|
5266
|
-
rawType: stringType().optional()
|
5267
|
+
rawType: stringType().optional(),
|
5268
|
+
isDefaultAnExpression: booleanType().optional()
|
5267
5269
|
}).optional()
|
5268
5270
|
)
|
5269
5271
|
}).optional()
|
@@ -5738,12 +5740,16 @@ var normaliseSQLiteUrl = (it, type) => {
|
|
5738
5740
|
}
|
5739
5741
|
assertUnreachable(type);
|
5740
5742
|
};
|
5743
|
+
function isPgArrayType(sqlType) {
|
5744
|
+
return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
|
5745
|
+
}
|
5741
5746
|
// Annotate the CommonJS export names for ESM import in node:
|
5742
5747
|
0 && (module.exports = {
|
5743
5748
|
assertV1OutFolder,
|
5744
5749
|
columnRenameKey,
|
5745
5750
|
copy,
|
5746
5751
|
dryJournal,
|
5752
|
+
isPgArrayType,
|
5747
5753
|
kloudMeta,
|
5748
5754
|
normaliseSQLiteUrl,
|
5749
5755
|
objectValues,
|
package/utils.mjs
CHANGED
@@ -5245,7 +5245,8 @@ var kitInternals2 = objectType({
|
|
5245
5245
|
objectType({
|
5246
5246
|
isArray: booleanType().optional(),
|
5247
5247
|
dimensions: numberType().optional(),
|
5248
|
-
rawType: stringType().optional()
|
5248
|
+
rawType: stringType().optional(),
|
5249
|
+
isDefaultAnExpression: booleanType().optional()
|
5249
5250
|
}).optional()
|
5250
5251
|
)
|
5251
5252
|
}).optional()
|
@@ -5720,11 +5721,15 @@ var normaliseSQLiteUrl = (it, type) => {
|
|
5720
5721
|
}
|
5721
5722
|
assertUnreachable(type);
|
5722
5723
|
};
|
5724
|
+
function isPgArrayType(sqlType) {
|
5725
|
+
return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
|
5726
|
+
}
|
5723
5727
|
export {
|
5724
5728
|
assertV1OutFolder,
|
5725
5729
|
columnRenameKey,
|
5726
5730
|
copy,
|
5727
5731
|
dryJournal,
|
5732
|
+
isPgArrayType,
|
5728
5733
|
kloudMeta,
|
5729
5734
|
normaliseSQLiteUrl,
|
5730
5735
|
objectValues,
|