prisma-sql 1.16.0 → 1.18.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/generator.cjs +14 -5
- package/dist/generator.cjs.map +1 -1
- package/dist/generator.js +14 -5
- package/dist/generator.js.map +1 -1
- package/dist/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/readme.md +435 -594
package/dist/index.cjs
CHANGED
|
@@ -1713,7 +1713,15 @@ function buildOperator(expr, op, val, ctx, mode, fieldType) {
|
|
|
1713
1713
|
return buildArrayOperator(expr, op, val, ctx.params, fieldType, ctx.dialect);
|
|
1714
1714
|
}
|
|
1715
1715
|
if (fieldType && isJsonType(fieldType)) {
|
|
1716
|
-
|
|
1716
|
+
const JSON_OPS = /* @__PURE__ */ new Set([
|
|
1717
|
+
Ops.PATH,
|
|
1718
|
+
Ops.STRING_CONTAINS,
|
|
1719
|
+
Ops.STRING_STARTS_WITH,
|
|
1720
|
+
Ops.STRING_ENDS_WITH
|
|
1721
|
+
]);
|
|
1722
|
+
if (JSON_OPS.has(op)) {
|
|
1723
|
+
return buildJsonOperator(expr, op, val, ctx.params, ctx.dialect);
|
|
1724
|
+
}
|
|
1717
1725
|
}
|
|
1718
1726
|
return buildScalarOperator(
|
|
1719
1727
|
expr,
|