Handling Complex WHERE clauses with a PHP Query Builder

后端 未结 5 2017
执念已碎
执念已碎 2021-02-02 01:28

There are several ActiveRecord styled query builder libraries out there. Some are stand alone and some come built into frameworks. However, they really have trouble with WHERE a

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-02 02:04

    You may consider SQLBuilder, written in PHP and it can generate cross platform SQL for MySQL and PostgreSQL by setting different query driver.

    The use case is here: https://github.com/c9s/SQLBuilder/blob/2.0/tests/SQLBuilder/Query/SelectQueryTest.php

提交回复
热议问题