On Thu, Feb 16, 2006 at 01:53:26PM +0100, Hartmut Goebel wrote:
> i need to access two databases within one application. How can this be
> achieft?
By creating two different connections and passing them to all
operations:
connection1 = connectionForURI(...)
connection2 = connectionForURI(...)
row1 = Table1.select(..., connection=connection2)
# Now row1 remembers it is selected via connection1
value1 = row1.v1
value2 = row1.v2
row2 = Table1(v1=value1, v2=value2, connection=connection2)
# You just inserted a new row using the second connection
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss