Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lacking documentation #1703

Open
Nek-12 opened this issue Mar 12, 2023 · 2 comments
Open

Lacking documentation #1703

Nek-12 opened this issue Mar 12, 2023 · 2 comments

Comments

@Nek-12
Copy link

Nek-12 commented Mar 12, 2023

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
Copy link

how can I execute an upsert using DAO api?

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

@Nek-12
Copy link
Author

Nek-12 commented Mar 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants