toList

fun <T : Any> ResultSet.toList(clazz: KClass<T>, initialArraySize: Int = 0): 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