Re: [web2py] dal store data in more than 1 database

2013-12-16 Thread Manuele Pesenti
Il 14/12/13 01:29, 黄祥 ha scritto: hi, is it possible for dal store data in more than 1 database? heve you read this part of the documentation? http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Replicated-databases M. let say i use database 'production1' with mysql

Re: [web2py] dal store data in more than 1 database

2013-12-16 Thread 黄祥
a, i c, thank you so much for the reference link, is this work? db = DAL(['sqlite://storage.db','mysql://username:password@localhost/test','postgres://username:password@localhost/test']) best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] dal store data in more than 1 database

2013-12-13 Thread 黄祥
hi, is it possible for dal store data in more than 1 database? let say i use database 'production1' with mysql backend, while during the daily usage i want to make a copy of that database also in sqlite backend or maybe another database name 'testing1' with mysql backend. i know i can do it