1.20.x prefetch.inc public DatabaseStatementPrefetch::rowCount()

Returns the number of rows affected by the last SQL statement.

Return value

The number of rows affected by the last DELETE, INSERT, or UPDATE: statement executed.

Overrides DatabaseStatementInterface::rowCount

File

includes/database/prefetch.inc, line 343
Database interface code for engines that need complete control over their result sets.

Class

DatabaseStatementPrefetch
An implementation of DatabaseStatementInterface that prefetches all data.

Code

public function rowCount() {
  return $this->rowCount;
}