Baachi / CouchDB

CouchDB Client for PHP >=5.5
MIT License
12 stars 3 forks source link

Add QueryBuilder with fluent API #21

Open h4cc opened 9 years ago

h4cc commented 9 years ago

How about a QueryBuilder that could enable stuff like this?

        $result = $this->database->query()
            ->design('users')
            ->view('user-by-username')
            ->key($username)
            ->includeDocs(true)
            ->execute();

I already have something to start from :)

Baachi commented 9 years ago

I already thought about that, its a really cool feature but it needs a lot of work to have a completly and perfect query builder. But it is on my todo list.