Sha256: 74198278c434a92249471b82f9d98ee4ad418df144fe05787de3a1b87e064c8d

Contents?: true

Size: 206 Bytes

Versions: 9

Compression:

Stored size: 206 Bytes

Contents

require 'active_record'
def establish_connection(db_location)
  ActiveRecord::Base.establish_connection(
    :adapter => "sqlite3",
    :database => db_location,
    :pool => 5,
    :timeout => 5000
  )
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
snp-search-0.12.0 lib/snp_db_connection.rb
snp-search-0.10.0 lib/snp_db_connection.rb
snp-search-0.9.0 lib/snp_db_connection.rb
snp-search-0.8.0 lib/snp_db_connection.rb
snp-search-0.7.0 lib/snp_db_connection.rb
snp-search-0.6.0 lib/snp_db_connection.rb
snp-search-0.5.0 lib/snp_db_connection.rb
snp-search-0.4.0 lib/snp_db_connection.rb
snp-search-0.3.0 lib/snp-search/snp_db_connection.rb