Module legacy_couchdb

Data Types

doc_stream()

abstract datatype: doc_stream()

Function Index

copy_doc/2duplicate a document using the doc API.
copy_doc/3copy a doc to a destination.
design_info/2
end_doc_stream/1stop to receive the multipart response of the doc api and close the connection.
get_uuid/1Get one uuid from the server.
get_uuids/2Get a list of uuids from the server.
stream_doc/1stream the multipart response of the doc API.
view_cleanup/1

Function Details

copy_doc/2

copy_doc(Db, Doc) -> any()

duplicate a document using the doc API

copy_doc/3

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/2

design_info(Db, DesignName) -> any()

end_doc_stream/1

end_doc_stream(X1::doc_stream()) -> ok

stop to receive the multipart response of the doc api and close the connection.

get_uuid/1

get_uuid(Server::server()) -> lists()

Get one uuid from the server

get_uuids/2

get_uuids(Server::server(), Count::integer()) -> lists()

Get a list of uuids from the server

stream_doc/1

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/1

view_cleanup(Db) -> any()


Generated by EDoc