This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erlendaasland
Recipients AR, erlendaasland
Date 2021-08-16.19:04:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629140694.86.0.743868679614.issue44927@roundup.psfhosted.org>
In-reply-to
Content
The INSERT statement comes in many varieties. What about INSERT OR [ABORT,FAIL,IGNORE,REPLACE,ROLLBACK], INSERT WITH RECURSIVE, INSERT INTO table SELECT, etc.? Why only add such an API for insert; why not replace() as well?

I'm not convinced this is a good idea. It sounds to me like a project specific need that would need a project specific implementation. And as you showed, the implementation is pretty straight-forward.
History
Date User Action Args
2021-08-16 19:04:54erlendaaslandsetrecipients: + erlendaasland, AR
2021-08-16 19:04:54erlendaaslandsetmessageid: <1629140694.86.0.743868679614.issue44927@roundup.psfhosted.org>
2021-08-16 19:04:54erlendaaslandlinkissue44927 messages
2021-08-16 19:04:54erlendaaslandcreate