I have connected to multi-database model in neo4j, Also have a set of python scripts to push and pull data to and from multiple database in NEO4J. We need to specify the name of the database we are operating these scripts against. Also to this i want to find currently which database which driver connected.
from neo4j import GraphDatabase
# create the uri for the connection
uri = "neo4j://localhost:7687"
# create a driver object
driver = GraphDatabase.driver(uri, auth=("neo4j", "password"))
print("driver created")
# get info about the driver
print("connected: {}".format(driver.verify_connectivity()))
print("Host: {}".format(driver.default_host))
print("Port: {}".format(driver.default_port))
# close the driver
driver.close()
Here
print("connected: {}".format(driver.verify_connectivity()))
this given me the info about the driver below only:
connected: Neo4j/4.4.11
Along this, as part of integration, i want to list the database with which driver connected. How can i achieve that, appreciate your help ?