toList

fun <T : Any> ResultSet.toList(clazz: KClass<T>): List<T>

Get columns' values of all rows as a list of DTOs of type clazz, then close ResultSet

Throws

on invalid mapping

from JDBC