Hey, I'm looking for a way to builk upsert using pg's "on_conflict_do_update" in a way that would allow me to use a mapper classe (because the objects I want to insert/update are joined-inheritance).
bulk_insert_mappings() would allow me to use its "return_defaults" and to provide a Mapper classe. But I couldn't figure out a way to combine it with "on_conflict_do_update". Any hack I could use to glue these two? Thanks! -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/48c6462a-c4fd-46c7-aead-464b29a03e27n%40googlegroups.com.