v2.0-alpha
This commit is contained in:
@@ -43,6 +43,11 @@ class Select extends Query {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function addValue($value): Select {
|
||||
$this->selectValues[] = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function where(...$conditions): Select {
|
||||
$this->conditions[] = (count($conditions) === 1 ? $conditions : new CondOr($conditions));
|
||||
return $this;
|
||||
@@ -63,6 +68,11 @@ class Select extends Query {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function addJoin(Join $join): Select {
|
||||
$this->joins[] = $join;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function groupBy(...$columns): Select {
|
||||
$this->groupColumns = $columns;
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user