Module couchdb_server
Function Index
all_dbs/1 | get list of databases on a CouchDB node. |
all_dbs/2 | get list of databases on a CouchDB node with optional filter. |
info/1 | Get Information from the server. |
replicate/2 | Request, configure, or stop, a replication operation. |
replicate/3 | Handle replication. |
replicate/4 | handle Replication. |
Function Details
all_dbs/2
all_dbs(Server::server(), Options::view_options()) -> {ok, iolist()}
get list of databases on a CouchDB node with optional filter
replicate/2
replicate(Server::server(), RepObj::{list()}) -> {ok, term()} | {error, term()}
Request, configure, or stop, a replication operation. It allows to pass for authentication info
RepObj = {[ {<<"source">>, <<"sourcedb">>}, {<<"target">>, <<"targetdb">>}, {<<"create_target">>, true} ]} replicate(Server, RepObj).
replicate/3
replicate(Server::server(), Source::binary(), Target::term()) -> {ok, term()} | {error, term()}
Handle replication.
replicate/4
replicate(Server, Source, Target, Options) -> any()
handle Replication. Allows to pass options with source and target. Options is a Json object. ex:
Options = [{<<"create_target">>, true}]} couchdb:replicate(S, "testdb", "testdb2", Options).
Made with EDoc-S