# HG changeset patch # User Atul Varma # Date 1239658791 25200 # Node ID 7b418d9d27f8e6836a7ea8074443b67ca3562154 # Parent 029b3e094e67be6b7b911f86149112b79db6a0db Added a getLength() method to DB. diff -r 029b3e094e67 -r 7b418d9d27f8 browser-couch.js --- a/browser-couch.js Mon Apr 13 14:07:22 2009 -0700 +++ b/browser-couch.js Mon Apr 13 14:39:51 2009 -0700 @@ -170,6 +170,10 @@ cb(); }; + this.getLength = function DB_getLength() { + return dict.getKeys().length; + }; + this.view = function DB_view(options) { // TODO: Add support for worker threads.