@prisma/client 6.1.0-dev.7 → 6.1.0-integration-expose-deserialize-raw-result.1

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.
@@ -648,8 +648,12 @@ declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Clien
648
648
 
649
649
  declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"];
650
650
 
651
+ declare type DeserializedResponse = Array<Record<string, unknown>>;
652
+
651
653
  export declare function deserializeJsonResponse(result: unknown): unknown;
652
654
 
655
+ export declare function deserializeRawResult(response: RawResponse): DeserializedResponse;
656
+
653
657
  export declare type DevTypeMapDef = {
654
658
  meta: {
655
659
  modelProps: string;
@@ -2588,6 +2592,8 @@ declare type QueryEvent = {
2588
2592
 
2589
2593
  declare type QueryEventType = 'query';
2590
2594
 
2595
+ declare type QueryIntrospectionBuiltinType = 'int' | 'bigint' | 'float' | 'double' | 'string' | 'enum' | 'bytes' | 'bool' | 'char' | 'decimal' | 'json' | 'xml' | 'uuid' | 'datetime' | 'date' | 'time' | 'int-array' | 'bigint-array' | 'float-array' | 'double-array' | 'string-array' | 'char-array' | 'bytes-array' | 'bool-array' | 'decimal-array' | 'json-array' | 'xml-array' | 'uuid-array' | 'datetime-array' | 'date-array' | 'time-array' | 'null' | 'unknown';
2596
+
2591
2597
  declare type QueryMiddleware = (params: QueryMiddlewareParams, next: (params: QueryMiddlewareParams) => Promise<unknown>) => Promise<unknown>;
2592
2598
 
2593
2599
  declare type QueryMiddlewareParams = {
@@ -2631,6 +2637,12 @@ export declare type RawParameters = {
2631
2637
 
2632
2638
  export declare type RawQueryArgs = Sql | UnknownTypedSql | [query: string, ...values: RawValue[]];
2633
2639
 
2640
+ declare type RawResponse = {
2641
+ columns: string[];
2642
+ types: QueryIntrospectionBuiltinType[];
2643
+ rows: unknown[][];
2644
+ };
2645
+
2634
2646
  declare type RawTaggedValue = {
2635
2647
  $type: 'Raw';
2636
2648
  value: unknown;