Improve validation
Signed-off-by: David Arendsen <darendsen@gamepoint.com>
This commit is contained in:
parent
3cff68870f
commit
602228a5e8
6 changed files with 53 additions and 44 deletions
|
|
@ -19,7 +19,6 @@ trait Universe
|
|||
public function addReduce(array $settings, array $identity): QueryBuilderInterface
|
||||
{
|
||||
$this->addToQuery(
|
||||
FluxPart::REDUCE,
|
||||
new Reduce($settings, $identity)
|
||||
);
|
||||
return $this;
|
||||
|
|
@ -28,7 +27,6 @@ trait Universe
|
|||
public function addSort(array $columns, $desc): QueryBuilderInterface
|
||||
{
|
||||
$this->addToQuery(
|
||||
FluxPart::SORT,
|
||||
new Sort($columns, $desc)
|
||||
);
|
||||
return $this;
|
||||
|
|
@ -37,7 +35,6 @@ trait Universe
|
|||
public function addMap($query): QueryBuilderInterface
|
||||
{
|
||||
$this->addToQuery(
|
||||
FluxPart::MAP,
|
||||
new Map($query)
|
||||
);
|
||||
return $this;
|
||||
|
|
@ -46,7 +43,6 @@ trait Universe
|
|||
public function addGroup(array $columns, $mode = 'by'): QueryBuilderInterface
|
||||
{
|
||||
$this->addToQuery(
|
||||
FluxPart::GROUP,
|
||||
new Group($columns, $mode)
|
||||
);
|
||||
return $this;
|
||||
|
|
@ -55,7 +51,6 @@ trait Universe
|
|||
public function addLimit(int $limit, int $offset = 0): QueryBuilderInterface
|
||||
{
|
||||
$this->addToQuery(
|
||||
FluxPart::LIMIT,
|
||||
new Limit($limit, $offset)
|
||||
);
|
||||
return $this;
|
||||
|
|
@ -64,7 +59,6 @@ trait Universe
|
|||
public function addWindow($every, array $options = []): QueryBuilderInterface
|
||||
{
|
||||
$this->addToQuery(
|
||||
FluxPart::WINDOW,
|
||||
new Window($every, $options)
|
||||
);
|
||||
return $this;
|
||||
|
|
@ -73,7 +67,6 @@ trait Universe
|
|||
public function addDuplicate(string $column, string $as): QueryBuilderInterface
|
||||
{
|
||||
$this->addToQuery(
|
||||
FluxPart::DUPLICATE,
|
||||
new Duplicate($column, $as)
|
||||
);
|
||||
return $this;
|
||||
|
|
@ -82,7 +75,6 @@ trait Universe
|
|||
public function addMean(?string $column = ''): QueryBuilderInterface
|
||||
{
|
||||
$this->addToQuery(
|
||||
FluxPart::MEAN,
|
||||
new Mean($column)
|
||||
);
|
||||
return $this;
|
||||
|
|
@ -91,7 +83,6 @@ trait Universe
|
|||
public function addUnWindow(): QueryBuilderInterface
|
||||
{
|
||||
$this->addToQuery(
|
||||
FluxPart::UNWINDOW,
|
||||
new Window('inf')
|
||||
);
|
||||
return $this;
|
||||
|
|
@ -100,7 +91,6 @@ trait Universe
|
|||
public function addAggregateWindow($every, $fn, array $options = []): QueryBuilderInterface
|
||||
{
|
||||
$this->addToQuery(
|
||||
FluxPart::AGGREGATEWINDOW,
|
||||
new AggregateWindow($every, $fn, $options)
|
||||
);
|
||||
return $this;
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue