Skip to content

Commit ab43ea7

Browse files
committed
readme
1 parent 0772d87 commit ab43ea7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ use ReactphpX\MySQL\Pool;
2929
use React\MySQL\QueryResult;
3030
use React\EventLoop\Loop;
3131

32-
$pool = new Pool('username:password@host/databasename?timeout=5', [
33-
'min_connections' => 2, // min 2 connection
34-
'max_connections' => 10, // max 10 connection
35-
'max_wait_queue' => 110, // how many sql in queue
36-
'wait_timeout' => 5,// wait time include response time
37-
'keep_alive' => 60, //
38-
]);
32+
$pool = new Pool(
33+
uri: 'username:password@host/databasename?timeout=5',
34+
minConnections: 2,
35+
maxConnections: 10,
36+
waitQueue: 100,
37+
waitTimeout: 0,
38+
);
3939

4040
qeury($pool);
4141
queryStream($pool);

0 commit comments

Comments
 (0)