PHP Класс GraphAware\Neo4j\Client\Client

Наследование: implements GraphAware\Neo4j\Client\ClientInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$connectionManager GraphAware\Neo4j\Client\Connection\ConnectionManager
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

Открытые методы

Метод Описание
__construct ( ConnectionManager $connectionManager, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
getConnectionManager ( ) : ConnectionManager
getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
getLabels ( string | null $conn = null ) : Label[]
run ( $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result | null Run a Cypher statement against the default database or the database specified.
runStack ( GraphAware\Neo4j\Client\StackInterface $stack ) : ResultCollection | null
runWrite ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
sendCypherQuery ( string $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result
sendWriteQuery ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
stack ( string | null $tag = null, string | null $connectionAlias = null ) : GraphAware\Neo4j\Client\StackInterface
transaction ( null | string $connectionAlias = null ) : Transaction

Приватные методы

Метод Описание
pipeline ( null | string $query = null, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Driver\PipelineInterface

Описание методов

__construct() публичный Метод

public __construct ( ConnectionManager $connectionManager, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
$connectionManager GraphAware\Neo4j\Client\Connection\ConnectionManager
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

getConnectionManager() публичный Метод

public getConnectionManager ( ) : ConnectionManager
Результат GraphAware\Neo4j\Client\Connection\ConnectionManager

getEventDispatcher() публичный Метод

public getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
Результат Symfony\Component\EventDispatcher\EventDispatcherInterface

getLabels() публичный Метод

public getLabels ( string | null $conn = null ) : Label[]
$conn string | null
Результат GraphAware\Neo4j\Client\Schema\Label[]

run() публичный Метод

Run a Cypher statement against the default database or the database specified.
public run ( $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result | null
$query
$parameters null | array
$tag null | string
$connectionAlias null | string
Результат GraphAware\Common\Result\Result | null

runStack() публичный Метод

public runStack ( GraphAware\Neo4j\Client\StackInterface $stack ) : ResultCollection | null
$stack GraphAware\Neo4j\Client\StackInterface
Результат GraphAware\Neo4j\Client\Result\ResultCollection | null

runWrite() публичный Метод

public runWrite ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
$query string
$parameters null | array
$tag null | string
Результат GraphAware\Common\Result\Result

sendCypherQuery() публичный Метод

Устаревший: since 4.0 - will be removed in 5.0 - use $client->run() instead
public sendCypherQuery ( string $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result
$query string
$parameters null | array
$tag null | string
$connectionAlias null | string
Результат GraphAware\Common\Result\Result

sendWriteQuery() публичный Метод

Устаревший: since 4.0 - will be removed in 5.0 - use $client->runWrite() instead
public sendWriteQuery ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
$query string
$parameters null | array
$tag null | string
Результат GraphAware\Common\Result\Result

stack() публичный Метод

public stack ( string | null $tag = null, string | null $connectionAlias = null ) : GraphAware\Neo4j\Client\StackInterface
$tag string | null
$connectionAlias string | null
Результат GraphAware\Neo4j\Client\StackInterface

transaction() публичный Метод

public transaction ( null | string $connectionAlias = null ) : Transaction
$connectionAlias null | string
Результат GraphAware\Neo4j\Client\Transaction\Transaction

Описание свойств

$connectionManager защищенное свойство

protected ConnectionManager,GraphAware\Neo4j\Client\Connection $connectionManager
Результат GraphAware\Neo4j\Client\Connection\ConnectionManager

$eventDispatcher защищенное свойство

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher
Результат Symfony\Component\EventDispatcher\EventDispatcherInterface