Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Sep 30, 2019
1 parent 1e1155d commit 15f8403
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -35,14 +35,15 @@ More examples can be found in the [`examples`](examples) directory.
```php
use Amp\Postgres;
use Amp\Postgres\ConnectionConfig;
use Amp\Sql\Statement;

Amp\Loop::run(function () {
$config = ConnectionConfig::fromString("host=localhost user=postgres dbname=test");

/** @var Postgres\Pool $pool */
$pool = Postgres\pool($config);

/** @var Postgres\Statement $statement */
/** @var Statement $statement */
$statement = yield $pool->prepare("SELECT * FROM test WHERE id = :id");

/** @var Postgres\ResultSet $result */
Expand Down

0 comments on commit 15f8403

Please sign in to comment.