From: Eli Green <eli.green@co...> - 2001-02-25 08:01:24
> Wouldn't the connection for the SQL session store have to stored in some
> kind of config file? If not, then it's just going to end up in code anyway.
> It's a host, username, possible port, right?
The problem you'll likely find is that DB connections' "connect" methods are
explicitly non-standard. Some will implement them as positional parameters,
some as keywords -- and this doesn't break the DB-API spec (I thought it was
weird that they didn't standardize on this, but there's no using whining about
it, because Python makes it easy to cope with).
The connection pooling class submitted untested by myself and fixed by Geoff et
al shows an example of dealing with both types of connection parameters. It's
probably good place to start.
Get latest updates about Open Source Projects, Conferences and News.