@prisma-next/sql-orm-client 0.9.0-dev.2 → 0.9.0-dev.4
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 +543 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +461 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
- package/src/collection.ts +538 -31
- package/src/query-plan-aggregate.ts +3 -0
- package/src/query-plan-meta.ts +1 -1
- package/src/where-binding.ts +3 -0
|
@@ -94,6 +94,9 @@ function validateGroupedHavingExpr(expr: AnyExpression): AnyExpression {
|
|
|
94
94
|
param() {
|
|
95
95
|
throw new Error('ParamRef is not supported in grouped having expressions');
|
|
96
96
|
},
|
|
97
|
+
preparedParam() {
|
|
98
|
+
throw new Error('PreparedParamRef is not supported in grouped having expressions');
|
|
99
|
+
},
|
|
97
100
|
list: rejectHavingExpr,
|
|
98
101
|
and(expr) {
|
|
99
102
|
return AndExpr.of(expr.exprs.map((child) => validateGroupedHavingExpr(child)));
|
package/src/query-plan-meta.ts
CHANGED
|
@@ -9,7 +9,7 @@ export function deriveParamsFromAst(ast: AnyQueryAst): {
|
|
|
9
9
|
params: unknown[];
|
|
10
10
|
} {
|
|
11
11
|
return {
|
|
12
|
-
params: collectOrderedParamRefs(ast).map((p) => p.value),
|
|
12
|
+
params: collectOrderedParamRefs(ast).map((p) => (p.kind === 'param-ref' ? p.value : undefined)),
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
|
package/src/where-binding.ts
CHANGED