Hello
Have a question related to mapped objects and reflecting tables.
If have this simple configuration:
messages = Table('messages', meta, autoload=True)
class Message(object):
pass
mapper(Message, messages)
Given a Message object, do I have a way to retrieve all the attributes
that result from the database mapping? I don't know these attributes
upfront since I use autoload=True, but still, I'd like to access them
in a safe way (object.__dict__ doesn't seem to be an option).
Can someone help?
Thanks a lot,
--
Eric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---