Module: Sequel::SQLComments

Included in:
Database::SQLComments::DatasetSQLComments
Defined in:
lib/sequel/extensions/sql_comments.rb

Instance Method Summary collapse

Instance Method Details

#comment(comment) ⇒ Object

Return a modified copy of the dataset that will use the given comment. To uncomment a commented dataset, pass nil as the argument.



98
99
100
# File 'lib/sequel/extensions/sql_comments.rb', line 98

def comment(comment)
  clone(:comment=>(format_sql_comment(comment) if comment))
end