# sql.rb

Path: | lib/bio/io/sql.rb
Last Update: | Sat Sep 29 00:26:22 +0000 2012

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]