Skip to content

Commit 7cde5e3

Browse files
committed
Make QueryRunner interface extend Resource that is also AutoCloseable
1 parent afa6a87 commit 7cde5e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

driver/src/main/java/org/neo4j/driver/QueryRunner.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
import java.util.Map;
2222

23+
import org.neo4j.driver.util.Resource;
24+
2325
/**
2426
* Common interface for components that can execute Neo4j queries.
2527
*
@@ -59,7 +61,7 @@
5961
* @see Transaction
6062
* @since 1.0
6163
*/
62-
public interface QueryRunner
64+
public interface QueryRunner extends Resource
6365
{
6466
/**
6567
* Run a query and return a result stream.

0 commit comments

Comments
 (0)