
懒得自己写 db 类
有哪些 DB 类比较好用的
1 ywisax 2019-07-02 18:55:40 +08:00 |
2 rekulas 2019-07-02 19:07:09 +08:00 有一些独立的 orm 类 比如 notorm 好像有点像 |
3 GG668v26Fd55CP5W 2019-07-02 19:10:49 +08:00 via iPhone laravel 那个挺好的,可以剥离出来用 |
4 hubqin 2019-07-02 20:40:23 +08:00 via Android AR ( active record )也不错 |
5 justseemore 2019-07-02 20:42:45 +08:00 medoo? |
6 sarices 2019-07-02 20:48:44 +08:00 |
7 iscraft 2019-07-03 08:55:23 +08:00 应该可以 我从 fatfree 里扒出来过一个 注释掉了 cache 相关的 https://github.com/iscraft/php-pdo-class-of-fat-free |
| /td> | 8 ben1024 2019-07-03 10:00:56 +08:00 可以剥离, Laravel Eloquent 安装下面的软件包就可以 illuminate/validation illuminate/translation illuminate/database illuminate/support illuminate/pagination |
9 tanszhe 2019-07-03 19:25:16 +08:00 |
10 duola 2019-07-04 18:13:23 +08:00 medoo 满好的,medoo 作者也在这论坛里。 |
11 dvaknheo OP @duola 不认识。上次在 github 讨论议题里加了这个需求,没见回应。 ``` class MedooFixed extends \Medoo\Medoo { public function exec($query, $map = []) { if (isset($map[0])) { array_unshift($map, null); unset($map[0]); } return parent::exec($query, $map); } } ``` 这就可以 $medoo->exec("select * from table_name where name=? and des=? " ,['a','b']); 方便多了 |