pg_connection_status

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Get connection status
<?php pg_connection_status(PgSql\Connection $connection): int
<?php     public static function castLink($link, array $a, Stub $stub, bool $isNested)

    {

        $a['status'] = pg_connection_status($link);

        $a['status'] = new ConstStub(\PGSQL_CONNECTION_OK === $a['status'] ? 'PGSQL_CONNECTION_OK' : 'PGSQL_CONNECTION_BAD', $a['status']);

        $a['busy'] = pg_connection_busy($link);