module YeSQL::Common::Adapter

Public Instance Methods

adapter() click to toggle source

`adapter` might be a complex object, but for the sake of brevity it's just a string

# File lib/yesql/common/adapter.rb, line 12
def adapter
  ::ActiveRecord::Base.connection.adapter_name
end
mysql?() click to toggle source
# File lib/yesql/common/adapter.rb, line 16
def mysql?
  adapter == "Mysql2"
end
pg?() click to toggle source
# File lib/yesql/common/adapter.rb, line 20
def pg?
  adapter == "PostgreSQL"
end