https://kotlinlang.org logo
#india
Title
k

Kunal Dabir

09/02/2021, 2:34 PM
Hey #kotlin #india, I am speaking on “Data Access in Kotlin without ORM” this Saturday, Sep 4th, 10:00 AM at Medly Tech-Connect. Please RSVP here. This is an online event and is free to attend (Just RSVP to get the Zoom link). I am looking forward to see you all there. Here is a brief excerpt about the talk:
Want harness true power of SQL without writing boilerplate JDBC code? We will explore a zero cost (both in terms of startup time and runtime overhead), reflection-free, annotation-free, bytecode-manipulation-free, and a type-safe way to write your Persistence Layer in Kotlin.
ORMs are great but not suitable in every situations. We will start by exploring some such situations. We will see how to connect to and execute queries against PostgreSQL in Kotlin without requiring any ORM or boilerplate code. We will be able to write immutable data classes (which may not be possible with ORMs) that will be mapped from database result. We will see how changes in database schema can be detected at compile time leading us towards more type-safe and maintainable codebase.