Skip to content

inqwise/inqwise-neo4j-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI Release CodeQL Codecov Snyk Security Maven Central License: MIT Java Version

Inqwise Neo4j Client

Overview

Inqwise Neo4j Client is a lightweight wrapper around the Neo4j reactive Java driver, designed for seamless integration with Vert.x. It enables fully non-blocking database operations within Vert.x applications using a clean, reactive API.

The library adapts Neo4j’s official reactive driver to work efficiently within the Vert.x event loop.

Maven

To include this library in your project, add the following dependency:

<dependency>
  <groupId>com.inqwise</groupId>
  <artifactId>inqwise-neo4j-client</artifactId>
  <version>${latest.version}</version>
</dependency>

Usage Example

import com.inqwise.neo4j.Neo4jClient;
import com.inqwise.neo4j.Neo4jDriver;
import com.inqwise.neo4j.Neo4jSession;
import com.inqwise.neo4j.Neo4jResult;


// Initialize Neo4j driver
Neo4jDriver neo4j = Neo4jClient.create("bolt://localhost:7687", "neo4j", "password");

// Run a simple Cypher query
Neo4jSession session = neo4j.session();
session.run("MATCH (p:Person) RETURN p.name")
  .onComplete(ar -> {
    if (ar.succeeded()) {
      Neo4jResult result = ar.result();
      result.records().handler(record -> {
        System.out.println("Found person: " + record.get("p.name").asString());
      });
    } else {
      ar.cause().printStackTrace();
    }
    session.close(); // Close session when done
  });

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A lightweight wrapper that integrates the reactive Neo4j Java driver with Vert.x, enabling seamless reactive database operations in Vert.x applications.

Topics

Resources

License

Code of conduct

Security policy

Stars

0 stars

Watchers

2 watching

Forks

Contributors

Languages