Browse Source

added to the `SELECT` query

pull/1/head
Cerys 4 months ago
parent
commit
d58e212549
  1. 10
      src/QueryBuilder/QueryBuilders/SelectQuery.php

10
src/QueryBuilder/QueryBuilders/SelectQuery.php

@ -43,9 +43,19 @@ final class SelectQuery
$this->RelativePaths = $relativePaths; $this->RelativePaths = $relativePaths;
return $this; return $this;
} }
public function From(string $target): SelectQuery
{
$this->From = "" . $target;
return $this;
}
public function Where(string $target, DeegraphEqualityOperator $operator, string $value): SelectQuery public function Where(string $target, DeegraphEqualityOperator $operator, string $value): SelectQuery
{ {
$this->Where = "" . $target . " " . $operator->value . " " . $value; $this->Where = "" . $target . " " . $operator->value . " " . $value;
return $this; return $this;
} }
public function InstanceOf(string $target): SelectQuery
{
$this->InstanceOf = "" . $target;
return $this;
}
} }
Loading…
Cancel
Save