[Dbix-class] DBH handle upon connect
Dan Horne
dan.horne at redbone.co.nz
Tue Feb 12 19:54:18 GMT 2008
Steve Kirkup said:
> When I establish my connection to the database I want to immediately run
> some SQL to initialize the databases session environment (specifically
> the NLS_DATE_FORMAT for Oracle).
>
> My question is how do I get ahold of that database handle? The
> DBIx::Class::Schema->connect() makes no mention of one being available.
>
You shouldn't need to get hold of the handle - checkout on_connect_do:
http://search.cpan.org/~jrobinson/DBIx-Class-0.08009/lib/DBIx/Class/Manual/Intro.pod#Connecting
More information about the DBIx-Class
mailing list