src/Db/Pgsql/PgClient.php
public function getIdleConnection(): pgConnection
    {
        if(($connection = $this->getPool()->getClientIdle()) !== null) {
            return $connection;
        } elseif (!$this->getPool()->isReachedMaxClients()) {
            return $this->getPool()->createClient();
        }
        return null;
    }
public function getIdleConnection(): pgConnection
    {
        if(($connection = $this->getPool()->getClientIdle()) !== null) {
            return $connection;
        } elseif (!$this->getPool()->isReachedMaxClients()) {
            return $this->getPool()->createClient();
        }
        return null;
    }
Get connection ready for query execution
@return pgConnection|null