Pdo\Pgsql::getNotify
(PHP 8 >= 8.4.0)
Pdo\Pgsql::getNotify — Get asynchronous notification
说明
$fetchMode = PDO::FETCH_DEFAULT, int $timeoutMilliseconds = 0): array|falseReturns a result set representing a pending asynchronous notification.
参数
fetchMode- 
     
The format the result set should be returned as, one of the following constants:
 timeoutMilliseconds- The length of time to wait for a response, in milliseconds.
 
返回值
   If one or more notifications is pending, returns a single row,
   with fields message and pid,
   otherwise returns false.
  
错误/异常
   A ValueError is thrown if
   fetchMode is not one of the valid
   PDO::FETCH_*
   constants.
  
   A ValueError is thrown if
   timeoutMilliseconds is less than 0.
  
   A E_WARNING is raised when
   timeoutMilliseconds is greater than the value
   that can be contained in a signed 32-bit integer, in which case it will be
   the maximum value of a signed 32-bit integer.
  
参见
- PDO::query() - 预处理并执行没有占位符的 SQL 语句
 - PDOStatement::fetch() - 从结果集中获取下一行
 - PDOStatement::fetchAll() - 从结果集中获取剩余的行