fetchField

inline fun <T> fetchField(params: Map<String, Any?> = emptyMap()): T

Runs the query and returns the first column of its single row as T.

Declare T nullable for a lookup allowed to find nothing; under a non-nullable one, a missing row and a NULL alike are thrown - the declaration asserted a value would be there.


inline fun <T> fetchField(vararg params: Pair<String, Any?>): T

Runs the query and returns the first column of its single row as T.