Irritatingly, I can’t get on to the machine that has my nice, populated CouchDB install, and the script for importing from CSV. So I’m a bit stymied for today.
But I did find useful things:
- A Ruby library for CouchDB which looks like exactly the right thing (Also, its API docs)
- A bunch of other libraries on the same site which could come in handy
- And, by just trying it out, I learned that it’s really easy to use regexps with Sinatra:
get /data\/(.*)/ do |record| "I'm fetching #{record}" end