Module: Datadog::Tracing::Contrib::Utils::Database
- Defined in:
- lib/datadog/tracing/contrib/utils/database.rb
Overview
Common database-related utility functions.
Constant Summary collapse
- VENDOR_DEFAULT =
'defaultdb'
- VENDOR_POSTGRES =
'postgres'
- VENDOR_SQLITE =
'sqlite'
Class Method Summary collapse
Class Method Details
.normalize_vendor(vendor) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/datadog/tracing/contrib/utils/database.rb', line 15 def normalize_vendor(vendor) case vendor when nil VENDOR_DEFAULT when 'postgresql' VENDOR_POSTGRES when 'sqlite3' VENDOR_SQLITE else vendor end end |