1
0
mirror of https://github.com/danog/postgres.git synced 2024-12-15 02:47:33 +01:00
postgres/lib/Pool.php

28 lines
572 B
PHP
Raw Normal View History

2016-12-30 06:21:17 +01:00
<?php
2016-09-14 16:27:39 +02:00
namespace Amp\Postgres;
use Amp\Promise;
interface Pool extends Link {
/**
* @return \Amp\Promise<\Amp\Postgres\Connection>
*/
public function getConnection(): Promise;
2016-09-14 16:27:39 +02:00
/**
* @return int Current number of connections in the pool.
*/
public function getConnectionCount(): int;
/**
* @return int Current number of idle connections in the pool.
*/
public function getIdleConnectionCount(): int;
/**
* @return int Maximum number of connections.
*/
public function getMaxConnections(): int;
}