perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: persistent DB connections
Date Mon, 29 May 2006 04:30:46 GMT
> 
> I want to use my DBIx::Class module to access the db and want 
> to store a DBIx::Class::Schema object which holds a db 
> connection somewhere, so I can access it from my embperl 
> pages and my embperl library I include with
> 
> Execute ({ inputfile => 'nacadminlib.epl', import => 1 });
> 
> in every page.
> 
> I looked at the Embperl docs but couldn't find a solution.
> 
> Put it in $epreq, or $epapp?
> 
> How to do it to get one per apache2 child?
> 

Putting it in $epapp should work, but will get a db handle for every
different name you specify with Embperl_App in your httpd.conf file.

The other possibility is to put it in a global variable, then you will get a
handle per Apache child

Gerald


 
** Virus checked by BB-5000 Mailfilter ** 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message