top | item 40821215

Show HN: A Kotlin/JVM database client for those who want to write SQL

2 points| be-hase | 1 year ago |github.com

It is implemented for those who like to write SQL directly. Using the Kotlin compiler plugin, I achieve binding parameters using string interpolation.

1 comment

order

ttymck|1 year ago

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?