Swoole\Coroutine\PostgreSQL->affectedRows(...)

4.x is outdated, please check the latest version 22.x


Latest version: pecl install openswoole-22.1.2

Declaration

<?php Swoole\Coroutine\PostgreSQL->affectedRows(resource $queryResult): int

Parameters

queryResult

The result of a executed SQL query which will be a PHP resource variable type.

Return

Returns a int of the total affected rows by the query.


Description

Returns the number of affected records from the SQL query.


Last updated on August 31, 2022