Sha256: 3075af0a2c942e4b6ce44e122fa75968788729381c1c144bd10ecba6b386e6eb

Contents?: true

Size: 567 Bytes

Versions: 29

Compression:

Stored size: 567 Bytes

Contents

Neo4j::Community.load_test_jars!

Neo4j::Session.register_db(:impermanent_db) do |*args|
  Neo4j::Embedded::EmbeddedImpermanentSession.new(*args)
end

module Neo4j
  module Embedded
    class EmbeddedImpermanentSession < EmbeddedSession
      def start
        fail Error, 'Embedded Neo4j db is already running' if running?
        puts 'Start test impermanent embedded Neo4j db'
        @graph_db = Java::OrgNeo4jTest::TestGraphDatabaseFactory.new.newImpermanentDatabase
        Neo4j::Session._notify_listeners(:session_available, self)
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
neo4j-core-5.1.14 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.12 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.11 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.10 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.0.alpha.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.7 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.0.alpha.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.6 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.5 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.4 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.3 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.0 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.0.rc.3 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.0.rc.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.1.0.rc.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.0.10 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.0.9 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.0.8 lib/neo4j-embedded/embedded_impermanent_session.rb