I'm trying to store a simple hello world in c# in a couchdb Database (total newbie).
I'm using LoveSeat (but feel free to suggest another client if it would help) and have created this simple code:
static void Main(string[] args)
{
var cl = new CouchClient("myserver", 5984, null, null);
var db = cl.GetDatabase("mydb");
var newDoc = db.CreateDocument(@"{
""Test"":""ValueTest""
}"
);
var newDoc2 = db.SaveDocument(newDoc);
}
The document is actually created :
{
"_id": "805656b6113d30a5387230a669000bb6",
"_rev": "1-44c5768a2fa004c6a43899687c283517",
"Test": "ValueTest"
}
but when I look at the resulting newDoc2, I see :
{
"error": "file_exists",
"reason": "The database could not be created, the file already exists."
}
Did I do something wrong ?
thx