summaryrefslogtreecommitdiff
path: root/src/fabric.erl
diff options
context:
space:
mode:
authorBrad Anderson <brad@cloudant.com>2010-05-26 10:51:10 -0400
committerBrad Anderson <brad@cloudant.com>2010-05-26 10:51:10 -0400
commitddbf9b2a6764389b539b7920a0da3abe08a64e77 (patch)
treeeea0ba56bd3d01cb2b04e32942cfdb71c07ef518 /src/fabric.erl
parent4e75ad7622cb190616c653dde5d7a5625245fce0 (diff)
add delete_db, open_db, and open_doc calls to fabric front-end
Diffstat (limited to 'src/fabric.erl')
-rw-r--r--src/fabric.erl13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/fabric.erl b/src/fabric.erl
index 3e5d9dd8..5aefed5b 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -1,10 +1,21 @@
-module(fabric).
--export([all_databases/1, create_db/2]).
+-export([all_databases/1, create_db/2, delete_db/2, open_db/2, open_doc/4]).
+%% maybe this goes away, and these are called directly in their own modules in
+%% fabric_api ??
all_databases(Customer) ->
fabric_info:all_databases(Customer).
create_db(DbName, Options) ->
fabric_create:create_db(DbName, Options).
+
+delete_db(DbName, Options) ->
+ fabric_delete:delete_db(DbName, Options).
+
+open_db(DbName, Options) ->
+ fabric_open:open_db(DbName, Options).
+
+open_doc(Db, DocId, Revs, Options) ->
+ fabric_open:open_doc(Db, DocId, Revs, Options).