Sha256: fa2d51230e5e869a82ee945e5d87ba3eb239b6f07106685aa006021c8abb948a

Contents?: true

Size: 587 Bytes

Versions: 11

Compression:

Stored size: 587 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 at #{db_location}"
        @graph_db = Java::OrgNeo4jTest::TestGraphDatabaseFactory.new.newImpermanentDatabase
        Neo4j::Session._notify_listeners(:session_available, self)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
neo4j-core-5.0.0.rc.3 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.0.0.rc.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-5.0.0.rc.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-4.0.7 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-4.0.6 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-4.0.5 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-4.0.4 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-4.0.3 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-4.0.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-4.0.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-4.0.0 lib/neo4j-embedded/embedded_impermanent_session.rb