@dwtechs/antity-pgsql 0.15.1 → 0.15.2
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/antity-pgsql.js +5 -2
- package/package.json +1 -1
package/dist/antity-pgsql.js
CHANGED
|
@@ -108,6 +108,7 @@ function index(index, matchMode) {
|
|
|
108
108
|
const i = index.map((i) => `$${i}`);
|
|
109
109
|
switch (matchMode) {
|
|
110
110
|
case "in":
|
|
111
|
+
case "notIn":
|
|
111
112
|
return `(${i})`;
|
|
112
113
|
default:
|
|
113
114
|
return `${i}`;
|
|
@@ -130,6 +131,8 @@ function comparator(matchMode) {
|
|
|
130
131
|
return "<>";
|
|
131
132
|
case "in":
|
|
132
133
|
return "IN";
|
|
134
|
+
case "notIn":
|
|
135
|
+
return "NOT IN";
|
|
133
136
|
case "lt":
|
|
134
137
|
return "<";
|
|
135
138
|
case "lte":
|
|
@@ -571,8 +574,8 @@ function type(type) {
|
|
|
571
574
|
}
|
|
572
575
|
|
|
573
576
|
const matchModes = {
|
|
574
|
-
string: ["startsWith", "contains", "endsWith", "notContains", "equals", "notEquals", "lt", "lte", "gt", "gte"],
|
|
575
|
-
number: ["equals", "notEquals", "lt", "lte", "gt", "gte"],
|
|
577
|
+
string: ["startsWith", "contains", "endsWith", "notContains", "equals", "notEquals", "lt", "lte", "gt", "gte", "in", "notIn"],
|
|
578
|
+
number: ["equals", "notEquals", "lt", "lte", "gt", "gte", "in", "notIn"],
|
|
576
579
|
date: ["is", "isNot", "dateAfter"],
|
|
577
580
|
};
|
|
578
581
|
function matchMode(type, matchMode) {
|