Sha256: 5702e30eb6c44335b124528f23f47b4df49d9aa83d5d29ef7459557d15a1cd2c
Contents?: true
Size: 775 Bytes
Versions: 57
Compression:
Stored size: 775 Bytes
Contents
module Neo4j module Embedded class EmbeddedDatabase class Error < StandardError end class << self def connect(db_location, config = {}) if Neo4j::Session.current.respond_to?(:db_location) && Neo4j::Session.current.db_location == db_location return Neo4j::Session.current else EmbeddedSession.new(db_location, config) end 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
57 entries across 57 versions & 1 rubygems