sqlalchemy: Bulk insert or update mappings
<p>I want to create or update objects from a list of dicts using sqlalchemy.</p>

<p>Doing something like: <code>session.bulk_update_mappings(MyObject, list_of_dicts)</code></p>

<p>And the problem is that I am getting integrity error, for cases when I there are some from the list_of_dicts are not in the database.</p>

<p>So I am kind of looking for a way to combine bulk_update_mappings and bulk_insert_mappings for one set of objects. </p>