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-6.1.4 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.1.3 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.1.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.1.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.6 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.5 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.1.0 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.4 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.3 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.0 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.0.rc.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.0.alpha.6 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-6.0.0.alpha.5 lib/neo4j-embedded/embedded_impermanent_session.rb