lib/Doctrine/CouchDB/CouchDBClient.php
public function getDatabaseInfo($name = null)
    {
        $response = $this->httpClient->request('GET', '/'.($name ? urlencode($name) : $this->databaseName));

        if ($response->status != 200) {
            throw HTTPException::fromResponse('/'.urlencode($name), $response);
        }

        return $response->body;
    }
public function getDatabaseInfo($name = null)
    {
        $response = $this->httpClient->request('GET', '/'.($name ? urlencode($name) : $this->databaseName));

        if ($response->status != 200) {
            throw HTTPException::fromResponse('/'.urlencode($name), $response);
        }

        return $response->body;
    }
public function getDatabaseInfo ( $ name = null ) { $ response = $ this -> httpClient -> request ( 'GET' , '/' . ( $ name ? urlencode ( $ name ) : $ this -> databaseName ) ) ; if ( $ response -> status != 200 ) { throw HTTPException :: fromResponse ( '/' . urlencode ( $ name ) , $ response ) ; } return $ response -> body ; }
Get Information about a database.

@param string $name

@throws HTTPException

@return array
Get Information about a database .