| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace LaravelSpatial; |
||
| 11 | class PostgresConnection extends \Illuminate\Database\PostgresConnection |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @inheritDoc |
||
| 15 | * @throws \Doctrine\DBAL\Exception |
||
| 16 | */ |
||
| 17 | 15 | public function __construct($pdo, $database = '', $tablePrefix = '', array $config = []) |
|
| 23 | 15 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritDoc |
||
| 27 | */ |
||
| 28 | 13 | public function getSchemaBuilder() |
|
| 29 | { |
||
| 30 | 13 | if ($this->schemaGrammar === null) { |
|
| 31 | 13 | $this->useDefaultSchemaGrammar(); |
|
| 32 | } |
||
| 33 | |||
| 34 | 13 | return new PostgresBuilder($this); |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritDoc |
||
| 39 | */ |
||
| 40 | 13 | protected function getDefaultSchemaGrammar() |
|
| 43 | } |
||
| 44 | } |
||
| 45 |