On Apr 28, 2007, at 12:00 PM, johnny wrote:

>
> What I was trying to get was, there isn't a python command line
> option, that will create Object Mapper Classes for the tables,  so I
> can import them within my applications.  I guess, I have to code these
> every time I need to use a certain table like this:
>
> metadata = BoundMetaData('dburi')
> user_table = table('user', metadata, autoload=True)
> class User(object):
>     pass
> mapper(User, user_table)
>
> Thank you.

theres another extension called SqlSoup that does what I think youre  
asking for.  creates the classes on the fly for each table which it  
also reflects on the fly.

http://www.sqlalchemy.org/trac/wiki/SqlSoup





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to