Exposed icon indicating copy to clipboard operation
Exposed copied to clipboard

Lacking documentation

Open Nek-12 opened this issue 2 years ago • 2 comments

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 like batchInsert 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.

Nek-12 avatar Mar 12 '23 18:03 Nek-12

how can I execute an upsert using DAO api?

https://github.com/JetBrains/Exposed/wiki/FAQ#q-is-upsert-supported

lberrymage avatar Mar 30 '23 05:03 lberrymage

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

Nek-12 avatar Mar 30 '23 09:03 Nek-12