db
1<?php
2
3namespace Upside\Db\Test;
4
5class Connection extends \Upside\Db\Connection
6{
7
8public function __construct($driver)
9{
10parent::__construct('');
11$this->driver = $driver;
12//$this->setWrapperFormat('`%s`');
13}
14
15public function query(string $sql, array $params = [])
16{
17return $this->replace_params($sql, $params);
18}
19
20public function column(string $sql, array $params = [])
21{
22return $this->replace_params($sql, $params);
23}
24
25public function count(string $sql, array $params = [])
26{
27return $this->replace_params($sql, $params);
28}
29
30public function command(string $sql, array $params = [])
31{
32return $this->replace_params($sql, $params);
33}
34}