drizzle-kit 0.25.0-1f15bfd → 0.25.0-225f91d
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 +96 -0
- package/api.d.ts +96 -0
- package/api.js +1434 -643
- package/api.mjs +1434 -643
- package/bin.cjs +1021 -232
- package/index.d.mts +7 -0
- package/index.d.ts +7 -0
- package/package.json +2 -2
- package/utils.js +21 -3
- package/utils.mjs +21 -3
package/index.d.mts
CHANGED
@@ -124,6 +124,13 @@ type Config = {
|
|
124
124
|
introspect?: {
|
125
125
|
casing: 'camel' | 'preserve';
|
126
126
|
};
|
127
|
+
entities?: {
|
128
|
+
roles?: boolean | {
|
129
|
+
provider?: string;
|
130
|
+
exclude?: string[];
|
131
|
+
include?: string[];
|
132
|
+
}[];
|
133
|
+
};
|
127
134
|
} & ({
|
128
135
|
dialect: Verify<Dialect, 'turso'>;
|
129
136
|
dbCredentials: {
|
package/index.d.ts
CHANGED
@@ -124,6 +124,13 @@ type Config = {
|
|
124
124
|
introspect?: {
|
125
125
|
casing: 'camel' | 'preserve';
|
126
126
|
};
|
127
|
+
entities?: {
|
128
|
+
roles?: boolean | {
|
129
|
+
provider?: string;
|
130
|
+
exclude?: string[];
|
131
|
+
include?: string[];
|
132
|
+
}[];
|
133
|
+
};
|
127
134
|
} & ({
|
128
135
|
dialect: Verify<Dialect, 'turso'>;
|
129
136
|
dbCredentials: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.25.0-
|
3
|
+
"version": "0.25.0-225f91d",
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
5
5
|
"keywords": [
|
6
6
|
"drizzle",
|
@@ -51,7 +51,7 @@
|
|
51
51
|
"@arethetypeswrong/cli": "^0.15.3",
|
52
52
|
"@aws-sdk/client-rds-data": "^3.556.0",
|
53
53
|
"@cloudflare/workers-types": "^4.20230518.0",
|
54
|
-
"@electric-sql/pglite": "^0.
|
54
|
+
"@electric-sql/pglite": "^0.2.5",
|
55
55
|
"@hono/node-server": "^1.9.0",
|
56
56
|
"@hono/zod-validator": "^0.2.1",
|
57
57
|
"@libsql/client": "^0.10.0",
|
package/utils.js
CHANGED
@@ -5149,6 +5149,12 @@ var sequenceSchema = objectType({
|
|
5149
5149
|
cycle: booleanType().optional(),
|
5150
5150
|
schema: stringType()
|
5151
5151
|
}).strict();
|
5152
|
+
var roleSchema = objectType({
|
5153
|
+
name: stringType(),
|
5154
|
+
createDb: booleanType().optional(),
|
5155
|
+
createRole: booleanType().optional(),
|
5156
|
+
inherit: booleanType().optional()
|
5157
|
+
}).strict();
|
5152
5158
|
var sequenceSquashed = objectType({
|
5153
5159
|
name: stringType(),
|
5154
5160
|
schema: stringType(),
|
@@ -5212,6 +5218,14 @@ var uniqueConstraint2 = objectType({
|
|
5212
5218
|
columns: stringType().array(),
|
5213
5219
|
nullsNotDistinct: booleanType()
|
5214
5220
|
}).strict();
|
5221
|
+
var policy = objectType({
|
5222
|
+
name: stringType(),
|
5223
|
+
as: enumType(["PERMISSIVE", "RESTRICTIVE"]).optional(),
|
5224
|
+
for: enumType(["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]).optional(),
|
5225
|
+
to: stringType().array().optional(),
|
5226
|
+
using: stringType().optional(),
|
5227
|
+
withCheck: stringType().optional()
|
5228
|
+
}).strict();
|
5215
5229
|
var tableV42 = objectType({
|
5216
5230
|
name: stringType(),
|
5217
5231
|
schema: stringType(),
|
@@ -5253,7 +5267,8 @@ var table2 = objectType({
|
|
5253
5267
|
indexes: recordType(stringType(), index2),
|
5254
5268
|
foreignKeys: recordType(stringType(), fk2),
|
5255
5269
|
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5256
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5270
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({}),
|
5271
|
+
policies: recordType(stringType(), policy).default({})
|
5257
5272
|
}).strict();
|
5258
5273
|
var schemaHash2 = objectType({
|
5259
5274
|
id: stringType(),
|
@@ -5347,6 +5362,7 @@ var pgSchemaInternal = objectType({
|
|
5347
5362
|
enums: recordType(stringType(), enumSchema),
|
5348
5363
|
schemas: recordType(stringType(), stringType()),
|
5349
5364
|
sequences: recordType(stringType(), sequenceSchema).default({}),
|
5365
|
+
roles: recordType(stringType(), roleSchema).default({}),
|
5350
5366
|
_meta: objectType({
|
5351
5367
|
schemas: recordType(stringType(), stringType()),
|
5352
5368
|
tables: recordType(stringType(), stringType()),
|
@@ -5361,7 +5377,8 @@ var tableSquashed2 = objectType({
|
|
5361
5377
|
indexes: recordType(stringType(), stringType()),
|
5362
5378
|
foreignKeys: recordType(stringType(), stringType()),
|
5363
5379
|
compositePrimaryKeys: recordType(stringType(), stringType()),
|
5364
|
-
uniqueConstraints: recordType(stringType(), stringType())
|
5380
|
+
uniqueConstraints: recordType(stringType(), stringType()),
|
5381
|
+
policies: recordType(stringType(), stringType())
|
5365
5382
|
}).strict();
|
5366
5383
|
var tableSquashedV42 = objectType({
|
5367
5384
|
name: stringType(),
|
@@ -5390,7 +5407,8 @@ var pgSchemaSquashed = objectType({
|
|
5390
5407
|
tables: recordType(stringType(), tableSquashed2),
|
5391
5408
|
enums: recordType(stringType(), enumSchema),
|
5392
5409
|
schemas: recordType(stringType(), stringType()),
|
5393
|
-
sequences: recordType(stringType(), sequenceSquashed)
|
5410
|
+
sequences: recordType(stringType(), sequenceSquashed),
|
5411
|
+
roles: recordType(stringType(), roleSchema).default({})
|
5394
5412
|
}).strict();
|
5395
5413
|
var pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
|
5396
5414
|
var pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
|
package/utils.mjs
CHANGED
@@ -5127,6 +5127,12 @@ var sequenceSchema = objectType({
|
|
5127
5127
|
cycle: booleanType().optional(),
|
5128
5128
|
schema: stringType()
|
5129
5129
|
}).strict();
|
5130
|
+
var roleSchema = objectType({
|
5131
|
+
name: stringType(),
|
5132
|
+
createDb: booleanType().optional(),
|
5133
|
+
createRole: booleanType().optional(),
|
5134
|
+
inherit: booleanType().optional()
|
5135
|
+
}).strict();
|
5130
5136
|
var sequenceSquashed = objectType({
|
5131
5137
|
name: stringType(),
|
5132
5138
|
schema: stringType(),
|
@@ -5190,6 +5196,14 @@ var uniqueConstraint2 = objectType({
|
|
5190
5196
|
columns: stringType().array(),
|
5191
5197
|
nullsNotDistinct: booleanType()
|
5192
5198
|
}).strict();
|
5199
|
+
var policy = objectType({
|
5200
|
+
name: stringType(),
|
5201
|
+
as: enumType(["PERMISSIVE", "RESTRICTIVE"]).optional(),
|
5202
|
+
for: enumType(["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]).optional(),
|
5203
|
+
to: stringType().array().optional(),
|
5204
|
+
using: stringType().optional(),
|
5205
|
+
withCheck: stringType().optional()
|
5206
|
+
}).strict();
|
5193
5207
|
var tableV42 = objectType({
|
5194
5208
|
name: stringType(),
|
5195
5209
|
schema: stringType(),
|
@@ -5231,7 +5245,8 @@ var table2 = objectType({
|
|
5231
5245
|
indexes: recordType(stringType(), index2),
|
5232
5246
|
foreignKeys: recordType(stringType(), fk2),
|
5233
5247
|
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5234
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5248
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({}),
|
5249
|
+
policies: recordType(stringType(), policy).default({})
|
5235
5250
|
}).strict();
|
5236
5251
|
var schemaHash2 = objectType({
|
5237
5252
|
id: stringType(),
|
@@ -5325,6 +5340,7 @@ var pgSchemaInternal = objectType({
|
|
5325
5340
|
enums: recordType(stringType(), enumSchema),
|
5326
5341
|
schemas: recordType(stringType(), stringType()),
|
5327
5342
|
sequences: recordType(stringType(), sequenceSchema).default({}),
|
5343
|
+
roles: recordType(stringType(), roleSchema).default({}),
|
5328
5344
|
_meta: objectType({
|
5329
5345
|
schemas: recordType(stringType(), stringType()),
|
5330
5346
|
tables: recordType(stringType(), stringType()),
|
@@ -5339,7 +5355,8 @@ var tableSquashed2 = objectType({
|
|
5339
5355
|
indexes: recordType(stringType(), stringType()),
|
5340
5356
|
foreignKeys: recordType(stringType(), stringType()),
|
5341
5357
|
compositePrimaryKeys: recordType(stringType(), stringType()),
|
5342
|
-
uniqueConstraints: recordType(stringType(), stringType())
|
5358
|
+
uniqueConstraints: recordType(stringType(), stringType()),
|
5359
|
+
policies: recordType(stringType(), stringType())
|
5343
5360
|
}).strict();
|
5344
5361
|
var tableSquashedV42 = objectType({
|
5345
5362
|
name: stringType(),
|
@@ -5368,7 +5385,8 @@ var pgSchemaSquashed = objectType({
|
|
5368
5385
|
tables: recordType(stringType(), tableSquashed2),
|
5369
5386
|
enums: recordType(stringType(), enumSchema),
|
5370
5387
|
schemas: recordType(stringType(), stringType()),
|
5371
|
-
sequences: recordType(stringType(), sequenceSquashed)
|
5388
|
+
sequences: recordType(stringType(), sequenceSquashed),
|
5389
|
+
roles: recordType(stringType(), roleSchema).default({})
|
5372
5390
|
}).strict();
|
5373
5391
|
var pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
|
5374
5392
|
var pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
|