query
Execute a query with the given arguments and map the results.
Return
A list of mapped results.
Parameters
sql
The SQL query to execute.
args
The arguments for the SQL query.
mapper
A function that maps a cursor to the desired result type.
Throws
if the query execution fails.