Sha256: d3ff48295cd16321f02a1bcf0249256fad0d7ca9d4c22b1f84494e1d6f95674b

Contents?: true

Size: 282 Bytes

Versions: 14

Compression:

Stored size: 282 Bytes

Contents

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
snp-search-0.34.0 lib/snp_db_connection.rb
snp-search-0.33.0 lib/snp_db_connection.rb
snp-search-0.32.0 lib/snp_db_connection.rb
snp-search-0.31.0 lib/snp_db_connection.rb
snp-search-0.30.0 lib/snp_db_connection.rb
snp-search-0.29.0 lib/snp_db_connection.rb
snp-search-0.27.2 lib/snp_db_connection.rb
snp-search-0.27.1 lib/snp_db_connection.rb
snp-search-0.27.0 lib/snp_db_connection.rb
snp-search-0.26.0 lib/snp_db_connection.rb
snp-search-0.23.0 lib/snp_db_connection.rb
snp-search-0.22.0 lib/snp_db_connection.rb
snp-search-0.21.0 lib/snp_db_connection.rb
snp-search-0.19.0 lib/snp_db_connection.rb