@s-hirano-ist/s-database 1.18.3 → 1.18.5
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/package.json +6 -6
- package/src/generated/edge.js +6 -6
- package/src/generated/index-browser.js +4 -4
- package/src/generated/index.d.ts +27 -2
- package/src/generated/index.js +6 -6
- package/src/generated/package.json +2 -2
- package/src/generated/query_compiler_fast_bg.wasm +0 -0
- package/src/generated/query_compiler_fast_bg.wasm-base64.js +1 -1
- package/src/generated/runtime/client.d.ts +26 -2
- package/src/generated/runtime/client.js +20 -20
- package/src/generated/runtime/index-browser.d.ts +3 -0
- package/src/generated/runtime/index-browser.js +1 -1
- package/src/generated/runtime/wasm-compiler-edge.js +18 -18
- package/src/index.ts +13 -0
|
@@ -7,6 +7,7 @@ import { empty } from '@prisma/client-runtime-utils';
|
|
|
7
7
|
import { isAnyNull } from '@prisma/client-runtime-utils';
|
|
8
8
|
import { isDbNull } from '@prisma/client-runtime-utils';
|
|
9
9
|
import { isJsonNull } from '@prisma/client-runtime-utils';
|
|
10
|
+
import { isObjectEnumValue } from '@prisma/client-runtime-utils';
|
|
10
11
|
import { join } from '@prisma/client-runtime-utils';
|
|
11
12
|
import { JsonNull } from '@prisma/client-runtime-utils';
|
|
12
13
|
import { JsonNullClass } from '@prisma/client-runtime-utils';
|
|
@@ -461,7 +462,7 @@ export declare function defineDmmfProperty(target: object, runtimeDataModel: Run
|
|
|
461
462
|
|
|
462
463
|
declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Client)): (client: Client) => Client;
|
|
463
464
|
|
|
464
|
-
declare const denylist: readonly ["$connect", "$disconnect", "$on", "$
|
|
465
|
+
declare const denylist: readonly ["$connect", "$disconnect", "$on", "$use", "$extends"];
|
|
465
466
|
|
|
466
467
|
declare type Deprecation = ReadonlyDeep_2<{
|
|
467
468
|
sinceVersion: string;
|
|
@@ -1263,7 +1264,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1263
1264
|
callback: (client: Client) => Promise<unknown>;
|
|
1264
1265
|
options?: Options;
|
|
1265
1266
|
}): Promise<unknown>;
|
|
1266
|
-
_createItxClient(transaction: PrismaPromiseInteractiveTransaction): Client;
|
|
1267
|
+
_createItxClient(transaction: PrismaPromiseInteractiveTransaction, scopeId: string, scopeState: ItxScopeState): Client;
|
|
1267
1268
|
/**
|
|
1268
1269
|
* Execute queries within a transaction
|
|
1269
1270
|
* @param input a callback or a query list
|
|
@@ -1543,6 +1544,8 @@ export { isDbNull }
|
|
|
1543
1544
|
|
|
1544
1545
|
export { isJsonNull }
|
|
1545
1546
|
|
|
1547
|
+
export { isObjectEnumValue }
|
|
1548
|
+
|
|
1546
1549
|
declare type IsolationLevel = 'READ UNCOMMITTED' | 'READ COMMITTED' | 'REPEATABLE READ' | 'SNAPSHOT' | 'SERIALIZABLE';
|
|
1547
1550
|
|
|
1548
1551
|
declare type IsolationLevel_2 = 'ReadUncommitted' | 'ReadCommitted' | 'RepeatableRead' | 'Snapshot' | 'Serializable';
|
|
@@ -1555,6 +1558,10 @@ export declare type ITXClientDenyList = (typeof denylist)[number];
|
|
|
1555
1558
|
|
|
1556
1559
|
export declare const itxClientDenyList: readonly (string | symbol)[];
|
|
1557
1560
|
|
|
1561
|
+
declare type ItxScopeState = {
|
|
1562
|
+
stack: string[];
|
|
1563
|
+
};
|
|
1564
|
+
|
|
1558
1565
|
declare interface Job {
|
|
1559
1566
|
resolve: (data: any) => void;
|
|
1560
1567
|
reject: (data: any) => void;
|
|
@@ -1913,6 +1920,11 @@ declare type Options = {
|
|
|
1913
1920
|
timeout?: number;
|
|
1914
1921
|
/** Transaction isolation level */
|
|
1915
1922
|
isolationLevel?: IsolationLevel_2;
|
|
1923
|
+
/**
|
|
1924
|
+
* Used for nested interactive transactions. When provided, the engine may
|
|
1925
|
+
* re-use an existing open transaction instead of opening a new one.
|
|
1926
|
+
*/
|
|
1927
|
+
newTxId?: string;
|
|
1916
1928
|
};
|
|
1917
1929
|
|
|
1918
1930
|
export declare type Or<A extends 1 | 0, B extends 1 | 0> = {
|
|
@@ -3151,6 +3163,18 @@ declare interface Transaction extends AdapterInfo, SqlQueryable {
|
|
|
3151
3163
|
* Roll back the transaction.
|
|
3152
3164
|
*/
|
|
3153
3165
|
rollback(): Promise<void>;
|
|
3166
|
+
/**
|
|
3167
|
+
* Creates a savepoint within the currently running transaction.
|
|
3168
|
+
*/
|
|
3169
|
+
createSavepoint?(name: string): Promise<void>;
|
|
3170
|
+
/**
|
|
3171
|
+
* Rolls back transaction state to a previously created savepoint.
|
|
3172
|
+
*/
|
|
3173
|
+
rollbackToSavepoint?(name: string): Promise<void>;
|
|
3174
|
+
/**
|
|
3175
|
+
* Releases a previously created savepoint. Optional because not every connector supports this operation.
|
|
3176
|
+
*/
|
|
3177
|
+
releaseSavepoint?(name: string): Promise<void>;
|
|
3154
3178
|
}
|
|
3155
3179
|
|
|
3156
3180
|
declare namespace Transaction_2 {
|