Browse Source

added `SelectQuery` to `RunQuery()`

pull/1/head
Cerys 6 months ago
parent
commit
939aaf0de0
  1. 5
      src/Core/DeegraphServer.php

5
src/Core/DeegraphServer.php

@ -5,6 +5,7 @@ namespace Darksparrow\DeegraphPHP\Core;
use Darksparrow\DeegraphPHP\DataStructures\ServerInfo;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\InsertQuery;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\PutQuery;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\SelectQuery;
class DeegraphServer
{
@ -67,10 +68,10 @@ class DeegraphServer
}
/**
* @param PutQuery|InsertQuery $query Takes in a Query Builder object.
* @param InsertQuery|PutQuery|SelectQuery $query Takes in a Query Builder object.
* @return void
*/
public function RunQuery(PutQuery|InsertQuery $query): void
public function RunQuery(InsertQuery|PutQuery|SelectQuery $query): void
{
echo $query;
echo "<br><br><br>";

Loading…
Cancel
Save