[Dbix-class] RFC: DBIx::Class 0.05 Schemas + Catalyst?

Andy Grundman andy at hybridized.org
Fri Apr 7 17:52:13 CEST 2006


On 4/7/06, Brandon Black <blblack at gmail.com> wrote:
> On 4/7/06, Florian Ragwitz <rafl at debian.org> wrote:
> > On Tue, Jan 31, 2006 at 10:54:26AM -0600, Brandon Black wrote:
> > > Thoughts on all of this, anyone?
> >
> > I'd like to suggest a storage method.
> >
> >   sub storage { shift->schema->storage(@_); }
> >
> > This would make it possible to use Catalyst::Model::DBIC::Schema with
> > Catalyst::Plugin::Session::Store::DBI, which basically does
> >
> >   eval { $dbh = $class->storage->dbh };
> >
> > to get the dbh to work with later. Unfortunately this will currently
> > fail with Catalyst::Model::DBIC::Schema as
> > Catalyst::Plugin::Session::Store::DBI won't be able to get a dbh.
> >
> >
>
> Sounds reasonable, I'll stick that into the model.

I just pushed Session::Store::DBI 0.07 to CPAN which includes Schema
support.  It's been sitting in trunk for a while and I forgot to
release it, sorry about that.

http://pause.perl.org/incoming/Catalyst-Plugin-Session-Store-DBI-0.07.tar.gz

-Andy



More information about the Dbix-class mailing list