[sqlalchemy] dealing with multiple databases when using declarative

2009-12-03 Thread Victor Olex
By database we refer to a separate instance (could be on another server) of equvalent database i.e. production and development environments. Using sqlalchemy.ext.declarative, what would be a correct pattern to enable one model to connect to two equivalent databases? Consider: --- model.py ---

Re: [sqlalchemy] dealing with multiple databases when using declarative

2009-12-03 Thread Michael Bayer
On Dec 3, 2009, at 2:39 PM, Victor Olex wrote: By database we refer to a separate instance (could be on another server) of equvalent database i.e. production and development environments. Using sqlalchemy.ext.declarative, what would be a correct pattern to enable one model to connect to