JetBrains / Exposed

Kotlin SQL Framework
http://jetbrains.github.io/Exposed/
Apache License 2.0
8.37k stars 694 forks source link

Lacking documentation #1703

Open Nek-12 opened 1 year ago

Nek-12 commented 1 year ago

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.

lberrymage commented 1 year ago

how can I execute an upsert using DAO api?

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

Nek-12 commented 1 year ago

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