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 hn newest 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?
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?
ttymck|1 year ago
``` 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?