We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28615e3 commit f0ecf78Copy full SHA for f0ecf78
README.md
@@ -48,8 +48,10 @@ More extensive code examples reside in the [`examples`](examples) directory.
48
49
```php
50
\Amp\Loop::run(function() {
51
+ $config = Amp\Mysql\ConnectionConfig::fromString("host=127.0.0.1 user=username password=password db=test");
52
+
53
/** @var \Amp\Mysql\Pool $pool */
- $pool = Amp\Mysql\pool("host=127.0.0.1 user=username password=password db=test");
54
+ $pool = Amp\Mysql\pool($config);
55
56
/** @var \Amp\Mysql\Statement $statement */
57
$statement = yield $pool->prepare("SELECT * FROM table_name WHERE id=?");
0 commit comments