fetchObjectStrict

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

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

Return

The mapped row.

Parameters

params

Values for $1, $2, … in declaration order.

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.