poolGetConnection method

Future<Result<Connection>> poolGetConnection(
  1. int poolId
)

Gets a connection from the specified connection pool.

The poolId must be a valid pool identifier returned by poolCreate. Returns a Connection on success, or an error if the pool is exhausted or invalid.

Implementation

Future<Result<Connection>> poolGetConnection(int poolId) async =>
    _repository.poolGetConnection(poolId);