[SQLBuilder](
https://github.com/newnius/util4p/blob/master/SQLBuilder.class.php)
自己造的小轮子,用 ORM 处于两个原因:
- 数据库间迁移方便
- 代码看起来舒服一点
```
$offset = $rule->getInt('offset', 0);
$limit = $rule->getInt('limit', -1);
$selected_rows = array('username', 'email', 'email_verified', 'role', 'reg_time', 'reg_ip');
$where_arr = array();
$builder = new SQLBuilder();
$builder->select('qa_user', $selected_rows);
$builder->where($where_arr);
$builder->limit($offset, $limit);
$sql = $builder->build();
```
不过手写也很喜欢