@saltcorn/db-common
Advanced tools
Comparing version 0.7.1-beta.2 to 0.7.1-beta.3
@@ -182,2 +182,10 @@ "use strict"; | ||
}); | ||
expect(mkWhere({ or: [{ id: 5 }, { x: [{ gt: 7 }, { lt: 12 }] }] })).toStrictEqual({ | ||
values: [5, 7, 12], | ||
where: 'where ("id"=$1 or "x">$2 and "x"<$3)', | ||
}); | ||
expect(mkWhere({ y: 6, or: [{ id: 5 }, { x: [{ gt: 7 }, { lt: 12 }] }] })).toStrictEqual({ | ||
values: [6, 5, 7, 12], | ||
where: 'where "y"=$1 and ("id"=$2 or "x">$3 and "x"<$4)', | ||
}); | ||
expect(mkWhere({ or: [{ id: 5 }, { x: 7, y: 8 }] })).toStrictEqual({ | ||
@@ -184,0 +192,0 @@ values: [5, 7, 8], |
{ | ||
"name": "@saltcorn/db-common", | ||
"version": "0.7.1-beta.2", | ||
"version": "0.7.1-beta.3", | ||
"description": "Db common structures for Saltcorn, open-source no-code platform", | ||
@@ -5,0 +5,0 @@ "homepage": "https://saltcorn.com", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
76825
842