Quinn Fazigu wrote:
>
>
> On Fri, Aug 21, 2009 at 4:59 AM, Emmanuel Quevillon <[email protected]
> <mailto:[email protected]>> wrote:
>
> sub connection {
>
> my ($self, @rest) = @_;
> $self->next::method(@rest);
>
> $self->driver_name($self->handler()->{Driver}->{Name});
>
> }
>
>
> Does standard DBIx::Class::Schema have a "handler" method, or is that a
> decoration added by Catalyst? You could try wrapping the driver_name
> assignment like so:
>
hanlder method is a method I've removed from the example as my
connection method is much more longer...
It is a shortcut to $self->storage()->dbh().
> if ($self->can('handler')) {
> $self->driver_name($self->handler()->{Driver}->{Name});
> }
>
> Schema::MyAppDB->connect('dib:Pg:dbname=test','test','pass');
>
>
> That "dib" there in the connect parameter is a typo for "dbi", right?
>
Typo sorry :(
>
--
-------------------------
Emmanuel Quevillon
Biological Software and Databases Group
Institut Pasteur
+33 1 44 38 95 98
tuco at_ pasteur dot fr
-------------------------
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]