lib/Doctrine/CouchDB/CouchDBClient.php
public function getVersion()
    {
        if ($this->version === null) {
            $response = $this->httpClient->request('GET', '/');
            if ($response->status != 200) {
                throw HTTPException::fromResponse('/', $response);
            }

            $this->version = $response->body['version'];
        }

        return $this->version;
    }
public function getVersion()
    {
        if ($this->version === null) {
            $response = $this->httpClient->request('GET', '/');
            if ($response->status != 200) {
                throw HTTPException::fromResponse('/', $response);
            }

            $this->version = $response->body['version'];
        }

        return $this->version;
    }
public function getVersion ( ) { if ( $ this -> version === null ) { $ response = $ this -> httpClient -> request ( 'GET' , '/' ) ; if ( $ response -> status != 200 ) { throw HTTPException :: fromResponse ( '/' , $ response ) ; } $ this -> version = $ response -> body [ 'version' ] ; } return $ this -> version ; }
Get the current version of CouchDB.

@throws HTTPException

@return string
Get the current version of CouchDB .