[sqlalchemy] how to get the primary key for newly inserted row?

2008-08-27 Thread manuhack
Hi, Using the example in the tutorial: users = Table('users', metadata, ... Column('id', Integer, primary_key=True), ... Column('name', String), ... Column('fullname', String), ... ) if I commit the following ins = users.insert(values={'name':'jack', 'fullname':'Jack Jones'})

[sqlalchemy] Re: how to get the primary key for newly inserted row?

2008-08-27 Thread manuhack
Gustavo, On Aug 27, 10:32 am, Gustavo Narea [EMAIL PROTECTED] wrote: You should map a class to this table. For more information, please read:http://www.sqlalchemy.org/docs/05/ormtutorial.html Thanks. So far my application uses SQLAlchemy without orm and seems like it's time for me to move