Query\QueryBuilder::count_all_results
Retrieve the number of results for the generated query - used in place of the get() method
Signature
public function count_all_results([string
$table = ''] )
Parameters
$table
—
string
Returns
- int
Defined by Interface
QueryBuilderInterface
Test Coverage
Information
- Coverage: 4/4 Lines (100%)
- Tests: 8
- Passed: 8 (100%)
Tests
- [ PASSED ] — MySQLQBTest::testCountAllResults
- [ PASSED ] — MySQLQBTest::testCountAllResults2
- [ PASSED ] — PgSQLQBTest::testCountAllResults
- [ PASSED ] — PgSQLQBTest::testCountAllResults2
- [ PASSED ] — SQLiteQBTest::testCountAllResults
- [ PASSED ] — SQLiteQBTest::testCountAllResults2
- [ PASSED ] — FirebirdQBTest::testCountAllResults
- [ PASSED ] — FirebirdQBTest::testCountAllResults2