PHPackages                             sjdskl/dbpool - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. sjdskl/dbpool

ActiveLibrary[Database &amp; ORM](/categories/database)

sjdskl/dbpool
=============

db link pool

0.4(8y ago)112PHPPHP &gt;=7.0

Since Mar 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/sjdskl/DbPoll)[ Packagist](https://packagist.org/packages/sjdskl/dbpool)[ RSS](/packages/sjdskl-dbpool/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (3)Versions (3)Used By (0)

DbPoll
======

[](#dbpoll)

Based on multi threads Database link pools

1. pthreads extension
2. php &gt;= 7.2

Featrues
--------

[](#featrues)

1. DB Driver used catfan/medoo, you can call its method at client just like local call
2. Chain Call
3. very easy to use

```
$client = DbPool\Client\DbPoolClient::getInstance('127.0.0.1', AF_INET, 1122);
for($i = 0; $i < 10; $i ++) {
    $res = $client->query('select * from test.bairong where id=' . ($i + 1) . ' limit 1;')->fetchAll(\PDO::FETCH_ASSOC)->excute();
    print_r($res);
}

```

```
$res = $client->select('bairong', ['id', 'realname', 'phone'], ['id[
