PHP 8.3.0 RC 6 available for testing

pg_pipeline_sync

(PHP 8 >= 8.3.0)

pg_pipeline_syncMarks a synchronization point in a pipeline by sending a sync message and flushing the send buffer.

说明

pg_pipeline_sync(PgSql\Connection $connection): bool

Marks a synchronization point in a pipeline by sending a sync message and flushing the send buffer.

参数

connection

PgSql\Connection 实例。

返回值

Returns true on success or false

示例

示例 #1 pg_pipeline_sync() example

Description.

<?php
$dbconn
= pg_connect("host=localhost port=5432 dbname=publisher")
or die(
"Could not connect");
pg_enter_pipeline_node($dbconn);
pg_send_query($dbconn, "select * from authors; select count(*) from authors;");
pg_flush($dbconn);
echo
pg_pipeline_sync($dbconn);
pg_close($dbconn);
?>

以上示例会输出:

 
false

参见

add a note

User Contributed Notes

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