Giter Club home page Giter Club logo

neo4j-java-driver's Introduction

Neo4j Java Driver

A database driver for a new Neo4j remoting protocol.

Minimum viable snippet

Add the driver to your project:

<dependencies>
    <dependency>
        <groupId>org.neo4j.driver</groupId>
        <artifactId>neo4j-java-driver</artifactId>
        <version>1.1.0-SNAPSHOT</version>
    </dependency>
</dependencies>

Connect to a Neo4j 3.0.0+ database

Driver driver = GraphDatabase.driver( "bolt://localhost" );

Session session = driver.session();

StatementResult rs = session.run("CREATE (n) RETURN n");

session.close();

driver.close();

Building

Java version

If you are running Java 8:

mvn clean install

If you are running Java 7, you need to also provide an environment variable telling the tests where to find Java 8, because Neo4j-the-database needs it to run.

export NEO4J_JAVA=<path/to/java/home>
mvn clean install

# For instance
export NEO4J_JAVA=$(/usr/libexec/java_home -v 1.8)

Windows

If you are building on windows, you need to run install as admin so that Neo4j-the-database could be registered as a windows service and then be started and stopped correctly using its powershell scripts for windows.

neo4j-java-driver's People

Contributors

jakewins avatar pontusmelke avatar boggle avatar ragnarw avatar technige avatar nigelsmall avatar jjaderberg avatar sarmbruster avatar fbiville avatar ikwattro avatar martinfurmanski avatar

Watchers

James Cloos avatar KARTHIKEYAN PALANISAMY avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.