api-docs / org.ktorm.dsl / joinToString
joinToString
fun Query.joinToString(
separator: CharSequence = ", ",
prefix: CharSequence = "",
postfix: CharSequence = "",
limit: Int = -1,
truncated: CharSequence = "...",
transform: (row: QueryRowSet) -> CharSequence
): String
(source code)Create a string from all rows separated using separator and using the given prefix and postfix if supplied.
If the query result could be huge, you can specify a non-negative value of limit, in which case only the first
limit rows will be appended, followed by the truncated string (which defaults to “…”).
Since
3.0.0