Download the PHP package prince/swoole-think-orm without Composer
On this page you can find all versions of the php package prince/swoole-think-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package swoole-think-orm
swoole-think-orm
适应swoole协程环境运行的think-orm
为什么有这个项目:
测试环境:
建议使用docker环境,需要安装docker,docker-compose
项目内有docker-compose.yml
运行docker-compose up -d
然后进入容器docker exec -it swoole bash
安装:
composer require prince/swoole-think-orm
使用:和think-php orm使用一致,详见文档
Db类用法:
\think\facade\Db::connect($config)
\think\facade\Db::table('user')->find();
其它操作参考TP5.1的完全开发手册数据库章节
特性:
1、支持swoole协程环境。
2、惰性连接池,直到查询时才会创建连接池,可以在配置中设置维持连接数。
3、支持根据配置创建多个连接池,支持关闭连接池。
4、连接池支持事务处理,事务结束前不会更换连接。
5、支持orm游标查询,处理大量数据。
6、“无感”连接池,连接池使用无感知,自动获取连接,自动回收连接,无需手动处理。
7、兼容think-orm 2.0使用,无需学习新的orm用法,无任何心智负担。
注意:
1、不建议使用模型、事件回调,暂未对相关功能协程化处理。
2、log,查询次数等数据暂不可用。
3、暂时不支持execute($sql)
All versions of swoole-think-orm with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
topthink/think-cache Version v2.0.1
topthink/think-container Version v2.0
topthink/think-cache Version v2.0.1
topthink/think-container Version v2.0
The package prince/swoole-think-orm contains the following files
Loading the files please wait ....