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

Brandon Black blblack at gmail.com
Fri Apr 7 17:32:14 CEST 2006


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.

-- Brandon



More information about the Dbix-class mailing list