dance-engineer/neo4j-tracy

Debug panel for Neo4j connections

1.0.1 2019-12-06 20:34 UTC

This package is auto-updated.

Last update: 2021-05-06 23:57:10 UTC


README

A Tracy debug bug for Neo4j Connection

Example

use DanceEngineer\Neo4jTracy\Panel;
use GraphAware\Neo4j\Client\ClientBuilder;
use GraphAware\Neo4j\Client\ClientInterface;

final class Neo4jClientFactory
{

    public static function create(): ClientInterface
    {
        $clientBuilder = ClientBuilder::create()
            ->addConnection('default', 'http://neo4j:7474')
            ->addConnection('bolt', 'bolt://neo4j:7687');

        $clientBuilder = Panel::createDebugPanel($clientBuilder);

        return $clientBuilder->build();
    }
}