• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nextras / dbal / 24104451934

07 Apr 2026 09:07PM UTC coverage: 87.088% (+0.2%) from 86.873%
24104451934

push

github

web-flow
Merge pull request #130 from nextras/sqlite

Add Sqlite PDO driver

173 of 194 new or added lines in 9 files covered. (89.18%)

2165 of 2486 relevant lines covered (87.09%)

5.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

77.78
/src/Result/FullyBufferedResultAdapter.php
1
<?php declare(strict_types = 1);
2

3
namespace Nextras\Dbal\Result;
4

5

6
use ArrayIterator;
7

8

9
/**
10
 * @internal
11
 */
12
class FullyBufferedResultAdapter extends BufferedResultAdapter
13
{
14
        /** @var array<string, array{int, mixed}>|null */
15
        protected $types = null;
16

17

18
        public function getTypes(): array
19
        {
NEW
20
                $this->getData();
×
21
                assert($this->types !== null);
NEW
22
                return $this->types;
×
23
        }
24

25

26
        public function getRowsCount(): int
27
        {
28
                return $this->getData()->count();
6✔
29
        }
30

31

32
        protected function fetchData(): ArrayIterator
33
        {
34
                $rows = [];
6✔
35
                while (($row = $this->adapter->fetch()) !== null) {
6✔
36
                        if ($this->types === null) {
6✔
37
                                $this->types = $this->adapter->getTypes();
6✔
38
                        }
39
                        $rows[] = $row;
6✔
40
                }
41
                return new ArrayIterator($rows);
6✔
42
        }
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc