db
1<?php
2
3namespace Upside\Db\SQL\Compiler;
4
5use Upside\Db\SQL\Compiler;
6
7class MySQL extends Compiler
8{
9/** Wrapper used to escape table and column names. */
10protected string $wrapper = '`%s`';
11
12protected function sql_function_ROUND(array $func): string
13{
14return 'FORMAT(' . $this->wrap($func['column']) . ', ' . $this->param($func['decimals']) . ')';
15}
16
17protected function sql_function_LEN(array $func): string
18{
19return 'LENGTH(' . $this->wrap($func['column']) . ')';
20}
21}
22