SQL expression rewrite, Pagination, some frontend stuff

This commit is contained in:
2023-01-05 22:47:17 +01:00
parent 4bfd6754cf
commit 99bfd7e505
61 changed files with 1745 additions and 570 deletions

View File

@@ -1,22 +1,23 @@
<?php
namespace Core\Driver\SQL\Condition;
use Core\Driver\SQL\Query\Select;
use Core\Driver\SQL\SQL;
class Exists extends Condition {
class Exists extends Condition
{
private Select $subQuery;
public function __construct(Select $subQuery)
{
public function __construct(Select $subQuery) {
$this->subQuery = $subQuery;
}
public function getSubQuery(): Select
{
public function getSubQuery(): Select {
return $this->subQuery;
}
function getExpression(SQL $sql, array &$params): string {
return "EXISTS(" .$this->getSubQuery()->build($params) . ")";
}
}