| Total Complexity | 13 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 88% |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class CommandPDOPgsql extends CommandPDO |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | 1 | * @inheritDoc |
|
| 17 | */ |
||
| 18 | 1 | public function insertEx(string $table, array $columns): bool|array |
|
| 19 | 1 | { |
|
| 20 | $params = []; |
||
| 21 | 1 | $sql = $this->queryBuilder()->insertEx($table, $columns, $params); |
|
| 22 | 1 | ||
| 23 | $this->setSql($sql)->bindValues($params); |
||
| 24 | $this->prepare(false); |
||
| 25 | 1 | ||
| 26 | /** @var mixed */ |
||
| 27 | 1 | $queryOne = $this->queryOne(); |
|
| 28 | |||
| 29 | return is_array($queryOne) ? $queryOne : false; |
||
| 30 | 204 | } |
|
| 31 | |||
| 32 | 204 | public function queryBuilder(): QueryBuilderInterface |
|
| 35 | 193 | } |
|
| 36 | |||
| 37 | 193 | public function schema(): SchemaInterface |
|
| 38 | { |
||
| 39 | 193 | return $this->db->getSchema(); |
|
| 40 | } |
||
| 41 | |||
| 42 | 193 | protected function internalExecute(?string $rawSql): void |
|
| 67 | } |
||
| 68 | } |
||
| 72 |