pg_flush

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

pg_flush刷新鏈接中已處理的數(shù)據(jù)查詢

說明

pg_flush(resource $connection): mixed

pg_flush() 刷新任何已經(jīng)處理的等待發(fā)送到鏈接的數(shù)據(jù)查詢。

參數(shù)

connection

PostgreSQL 數(shù)據(jù)庫鏈接資源

返回值

如果刷新成功或者沒有數(shù)據(jù)等待刷新返回 true , 如果返回 0 為部分刷新或者更多未被刷新,刷新失敗為 false