diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-06-01 23:03:56 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-06-01 23:04:20 -0400 |
commit | b12bcd244bdf743de8c91808cf03417b1ea9dde2 (patch) | |
tree | e1383862b4820bdc7e4e8ec8224cc2d5d9cb4d97 /src/fabric.erl | |
parent | 03caa800e099bf5d0425f22f64af76bdd24a8754 (diff) |
all_docs resource w/o keylist, BugzID 10218
Diffstat (limited to 'src/fabric.erl')
-rw-r--r-- | src/fabric.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fabric.erl b/src/fabric.erl index 7f8f7e23..ed75a5ab 100644 --- a/src/fabric.erl +++ b/src/fabric.erl @@ -3,6 +3,7 @@ -export([all_databases/1, create_db/2, delete_db/2, get_db_info/2, db_path/2]). -export([open_doc/3, open_revs/4, get_missing_revs/2]). -export([update_doc/3, update_docs/3]). +-export([all_docs/4]). -include("fabric.hrl"). @@ -45,6 +46,10 @@ update_docs(DbName, Docs, Options) -> fabric_update_docs:go(dbname(DbName), docs(Docs), Options). +all_docs(DbName, #view_query_args{} = QueryArgs, Callback, Acc0) when + is_function(Callback, 2) -> + fabric_all_docs:go(dbname(DbName), QueryArgs, Callback, Acc0). + %% some simple type validation and transcoding dbname(DbName) when is_list(DbName) -> |