fetchObjectStrict

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

Executes the query and maps its single row onto T, requiring exactly one row.

Return

The mapped row.

Parameters

params

Values by parameter name, without the leading @.

Type Parameters

T

The type the row is mapped to.

Throws

INCORRECT_RESULT_SIZE if no row or more than one row matched.

if the row cannot be mapped onto T.


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

Same as fetchObjectStrict, with the values given as Pairs.