Module: DBA::Database

Extended by:
Database
Included in:
Database
Defined in:
lib/dba/database.rb

Instance Method Summary collapse

Instance Method Details

#connectObject



11
12
13
14
15
16
17
# File 'lib/dba/database.rb', line 11

def connect
  args = find_connection_args

  Sequel.connect(args)
rescue Sequel::DatabaseConnectionError => exception
  raise DBA::Error, connection_error_message(args)
end