Module: FastCount::Utils

Defined in:
lib/fast_count/utils.rb

Class Method Summary collapse

Class Method Details

.adapter_name(connection) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/fast_count/utils.rb', line 6

def self.adapter_name(connection)
  case connection.adapter_name
  when /postg/i # PostgreSQL, PostGIS
    :postgresql
  when /mysql/i
    :mysql
  when /sqlite/i
    :sqlite
  end
end