Permalink
Browse files

Oops, left out the createFromQuery method in my commit. :(

  • Loading branch information...
1 parent c258308 commit 701f4731569062c599ec5e0c9f4176c0248ca427 @mattrobenolt mattrobenolt committed Mar 18, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/client.js
View
@@ -117,6 +117,19 @@ _.create_from_error = function createFromError(err, kwargs, cb) {
});
};
+_.createFromQuery =
+_.create_from_query = function createFromQuery(query, engine, kwargs, cb) {
+ if(!cb && typeof kwargs === 'function') {
+ cb = kwargs;
+ kwargs = {};
+ } else {
+ kwargs = kwargs || {};
+ }
+ var result = this.process(parsers.parseQuery(query, engine, kwargs));
+ cb && cb(result);
+ return result;
+};
+
_.patchGlobal = function patchGlobal() {
module.exports.patchGlobal(this);
};

0 comments on commit 701f473

Please sign in to comment.