Sha256: ff07881572cb3259eeb10c02d43d38eb5b44eb12e9001670762f45ec3910e414

Contents?: true

Size: 733 Bytes

Versions: 38

Compression:

Stored size: 733 Bytes

Contents

module Neo4j
  module Embedded
    class EmbeddedDatabase
      class Error < StandardError
      end

      class << self
        def connect(db_location, config = {})
          return Neo4j::Session.current if Neo4j::Session.current.respond_to?(:db_location) && Neo4j::Session.current.db_location == db_location

          EmbeddedSession.new(db_location, config)
        end

        def create_db(db_location)
          puts "Start embedded Neo4j db at #{db_location}"
          factory = Java::OrgNeo4jGraphdbFactory::GraphDatabaseFactory.new
          factory.newEmbeddedDatabase(db_location)
        end

        def factory_class
          Java::OrgNeo4jTest::ImpermanentGraphDatabase
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

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