summaryrefslogtreecommitdiff
path: root/src/fabric.erl
diff options
context:
space:
mode:
authorBrad Anderson <brad@cloudant.com>2010-05-27 16:43:32 -0400
committerBrad Anderson <brad@cloudant.com>2010-05-27 16:43:32 -0400
commitfaedecbc0393d87523fbc19b9edc17504c504782 (patch)
treeaf10ae153bd630c5d3a23295db1323998e4f3219 /src/fabric.erl
parent591eb31af0ad55e528358608f352474283b47430 (diff)
get_db_info working, also reorg'd fabric to doc and db module structure
Diffstat (limited to 'src/fabric.erl')
-rw-r--r--src/fabric.erl16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fabric.erl b/src/fabric.erl
index 15269bbb..e75e31eb 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -3,23 +3,23 @@
-export([all_databases/1, create_db/2, delete_db/2, open_doc/3, open_doc/4,
get_db_info/2]).
-%% maybe this goes away, and these are called directly in their own modules in
-%% fabric_api ??
+% db operations
all_databases(Customer) ->
- fabric_info:all_databases(Customer).
+ fabric_db:all_databases(Customer).
+
+get_db_info(DbName, Customer) ->
+ fabric_db:get_db_info(DbName, Customer).
create_db(DbName, Options) ->
- fabric_create:create_db(DbName, Options).
+ fabric_db:create_db(DbName, Options).
delete_db(DbName, Options) ->
- fabric_delete:delete_db(DbName, Options).
+ fabric_db:delete_db(DbName, Options).
+% doc operations
open_doc(Db, DocId, Options) ->
fabric_doc:open_doc(Db, DocId, Options).
open_doc(Db, DocId, Revs, Options) ->
fabric_open:open_doc(Db, DocId, Revs, Options).
-
-get_db_info(DbName, Customer) ->
- fabric_info:get_db_info(DbName, Customer).