Interface QueryRunner

All Superinterfaces:
AutoCloseable

public interface QueryRunner extends 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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Defines a feature set for any newly opened query runner.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Defaults to a NOOP.
    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

      static QueryRunner.FeatureSet 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 interface AutoCloseable