prisma 6.6.0-dev.87 → 6.6.0-dev.89

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.
@@ -122,6 +122,8 @@ declare type BatchQueryOptionsCbArgs = {
122
122
  __internalParams: BatchInternalParams;
123
123
  };
124
124
 
125
+ declare type BatchResponse = MultiBatchResponse | CompactedBatchResponse;
126
+
125
127
  declare type BatchTransactionOptions = {
126
128
  isolationLevel?: IsolationLevel;
127
129
  };
@@ -204,6 +206,15 @@ declare const ColumnTypeEnum: {
204
206
  readonly UnknownNumber: 128;
205
207
  };
206
208
 
209
+ declare type CompactedBatchResponse = {
210
+ type: 'compacted';
211
+ plan: object;
212
+ arguments: Map<string, {}>[];
213
+ nestedSelection: string[];
214
+ keys: string[];
215
+ expectNonEmpty: boolean;
216
+ };
217
+
207
218
  declare type CompilerWasmLoadingConfig = {
208
219
  /**
209
220
  * WASM-bindgen runtime for corresponding module
@@ -2283,6 +2294,11 @@ export declare type ModelQueryOptionsCbArgs = {
2283
2294
  query: (args: JsArgs) => Promise<unknown>;
2284
2295
  };
2285
2296
 
2297
+ declare type MultiBatchResponse = {
2298
+ type: 'multi';
2299
+ plans: object[];
2300
+ };
2301
+
2286
2302
  export declare type NameArgs = {
2287
2303
  name?: string;
2288
2304
  };
@@ -2630,6 +2646,7 @@ declare interface Queryable<Query, Result> extends AdapterInfo {
2630
2646
 
2631
2647
  declare type QueryCompiler = {
2632
2648
  compile(request: string): Promise<string>;
2649
+ compileBatch(batchRequest: string): Promise<BatchResponse>;
2633
2650
  };
2634
2651
 
2635
2652
  declare interface QueryCompilerConstructor {
@@ -122,6 +122,8 @@ declare type BatchQueryOptionsCbArgs = {
122
122
  __internalParams: BatchInternalParams;
123
123
  };
124
124
 
125
+ declare type BatchResponse = MultiBatchResponse | CompactedBatchResponse;
126
+
125
127
  declare type BatchTransactionOptions = {
126
128
  isolationLevel?: IsolationLevel;
127
129
  };
@@ -204,6 +206,15 @@ declare const ColumnTypeEnum: {
204
206
  readonly UnknownNumber: 128;
205
207
  };
206
208
 
209
+ declare type CompactedBatchResponse = {
210
+ type: 'compacted';
211
+ plan: object;
212
+ arguments: Map<string, {}>[];
213
+ nestedSelection: string[];
214
+ keys: string[];
215
+ expectNonEmpty: boolean;
216
+ };
217
+
207
218
  declare type CompilerWasmLoadingConfig = {
208
219
  /**
209
220
  * WASM-bindgen runtime for corresponding module
@@ -2283,6 +2294,11 @@ export declare type ModelQueryOptionsCbArgs = {
2283
2294
  query: (args: JsArgs) => Promise<unknown>;
2284
2295
  };
2285
2296
 
2297
+ declare type MultiBatchResponse = {
2298
+ type: 'multi';
2299
+ plans: object[];
2300
+ };
2301
+
2286
2302
  export declare type NameArgs = {
2287
2303
  name?: string;
2288
2304
  };
@@ -2630,6 +2646,7 @@ declare interface Queryable<Query, Result> extends AdapterInfo {
2630
2646
 
2631
2647
  declare type QueryCompiler = {
2632
2648
  compile(request: string): Promise<string>;
2649
+ compileBatch(batchRequest: string): Promise<BatchResponse>;
2633
2650
  };
2634
2651
 
2635
2652
  declare interface QueryCompilerConstructor {