CouchdbClient.Repository

Agent to keep db connection options.

Examples

iex> CouchdbClient.Repository.start_link name: “test_database” { :ok, _PID } iex> CouchdbClient.Repository.get %CouchdbClient.Database{host: “127.0.0.1”, name: “test_database”, port: 5984, scheme: “http”} iex> CouchdbClient.Repository.stop :ok

Summary

Functions

Changes the database on the current server

Returns the CouchdbClient.Repository configuration as struct

Starts the Repository agent, returns PID

Stops Repository agent, returns :ok

Functions

change_db(name)

Changes the database on the current server

get()

Returns the CouchdbClient.Repository configuration as struct

init_opts(db_options)
start_link(db_options)

Starts the Repository agent, returns PID

stop()

Stops Repository agent, returns :ok