Skip to content

Commit 9b41e02

Browse files
committed
added database in driver creation for efficiency
1 parent 5302c81 commit 9b41e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

03_uns_graphdb/src/uns_graphdb/graphdb_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def connect(self, retry: int = 0) -> neo4j.Driver:
117117
"""
118118
try:
119119
if self.driver is None:
120-
self.driver = neo4j.GraphDatabase.driver(self.uri, auth=self.auth)
120+
self.driver = neo4j.GraphDatabase.driver(self.uri, auth=self.auth, database=self.database)
121121
self.driver.verify_connectivity()
122122
except (
123123
exceptions.DatabaseError,

0 commit comments

Comments
 (0)