Simon (and the others),

thank you! the someClass.__table__    works...

Kind regards,

Martijn 

On Oct 27, 2010, at 5:02 PM, King Simon-NFHD78 wrote:

>> -----Original Message-----
>> From: sqlalchemy@googlegroups.com [mailto:sqlalch...@googlegroups.com]
>> On Behalf Of Martijn Moeling
>> Sent: 27 October 2010 15:47
>> To: sqlalchemy@googlegroups.com
>> Subject: Re: [sqlalchemy] Create_all() -> Create_JustThese(engine,
>> [Table1,Table2,....])?
>> 
>> Mike,
>> 
>> I have checked the docs but somehow overlooked it multiple times. I
>> now looked at the index and found it as an MetaData method and found
>> it.
>> Using it gives me all sorts of errors now, I need to get some
>> reference to the Table object hidden in the Internals somewhere when
>> using declarative.
>> 
>> I am an extremely experienced (Technical low level) programmer but I
>> have always been able to let others do the database stuff (Since I
>> have allways hated it sooooooo much, Personally I think Databases are
>> pure torture), now that I am in the need of databases I am suddenly
>> facing my inexperience with the technical language. The SQLAlchemy
>> docs look like chinese to me and often I just do not know how you
>> DBA's call things and therefore searching the documentation is a
>> problem if you do not know what to search for.
>> 
>> Again I have searched the Docs, can anyone tell me how to get a
>> reference to a Table object when it is defined the declarative way?
>> 
>> Martijn
>> 
> 
> The Synopsis for the declarative extension says the following:
> 
> --
> 
> The resulting table and mapper are accessible via __table__ and
> __mapper__ attributes on the SomeClass class:
> 
> # access the mapped Table
> SomeClass.__table__
> 
> # access the Mapper
> SomeClass.__mapper__
> 
> --
> 
> http://www.sqlalchemy.org/docs/orm/extensions/declarative.html#synopsis
> 
> Hope that helps,
> 
> Simon
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To post to this group, send email to sqlalch...@googlegroups.com.
> To unsubscribe from this group, send email to 
> sqlalchemy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sqlalchemy?hl=en.
> 

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

Reply via email to