PHP 8.3.4 Released!

pg_flush

(PHP 5 >= 5.6.0, PHP 7, PHP 8)

pg_flush刷新链接中已处理的数据查询

说明

pg_flush(PgSql\Connection $connection): int|bool

pg_flush() 刷新任何已经处理的等待发送到链接的数据查询。

参数

connection

PgSql\Connection 实例。

返回值

如果刷新成功或者没有数据等待刷新返回 true , 如果返回 0 为部分刷新或者更多未被刷新,刷新失败为 false

更新日志

版本 说明
8.1.0 现在 connection 参数接受 PgSql\Connection 实例,之前接受 resource
add a note

User Contributed Notes

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