nilportugues/sql-query-builder — pull request #35 by shadowhand (2014-11-14 23:18:57+00:00)
Title: Modify BaseQuery to be self-building

Builder now injects itself into the query, to allow the query to write itself.

- add `getSql` and `__toString` to BaseQuery
- add `setBuilder` and `getBuilder` to BaseQuery
- GenericBuilder calls `setBuilder` to inject itself into each query it creates