Sha256: 77b0c69b34dec7603260e638a921a2ca200e48b4dbef44f0156eff5679d9c524

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 Bytes

Contents

require 'sequel'
module Doozer
  module ORM
    
    # See for details => http://sequel.rubyforge.org/rdoc/index.html
    def self.load
      db_config = Doozer::Configs.db()
      Doozer::Configs.db_conn = Sequel.connect({
        :adapter  => db_config["adapter"],
        :database => db_config["database"],
        :username => db_config["username"],
        :password => db_config["password"],
        :host     => db_config["host"]
      }) 
      p "ORM: #{Doozer::Configs.orm} initialized..."
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grippy-doozer-0.1.0 lib/doozer/orm/sequel.rb
grippy-doozer-0.1.1 lib/doozer/orm/sequel.rb
grippy-doozer-0.1.2 lib/doozer/orm/sequel.rb