Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

hdp (1658)

  (email not shown publicly)

Journal of hdp (1658)

Saturday May 17, 2008
02:03 PM

CouchDB views in Perl

[ #36454 ]

CouchDB is a schemaless database with a REST interface, written in Erlang. I want to play with it more.

Its views, by default, are written in terms of mapping functions in Javascript. I like Javascript quite a bit, but if I'm writing something in Perl, I'd rather keep on writing Perl. Specifically, I want to be able to generate views automatically sometimes, and I would much rather just write Perl code than write Perl that generates Javascript.

To that end, I've just uploaded CouchDB::View, which includes a view server (necessary for the backend) and an abstraction of the view definitions (= documents) that handles serializing the view functions for transmission to the view server. (Data::Dump::Streamer ftw!)

Oh, bonus: Module::Install::AutoManifest -- I always forget to add new files to MANIFEST. I'd much rather maintain MANIFEST.SKIP by hand and let Perl put everything else into MANIFEST for me.

These are the first distributions I've written for fun in a while; I certainly enjoy releasing code from work, but there's something to be said for scratching your own itches.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.