i have a large project that is reflecting off of postgres
i'd like to take advantage of the relational engine now.
An example off a tutorial is
----------------------------------------
mapper(Email, emails)
mapper(User, users, properties={
'emails': relation(Email),
})
mary = session.query(User).get_by(name='Mary')
print mary.emails
-----------------------------------------
what's the best way to handle stuff like if you're working off
reflecting ?
i was thinking about creating a stash called __relations in the
classes the db gets mapped to , and pulling of that. thoughts?
suggestions?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---