[sqlalchemy] Re: Column metadata from mapped class

2008-07-22 Thread Sean Davis
On Jul 20, 11:28 am, Michael Bayer [EMAIL PROTECTED] wrote: On Jul 20, 2008, at 7:48 AM, Sean Davis wrote: I have been playing with 0.5 and have a very simple question.  If I have a mapped class, User, how can I get at the columns of User?  I see lots of constructs like User.c,

[sqlalchemy] Re: Column metadata from mapped class

2008-07-22 Thread huy do
On Jul 22, 1:33 pm, Michael Bayer [EMAIL PROTECTED] wrote: On Jul 21, 2008, at 9:45 PM, huy do wrote: Because a mapped class can have an arbitary select as it's source i.e columns from any table theoretically, it would still be nice to know exactly which columns were used to map the

[sqlalchemy] Re: Column metadata from mapped class

2008-07-22 Thread Michael Bayer
On Jul 22, 8:04 am, huy do [EMAIL PROTECTED] wrote: On Jul 22, 1:33 pm, Michael Bayer [EMAIL PROTECTED] wrote: On Jul 21, 2008, at 9:45 PM, huy do wrote: Because a mapped class can have an arbitary select as it's source i.e columns from any table theoretically, it would still be

[sqlalchemy] Re: Column metadata from mapped class

2008-07-21 Thread Michael Bayer
On Jul 21, 2008, at 9:45 PM, huy do wrote: Because a mapped class can have an arbitary select as it's source i.e columns from any table theoretically, it would still be nice to know exactly which columns were used to map the properties of a given class. The .c on the model class use to

[sqlalchemy] Re: Column metadata from mapped class

2008-07-20 Thread Michael Bayer
On Jul 20, 2008, at 7:48 AM, Sean Davis wrote: I have been playing with 0.5 and have a very simple question. If I have a mapped class, User, how can I get at the columns of User? I see lots of constructs like User.c, but User has no 'c' attribute now. I am looking at finding the