[Groonga-commit] groonga/gcs [master] Add "close()" to the wrapped nroonga

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 6日 (月) 12:54:09 JST


SHIMODA Hiroshi	2012-08-06 12:54:09 +0900 (Mon, 06 Aug 2012)

  New Revision: cfad94e89e941fe1e58d5046bfdef44ffc7912a4
  https://github.com/groonga/gcs/commit/cfad94e89e941fe1e58d5046bfdef44ffc7912a4

  Log:
    Add "close()" to the wrapped nroonga

  Modified files:
    lib/wrapped-nroonga.js

  Modified: lib/wrapped-nroonga.js (+5 -0)
===================================================================
--- lib/wrapped-nroonga.js    2012-08-06 12:52:29 +0900 (1b17247)
+++ lib/wrapped-nroonga.js    2012-08-06 12:54:09 +0900 (f5155b3)
@@ -98,6 +98,11 @@ Context.prototype = {
     return ordinalColumns;
   },
 
+  close: function() {
+    this._context.close();
+    this._context = undefined;
+  },
+
   reopen: function() {
     if (!this._path)
       throw new Error('cannot reopen');
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index