Roy Hyunjin Han wrote:
>
> I'm trying to use SQLAlchemy's executemany syntax in PostgreSQL and
> get the last_inserted_ids().
> What is the recommended way to get these last_inserted_ids()?
>
> I know that I can access the id attribute for each model instance but
> there are hundreds of inserted rows and I would rather retrieve them
> all at once.

this is not available for executemany.  its a limitation of DBAPI.


--~--~---------~--~----~------------~-------~--~----~
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 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to