Skip to content

Commit

Permalink
fieat: Added verify connectivity!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed May 22, 2024
1 parent 9961848 commit e5c6a45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tc_neo4j_lib/neo4j_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def _neo4j_database_connect(self) -> None:
self.db_name = creds["db_name"]

self.neo4j_driver = GraphDatabase.driver(url, auth=auth, database=self.db_name)
self.neo4j_driver.verify_connectivity()

self.gds = GraphDataScience(url, auth)

def _run_query(self, tx: Transaction, query: str, **kwargs) -> None:
Expand Down

0 comments on commit e5c6a45

Please sign in to comment.