pg_connection_busy
symfony/var-dumper
Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Get connection is busy or not
pg_connection_busy
(
PgSql\Connection $connection
):
bool
{
$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'
]])) {
Caster/PgSqlCaster.php