| Catalyst-Model-CouchDB documentation | Contained in the Catalyst-Model-CouchDB distribution. |
Catalyst::Helper::Model::CouchDB - Helper for CouchDB models
script/myapp_create.pl model MyModel CouchDB uri
Helper for the Catalyst CouchDB model.
When creating a new CouchDB model class using this helper, you may specify the server to which to connect (assuming you don't intend to load that parameter from an external configuration). If you would like to see other options exposed simply ask.
Makes the model class.
Makes tests.
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.
| Catalyst-Model-CouchDB documentation | Contained in the Catalyst-Model-CouchDB distribution. |
package Catalyst::Helper::Model::CouchDB; use strict; use warnings; our $VERSION = '0.01';
sub mk_compclass { my ($self, $helper, $uri) = @_; $helper->{uri} = $uri if $uri; $helper->render_file('modelclass', $helper->{file}); return 1; } sub mk_comptest { my ($self, $helper) = @_; $helper->render_file('modeltest', $helper->{test}); }
1; __DATA__
1; __modeltest__ use strict; use warnings; use Test::More tests => 2; use_ok('Catalyst::Test', '[% app %]'); use_ok('[% class %]');