Module: Doozer::ORM

Defined in:
lib/doozer/orm/data_mapper.rb,
lib/doozer/orm/sequel.rb,
lib/doozer/orm/active_record.rb

Overview

Class Method Summary collapse

Class Method Details

.after_requestObject



18
# File 'lib/doozer/orm/sequel.rb', line 18

def self.after_request; end

.loadObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/doozer/orm/sequel.rb', line 6

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"]
  }) 
  puts "=> #{Doozer::Configs.orm()} initialized"
end