How to create an embedded Neo4j database in C #

How do I create an embedded Neo4j database in C #? I want to run queries against this embedded database for testing and then abandon it. I am currently using neo4jclient to execute queries against a database running on my system (localhost), but want to do this on an embedded database. How should I do it?

This feature is present in Java as follows:

GraphDatabaseFactory graphDbFactory = new GraphDatabaseFactory();
GraphDatabaseService graphDb = graphDbFactory
      .newEmbeddedDatabase("data/dbName");

      

Looking for something along these lines in C #.

+3


source to share


1 answer


It cannot be done.

Neo4j is a Java application and requires a JVM to run it.



What you can try: IKVM.NET run Neo4j in .NET VM and call these methods from C # code.

You mentioned that you want to inline a db for testing integration. I suggest starting a new instance of Neo4j as part of a test run. For testing purposes only.

+5


source







All Articles