Method __builtin.Sql.Result()->num_rows()


Method num_rows

int num_rows()

Returns

The number of rows in the result.

Note

Depending on the database implementation, this number can still increase between subsequent calls if the results from the query are not complete yet. This function is only guaranteed to return the correct count after EOF has been reached.

See also

affected_rows(), eof()