All Projects → florinpatrascu → Bolt_sips

florinpatrascu / Bolt_sips

Licence: apache-2.0
Neo4j driver for Elixir

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to Bolt sips

Neo4j sips
Elixir driver for the Neo4j graph database server
Stars: ✭ 78 (-61.76%)
Mutual labels:  neo4j, graph-database, graphdb, driver
Libneo4j Client
neo4j-client -- Neo4j Command Line Interface (CLI)
Stars: ✭ 121 (-40.69%)
Mutual labels:  neo4j, graph-database, driver
Neo4j Core
A simple unified API that can access both the server and embedded Neo4j database. Used by the neo4j gem
Stars: ✭ 99 (-51.47%)
Mutual labels:  neo4j, graph-database, driver
NeoClient
🦉 Lightweight OGM for Neo4j which support transactions and BOLT protocol.
Stars: ✭ 21 (-89.71%)
Mutual labels:  neo4j, graph-database, graphdb
Neo4j
Graphs for Everyone
Stars: ✭ 9,582 (+4597.06%)
Mutual labels:  neo4j, graph-database, graphdb
Neo4j Python Driver
Neo4j Bolt driver for Python
Stars: ✭ 607 (+197.55%)
Mutual labels:  neo4j, graph-database, driver
Neo4j Apoc Procedures
Awesome Procedures On Cypher for Neo4j - codenamed "apoc"                     If you like it, please ★ above ⇧            
Stars: ✭ 1,291 (+532.84%)
Mutual labels:  neo4j, graph-database
Redisgraph
A graph database as a Redis module
Stars: ✭ 1,292 (+533.33%)
Mutual labels:  graph-database, graphdb
Activegraph
An active model wrapper for the Neo4j Graph Database for Ruby.
Stars: ✭ 1,329 (+551.47%)
Mutual labels:  neo4j, graph-database
Movies Java Bolt
Neo4j Movies Example application with SparkJava backend using the neo4j-java-driver
Stars: ✭ 66 (-67.65%)
Mutual labels:  neo4j, graph-database
Movies Javascript Bolt
Neo4j Movies Example with webpack-in-browser app using the neo4j-javascript-driver
Stars: ✭ 123 (-39.71%)
Mutual labels:  neo4j, graph-database
Neo4j Streams
Neo4j Kafka Integrations, Docs =>
Stars: ✭ 126 (-38.24%)
Mutual labels:  neo4j, graph-database
Neo4j Php Ogm
Neo4j Object Graph Mapper for PHP
Stars: ✭ 151 (-25.98%)
Mutual labels:  neo4j, graph-database
Tinkerpop
Apache TinkerPop - a graph computing framework
Stars: ✭ 1,309 (+541.67%)
Mutual labels:  graph-database, graphdb
Neo4j Symfony
Symfony Bundle for the Neo4j Graph Database
Stars: ✭ 69 (-66.18%)
Mutual labels:  neo4j, graph-database
Arangodb
🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.
Stars: ✭ 11,880 (+5723.53%)
Mutual labels:  graph-database, graphdb
Movies Python Bolt
Neo4j Movies Example application with Flask backend using the neo4j-python-driver
Stars: ✭ 197 (-3.43%)
Mutual labels:  neo4j, graph-database
Neo4j Etl
Data import from relational databases to Neo4j.
Stars: ✭ 165 (-19.12%)
Mutual labels:  neo4j, graph-database
Agensgraph
AgensGraph, a transactional graph database based on PostgreSQL
Stars: ✭ 1,056 (+417.65%)
Mutual labels:  graph-database, graphdb
Neo4j Tableau
Neo4j Tableau Integration via WDC
Stars: ✭ 56 (-72.55%)
Mutual labels:  neo4j, graph-database
logo

Neo4j driver for Elixir.

Build Status Hex.pm Hexdocs.pm

Bolt.Sips is an Elixir driver for Neo4j, providing many useful features:

  • using the Bolt protocol, the Elixir implementation - the Neo4j's newest network protocol, designed for high-performance; latest Bolt versions, are supported.
  • Can connect to a standalone Neo4j server (:direct mode) or to a Neo4j causal cluster, using the bolt+routing or the newer neo4j schemes; connecting in :routing mode.
  • Provides the user with the ability to create and manage distinct ad-hoc role-based connections to one or more Neo4j servers/databases
  • Supports transactions, simple and complex Cypher queries with or w/o parameters
  • Multi-tenancy
  • Supports Neo4j versions: 3.0.x/3.1.x/3.2.x/3.4.x/3.5.x/4.0.x/4.1.x/4.2.x

Note: Regarding Neo4j 4, stream capabilities are not yet supported.

Table of Contents

Installation

Available in Hex, the package can be added to your list of dependencies, in the: mix.exs:

def deps do
  [{:bolt_sips, "~> 2.0"}]
end

Basic usage

Provided you have access to a running Neo4j server, and a project where you just added the :bolt_sips dependency, run an iex session inside the project's folder, and once inside the shell, follow this simple step-by-step example.

Start an iex session:

Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
Interactive Elixir (1.8.1) - press Ctrl+C to exit (type h() ENTER for help)

iex» {:ok, _neo} = Bolt.Sips.start_link(url: "bolt://neo4j:[email protected]")
{:ok, #PID<0.237.0>}

iex» conn = Bolt.Sips.conn()
#PID<0.242.0>

iex» Bolt.Sips.query!(conn, "return 1 as n") |>
...» Bolt.Sips.Response.first()
%{"n" => 1}

Please see the docs for more examples and details about this driver.

Testing

You'll need a running Neo4j server, for running the tests. Please verify that you do not store critical data on this server, as its contents will be wiped clean when the tests are running.

If you have docker available on your system, you can start an instance before running the test suite:

docker run --rm -p 7687:7687 -e 'NEO4J_AUTH=neo4j/test' neo4j:3.0.6

Neo4j versions used for test: 3.0, 3.1, 3.4, 3.5

mix test

For the stubs using boltkit, you will have to install Python 3.7 and run: pip install boltkit. After this you can run any tests tagged with :boltkit. Example:

mix test test/boltkit_test.exs --include boltkit

or:

mix test --only boltkit

Special thanks

  • Michael Schaefermeyer (@mschae), for the initial version of the Bolt protocol in Elixir: mschae/boltex

Contributors

As reported by Github: contributions to master, excluding merge commits

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Test (mix test)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

License

Copyright 2016-2020 the original author or authors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].