Re: [SQLObject] Connect to 2 databases which each have a table name the same
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ray S. <ray@RaymondSmith.com> - 2006-08-31 01:06:30
|
Quoting MichaelG <mgr...@ns...>: > > > Oleg, > > Being dense, and having fought with this a while now, can you provide a > very brief example of \\\"pass a connection object to an every method\\\" in > this case Ray presents of two databases? I am sure there is a very > clean pythonic way to handle this, and I am just missing it. > > - Michael Hi Michael, (I\\\'ll do my best to answer) Each SQLObject method has a \\\"connection\\\" parameter. If not specified the connection set as \\\"sqlhub.processConnection\\\" is used. See attched example. Regards, Ray Smith http://RaymondSmith.com |