Skip to content

Commit 8b762da

Browse files
committed
move session down to the end of the class for diff
1 parent 27e9565 commit 8b762da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nodestream_plugin_neo4j/neo4j_database.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ def driver(self):
8484
self.acquire_driver()
8585
return self._driver
8686

87-
def session(self) -> AsyncSession:
88-
return self.driver.session(database=self.database_name)
89-
9087
def log_query_start(self, query: Query):
9188
self.logger.info(
9289
"Executing Cypher Query to Neo4j",
@@ -142,3 +139,6 @@ async def execute(
142139
self.acquire_driver()
143140
if attempts >= self.max_retry_attempts:
144141
raise e
142+
143+
def session(self) -> AsyncSession:
144+
return self.driver.session(database=self.database_name)

0 commit comments

Comments
 (0)