On Monday, June 8, 2015 at 3:31:22 PM UTC-7, jackso...@quantachrome.com wrote: > > I am a newbie. I want to have multiple sqlite3 databases accessible in my > application. The db variable confuses me ...in the context of a controller > it seems to have a value assigned to it upon entry...Is this just the last > value assigned in db.py(model file). If I create multiple databases in my > model can I switch to the one I want by doing something like this in my > controller 'db = DAL('sqlite://some.db', ...)' ? >
If you want 3 databases, then Niphlod's advice is the way to go. Are these legacy databases? If you merely want 3 tables, you only need the one connection string, and you just add 3 db.define_table() calls in your model file. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.