mirror of
https://github.com/danog/postgres.git
synced 2024-11-27 04:24:45 +01:00
21 lines
443 B
PHP
21 lines
443 B
PHP
<?php
|
|
|
|
namespace Amp\Postgres;
|
|
|
|
interface Pool extends Connection {
|
|
/**
|
|
* @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;
|
|
}
|