Goofball
Goofball

Reputation: 755

neo4j BOLT check if connection is open and count number of connections

Using the BOLT Neo4j driver in python:

driver = GraphDatabase.driver("bolt://localhost",
                                 auth=basic_auth('neo4j', 'password'),
                                 encrypted=True,
                                 trust=TRUST_ON_FIRST_USE)
session = driver.session()

Can I see if a connection is already open using a python command? Can I see how many connections are open?

Upvotes: 2

Views: 1073

Answers (1)

Nigel Small
Nigel Small

Reputation: 4495

There's no public API to do this. Bear in mind also that session != connection; the former is an API abstraction, the latter an implementation detail.

Can I ask what you are actually trying to achieve?

Upvotes: 1

Related Questions