couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [1/3] fabric commit: updated refs/heads/master to c38c692
Date Mon, 27 Jun 2016 23:21:41 GMT
Repository: couchdb-fabric
Updated Branches:
  refs/heads/master aa17ddf3c -> c38c692fc


Improve fabric:all_docs spec

- fabric:all_docs supports options passed as proplist
- fabric:all_docs return value is controled by a callback therefore it
  should be `{ok, any()}`


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/6917c3e1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/6917c3e1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/6917c3e1

Branch: refs/heads/master
Commit: 6917c3e11ccff0c2c031a2257910cc9d2a2fedb3
Parents: 3c7345a
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Wed Jun 22 10:35:07 2016 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Mon Jun 27 09:09:09 2016 -0700

----------------------------------------------------------------------
 src/fabric.erl | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/6917c3e1/src/fabric.erl
----------------------------------------------------------------------
diff --git a/src/fabric.erl b/src/fabric.erl
index aa96513..fe663be 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -277,8 +277,11 @@ all_docs(DbName, Callback, Acc, QueryArgs) ->
 %%      also be passed to further constrain the query. See <a href=
 %%      "http://wiki.apache.org/couchdb/HTTP_Document_API#All_Documents">
 %%      all_docs</a> for details
--spec all_docs(dbname(), [{atom(), any()}], callback(), [] | tuple(), #mrargs{}) ->
-    {ok, [any()]}.
+-spec all_docs(
+        dbname(), [{atom(), any()}], callback(), [] | tuple(),
+        #mrargs{} | [option()]) ->
+    {ok, any()}.
+
 all_docs(DbName, Options, Callback, Acc0, #mrargs{} = QueryArgs) when
         is_function(Callback, 2) ->
     fabric_view_all_docs:go(dbname(DbName), opts(Options), QueryArgs, Callback, Acc0);


Mime
View raw message