From e5c6a459c8f005cc3e1db2863f8d9718e841b2db Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Wed, 22 May 2024 16:32:51 +0330 Subject: [PATCH] fieat: Added verify connectivity! --- tc_neo4j_lib/neo4j_ops.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tc_neo4j_lib/neo4j_ops.py b/tc_neo4j_lib/neo4j_ops.py index 0e889a0..a64f69d 100644 --- a/tc_neo4j_lib/neo4j_ops.py +++ b/tc_neo4j_lib/neo4j_ops.py @@ -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: