Sha256: 798884de4a453f8e874cb8a3013bf9dd56f63b5b6a81694f8cd7a789aa26acb8

Contents?: true

Size: 287 Bytes

Versions: 2

Compression:

Stored size: 287 Bytes

Contents

module Jeka
  module Analysis
    class Database
      def self.create(path)
        DataMapper.finalize
        self.open(path)
        DataMapper.auto_migrate!
      end
      
      def self.open(path)
        DataMapper.setup(:default, "sqlite://#{path}")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jeka-0.2.3 lib/jeka/analysis/database.rb
jeka-0.2.2 lib/jeka/analysis/database.rb