fetchObject
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 for $1, $2, … in declaration order.
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.