GraphAware\Neo4j\Client\Connection\Connection::run PHP 메소드

run() 공개 메소드

public run ( string $statement, array | null $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
$statement string
$parameters array | null
$tag null | string
리턴 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;
        }
    }