Sha256: 74e78a32fca7bf6f63e577164703e92238da6cee9e0df61d9feb869680505610
Contents?: true
Size: 525 Bytes
Versions: 3
Compression:
Stored size: 525 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"] }) printf "ORM: #{Doozer::Configs.orm} initialized...\n" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
grippy-doozer-0.1.3 | lib/doozer/orm/sequel.rb |
grippy-doozer-0.1.4 | lib/doozer/orm/sequel.rb |
grippy-doozer-0.1.5 | lib/doozer/orm/sequel.rb |