File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
neo4j-adapter/src/main/java/org/neo4j/gds/compat Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 30
30
import org .neo4j .graphdb .Transaction ;
31
31
import org .neo4j .kernel .api .KernelTransaction ;
32
32
import org .neo4j .kernel .api .procedure .GlobalProcedures ;
33
+ import org .neo4j .kernel .database .NamedDatabaseId ;
33
34
import org .neo4j .kernel .impl .coreapi .InternalTransaction ;
34
35
import org .neo4j .kernel .internal .GraphDatabaseAPI ;
35
36
@@ -43,6 +44,10 @@ public static Neo4jVersion neo4jVersion() {
43
44
return Neo4jVersion .findNeo4jVersion ();
44
45
}
45
46
47
+ public static NamedDatabaseId databaseId (GraphDatabaseService db ) {
48
+ return ((GraphDatabaseAPI ) db ).databaseId ();
49
+ }
50
+
46
51
public static boolean containsDependency (GraphDatabaseService db , Class <?> dependency ) {
47
52
return containsDependency (((GraphDatabaseAPI ) db ).getDependencyResolver (), dependency );
48
53
}
You can’t perform that action at this time.
0 commit comments