Module: RailsSQLPrettifier::ArExtentions

Defined in:
lib/rails_sql_prettifier.rb

Instance Method Summary collapse

Instance Method Details

#exec_niceqlObject


9
10
11
# File 'lib/rails_sql_prettifier.rb', line 9

def exec_niceql
  connection.execute( to_niceql )
end

#niceql(colorize = true) ⇒ Object


17
18
19
# File 'lib/rails_sql_prettifier.rb', line 17

def niceql( colorize = true )
  puts Niceql::Prettifier.prettify_sql( to_sql, colorize )
end

#to_niceqlObject


13
14
15
# File 'lib/rails_sql_prettifier.rb', line 13

def to_niceql
  Niceql::Prettifier.prettify_sql(to_sql, false)
end