Repository: incubator-ignite Updated Branches: refs/heads/ignite-964 [created] fb182ab17
#ignite-964: add function cache.query. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/3d36a186 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/3d36a186 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/3d36a186 Branch: refs/heads/ignite-964 Commit: 3d36a18610e5e0e1d586f6d327f5b5fbc1634f45 Parents: 57f0ac3 Author: ivasilinets <[email protected]> Authored: Thu Jun 25 17:41:07 2015 +0300 Committer: ivasilinets <[email protected]> Committed: Thu Jun 25 17:41:07 2015 +0300 ---------------------------------------------------------------------- modules/nodejs/src/main/js/cache.js | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/3d36a186/modules/nodejs/src/main/js/cache.js ---------------------------------------------------------------------- diff --git a/modules/nodejs/src/main/js/cache.js b/modules/nodejs/src/main/js/cache.js index 86eb22a..ae76dab 100644 --- a/modules/nodejs/src/main/js/cache.js +++ b/modules/nodejs/src/main/js/cache.js @@ -128,6 +128,10 @@ Cache.prototype.getAll = function(keys, callback) { this._server.runCommand("getall", params, callback); } +Cache.prototype.query = function(qry, callback) { + this._server.runCommand("sqlqry", [Server.pair("qry", qry)]) +} + /** * Concatenate all parameters *
