spring-projects / spring-data-relational

Spring Data Relational. Home of Spring Data JDBC and Spring Data R2DBC.
https://spring.io/projects/spring-data-jdbc
Apache License 2.0
740 stars 342 forks source link

Add getColumn* operators. #1776

Closed GeorgePap-719 closed 3 months ago

GeorgePap-719 commented 3 months ago

Kotlin APIs that leverage reified functions to simplify operations on Row type.

mp911de commented 3 months ago

Thanks for your suggestion. Hosting code in Spring Data that augments the R2DBC specification doesn't feel right. It would make much more sense to have the Kotlin code live in its own artifact as we do not want to become a second-level repository for spec changes.

GeorgePap-719 commented 3 months ago

Fair point. Having said that, I believe it is still worth to add Kotlin extensions on Readable class that leverage reified functions. Similar to these but with the same naming schemes as the interface (e.g. get*), wdyt @mp911de ?