[cgiapp] Re: how to use the CGI::Application::Plugin::DBH and
DBIx::Class together
Mark Stosberg
mark at summersault.com
Tue Jun 17 23:33:56 EDT 2008
On Tue, 2008-06-17 at 17:04 +0800, Mike.G wrote:
> Hi, every, right now, I want to use the DBIx::Class in my project.
> but I had used the CGI::Application::Plugin::DBH for get the database
> connection,
> so the DBIx::Class can use the exists Database Connection Ref?
> like, right now, I had the $dbh.
> by :
> my $dbh = $this->dbh;
> so can I pass this $dbh into the DBIx::Class ?
Mike,
If DBIx::Class can accept an existing database handle, then: Yes. If
there is uncertainty about that, then that's a question to confirm to
the DBIx::Class list.
Mark
More information about the cgiapp
mailing list