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.