|
4 | 4 |
|
5 | 5 | namespace Yiisoft\Db\Pgsql; |
6 | 6 |
|
| 7 | +use function array_diff; |
| 8 | +use function array_merge; |
| 9 | +use function array_unshift; |
| 10 | +use function count; |
| 11 | +use function explode; |
| 12 | +use Generator; |
| 13 | +use function implode; |
| 14 | +use function is_bool; |
| 15 | +use function is_float; |
| 16 | +use function is_string; |
7 | 17 | use JsonException; |
8 | 18 | use PDO; |
9 | | -use Generator; |
10 | | -use Yiisoft\Db\Connection\ConnectionInterface; |
| 19 | +use function preg_match; |
| 20 | +use function preg_replace; |
| 21 | +use function reset; |
| 22 | +use function strpos; |
| 23 | +use function strrpos; |
| 24 | + |
| 25 | +use function version_compare; |
11 | 26 | use Yiisoft\Db\Constraint\Constraint; |
12 | 27 | use Yiisoft\Db\Exception\Exception; |
13 | 28 | use Yiisoft\Db\Exception\InvalidArgumentException; |
|
23 | 38 | use Yiisoft\Db\Query\QueryBuilder as AbstractQueryBuilder; |
24 | 39 | use Yiisoft\Strings\NumericHelper; |
25 | 40 |
|
26 | | -use function array_diff; |
27 | | -use function array_merge; |
28 | | -use function array_unshift; |
29 | | -use function count; |
30 | | -use function explode; |
31 | | -use function implode; |
32 | | -use function is_bool; |
33 | | -use function is_float; |
34 | | -use function is_string; |
35 | | -use function preg_match; |
36 | | -use function preg_replace; |
37 | | -use function reset; |
38 | | -use function strpos; |
39 | | -use function strrpos; |
40 | | -use function version_compare; |
41 | | - |
42 | 41 | final class QueryBuilder extends AbstractQueryBuilder |
43 | 42 | { |
44 | 43 | /** |
@@ -134,7 +133,7 @@ protected function defaultExpressionBuilders(): array |
134 | 133 | * @param string $name the name of the index. The name will be properly quoted by the method. |
135 | 134 | * @param string $table the table that the new index will be created for. The table name will be properly quoted by |
136 | 135 | * the method. |
137 | | - * @param string|array $columns the column(s) that should be included in the index. If there are multiple columns, |
| 136 | + * @param array|string $columns the column(s) that should be included in the index. If there are multiple columns, |
138 | 137 | * separate them with commas or use an array to represent them. Each column name will be properly quoted by the |
139 | 138 | * method, unless a parenthesis is found in the name. |
140 | 139 | * @param bool|string $unique whether to make this a UNIQUE index constraint. You can pass `true` or |
@@ -419,7 +418,7 @@ public function insert(string $table, $columns, array &$params = []): string |
419 | 418 | * @param array $params the binding parameters that will be generated by this method. |
420 | 419 | * They should be bound to the DB command later. |
421 | 420 | * |
422 | | - * @throws Exception|JsonException|InvalidConfigException|NotSupportedException if this is not supported by the |
| 421 | + * @throws Exception|InvalidConfigException|JsonException|NotSupportedException if this is not supported by the |
423 | 422 | * underlying DBMS. |
424 | 423 | * |
425 | 424 | * @return string the resulting SQL. |
@@ -449,7 +448,7 @@ public function upsert(string $table, $insertColumns, $updateColumns, array &$pa |
449 | 448 | * @param array|bool $updateColumns |
450 | 449 | * @param array $params |
451 | 450 | * |
452 | | - * @throws Exception|JsonException|InvalidArgumentException|InvalidConfigException|NotSupportedException |
| 451 | + * @throws Exception|InvalidArgumentException|InvalidConfigException|JsonException|NotSupportedException |
453 | 452 | * |
454 | 453 | * @return string |
455 | 454 | */ |
|
0 commit comments