Sha256: a962d3b478732e3ff8d306c92a7b5a240906ed401a5a13401def327f06d992d7

Contents?: true

Size: 645 Bytes

Versions: 7

Compression:

Stored size: 645 Bytes

Contents

module Datadog
  module Tracing
    module Contrib
      module Utils
        # Common database-related utility functions.
        module Database
          VENDOR_DEFAULT = 'defaultdb'.freeze
          VENDOR_POSTGRES = 'postgres'.freeze
          VENDOR_SQLITE = 'sqlite'.freeze

          module_function

          def normalize_vendor(vendor)
            case vendor
            when nil
              VENDOR_DEFAULT
            when 'postgresql'
              VENDOR_POSTGRES
            when 'sqlite3'
              VENDOR_SQLITE
            else
              vendor
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ddtrace-1.12.1 lib/datadog/tracing/contrib/utils/database.rb
ddtrace-1.12.0 lib/datadog/tracing/contrib/utils/database.rb
ddtrace-1.11.1 lib/datadog/tracing/contrib/utils/database.rb
ddtrace-1.11.0 lib/datadog/tracing/contrib/utils/database.rb
ddtrace-1.11.0.beta1 lib/datadog/tracing/contrib/utils/database.rb
ddtrace-1.10.1 lib/datadog/tracing/contrib/utils/database.rb
ddtrace-1.10.0 lib/datadog/tracing/contrib/utils/database.rb