Function DatabaseConnector->get_table_count_approx

Definitions

sources/database.php

  • Get the number of rows in a table, with approximation support for performance (if necessary on the particular database backend).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$table string required parameter N/A N/A The table name
$where array [] N/A N/A WHERE clauses if it will help get a more reliable number when we're not approximating in map form
$where_clause ?string Null N/A N/A WHERE clauses if it will help get a more reliable number when we're not approximating in SQL form (null: none)

Return

  • The count (null: do it normally)
  • Type: ?integer
  • Set: N/A
  • Range: N/A