Skip to content
tocsoft edited this page Aug 17, 2010 · 6 revisions

Creating a connecting

Connetion string : protcol=(http/https);host=couchdb.sever.com;port=1234;database=your_db_name;username=your_username;password=your_password

all parts apart from database are optional with the following default protocol=http host=localhost port=5984

if user name is left blank or excluded then rocker will not pass your authentication credentials to couch with your requests.

CouchFactory.ConnectToDatabase("database=my_database")

Also if you have a connection string defined in your *.config file called “CouchConnection” you can use

CouchFactory.ConnectToDatabase("CouchConnection")
Clone this wiki locally