Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use CouchDB with .NET

Can .NET (managed code) read and write to CouchDB?

I would like to build a part of my project that does document management using CouchDB

like image 911
Developer Avatar asked Jun 26 '09 16:06

Developer


People also ask

How do I use CouchDB in my browser?

Go to Start-> All programs Apache CouchDb and start CouchDB. Try URL localhost:5984/_utils/ from your browser, you will be having option to create database and document. Try Jquery or Backbone. js to connect CouchDb with the HTML.

Which programming language is used for CouchDB?

CouchDB is an open source NoSQL database developed by Apache software foundation. It is written in Erlang programming language.

Does CouchDB support SQL?

CouchDB do not have SQL support.

Is CouchDB slow?

Quite the opposite: CouchDB is slower than many people expect. To some degree it has room to improve and optimize; but primarily CouchDB has decided that those costs are worthwhile for the broader good it brings. CouchDB fails the benchmarks, and aces the college of hard knocks.


2 Answers

Its a late answer, but do check out Hammock. It's active and going into production use on several projects soon and is receiving regular updates and fixes. Besides basic object persistence, Hammock gives you:

  • True POCO. You don't even need an 'id' property; Hammock tracks that internally.
  • Robust support for views, including an easy to use fluent API that both generates AND executes views, and support for creating custom map/reduce views.
  • Attachments support.
  • A generic Repository<> class that helps bring your queries/views (i.e. _Design doc) together with your c# application code. Repositories are responsible for maintaining _design docs, and this helps keep CouchDB views from feeling like stored procs.
  • A full unit test suite. This is not prototype software.
like image 90
nicknystrom Avatar answered Sep 23 '22 13:09

nicknystrom


Take a look at the SharpCouch utility class.

It is a simple wrapper class for the CouchDB HTTP API.

like image 45
BengtBe Avatar answered Sep 23 '22 13:09

BengtBe