summaryrefslogtreecommitdiff
path: root/src/fabric.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-07-02 03:02:12 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-07-02 03:02:12 -0400
commitced7cd5afff2f79b91f364f713d9851038e3b6ab (patch)
treeec813d676a632582cd376fe32bb8cbfc393153bf /src/fabric.erl
parent2436c4fba43d02bd0a73893895b43e198715082b (diff)
update for mem3 refactor, more robust DB create/delete
Diffstat (limited to 'src/fabric.erl')
-rw-r--r--src/fabric.erl14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/fabric.erl b/src/fabric.erl
index badc1379..b233677b 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -1,8 +1,8 @@
-module(fabric).
% DBs
--export([all_dbs/0, all_dbs/1, create_db/2, delete_db/2, get_db_info/1,
- get_doc_count/1]).
+-export([all_dbs/0, all_dbs/1, create_db/1, create_db/2, delete_db/1,
+ delete_db/2, get_db_info/1, get_doc_count/1]).
% Documents
-export([open_doc/3, open_revs/4, get_missing_revs/2, update_doc/3,
@@ -36,11 +36,17 @@ get_db_info(DbName) ->
get_doc_count(DbName) ->
fabric_db_doc_count:go(dbname(DbName)).
+create_db(DbName) ->
+ create_db(DbName, []).
+
create_db(DbName, Options) ->
- fabric_db_create:create_db(dbname(DbName), opts(Options)).
+ fabric_db_create:go(dbname(DbName), opts(Options)).
+
+delete_db(DbName) ->
+ delete_db(DbName, []).
delete_db(DbName, Options) ->
- fabric_db_delete:delete_db(dbname(DbName), opts(Options)).
+ fabric_db_delete:go(dbname(DbName), opts(Options)).
% doc operations