Nice work medhi! using your code as reference last night I implemented similar functionality in Recline (demo here http://max.ic.ht/sandbox/_design/recline/_rewrite, code here https://github.com/maxogden/recline)
max On Tue, Aug 2, 2011 at 4:12 PM, Wordit <[email protected]> wrote: > Cool, Thanks for this. I was wondering how to pre-populate a couchDB > easily. This would work from a spreadsheet. > > Does it matter where the couch is hosted? I mean will it replicate > across domains? > > Marcus > > > > > Hello, > > > > I would like to announce the release of csv2couchdb 0.1, a couchapp > > designed populate couchdb from data from csv files. > > > > You can manipulate CSV data in various ways in order to generate > > couchdb documents and bulk load them to your couch. > > > > Features: > > > > Read local files > > Select multiple files at a time > > Automatic detection of CSV settings (column delimitor, > > presence of header row...) > > Preview loaded files to adjust settings > > Customize document to generate > > Filter rows and columns > > Customize header labels > > Generate either one doc per file or one doc per row > > Generate ids based on file name or use couchdb random ids > > Bulk load to couchdb > > Select target database > > Update documents in case of conflict (optional) > > > > Source code is available here: > > https://github.com/Mango-information-systems/csv2couchdb > > > > The app is deployed in cloudant if you want to have a look at it: > > > http://mango-reports.cloudant.com:5984/mango-apps/_design/csv2couchdb/index.html > > . You rather should replicate it to your own couch, as my cloudant dbs > > are read-only...). > > > > Tested in Firefox 5 and Chrome, should also work in Opera. IE and > > Safari do not support HTML5 file API yet. > > > > Any feedback or comment is welcome. > > > > Cheers, > > > > -- > > Mehdi El Fadil > > >
