diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-05-27 15:45:08 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-05-27 15:45:08 -0400 |
commit | 408cf4c2f0d7fcf0fa35e4b9e28a8ac86c5c4fcd (patch) | |
tree | dbd5a5fe19a854182907833bc2fa90c0646669bc /src | |
parent | e91bbf3d70eefdd44c123e06c12e0b9ab498a791 (diff) |
export the right stuff for open_doc
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]}). |