add close method

This commit is contained in:
Konstantin Käfer
2012-03-05 16:18:42 +01:00
parent d02632b3a2
commit 6c5047843d

View File

@@ -250,6 +250,15 @@ MBTiles.prototype._metadata = function(key, callback) {
});
};
MBTiles.prototype._close = function(callback) {
this._db.close(callback);
};
MBTiles.prototype.close = function(callback) {
this._close(callback);
};
MBTiles.prototype._getInfo = function(callback) {
var mbtiles = this;
var info = {};