PHP 8.3.0 RC 6 available for testing

pg_pipeline_status

(PHP 8 >= 8.3.0)

pg_pipeline_statusReturns the current pipeline mode status of the libpq connection.

说明

pg_pipeline_status(PgSql\Connection $connection): int

Returns the current pipeline mode status of the libpq connection.

参数

connection

PgSql\Connection 实例。

返回值

Returns one of the following status: PGSQL_PIPELINE_ON, PGSQL_PIPELINE_OFF or PGSQL_PIPELINE_ABORTED.

示例

示例 #1 pg_pipeline_status() example

Description.

<?php
$dbconn
= pg_connect("host=localhost port=5432 dbname=mary")
or die(
"Could not connect");
pg_enter_pipeline_node($dbconn);
echo
pg_pipeline_status($dbconn);
pg_close($dbconn);
?>

以上示例会输出:

 
0

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top