summaryrefslogtreecommitdiff
path: root/src/fabric.erl
blob: 5aefed5bb24e521c2492d3548881772ee3d225de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-module(fabric).

-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).