bmuller / twistar

Twistar is an object-relational mapper (ORM) for Python that uses the Twisted library to provide asynchronous DB interaction.
http://findingscience.com/twistar
Other
132 stars 38 forks source link

Fixes InteractionBase.insert() to return rowid as per source documentation #53

Closed nocko closed 9 years ago

nocko commented 9 years ago

I've run into a use case where I need to manually insert and know the resulting rowid. It seems as though InteractionBase.insert() was meant to do this. I've done trivial test of the patch in my use case, and ensured that it passes all the unit tests.

bmuller commented 9 years ago

Could you just use getLastInsertID like insertObj uses?

nocko commented 9 years ago

Going to separate this into separate pull requests.