Hacker News new | ask | show | jobs
Show HN: A Kotlin/JVM database client for those who want to write SQL (github.com)
2 points by be-hase 721 days ago
It is implemented for those who like to write SQL directly. Using the Kotlin compiler plugin, I achieve binding parameters using string interpolation.
1 comments

In the example

``` status = $status """ if (vip != null) { +"vip = $vip" } ```

Does that concatentation automatically add the "AND" to combine the where clauses? How does it know the vip bit is a where clause?