From 408cf4c2f0d7fcf0fa35e4b9e28a8ac86c5c4fcd Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Thu, 27 May 2010 15:45:08 -0400 Subject: export the right stuff for open_doc --- src/fabric.erl | 6 +++--- src/fabric_rpc.erl | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'src') 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]}). -- cgit v1.2.3