On Mar 1, 2006, at 2:13 PM, Jonathan LaCour wrote:

if Tables were created *without* an engine, and you then said ForeignKey('mytable.foo'), how would it locate 'mytable' ? a global dictionary ?

No, the engine would be assumed to be the global default ProxyEngine engine, unless otherwise specified. The idea being, many many classes of applications have just one database to talk to, and just one "schema" in your terms. If you don't pass an engine, use the global engine, otherwise use the specified engine. I think this would deal with your ForeignKey argument pretty easily as well.


I have no problem with there being a global default ProxyEngine, although i do want to experiment with having it more clearly stated as a "Schema" that can be "connected" to a database, and possibly moving ProxyEngine out of "ext", especiailly if there is a global default instance of it.

although, with regards to a nonexistent "engine" parameter automatically indicating a global....i *do* remember someone reminding me that "explicit is better than implicit", now who was that ? :)




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to