pg_connection_busy

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Get connection is busy or not
<?php pg_connection_busy(PgSql\Connection $connection): bool
<?php     {

        $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);



        $a['transaction'] = pg_transaction_status($link);

        if (isset(self::TRANSACTION_STATUS[$a['transaction']])) {