helpers/dataminer_helpers.rb
# Wrap SQL after inserting linebreaks before keywords.
#
# @param sql [String] the sql.
# @return [String] SQL with newline characters at appropriate places.
Wrap SQL after inserting linebreaks before keywords.
Wrap SQL after inserting linebreaks before keywords .
def wrapped_sql(sql)
    ar = sql_add_newlines(sql_format_from_and_where(sql)).split("\n")
    ar.map { |a| wrap_line(a, 120) }
      .reject(&:empty?)
      .join("\n")
  end
def wrapped_sql ( sql ) ar = sql_add_newlines ( sql_format_from_and_where ( sql ) ) . split ( "\n" ) ar . map { | a | wrap_line ( a , 120 ) } . reject ( & :empty? ) . join ( "\n" ) end
Wrap SQL after inserting linebreaks before keywords.
Wrap SQL after inserting linebreaks before keywords .
SQL with newline characters at appropriate places.
SQL with newline characters at appropriate places .
String
sql
None