
Quick DB query, without having to open/close the connection manually.
Opens a connection, makes the querry and then close it.
It can look like a waste to open and close the connection
for each query, but since the connection are pooled they are in fact
not open /closed but retrieved/released from the pool.
The query is gonna be something like "get * from toto where id=?"
Parameters: [5]
Returns:
Description of the Returned Value
Parameters:
-
query - Description of Parameter
-
params - Description of Parameter
-
con - Description of Parameter
Throws:
-
Exception - Description of Exception