11 messages in com.googlegroups.sqlalchemy[sqlalchemy] Re: sqlalchemy introspec...
FromSent OnAttachments
johnny27 Apr 2007 07:02 
Andreas Jung27 Apr 2007 07:08 
johnny27 Apr 2007 12:56 
Andreas Jung27 Apr 2007 22:59 
黄毅27 Apr 2007 23:01 
johnny28 Apr 2007 09:00 
Andreas Jung28 Apr 2007 09:05 
johnny03 May 2007 16:07 
Michael Bayer03 May 2007 18:58 
johnny04 May 2007 13:08 
Michael Bayer04 May 2007 13:21 
Subject:[sqlalchemy] Re: sqlalchemy introspection How?
From:Andreas Jung (lis@zopyx.com)
Date:04/28/2007 09:05:17 AM
List:com.googlegroups.sqlalchemy

--On 28. April 2007 09:00:36 -0700 johnny <ramp@gmail.com> 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,

What should that be?

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)

huh???? You can of course write a convenience method to what ever you like. In addition look at my module z3c.sqlalchemy.

-aj