Open Nek-12 opened 1 year ago
how can I execute an upsert using DAO api?
https://github.com/JetBrains/Exposed/wiki/FAQ#q-is-upsert-supported
First, of all, seems that batchReplace
is already doing what I want, but for the DSL Api. My question was specifically about the DAO api
I've been scouring through documentation and source code for quite some time now to solve a basic problem - I want to execute an upsert statement using the dao api. I haven't found any indication on how to do batch upserts using dao api, no mention of the behavior of
new(id, block)
when a conflict is encountered (throw, replace, ignore?). Many functions likebatchInsert
in the DSL api are also lacking any sort of sensible documentation, mentioning tests only, and many are simply undocumented at all. My problem for now is: how can I execute an upsert using DAO api? But the bigger problem is that this library has one of the worst documentations I've ever seen.