Sanjaya Kumar Patel wrote:

> Is something like this possible, that the tables are autoloaded, along
> with foreign keys, but the relations are defined in the code. I think
> this is what is done in SQLAlchemy when you do autoload?
>
> So, something like this?
>
> [snip snip code]

This is what I would like to support, although I doubt it works at
this point.  Give it a shot with the latest code in SVN and see what
happens.

> Why am I so impressed on autoload is that one does not have to repeat
> the schema at both the database and the code. The DRY principle,
> basically.

Well, if you define the schema in your code, this doesn't violoate the
DRY principle, because you no longer have to maintain a bunch of SQL
schema scripts (one for each database you support!) since the code can
generate these for you.

Really, when you think about it, defining the schema in the code is
more adherent to DRY than autoloading, since instead of having 1 DDL
script for every database you support, you just have it stated in code
one time ;)

> I could not find out (after some heavy searches!) how to put this
> message in the existing thread. Trying to mail the message with the
> same subject.  Pardon the stupidity and let me know how to extend a
> thread.

All you should have to do is click "reply-to-all" in your email
client.

--
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

Reply via email to