From c6bd97eeb7fde3cefa17c33f7ef6261d8f5f0266 Mon Sep 17 00:00:00 2001 From: Florent Biville Date: Wed, 7 Jul 2021 11:36:31 +0200 Subject: [PATCH] Clarify DatabaseInfo behavior with older and CE Neo4j versions --- neo4j/resultsummary.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neo4j/resultsummary.go b/neo4j/resultsummary.go index 07db3d81..dcd1eb61 100644 --- a/neo4j/resultsummary.go +++ b/neo4j/resultsummary.go @@ -61,6 +61,8 @@ type ResultSummary interface { // ResultConsumedAfter returns the time it took the server to consume the result. ResultConsumedAfter() time.Duration // Database returns information about the database where the result is obtained from + // Returns nil for Neo4j versions prior to v4. + // Returns the default "neo4j" database for Community Edition servers. Database() DatabaseInfo }