PHP 8.3.0 RC 6 available for testing

pg_exit_pipeline_mode

(PHP 8 >= 8.3.0)

pg_exit_pipeline_modeCauses a connection to exit pipeline mode

说明

pg_exit_pipeline_mode(PgSql\Connection $connection): bool

Causes a connection to exit pipeline mode if it is currently in pipeline mode with an empty queue and no pending results.

参数

connection

PgSql\Connection 实例。

返回值

Returns true if it succeeds to exit the pipeline mode, assuming it was in this mode via pg_enter_pipeline_mode(), false otherwise.

示例

示例 #1 pg_exit_pipeline_mode() example

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

以上示例会输出:

 
false

参见

add a note

User Contributed Notes

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