@s-hirano-ist/s-database 1.19.0 → 1.20.0
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 +9 -9
- package/prisma/schema.prisma +4 -4
- package/src/generated/edge.js +7 -7
- package/src/generated/index-browser.js +4 -4
- package/src/generated/index.d.ts +3 -3
- package/src/generated/index.js +7 -7
- package/src/generated/package.json +3 -3
- 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 +28 -0
- package/src/generated/runtime/client.js +15 -15
- package/src/generated/runtime/wasm-compiler-edge.js +13 -13
- package/src/generated/schema.prisma +4 -4
- package/src/resolve-db-env.ts +36 -0
|
@@ -173,6 +173,8 @@ declare type BatchResponse = MultiBatchResponse | CompactedBatchResponse;
|
|
|
173
173
|
|
|
174
174
|
declare type BatchTransactionOptions = {
|
|
175
175
|
isolationLevel?: Transaction_2.IsolationLevel;
|
|
176
|
+
maxWait?: number;
|
|
177
|
+
timeout?: number;
|
|
176
178
|
};
|
|
177
179
|
|
|
178
180
|
/**
|
|
@@ -634,6 +636,8 @@ export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef
|
|
|
634
636
|
extArgs: ExtArgs;
|
|
635
637
|
}>>;
|
|
636
638
|
$transaction<P extends PrismaPromise<any>[]>(arg: [...P], options?: {
|
|
639
|
+
maxWait?: number;
|
|
640
|
+
timeout?: number;
|
|
637
641
|
isolationLevel?: TypeMap['meta']['txIsolationLevel'];
|
|
638
642
|
}): Promise<UnwrapTuple<P>>;
|
|
639
643
|
$transaction<R>(fn: (client: Omit<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList>) => Promise<R>, options?: {
|
|
@@ -807,6 +811,13 @@ declare interface EngineConfig {
|
|
|
807
811
|
* Runtime data model for enum lookups during parameterization.
|
|
808
812
|
*/
|
|
809
813
|
runtimeDataModel: RuntimeDataModel;
|
|
814
|
+
/**
|
|
815
|
+
* Optional maximum size for the query plan cache. If not provided, a default size will be used.
|
|
816
|
+
* A value of `0` can be used to disable the cache entirely. A higher cache size can improve
|
|
817
|
+
* performance for applications that execute a large number of unique queries, while a smaller
|
|
818
|
+
* cache size can reduce memory usage.
|
|
819
|
+
*/
|
|
820
|
+
queryPlanCacheMaxSize?: number;
|
|
810
821
|
}
|
|
811
822
|
|
|
812
823
|
declare type EngineEvent<E extends EngineEventType> = E extends QueryEventType ? QueryEvent : LogEvent;
|
|
@@ -2059,6 +2070,21 @@ export declare type PrismaClientOptions = PrismaClientMutuallyExclusiveOptions &
|
|
|
2059
2070
|
* ```
|
|
2060
2071
|
*/
|
|
2061
2072
|
comments?: SqlCommenterPlugin[];
|
|
2073
|
+
/**
|
|
2074
|
+
* Optional maximum size for the query plan cache. If not provided, a default size will be used.
|
|
2075
|
+
* A value of `0` can be used to disable the cache entirely. A higher cache size can improve
|
|
2076
|
+
* performance for applications that execute a large number of unique queries, while a smaller
|
|
2077
|
+
* cache size can reduce memory usage.
|
|
2078
|
+
*
|
|
2079
|
+
* @example
|
|
2080
|
+
* ```
|
|
2081
|
+
* const prisma = new PrismaClient({
|
|
2082
|
+
* adapter,
|
|
2083
|
+
* queryPlanCacheMaxSize: 100,
|
|
2084
|
+
* })
|
|
2085
|
+
* ```
|
|
2086
|
+
*/
|
|
2087
|
+
queryPlanCacheMaxSize?: number;
|
|
2062
2088
|
/**
|
|
2063
2089
|
* @internal
|
|
2064
2090
|
* You probably don't want to use this. \`__internal\` is used by internal tooling.
|
|
@@ -2123,6 +2149,8 @@ declare type PrismaPromiseBatchTransaction = {
|
|
|
2123
2149
|
kind: 'batch';
|
|
2124
2150
|
id: number;
|
|
2125
2151
|
isolationLevel?: IsolationLevel_2;
|
|
2152
|
+
maxWait?: number;
|
|
2153
|
+
timeout?: number;
|
|
2126
2154
|
index: number;
|
|
2127
2155
|
lock: PromiseLike<void>;
|
|
2128
2156
|
};
|