-
Notifications
You must be signed in to change notification settings - Fork 1
Home
tocsoft edited this page Aug 17, 2010
·
6 revisions
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")