Hi,
Is it possible to connect to 2 databases each of which have a common
table name??
Here is my test:
include1.py
------------------------
from sqlobject import *
class Test(SQLObject):
desc=StringCol()
------------------------
include2.py
------------------------
from sqlobject import *
class Test(SQLObject):
desc=StringCol()
------------------------
test.py
------------------------
from sqlobject import *
import os
import import1
import import2
if os.path.exists(\'c:\\\\test1.db\'):
os.unlink(\'c:\\\\test1.db\')
con1=connectionForURI(\'sqlite:/d|/tmp/test1.db\')
if os.path.exists(\'c:\\\\test2.db\'):
os.unlink(\'d:\\\\test2.db\')
con2=connectionForURI(\'sqlite:/d|/tmp/test2.db\')
import1.Test.createTable(connection=con1)
import2.Test.createTable(connection=con2)
con1.close()
con2.close()
------------------------
Thanks,
Ray Smith
http://RaymondSmith.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss