src/CouchDB/Database.php
public function findAll($limit = null, $startKey = null)
    {
        $path = "/{$this->name}/_all_docs?include_docs=true";

        if (null !== $limit) {
            $path .= '&limit='.(integer) $limit;
        }
        if (null !== $startKey) {
            $path .= '&startkey='.(string) $startKey;
        }

        $json = (string) $this->client->request('GET', $path)->getBody();
        $docs = JSONEncoder::decode($json);

        return $docs;
    }
public function findAll($limit = null, $startKey = null)
    {
        $path = "/{$this->name}/_all_docs?include_docs=true";

        if (null !== $limit) {
            $path .= '&limit='.(integer) $limit;
        }
        if (null !== $startKey) {
            $path .= '&startkey='.(string) $startKey;
        }

        $json = (string) $this->client->request('GET', $path)->getBody();
        $docs = JSONEncoder::decode($json);

        return $docs;
    }
public function findAll ( $ limit = null , $ startKey = null ) { $ path = "/{$this->name}/_all_docs?include_docs=true" ; if ( null !== $ limit ) { $ path .= '&limit=' . ( integer ) $ limit ; } if ( null !== $ startKey ) { $ path .= '&startkey=' . ( string ) $ startKey ; } $ json = ( string ) $ this -> client -> request ( 'GET' , $ path ) -> getBody ( ) ; $ docs = JSONEncoder :: decode ( $ json ) ; return $ docs ; }
Find all documents from the database.

@param int|null    $limit
@param string|null $startKey

@return mixed
Find all documents from the database .