prisma-sql 1.58.0 → 1.59.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/dist/index.d.mts CHANGED
@@ -6,19 +6,6 @@ type SqlDialect = 'postgres' | 'sqlite';
6
6
  declare function setGlobalDialect(dialect: SqlDialect): void;
7
7
  declare function getGlobalDialect(): SqlDialect;
8
8
 
9
- interface SQLDirective {
10
- method: PrismaMethod$1;
11
- sql: string;
12
- staticParams: any[];
13
- dynamicKeys: string[];
14
- paramMappings: readonly ParamMap[];
15
- originalDirective: DirectiveProps;
16
- }
17
- type PrismaMethod$1 = 'findMany' | 'findFirst' | 'findUnique' | 'aggregate' | 'groupBy' | 'count';
18
-
19
- type PrismaMethod = 'findMany' | 'findFirst' | 'findUnique' | 'count' | 'aggregate' | 'groupBy';
20
- declare function transformQueryResults(method: PrismaMethod, results: unknown[]): unknown;
21
-
22
9
  type OrderByObject = Record<string, unknown>;
23
10
  type OrderByArray = Array<Record<string, unknown>>;
24
11
  type OrderByType = OrderByObject | OrderByArray | string | null | undefined;
@@ -58,6 +45,19 @@ interface PrismaQueryArgs {
58
45
  _max?: unknown;
59
46
  method?: string;
60
47
  }
48
+ type PrismaMethod = 'findMany' | 'findFirst' | 'findUnique' | 'count' | 'aggregate' | 'groupBy';
49
+
50
+ interface SQLDirective {
51
+ method: PrismaMethod;
52
+ sql: string;
53
+ staticParams: any[];
54
+ dynamicKeys: string[];
55
+ paramOrder: string;
56
+ paramMappings: readonly ParamMap[];
57
+ originalDirective: DirectiveProps;
58
+ }
59
+
60
+ declare function transformQueryResults(method: PrismaMethod, results: unknown[]): unknown;
61
61
 
62
62
  interface BatchQuery {
63
63
  model: string;
package/dist/index.d.ts CHANGED
@@ -6,19 +6,6 @@ type SqlDialect = 'postgres' | 'sqlite';
6
6
  declare function setGlobalDialect(dialect: SqlDialect): void;
7
7
  declare function getGlobalDialect(): SqlDialect;
8
8
 
9
- interface SQLDirective {
10
- method: PrismaMethod$1;
11
- sql: string;
12
- staticParams: any[];
13
- dynamicKeys: string[];
14
- paramMappings: readonly ParamMap[];
15
- originalDirective: DirectiveProps;
16
- }
17
- type PrismaMethod$1 = 'findMany' | 'findFirst' | 'findUnique' | 'aggregate' | 'groupBy' | 'count';
18
-
19
- type PrismaMethod = 'findMany' | 'findFirst' | 'findUnique' | 'count' | 'aggregate' | 'groupBy';
20
- declare function transformQueryResults(method: PrismaMethod, results: unknown[]): unknown;
21
-
22
9
  type OrderByObject = Record<string, unknown>;
23
10
  type OrderByArray = Array<Record<string, unknown>>;
24
11
  type OrderByType = OrderByObject | OrderByArray | string | null | undefined;
@@ -58,6 +45,19 @@ interface PrismaQueryArgs {
58
45
  _max?: unknown;
59
46
  method?: string;
60
47
  }
48
+ type PrismaMethod = 'findMany' | 'findFirst' | 'findUnique' | 'count' | 'aggregate' | 'groupBy';
49
+
50
+ interface SQLDirective {
51
+ method: PrismaMethod;
52
+ sql: string;
53
+ staticParams: any[];
54
+ dynamicKeys: string[];
55
+ paramOrder: string;
56
+ paramMappings: readonly ParamMap[];
57
+ originalDirective: DirectiveProps;
58
+ }
59
+
60
+ declare function transformQueryResults(method: PrismaMethod, results: unknown[]): unknown;
61
61
 
62
62
  interface BatchQuery {
63
63
  model: string;