module Sequel::SQLComments
def _sql_comment
def _sql_comment @opts[:comment] end
def comment(comment)
Return a modified copy of the dataset that will use the given comment.
def comment(comment) clone(:comment=>(format_sql_comment(comment) if comment)) end
def format_sql_comment(comment)
single line SQL comment, and converts all consecutive whitespace
Format the comment. For maximum compatibility, this uses a
def format_sql_comment(comment) " -- #{comment.to_s.gsub(/\s+/, ' ')}\n" end