diff options
author | Damien F. Katz <damien@apache.org> | 2009-11-15 04:11:11 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2009-11-15 04:11:11 +0000 |
commit | 1b0146dd004c1b9cd6769c11969cc13f8a37fcd9 (patch) | |
tree | 286cb8b36c63057474fda4fff1245a56e32a05d6 /src/couchdb/couch_db.erl | |
parent | 29862925728ff98c077107183e75e23184b0e51d (diff) |
Testing of incremental attachments and more testing of multipart/handling.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@836324 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_db.erl')
-rw-r--r-- | src/couchdb/couch_db.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl index aa46a347..7630989a 100644 --- a/src/couchdb/couch_db.erl +++ b/src/couchdb/couch_db.erl @@ -15,7 +15,7 @@ -export([open/2,close/1,create/2,start_compact/1,get_db_info/1,get_design_docs/1]). -export([open_ref_counted/2,is_idle/1,monitor/1,count_changes_since/2]). --export([update_doc/3,update_docs/4,update_docs/2,update_docs/3,delete_doc/3]). +-export([update_doc/3,update_doc/4,update_docs/4,update_docs/2,update_docs/3,delete_doc/3]). -export([get_doc_info/2,open_doc/2,open_doc/3,open_doc_revs/4]). -export([set_revs_limit/2,get_revs_limit/1,register_update_notifier/3]). -export([get_missing_revs/2,name/1,doc_to_tree/1,get_update_seq/1,get_committed_update_seq/1]). @@ -251,7 +251,10 @@ name(#db{name=Name}) -> Name. update_doc(Db, Doc, Options) -> - case update_docs(Db, [Doc], Options) of + update_doc(Db, Doc, Options, interactive_edit). + +update_doc(Db, Doc, Options, UpdateType) -> + case update_docs(Db, [Doc], Options, UpdateType) of {ok, [{ok, NewRev}]} -> {ok, NewRev}; {ok, [Error]} -> |