| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace Atk4\Data\Persistence\Sql\Mysql; |
| 6: | |
| 7: | use Atk4\Data\Persistence\Sql\Query as BaseQuery; |
| 8: | |
| 9: | class Query extends BaseQuery |
| 10: | { |
| 11: | use ExpressionTrait; |
| 12: | |
| 13: | protected string $identifierEscapeChar = '`'; |
| 14: | protected string $expressionClass = Expression::class; |
| 15: | |
| 16: | protected array $supportedOperators = ['=', '!=', '<', '>', '<=', '>=', 'like', 'not like', 'in', 'not in', 'regexp', 'not regexp']; |
| 17: | |
| 18: | protected string $templateUpdate = 'update [table][join] set [set] [where]'; |
| 19: | |
| 20: | #[\Override] |
| 21: | public function groupConcat($field, string $separator = ',') |
| 22: | { |
| 23: | return $this->expr('group_concat({} separator ' . $this->escapeStringLiteral($separator) . ')', [$field]); |
| 24: | } |
| 25: | } |
| 26: | |