1
0
mirror of https://github.com/danog/postgres.git synced 2024-12-02 09:27:54 +01:00
postgres/src/PooledStatement.php
2018-10-13 09:55:31 -05:00

16 lines
406 B
PHP

<?php
namespace Amp\Postgres;
use Amp\Sql\Common\PooledStatement as SqlPooledStatement;
use Amp\Sql\ResultSet as SqlResultSet;
final class PooledStatement extends SqlPooledStatement
{
protected function createResultSet(SqlResultSet $resultSet, callable $release): SqlResultSet
{
\assert($resultSet instanceof ResultSet);
return new PooledResultSet($resultSet, $release);
}
}