GraphAware\Neo4j\Client\Connection\Connection::run PHP Method

run() public method

public run ( string $statement, array | null $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
$statement string
$parameters array | null
$tag null | string
return GraphAware\Common\Result\Result
    public function run($statement, $parameters = null, $tag = null)
    {
        $this->checkSession();
        $parameters = (array) $parameters;
        try {
            return $this->session->run($statement, $parameters, $tag);
        } catch (MessageFailureException $e) {
            $exception = new Neo4jException($e->getMessage());
            $exception->setNeo4jStatusCode($e->getStatusCode());
            throw $exception;
        }
    }