-
-
08 Aug 2010 11:40:44 UTC
- Distribution: Catalyst-Model-KiokuDB
- Module version: 0.12
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (2)
- Testers (336 / 39 / 0)
- Kwalitee
Bus factor: 5- % Coverage
- License: unknown
- Activity
24 month- Tools
- Download (7.67KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Catalyst
- Catalyst::Plugin::Authentication
- Hash::Util::FieldHash::Compat
- KiokuDB
- KiokuX::Model
- KiokuX::User
- Moose
- Scope::Guard
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::Model::KiokuDB - use KiokuDB in your Catalyst apps
SYNOPSIS
package MyApp::Model::KiokuDB; use Moose; BEGIN { extends qw(Catalyst::Model::KiokuDB) } # this is probably best put in the catalyst config file instead: __PACKAGE__->config( dsn => "bdb:dir=root/db" ); $c->model("kiokudb")->lookup($id);
DESCRIPTION
ATTRIBUTES
- manage_scope
-
If true (the default),
new_scope
will be called once per request automatically. - clear_leaks
-
If true (the default) and
manage_scope
is also enabled, the live object set will be cleared at the end of every request.This also reports any leaked objects.
Note that in order to work the stash is cleared. Since this is run after
$c
is already destroyed this should not be an issue, but if it causes problems for you you can disable it.Under
-Debug
mode statistics on loaded objects will be printed as well. - model_class
-
Defaults to KiokuX::Model.
See KiokuX::Model for more details. This is the proper place to provide convenience methods for your model that are reusable outside of your Catalyst app (e.g. in scripts or model unit tests).
SEE ALSO
KiokuDB, KiokuX::Model, Catalyst::Authentication::Store::Model::KiokuDB
VERSION CONTROL
KiokuDB is maintained using Git. Information about the repository is available on http://www.iinteractive.com/kiokudb/
AUTHOR
Yuval Kogman <nothingmuch@woobling.org>
COPYRIGHT
Copyright (c) 2009 Yuval Kogman, Infinity Interactive. All rights reserved This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Catalyst::Model::KiokuDB, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Model::KiokuDB
perl -MCPAN -e shell install Catalyst::Model::KiokuDB
For more information on module installation, please visit the detailed CPAN module installation guide.