Show HN: A Kotlin/JVM database client for those who want to write SQL (github.com) 2 points by be-hase 2y ago ↗ HN It is implemented for those who like to write SQL directly. Using the Kotlin compiler plugin, I achieve binding parameters using string interpolation.
[–] ttymck 2y 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?
1 comment
[ 3.8 ms ] story [ 15.5 ms ] thread``` 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?