Skip to content

Commit

Permalink
Update for 3.5 removing rest-graph storage, adding APOC procs
Browse files Browse the repository at this point in the history
  • Loading branch information
jexp committed Dec 3, 2020
1 parent 83526c9 commit 19ad66d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 242 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-jdbc</artifactId>
<version>2.3.2</version>
<version>3.0</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void createGraphStorage() {
}

if (restUrl.contains("/db/data")) restUrl = restUrl.replace("/db/data", "");
storage = restUrl.startsWith("bolt") ? new BoltGraphStorage(restUrl, login, password) : new RestGraphStorage(restUrl, login, password);
if (restUrl.startsWith("bolt")) storage = new BoltGraphStorage(restUrl, login, password);
log("Graph Storage " + restUrl + " login " + login + " " + password + " " + storage);
}
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static GraphDatabaseService createInMemoryDatabase() throws Throwable {
File storeDir = new File(System.getProperty("java.io.tmpdir"), UUID.randomUUID().toString());
GraphDatabaseService db = new TestGraphDatabaseFactory().newImpermanentDatabaseBuilder(storeDir).setConfig(config).newGraphDatabase();
Procedures procedures = ((GraphDatabaseAPI) db).getDependencyResolver().resolveDependency(Procedures.class);
List<Class<?>> apocProcedures = asList(Coll.class, apoc.text.Strings.class, apoc.map.Maps.class, Json.class, Create.class, apoc.date.Date.class, FulltextIndex.class, apoc.lock.Lock.class, LoadJson.class,
List<Class<?>> apocProcedures = asList(apoc.spatial.Geocode.class, Coll.class, apoc.text.Strings.class, apoc.map.Maps.class, Json.class, Create.class, apoc.date.Date.class, FulltextIndex.class, apoc.lock.Lock.class, LoadJson.class,
Xml.class, PathExplorer.class, Meta.class, GraphRefactoring.class);
apocProcedures.forEach((proc) -> {
try {
Expand Down
74 changes: 0 additions & 74 deletions src/main/java/org/neo4j/community/console/RestGraphStorage.java

This file was deleted.

165 changes: 0 additions & 165 deletions src/test/java/org/neo4j/community/console/GraphStorageTest.java

This file was deleted.

0 comments on commit 19ad66d

Please sign in to comment.