We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0772d87 commit ab43ea7Copy full SHA for ab43ea7
README.md
@@ -29,13 +29,13 @@ use ReactphpX\MySQL\Pool;
29
use React\MySQL\QueryResult;
30
use React\EventLoop\Loop;
31
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
-]);
+$pool = new Pool(
+ uri: 'username:password@host/databasename?timeout=5',
+ minConnections: 2,
+ maxConnections: 10,
+ waitQueue: 100,
+ waitTimeout: 0,
+);
39
40
qeury($pool);
41
queryStream($pool);
0 commit comments