queryFirst
Executes a query and retrieves the first result.
Return
The first result of the query.
Parameters
query
The SQL query to execute
block
The block of code to customize the query
Throws
If there are zero results.
Executes a query and retrieves the first result.
The first result of the query.
The SQL query to execute
The block of code to customize the query
If there are zero results.