Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Commit

Permalink
Update -specs to reflect new realities
Browse files Browse the repository at this point in the history
BugzID: 12634
  • Loading branch information
kocolosk committed Oct 7, 2011
1 parent 7dac19d commit 9829ff3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/fabric.erl
Expand Up @@ -100,7 +100,7 @@ create_db(DbName) ->
%% control how many shards to split a database into
%% and how many nodes each doc is copied to respectively.
%%
-spec create_db(dbname(), [option()]) -> ok | {error, atom()}.
-spec create_db(dbname(), [option()]) -> ok | accepted | {error, atom()}.
create_db(DbName, Options) ->
fabric_db_create:go(dbname(DbName), opts(Options)).

Expand All @@ -109,11 +109,7 @@ delete_db(DbName) ->
delete_db(DbName, []).

%% @doc delete a database
-spec delete_db(dbname(), [option()]) ->
ok |
no_return() | % erlang:error(database_does_not_exist)
{timeout, any()} |
{error, any()}.
-spec delete_db(dbname(), [option()]) -> ok | accepted | {error, atom()}.
delete_db(DbName, Options) ->
fabric_db_delete:go(dbname(DbName), opts(Options)).

Expand Down Expand Up @@ -264,7 +260,7 @@ query_view(DbName, DesignName, ViewName, QueryArgs) ->
%% There are many additional query args that can be passed to a view,
%% see <a href="http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options">
%% query args</a> for details.
-spec query_view(dbname(), #doc{}, iodata(), callback(), any(),
-spec query_view(dbname(), #doc{} | binary(), iodata(), callback(), any(),
#view_query_args{}) ->
any().
query_view(DbName, Design, ViewName, Callback, Acc0, QueryArgs) ->
Expand Down

1 comment on commit 9829ff3

@bdionne
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Please sign in to comment.