Navigation Menu

Skip to content

Commit

Permalink
Add "close()" to the wrapped nroonga
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 6, 2012
1 parent 86e2982 commit cfad94e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/wrapped-nroonga.js
Expand Up @@ -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');
Expand Down

0 comments on commit cfad94e

Please sign in to comment.