mirror of
https://github.com/danog/postgres.git
synced 2024-11-26 20:15:02 +01:00
20 lines
412 B
PHP
20 lines
412 B
PHP
<?php
|
|
|
|
namespace Amp\Postgres\Test;
|
|
|
|
use Amp\CancellationToken;
|
|
use Amp\Postgres\PqConnection;
|
|
use Amp\Promise;
|
|
use Amp\Sql\ConnectionConfig;
|
|
|
|
/**
|
|
* @requires extension pq
|
|
*/
|
|
class PqConnectTest extends AbstractConnectTest
|
|
{
|
|
public function connect(ConnectionConfig $connectionConfig, CancellationToken $token = null): Promise
|
|
{
|
|
return PqConnection::connect($connectionConfig, $token);
|
|
}
|
|
}
|