I'm writing a script that runs in the web2py environment and accesses my 
database through the DAL. Because my script is multithreaded and the DB 
logic is not easily isolated to a single thread, I need multiple 
connections to the DB, which means multiple DAL instances. I see I can do 
this:

DAL('sqlite://storage.sqlite',folder='path/to/app/databases', auto_import=True))

but then I don't get validators, etc. Is there a way to create a new DAL 
instance based off of one I already have, instead of my script needing to 
run through the define_tables() stuff again for each DAL instance I need?

-- 



Reply via email to