db: expose layouts.

This commit is contained in:
Christopher Jeffrey 2016-08-18 00:58:56 -07:00
parent e817b89653
commit 833e5491f1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
3 changed files with 21 additions and 0 deletions

View File

@ -268,6 +268,13 @@ function ChainDB(chain, options) {
utils.inherits(ChainDB, AsyncObject);
/**
* Database layout.
* @type {Object}
*/
ChainDB.layout = layout;
/**
* Open the chain db, wait for the database to load.
* @alias ChainDB#open

View File

@ -264,6 +264,13 @@ function TXDB(wallet) {
this.balance = null;
}
/**
* Database layout.
* @type {Object}
*/
TXDB.layout = layout;
/**
* Open TXDB.
* @param {Function} callback

View File

@ -201,6 +201,13 @@ function WalletDB(options) {
utils.inherits(WalletDB, AsyncObject);
/**
* Database layout.
* @type {Object}
*/
WalletDB.layout = layout;
/**
* Initialize wallet db.
* @private