Skip to content

Commit 5dcfb80

Browse files
minor tweaks to woql
1 parent fb1f337 commit 5dcfb80

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/woql.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ WOQL.join = function(...list){ return new WOQLQuery().join(...list); }
5050
WOQL.unique = function(prefix, vari, type){ return new WOQLQuery().unique(prefix, vari, type); }
5151
WOQL.idgen = function(prefix, vari, type, output){ return new WOQLQuery().idgen(prefix, vari, type, output); }
5252
WOQL.typecast = function(vara, type, varb){ return new WOQLQuery().typecast(vara, type, varb); }
53+
WOQL.re = function(pattern, test, matches){ return new WOQLQuery().re(pattern, test, matches); }
5354

5455
WOQL.less = function(v1, v2){ return new WOQLQuery().less(v1, v2); }
5556
WOQL.greater = function(v1, v2){ return new WOQLQuery().greater(v1, v2); }
@@ -166,6 +167,10 @@ WOQLQuery.prototype.length = function(va, vb){
166167
return this;
167168
}
168169

170+
WOQLQuery.prototype.re = function(p, s, m){
171+
this.cursor['re'] = [p, s, m];
172+
return this;
173+
}
169174

170175
WOQLQuery.prototype.remote = function(json){
171176
this.cursor['remote'] = [json];

0 commit comments

Comments
 (0)