diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fabric.erl | 6 | ||||
-rw-r--r-- | src/fabric_rpc.erl | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/fabric.erl b/src/fabric.erl index a54264dc..15269bbb 100644 --- a/src/fabric.erl +++ b/src/fabric.erl @@ -1,6 +1,6 @@ -module(fabric). --export([all_databases/1, create_db/2, delete_db/2, open_db/2, open_doc/4, +-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 @@ -15,8 +15,8 @@ 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, Options) -> + fabric_doc:open_doc(Db, DocId, Options). open_doc(Db, DocId, Revs, Options) -> fabric_open:open_doc(Db, DocId, Revs, Options). diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl index 0a034d59..49809145 100644 --- a/src/fabric_rpc.erl +++ b/src/fabric_rpc.erl @@ -1,10 +1,9 @@ -module(fabric_rpc). --export([open_doc/4, get_db_info/1]). +-export([open_doc/3, open_doc/4, get_db_info/1]). - -%% rpc endpoints -%% call to with_db will supply your M:F with a #db{} and then remaining args +open_doc(DbName, DocId, Options) -> + with_db(DbName, {couch_db, open_doc, [DocId, Options]}). open_doc(DbName, DocId, Revs, Options) -> with_db(DbName, {couch_api, open_doc, [DocId, Revs, Options]}). |