PhpBench\Extensions\Dbal\Tests\Functional\Storage\Driver\Dbal\RepositoryTest::getTableCounts PHP Method

getTableCounts() private method

private getTableCounts ( )
    private function getTableCounts()
    {
        $schema = new Schema();
        $counts = [];
        $conn = $this->getConnection();
        foreach ($schema->getTables() as $table) {
            $count = $conn->query('SELECT COUNT(*) FROM ' . $table->getName());
            $count = (int) $count->fetchColumn(0);
            $counts[$table->getName()] = $count;
        }
        return $counts;
    }