couchdb_connector v0.5.0 Couchdb.Connector.Storage
The Storage module provides functions to create and destroy databases.
Examples
iex>db_props = %{protocol: "http", hostname: "localhost",database: "couchdb_connector_test", port: 5984}
%{database: "couchdb_connector_test", hostname: "localhost", port: 5984, protocol: "http"}
iex>Couchdb.Connector.Storage.storage_up(db_props)
{:ok, "{\"ok\":true}\n"}
iex>Couchdb.Connector.Storage.storage_down(db_props)
{:ok, "{\"ok\":true}\n"}
Summary
Functions
Delete the database with the properties as given in the db_props map
Create a database with parameters as given in the db_props map