On 4/28/07, johnny <[EMAIL PROTECTED]> wrote: > > > Does this create a Object Mappers for those tables, so I can do the > following: > > Lets say I have a table called "user" with columns "user_name" and > "password". > > ed = User() > ed.user_name = 'Ed' > ed.password = 'edspassword' > session.save(ed)
metadata = BoundMetaData('dburi') user_table = table('user', metadata, autoload=True) class User(object): pass mapper(User, user_table) # then ed = User() ed.user_name = 'Ed' ed.password = 'edspassword' session.save(ed) -- http://codeplayer.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---