Skip to content

Commit

Permalink
Make QueryRunner interface extend Resource that is also AutoCloseable
Browse files Browse the repository at this point in the history
  • Loading branch information
injectives committed Jun 15, 2021
1 parent afa6a87 commit 7cde5e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion driver/src/main/java/org/neo4j/driver/QueryRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

import java.util.Map;

import org.neo4j.driver.util.Resource;

/**
* Common interface for components that can execute Neo4j queries.
*
Expand Down Expand Up @@ -59,7 +61,7 @@
* @see Transaction
* @since 1.0
*/
public interface QueryRunner
public interface QueryRunner extends Resource
{
/**
* Run a query and return a result stream.
Expand Down

0 comments on commit 7cde5e3

Please sign in to comment.