Catalyst::Model::CouchDB - CouchDB model class for Catalyst
# model __PACKAGE__->config( uri => 'http://localhost:5984/', ); # controller sub foo : Local { my ($self, $c) = @_; eval { my $doc = $c->model('MyData')->database('foo')->newDoc('bar')->retrieve; $c->stash->{thingie} = $doc->{dahut}; }; ... }
This model class exposes CouchDB::Client as a Catalyst model.
You can pass the same configuration fields as when you call CouchDB::Client.
All the methods not handled locally are forwarded to CouchDB::Client.
Called from Catalyst.
Robin Berjon, <robin @t berjon d.t com>
Please report any bugs or feature requests to bug-catalyst-model-couchdb at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Catalyst-Model-CouchDB.
Copyright 2008 Robin Berjon, all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Catalyst::Model::CouchDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Model::CouchDB
CPAN shell
perl -MCPAN -e shell install Catalyst::Model::CouchDB
For more information on module installation, please visit the detailed CPAN module installation guide.