we have a bunch of folks who are very opposed to anything "global" at all. SA 0.2 abstracts the Engine away from the Table by using a MetaData object, which is just a collection of Table objects, and may or may not be connected to an Engine. an available subclass of MetaData is DynamicMetaData which just has a threadlocal "engine" variable, and is the effective replacement for the ProxyEngine. so it would be definitely nice for ActiveMapper to allow specification of a MetaData object, even though there is still as usual a "global" DynamicMetaData accessible via global_connect().

On Apr 24, 2006, at 3:28 PM, Jonathan LaCour wrote:

Qvx wrote:
"global" part from global_connect name just raised an alarm signal inside my head. If I'm reading you correct, global_connect will make it impossible to
use more than one database. I hope I'm missing something obvious.

What is wrong with __engine__ module variable?

If it is possible to still connect to different database per python module
then I guess I'm OK with global_connect. Just give me a recipe how to
connect to different database in each module and I'll be happy.

I dislike having ActiveMapper have its own ProxyEngine when SQLAlchemy has a globally defined ProxyEngine called the "default engine" that can be accessed as: sqlalchemy.schema.default_engine.

You should be able to get the functionality you need simply by creating your engines and doing the appropriate dance with the default ProxyEngine in your modules.

--
Jonathan LaCour
http://cleverdevil.org
---------------------------------------------------------------------- --


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to