# sql.rb

Path: | lib/bio/io/sql.rb
Last Update: | Thu Apr 18 08:22:58 +0000 2013

module Bio

     class SQL
      #no check is made
     def self.establish_connection(configurations, env)
      #configurations is an hash similar what YAML returns.
     #{:database=>"biorails_development", :adapter=>"postgresql", :username=>"rails", :password=>nil}
     configurations.assert_valid_keys('development', 'production','test')
     configurations[env].assert_valid_keys('hostname','database','adapter','username','password')
     DummyBase.configurations = configurations
     DummyBase.establish_connection "#{env}"

end

### Required files

bio/io/biosql/biosql

[Validate]