lib/sequel/extensions/prometheus_instrumentation.rb
# Returns a query name for given SQL statement
#
# @param sql [String, nil]
# @return [String, nil]
Returns a query name for given SQL statement
Returns a query name for given SQL statement
def prometheus_query_name_of(sql)
        return unless sql
        first_space = sql.index(' ')
        return unless first_space
        sql[0...first_space].downcase
      end
def prometheus_query_name_of ( sql ) return unless sql first_space = sql . index ( ' ' ) return unless first_space sql [ 0 ... first_space ] . downcase end
Returns a query name for given SQL statement
Returns a query name for given SQL statement
None
String, nil
sql
None