Sha256: 2c9cf73a65c954fda6b6af7a3b22eaf96cae33a5d6fa151d5058557df8d5a58d

Contents?: true

Size: 564 Bytes

Versions: 32

Compression:

Stored size: 564 Bytes

Contents

Neo4j::Community.load_test_jars!

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

module Neo4j::Embedded
  class EmbeddedImpermanentSession < EmbeddedSession
    def start
      raise Error.new("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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
neo4j-core-3.1.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.1.0 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.8 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.7 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.6 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.5 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.4 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.3 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.2 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.0 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.0.rc.5 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.0.rc.4 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.0.rc.1 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.0.alpha.19 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.0.alpha.18 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.0.alpha.17 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.0.alpha.16 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.0.alpha.15 lib/neo4j-embedded/embedded_impermanent_session.rb
neo4j-core-3.0.0.alpha.14 lib/neo4j-embedded/embedded_impermanent_session.rb