ci: Bump aura/sqlquery version.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2023-05-15 09:43:22 +02:00
parent ab6061bf34
commit 651a1271f1
8 changed files with 343 additions and 287 deletions

View File

@@ -4,7 +4,7 @@
*
* @author nuxsmin
* @link https://syspass.org
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
*
* This file is part of sysPass.
*
@@ -24,29 +24,14 @@
namespace SP\Infrastructure\Common\Repositories;
use Aura\SqlQuery\Common\Quoter;
use Aura\SqlQuery\QueryInterface;
use Aura\SqlQuery\Quoter;
/**
* Class Query
*/
final class Query implements QueryInterface
{
/**
*
* The quote prefix/suffix to use for each type.
*
* @var array
*
*/
private const QUOTES = [
'Common' => ['"', '"'],
'Mysql' => ['`', '`'],
'Pgsql' => ['"', '"'],
'Sqlite' => ['"', '"'],
'Sqlsrv' => ['[', ']'],
];
private string $query;
private array $values;
private Quoter $quoter;
@@ -55,7 +40,7 @@ final class Query implements QueryInterface
{
$this->query = $query;
$this->values = $values;
$this->quoter = new Quoter(self::QUOTES[$db][0], self::QUOTES[$db][1]);
$this->quoter = new Quoter();
}
/**
@@ -64,7 +49,7 @@ final class Query implements QueryInterface
* @param string $query
* @param array $values
*
* @return \SP\Domain\Common\In\Query
* @return \SP\Infrastructure\Common\Repositories\Query
*/
public static function buildForMySQL(string $query, array $values): Query
{
@@ -156,4 +141,9 @@ final class Query implements QueryInterface
{
return $this->query;
}
public function resetFlags()
{
// TODO: Implement resetFlags() method.
}
}