Interface QueryRunner
- All Superinterfaces:
AutoCloseable
A simplification over a standard . This query runner here is also autocloseable and
can and should be treated as such.
- Since:
- 1.10.0
- Author:
- Michael J. Simons
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Defines a feature set for any newly opened query runner. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
Defaults to a NOOP.static QueryRunner.FeatureSet
The minimum required version is 4.4 by default.org.neo4j.driver.Result
run
(org.neo4j.driver.Query query) Runs the given query and returns the result.
-
Method Details
-
defaultFeatureSet
The minimum required version is 4.4 by default.- Returns:
- The default feature set
-
run
org.neo4j.driver.Result run(org.neo4j.driver.Query query) Runs the given query and returns the result. The result should be consumed.- Parameters:
query
- The query to run- Returns:
- A consumable result.
-
close
default void close()Defaults to a NOOP.- Specified by:
close
in interfaceAutoCloseable
-