Git Product home page Git Product logo

database_cleaner-neo4j's Introduction

Database Cleaner Adapter for Neo4j

Maintainers Wanted

This adapter is currently unmaintained. This means that bugs will not be fixed and features will not be added unless someone else does so. If you're interested in taking over maintenance, please open an issue and tell us about it!

Build Status Code Climate codecov

Clean your Neo4j databases with Database Cleaner.

See https://github.com/DatabaseCleaner/database_cleaner for more information.

Installation

# Gemfile
group :test do
  gem 'database_cleaner-neo4j'
end

Supported Strategies

Truncation Transaction Deletion
Yes Yes Yes

(Default strategy is denoted in bold)

Configuration options

ORM How to access Notes
Neo4j DatabaseCleaner[:neo4j] Database type and path(URI) DatabaseCleaner[:neo4j, connection: {type: :server_db, path: 'http://localhost:7475'}].

Note that Truncation and Deletion strategies for Neo4j will just delete all nodes and relationships from the database.

Common Errors

Model fails to load with Neo4j using transactions

When you are using neo4j gem it creates schema and reads indexes upon loading models. These operations can't be done during a transaction. You have to preload your models before DatabaseCleaner starts a transaction.

Add to your rails_helper or spec_helper after requiring database_cleaner-neo4j:

require 'database_cleaner/neo4j'

Dir["#{Rails.root}/app/models/**/*.rb"].each do |model|
  load model
end

COPYRIGHT

See LICENSE for details.

database_cleaner-neo4j's People

Contributors

bmabey avatar etagwerker avatar botandrose-machine avatar jonrowe avatar vrinek avatar snusnu avatar sanemat avatar skalee avatar svenfuchs avatar stanislaw avatar betelgeuse avatar dpisarewski avatar ethco avatar tommeier avatar netskin-ci avatar nyarly avatar cyberdelia avatar buehmann avatar andreale avatar sirkosi avatar rhunter avatar johnf avatar jnv avatar japgolly avatar anicholson avatar kamui avatar kamal avatar st0012 avatar benclewis avatar jhollinger 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.