Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the simplest way to export CouchDB information to CSV?

What would be the simplest way to export a CouchDB database of documents (identical structure) to CSV?

I'm guessing it would involve writing a view and manually parsing each document serially using something like PHP, C# or Python.

But is there a simpler way or something already existing I can make use of?

like image 932
Chris McKee Avatar asked Oct 06 '10 10:10

Chris McKee


1 Answers

You should be able to generate the CSV directly from CouchDB, i.e. without PHP/C#/Python, using a list function. See http://wiki.apache.org/couchdb/Formatting_with_Show_and_List and http://guide.couchdb.org/editions/1/en/transforming.html for more information.

like image 113
Matt Goodall Avatar answered Sep 21 '22 17:09

Matt Goodall