#64: Add an upsert() method to the DB class
-------------------------+-----------------
Reporter: cito | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: 5.0
Component: Classic API | Version: 4.1
Keywords: upsert |
-------------------------+-----------------
Postgres 9.5 has a new `UPSERT` command that could be supported by a new
`upsert` method in the DB class, in addition to the existing methods
`update` and `insert`.
For Posgres versions below 9.5 it could fall back to a normal insert
followed by an update if the insert throws an exception.
--
Ticket URL: <http://trac.pygresql.org:8000/pgtracker/ticket/64>
PyGreSQL <http://www.pygresql.org/>
PyGreSQL Tracker
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql