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

brick / geo / 14062713921

25 Mar 2025 02:49PM UTC coverage: 62.13% (+0.2%) from 61.936%
14062713921

push

github

BenMorel
Implement PgsqlDriver (pgsql extension)

0 of 52 new or added lines in 1 file covered. (0.0%)

59 existing lines in 8 files now uncovered.

1890 of 3042 relevant lines covered (62.13%)

1687.76 hits per line

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

100.0
/src/Engine/MysqlEngine.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Brick\Geo\Engine;
6

7
use Brick\Geo\Curve;
8
use Brick\Geo\Engine\Database\Internal\AbstractDatabaseWkbEngine;
9
use Override;
10

11
/**
12
 * Database engine based on MySQL.
13
 */
14
final readonly class MysqlEngine extends AbstractDatabaseWkbEngine
15
{
16
    #[Override]
17
    public function isRing(Curve $curve) : bool
18
    {
19
        // MySQL does not support ST_IsRing(), but we have an easy fallback.
UNCOV
20
        return $this->isClosed($curve) && $this->isSimple($curve);
10✔
21
    }
22

23
    public function getMysqlVersion(): string
24
    {
UNCOV
25
        return $this->driver->executeQuery('SELECT VERSION()')->get(0)->asString();
86✔
26
    }
27
}
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