AfGsConnection * afgs_command_connection_pool_get  ) 
 

Allows to get, and adquired, a database connection available.

This function, allows to get the next connection available and made that connection to be only avaiable to the caller.

These connection will not be shared with any other thread, so it is important to release the connection once no longer needed.

If all connections created at the server startup are in use, the function will block the caller until some of them gets ready to be used. This function will block the caller until this happens.

Returns:
A AfGsConnection object.