list

abstract fun <T : Any> list(returnType: KClass<T>): List<T>(source)

Executes the query and returns all rows converted to returnType.

When fetching a simple scalar type from a single-column query, SQL NULL is kept as a null element even though this cannot be expressed in the List<T> type.