@prisma/config 6.13.0-dev.6 → 6.13.0-dev.8
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/dist/index.d.ts +13 -0
- package/dist/index.js +16 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -280,6 +280,10 @@ export declare type PrismaConfig = {
|
|
|
280
280
|
* Configuration for Prisma migrations.
|
|
281
281
|
*/
|
|
282
282
|
migrations?: Simplify<MigrationsConfigShape>;
|
|
283
|
+
/**
|
|
284
|
+
* Configuration for the database table entities.
|
|
285
|
+
*/
|
|
286
|
+
tables?: Simplify<TablesConfigShape>;
|
|
283
287
|
/**
|
|
284
288
|
* Configuration for the database view entities.
|
|
285
289
|
*/
|
|
@@ -414,6 +418,15 @@ declare interface SqlResultSet {
|
|
|
414
418
|
lastInsertId?: string;
|
|
415
419
|
}
|
|
416
420
|
|
|
421
|
+
declare type TablesConfigShape = {
|
|
422
|
+
/**
|
|
423
|
+
* List of tables that are externally managed.
|
|
424
|
+
* Prisma will not modify the structure of these tables and not generate migrations for those tables.
|
|
425
|
+
* These tables will still be represented in schema.prisma file and be available in the client API.
|
|
426
|
+
*/
|
|
427
|
+
external?: string[];
|
|
428
|
+
};
|
|
429
|
+
|
|
417
430
|
declare interface Transaction extends AdapterInfo, SqlQueryable {
|
|
418
431
|
/**
|
|
419
432
|
* Transaction options.
|
package/dist/index.js
CHANGED
|
@@ -22774,6 +22774,7 @@ function defineConfig(configInput) {
|
|
|
22774
22774
|
defineAdapterConfig(config2, configInput);
|
|
22775
22775
|
defineStudioConfig(config2, configInput);
|
|
22776
22776
|
defineMigrationsConfig(config2, configInput);
|
|
22777
|
+
defineTablesConfig(config2, configInput);
|
|
22777
22778
|
defineTypedSqlConfig(config2, configInput);
|
|
22778
22779
|
defineViewsConfig(config2, configInput);
|
|
22779
22780
|
return config2;
|
|
@@ -22806,6 +22807,13 @@ function defineViewsConfig(config2, configInput) {
|
|
|
22806
22807
|
config2.views = configInput.views;
|
|
22807
22808
|
debug2("[config.views]: %o", config2.views);
|
|
22808
22809
|
}
|
|
22810
|
+
function defineTablesConfig(config2, configInput) {
|
|
22811
|
+
if (!configInput.tables) {
|
|
22812
|
+
return;
|
|
22813
|
+
}
|
|
22814
|
+
config2.tables = configInput.tables;
|
|
22815
|
+
debug2("[config.tables]: %o", config2.tables);
|
|
22816
|
+
}
|
|
22809
22817
|
function defineStudioConfig(config2, configInput) {
|
|
22810
22818
|
if (!configInput.studio?.adapter) {
|
|
22811
22819
|
return;
|
|
@@ -22862,6 +22870,13 @@ if (false) {
|
|
|
22862
22870
|
__testMigrationsConfigShapeValueA;
|
|
22863
22871
|
__testMigrationsConfigShapeValueB;
|
|
22864
22872
|
}
|
|
22873
|
+
var TablesConfigShape = Schema_exports.Struct({
|
|
22874
|
+
external: Schema_exports.optional(Schema_exports.mutable(Schema_exports.Array(Schema_exports.String)))
|
|
22875
|
+
});
|
|
22876
|
+
if (false) {
|
|
22877
|
+
__testTablesConfigShapeValueA;
|
|
22878
|
+
__testTablesConfigShapeValueB;
|
|
22879
|
+
}
|
|
22865
22880
|
var ViewsConfigShape = Schema_exports.Struct({
|
|
22866
22881
|
path: Schema_exports.optional(Schema_exports.String)
|
|
22867
22882
|
});
|
|
@@ -22896,6 +22911,7 @@ var PrismaConfigShape = Schema_exports.Struct({
|
|
|
22896
22911
|
studio: Schema_exports.optional(PrismaStudioConfigShape),
|
|
22897
22912
|
adapter: Schema_exports.optional(SqlMigrationAwareDriverAdapterFactoryShape),
|
|
22898
22913
|
migrations: Schema_exports.optional(MigrationsConfigShape),
|
|
22914
|
+
tables: Schema_exports.optional(TablesConfigShape),
|
|
22899
22915
|
views: Schema_exports.optional(ViewsConfigShape),
|
|
22900
22916
|
typedSql: Schema_exports.optional(TypedSqlConfigShape)
|
|
22901
22917
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/config",
|
|
3
|
-
"version": "6.13.0-dev.
|
|
3
|
+
"version": "6.13.0-dev.8",
|
|
4
4
|
"description": "Internal package used to define and read Prisma configuration files",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"effect": "3.16.12",
|
|
19
19
|
"vitest": "3.2.4",
|
|
20
|
-
"@prisma/driver-adapter-utils": "6.13.0-dev.
|
|
21
|
-
"@prisma/get-platform": "6.13.0-dev.
|
|
20
|
+
"@prisma/driver-adapter-utils": "6.13.0-dev.8",
|
|
21
|
+
"@prisma/get-platform": "6.13.0-dev.8"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|