(PHP 8 >= 8.3.0)
pg_pipeline_sync — Marks a synchronization point in a pipeline by sending a sync message and flushing the send buffer.
Marks a synchronization point in a pipeline by sending a sync message and flushing the send buffer.
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