neo4j-memorydb

Repackaging of the in-memory database classes from Neo4j

License

License

Categories

Categories

Neo4J Data Databases
GroupId

GroupId

com.github.jasoma
ArtifactId

ArtifactId

neo4j-memorydb
Last Version

Last Version

3.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

neo4j-memorydb
Repackaging of the in-memory database classes from Neo4j
Project URL

Project URL

https://github.com/jasoma/neo4j-memorydb
Source Code Management

Source Code Management

https://github.com/jasoma/neo4j-memorydb.git

Download neo4j-memorydb

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.jasoma/neo4j-memorydb/ -->
<dependency>
    <groupId>com.github.jasoma</groupId>
    <artifactId>neo4j-memorydb</artifactId>
    <version>3.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.jasoma/neo4j-memorydb/
implementation 'com.github.jasoma:neo4j-memorydb:3.1.1'
// https://jarcasting.com/artifacts/com.github.jasoma/neo4j-memorydb/
implementation ("com.github.jasoma:neo4j-memorydb:3.1.1")
'com.github.jasoma:neo4j-memorydb:jar:3.1.1'
<dependency org="com.github.jasoma" name="neo4j-memorydb" rev="3.1.1">
  <artifact name="neo4j-memorydb" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.jasoma', module='neo4j-memorydb', version='3.1.1')
)
libraryDependencies += "com.github.jasoma" % "neo4j-memorydb" % "3.1.1"
[com.github.jasoma/neo4j-memorydb "3.1.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.neo4j : neo4j-kernel jar 3.1.1
org.neo4j : neo4j-io jar 3.1.1

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
org.neo4j : neo4j-lucene-index jar 3.1.1
org.neo4j : neo4j-cypher jar 3.1.1

Project Modules

There are no modules declared in this project.

neo4j-memorydb

A repackaging of the in-memory database classes from Neo4j. This avoids the need to depend on the test artifacts from the Neo4j project.

Setup

Gradle

dependencies {
    compile group: 'com.github.jasoma', name: 'neo4j-memorydb', version: neoVersion
}

Maven

<dependency> 
   <groupId>com.github.jasoma</groupId>
   <artifactId>neo4j-memorydb</artifactId>   
   <version>${neoVersion}</version>
</dependency>

Usage

As this is just a repackaging all examples from the main project remain valid, simply use the alternative dependencies shown above.

Usage and examples from the main project can be found here: http://neo4j.com/docs/stable/tutorials-java-unit-testing.html

Gotchas

Although not unique to the in-memory database two errors are common if using the in-memory database for testing but a remote server in production.

  1. org.neo4j.kernel.impl.util.UnsatisfiedDependencyException: No dependency satisfies type class org.neo4j.kernel.api.index.SchemaIndexProvider
  2. java.lang.UnsupportedOperationException: No query engine installed.

Both of these are due to neo4j looking up components at runtime. Both can be solved by adding additional dependencies:

dependencies {
    // adds an index provider for error [1]
    compile group: 'org.neo4j', name: 'neo4j-lucene-index', version: neoVersion
    // adds a query engine for error [2]
    compile group: 'org.neo4j', name: 'neo4j-cypher', version: neoVersion
}

Versions

Version
3.1.1
3.1.0
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4