# sql.rb

Path: | lib/bio/io/sql.rb
Last Update: | Thu Nov 19 15:47:02 +0000 2009

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]