-
-
16 Jul 2008 12:42:34 UTC
- Distribution: Catalyst-Model-CouchDB
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (470 / 0 / 0)
- Kwalitee
Bus factor: 0- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (12.75KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Robin Berjon,
- Dependencies
- Catalyst
- CouchDB::Client
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::Model::CouchDB - CouchDB model class for Catalyst
SYNOPSIS
# 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}; }; ... }
DESCRIPTION
This model class exposes CouchDB::Client as a Catalyst model.
CONFIGURATION
You can pass the same configuration fields as when you call CouchDB::Client.
METHODS
CouchDB
All the methods not handled locally are forwarded to CouchDB::Client.
new
Called from Catalyst.
AUTHOR
Robin Berjon, <robin @t berjon d.t com>
BUGS
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 & LICENSE
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.
Module Install Instructions
To install Catalyst::Model::CouchDB, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Model::CouchDB
perl -MCPAN -e shell install Catalyst::Model::CouchDB
For more information on module installation, please visit the detailed CPAN module installation guide.