module Datadog::Utils::Database

Common database-related utility functions.

Constants

VENDOR_DEFAULT
VENDOR_POSTGRES
VENDOR_SQLITE

Public Instance Methods

normalize_vendor(vendor) click to toggle source
# File lib/ddtrace/utils/database.rb, line 12
def normalize_vendor(vendor)
  case vendor
  when nil
    VENDOR_DEFAULT
  when 'postgresql'
    VENDOR_POSTGRES
  when 'sqlite3'
    VENDOR_SQLITE
  else
    vendor
  end
end