[Groonga-commit] droonga/express-droonga at d6d1a16 [master] Add "dataset" option for commands

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Oct 11 17:36:26 JST 2013


YUKI Hiroshi	2013-10-11 17:36:26 +0900 (Fri, 11 Oct 2013)

  New Revision: d6d1a167a88c234dc3af5fcfa4211a011e5ae55c
  https://github.com/droonga/express-droonga/commit/d6d1a167a88c234dc3af5fcfa4211a011e5ae55c

  Message:
    Add "dataset" option for commands

  Modified files:
    lib/adapter/command.js
    lib/adapter/http.js
    lib/adapter/socket.io.js

  Modified: lib/adapter/command.js (+3 -0)
===================================================================
--- lib/adapter/command.js    2013-10-11 17:23:07 +0900 (506ffaf)
+++ lib/adapter/command.js    2013-10-11 17:36:26 +0900 (8328ea0)
@@ -10,6 +10,9 @@ Command.prototype = {
       commandType &&
       this._commandTypes.indexOf(commandType) > -1
     );
+  },
+  get dataset() {
+    return this._options.dataset;
   }
 };
 Command.isInstance = function(modelInstance) {

  Modified: lib/adapter/http.js (+4 -1)
===================================================================
--- lib/adapter/http.js    2013-10-11 17:23:07 +0900 (94d243d)
+++ lib/adapter/http.js    2013-10-11 17:36:26 +0900 (fe8bf8b)
@@ -16,7 +16,10 @@ function createHandler(params) {
     debug('adapter.http.createHandler.handle');
 
     var timeout = definition.timeout || null;
-    var options = { timeout: timeout };
+    var options = {
+      dataset: definition.dataset,
+      timeout: timeout
+    };
     var callback = function(error, envelope) {
         debug('adapter.rest.createHandler.handle.response');
         if (error) {

  Modified: lib/adapter/socket.io.js (+1 -0)
===================================================================
--- lib/adapter/socket.io.js    2013-10-11 17:23:07 +0900 (3227274)
+++ lib/adapter/socket.io.js    2013-10-11 17:36:26 +0900 (38e7058)
@@ -53,6 +53,7 @@ exports.register = function(application, server, params) {
       }
 
       var options = {
+        dataset:   commandDefinition.dataset,
         timeout:   DEFAULT_TIMEOUT,
         sessionId: socket.id
       };
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index