| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 1311 | public function getListSequencesSQL(?string $database) : string |
|
| 23 | { |
||
| 24 | 1311 | if ($database !== null) { |
|
| 25 | 1311 | $catalogExpression = $this->quoteStringLiteral($database); |
|
| 26 | } else { |
||
| 27 | $catalogExpression = '(SELECT current_catalog)'; |
||
| 28 | } |
||
| 29 | |||
| 30 | return 'SELECT sequence_name AS relname, |
||
| 31 | sequence_schema AS schemaname, |
||
| 32 | minimum_value AS min_value, |
||
| 33 | increment AS increment_by |
||
| 34 | FROM information_schema.sequences |
||
| 35 | 1311 | WHERE sequence_catalog = ' . $catalogExpression . " |
|
| 36 | AND sequence_schema NOT LIKE 'pg\_%' |
||
| 40 |