Sha256: 2b736839d7f7f15d1168c8442415d1bdef8689da895418b8d73eea93a18c29f3

Contents?: true

Size: 511 Bytes

Versions: 55

Compression:

Stored size: 511 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?
        @graph_db = Java::OrgNeo4jTest::TestGraphDatabaseFactory.new.newImpermanentDatabase
        Neo4j::Session._notify_listeners(:session_available, self)
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
neo4j-core-8.1.4 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-8.1.3 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-8.1.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-8.1.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-8.1.0 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-8.0.4 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-8.0.3 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-8.0.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-8.0.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-7.2.4 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-8.0.0 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-7.2.3 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-7.2.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-7.2.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-7.2.0 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-7.1.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-7.0.9 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-7.1.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-7.1.0 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-7.0.8 lib/neo4j-embedded/embedded_impermanent_session.rb