Sha256: daa9a89d4ac920eadc804a4d36f0c58a8e0841e372fb1322007140c58ab4dd63
Contents?: true
Size: 668 Bytes
Versions: 8
Compression:
Stored size: 668 Bytes
Contents
if RUBY_PLATFORM.to_s == 'java' module JMongo module BasicDBObjectExtentions include HashKeys end end require 'jmongo' else require 'mongo' end module Euston module EventStore module Persistence module Mongodb class MongoPersistenceFactory def self.build config = Config.instance connection = ::Mongo::Connection.new(config.host, config.port, config.options) MongoPersistenceEngine.new connection.db(config.database) end def self.build_with_proxy() ZmqPersistenceEngineProxy.new(build.init) end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems