[jifty-devel] MySQL: Transparent reconnect
jesse at bestpractical.com
Fri Sep 8 13:36:31 EDT 2006
It makes me a little twitchy to start setting environment variables
to get somewhat sketchy side-effects out of them. But I agree that
there ought to be a way to get what you want. So, I've just
refactored Jifty::DBI to allow you to stuff arbitrary arguments into
the database driver connect hash, right next to "database" "user"
"password" and "sid". This will be in the next release of Jifty::DBI
(and in svn as soon as I push.
How's that sound?
On Sep 6, 2006, at 2:38 AM, Thomas Themel wrote:
> Jesse Vincent (jesse at bestpractical.com) wrote on 2006-09-06:
>> From within your app's mason templates, try:
>> % use YAML
> You're right, the actual environment when handling a request is a lot
> richer than the environment of the long-running fastcgi server
> and actually has GATEWAY_INTERFACE="CGI/1.1" set - however, that
> affect the state of the MySQL handle, since it only checks for
> GATEWAY_INTERFACE in the connect() method, which is called during
> [*Thomas Themel*] And let's not forget USNS Bob Hope. I bet that
> name inspires
> [extended contact] the crew as much as the old Flower Class
> Corvettes did.
> [info provided in]
> [*message header*] - Paul Tomblin in the monastery
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20060908/0eb3a244/PGP.pgp
More information about the jifty-devel