fetchRow

fun fetchRow(vararg params: Any?): Row?

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

At most two rows are requested, so a query that accidentally matches a million does not cross the wire before failing.

Return

The single row, or null if there were none.

Parameters

params

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

Throws

INCORRECT_RESULT_SIZE if more than one row matched.