https://kotlinlang.org logo
Title
o

Okan Yıldırım

04/26/2022, 2:41 PM
Hello friends, I was using Spring Boot for a while, then I saw there is Ktor and I really enjoy using it but sadly I did not find enough database support for that
Is there anything you can recommend me like JPA?
I tried Exposed but it was like more work to do, always doing schemaToModel etc. or while creating doing it[Todos.title] = "" was a little bit exhausting, moreover, while doing it, I was able to skip any field and I do not get any warning
r

Robert Jaros

04/26/2022, 2:44 PM
o

Okan Yıldırım

04/26/2022, 2:46 PM
I never heard of these, let me check it, thank you!
a

asad.awadia

04/26/2022, 2:59 PM
Ktorm and jdbi would be my recommendations
o

Okan Yıldırım

04/26/2022, 3:03 PM
They does not look like as full as spring data jpa but they look good
Ktorm especially
j

Jacob

04/26/2022, 3:05 PM
ktorm hasn't been updated in a year. It looks like an abandoned project to me https://github.com/kotlin-orm/ktorm/branches/active
👍 1
o

Okan Yıldırım

04/26/2022, 3:08 PM
Yeah, it looks like so, maybe they focus on Exposed?
j

Jacob

04/26/2022, 3:16 PM
unlike ktor, ktorm is not a jetbrains project. exposed is a jetbrains project. I doubt the developers of ktorm have any connection to ktor and exposed
o

Okan Yıldırım

04/26/2022, 3:27 PM
ahh, I thought Ktorm is related with Ktor, thank you
r

Robert Jaros

04/26/2022, 3:36 PM
both Ktorm and Exposed are blocking frameworks, which imho makes non-blocking komapper (with r2dbc) a better fit for Ktor
o

Okan Yıldırım

04/26/2022, 6:16 PM
Thanks everybody for the suggestions
I will try each one by one and decide
Have a great day 🙂
h

hfhbd

04/26/2022, 6:33 PM
Or use sqldelight