fetchObject

inline fun <T : Any> fetchObject(params: Map<String, Any?>): T?

Executes the query and maps its single row onto T, or returns null when nothing matched.

Return

The mapped row, or null if there were none.

Parameters

params

Values by parameter name, without the leading @.

Type Parameters

T

The type the row is mapped to.

Throws

INCORRECT_RESULT_SIZE if more than one row matched.

if the row cannot be mapped onto T.


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

Same as fetchObject, with the values given as Pairs.