@prisma/config 6.6.0-dev.32 → 6.6.0-dev.33
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 +5 -10
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,8 @@ export declare function defineConfig<Env extends Record<string, string | undefin
|
|
|
82
82
|
|
|
83
83
|
declare type EnvVars = Record<string, string | undefined>;
|
|
84
84
|
|
|
85
|
+
declare type IsolationLevel = 'READ UNCOMMITTED' | 'READ COMMITTED' | 'REPEATABLE READ' | 'SNAPSHOT' | 'SERIALIZABLE';
|
|
86
|
+
|
|
85
87
|
/**
|
|
86
88
|
* Load a Prisma config file from the given directory.
|
|
87
89
|
* This function may fail, but it will never throw.
|
|
@@ -187,7 +189,7 @@ declare type PrismaSchemaConfigShape = {
|
|
|
187
189
|
};
|
|
188
190
|
|
|
189
191
|
declare type PrismaStudioConfigShape<Env extends EnvVars = never> = {
|
|
190
|
-
adapter: (env: Env) => Promise<
|
|
192
|
+
adapter: (env: Env) => Promise<SqlDriverAdapter>;
|
|
191
193
|
};
|
|
192
194
|
|
|
193
195
|
declare type Provider = 'mysql' | 'postgres' | 'sqlite';
|
|
@@ -203,7 +205,7 @@ declare interface Queryable<Query, Result> extends AdapterInfo {
|
|
|
203
205
|
executeRaw(params: Query): Promise<number>;
|
|
204
206
|
}
|
|
205
207
|
|
|
206
|
-
declare interface
|
|
208
|
+
declare interface SqlDriverAdapter extends SqlQueryable {
|
|
207
209
|
/**
|
|
208
210
|
* Execute multiple SQL statements separated by semicolon.
|
|
209
211
|
*/
|
|
@@ -211,7 +213,7 @@ declare interface SqlConnection extends SqlQueryable {
|
|
|
211
213
|
/**
|
|
212
214
|
* Start new transaction.
|
|
213
215
|
*/
|
|
214
|
-
|
|
216
|
+
startTransaction(isolationLevel?: IsolationLevel): Promise<Transaction>;
|
|
215
217
|
/**
|
|
216
218
|
* Optional method that returns extra connection info
|
|
217
219
|
*/
|
|
@@ -268,13 +270,6 @@ declare interface Transaction extends AdapterInfo, SqlQueryable {
|
|
|
268
270
|
rollback(): Promise<void>;
|
|
269
271
|
}
|
|
270
272
|
|
|
271
|
-
declare interface TransactionContext extends AdapterInfo, SqlQueryable {
|
|
272
|
-
/**
|
|
273
|
-
* Start new transaction.
|
|
274
|
-
*/
|
|
275
|
-
startTransaction(): Promise<Transaction>;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
273
|
declare type TransactionOptions = {
|
|
279
274
|
usePhantomQuery: boolean;
|
|
280
275
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/config",
|
|
3
|
-
"version": "6.6.0-dev.
|
|
3
|
+
"version": "6.6.0-dev.33",
|
|
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",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"esbuild-register": "3.6.0",
|
|
23
23
|
"jest": "29.7.0",
|
|
24
24
|
"jest-junit": "16.0.0",
|
|
25
|
-
"@prisma/
|
|
26
|
-
"@prisma/
|
|
25
|
+
"@prisma/driver-adapter-utils": "6.6.0-dev.33",
|
|
26
|
+
"@prisma/get-platform": "6.6.0-dev.33"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|