Media Types for CouchDB views?

Johan Sørensen: now you can query your CouchDb views in Ruby instead of Javascript

Jan Lehnardt: As I mentioned in the Post Scriptum of an earlier post, JavaScript is not the only language that you can create CouchDB views with. You can now use PHP, too.

Question: instead of Couch.ini specifying the one and only language that views can be written in for this server, could views instead have a media type?


Yes I think it should. In fact this was shortly debated on #couchdb, damien suggested something along the lines of sending along the language whenever you defined a view [{"language": “javascript"}, "function(doc) { return doc }”], or something along those lines anyway (my memory is flawed).

And then couch.ini could simply contain a key/value of language=>path/to/language/bin.

Posted by Johan Sørensen at

Please discuss: [link]
Thanks :-)

Jan
--

Posted by Jan at


It’s on my list!

Posted by Damien Katz at

Sam Ruby: Media Types for CouchDB views?

[link]...

Excerpt from del.icio.us/tag/couchdb at

Sam Ruby: Media Types for CouchDB views?

[link]...

Excerpt from del.icio.us/tag/couchdb at


Looks like this was done in r227 of trunk.  Yay!

Posted by Jeff Hodges at

Add your comment












Nav Bar