[Dbix-class] Use prepared DBI handle
Matt S Trout
dbix-class at trout.me.uk
Tue Jun 5 09:22:31 GMT 2007
On Tue, Jun 05, 2007 at 11:29:05AM +0400, Ivan Fomichev wrote:
> Hello, all,
>
> I'm going to move our project towards DBIC step by step. We've got our
> own modules based on DBI. Is there a way to make an instance of
> DBIC::Schema with a prepared DBI handle, in order not to produce
> multiple DB connections?
http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/Storage/DBI.pm#connect_info
=quote
The arrayref can either contain the same set of arguments one would normally pass to "connect" in DBI, or a lone code reference which returns a connected database handle.
=cut
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/
More information about the Dbix-class
mailing list