Module: ArPrettySql
- Defined in:
- lib/ar_pretty_sql.rb,
lib/ar_pretty_sql/version.rb
Defined Under Namespace
Modules: InstanceMethods
Constant Summary collapse
- Config =
OpenStruct.new( # the colour theme to use for highlighting the SQL output (provided `color` is true) theme: Rouge::Themes::Colorful.new, # enable syntax highlighting for the output (also accepts `colour`) color: true, # prettify the SQL output format: true, # extra SQL functions you want to provide highlighting for additional_sql_functions: %w[count sum substr date], # keyword case (:upper, :lower, :unchanged) keyword_case: :upper, )
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.configure {|Config| ... } ⇒ Object
23 24 25 |
# File 'lib/ar_pretty_sql.rb', line 23 def self.configure yield Config end |