Reputation: 755
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
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