single

abstract suspend fun <T : Any> single(returnType: KClass<T>): T(source)

Executes the query and returns exactly one row converted to returnType.

Fails with an exception if the query returns no rows, more than one row, or a single scalar value that is SQL NULL.