abstract datatype: doc_stream()
copy_doc/2 | duplicate a document using the doc API. |
copy_doc/3 | copy a doc to a destination. |
design_info/2 | |
end_doc_stream/1 | stop to receive the multipart response of the doc api and close the connection. |
get_uuid/1 | Get one uuid from the server. |
get_uuids/2 | Get a list of uuids from the server. |
stream_doc/1 | stream the multipart response of the doc API. |
view_cleanup/1 |
copy_doc(Db, Doc) -> any()
duplicate a document using the doc API
copy_doc(Db, Doc, Dest) -> any()
copy a doc to a destination. If the destination exist it will use the last revision, in other case a new doc is created with the the current doc revision.
design_info(Db, DesignName) -> any()
end_doc_stream(X1::doc_stream()) -> ok
stop to receive the multipart response of the doc api and close the connection.
Get one uuid from the server
Get a list of uuids from the server
stream_doc(X1::doc_stream()) -> {doc, doc()} | {att, Name::binary(), doc_stream()} | {att_body, Name::binary(), Chunk::binary(), doc_stream()} | {att_eof, Name::binary(), doc_stream()} | eof | {error, term()}
stream the multipart response of the doc API. Use this function
when you get {ok, {multipart, State}}
from the function
couchdb:open_doc/3
.
view_cleanup(Db) -> any()
Generated by EDoc