class Object

Constants

SUPPORTED_DATA_TYPES

Public Instance Methods

adapter() click to toggle source
# File lib/mihari/database.rb, line 88
def adapter
  return "postgresql" if Mihari.config.database.start_with?("postgresql://", "postgres://")
  return "mysql2" if Mihari.config.database.start_with?("mysql2://")

  "sqlite3"
end
truthy?(value) click to toggle source
# File lib/mihari.rb, line 22
def truthy?(value)
  return true if value == "true"
  return true if value == true

  false
end