db1 = DAL('sqlite://number_one.db')
db2 = DAL('sqlite://number_two.db')
db3 = DAL('sqlite://number_three.db')
all done!
On Tuesday, June 9, 2015 at 12:31:22 AM UTC+2, [email protected]
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', ...)' ?
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.