【文件属性】:
文件名称:connection-pool:通常将基于Swoole的公共连接池用作数据库连接池
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-08 06:00:55
swoole connection-pool PHP
连接池
通常将基于Swoole的公共连接池用作数据库连接池。
要求
相依性
要求
>=7.0.0
>=4.2.9 Recommend 4.2.13+
安装
通过安装软件包。
composer require " open-smf/connection-pool:~1.0 "
用法
查看更多。
可用的连接器
连接器
连接说明
协程MySQL连接器
Swoole\Coroutine\MySQL实例
协程PostgreSQL连接器
Swoole\Coroutine\PostgreSQL实例,需要使用--enable-coroutine-postgresql配置Swoole
CoroutineRedisConnector
Swoole\Coroutine\Redis实例
PhpRedisConnector
Redis实例,需要
PDO连接器
PDO实例,需要
YourConnect
【文件预览】:
connection-pool-master
----.gitignore(36B)
----README.md(7KB)
----examples()
--------http-server.php(4KB)
--------coroutine-mysql.php(1KB)
--------coroutine-postgresql.php(1KB)
--------coroutine-runtime-pdo.php(1KB)
--------coroutine-runtime-phpredis.php(1KB)
--------dynamic-testing.php(2KB)
--------coroutine-redis.php(1KB)
----LICENSE(1KB)
----composer.json(928B)
----src()
--------ConnectionPool.php(9KB)
--------Connectors()
--------ConnectionPoolTrait.php(990B)
--------BorrowConnectionTimeoutException.php(330B)
--------ConnectionPoolInterface.php(662B)