Module: RailsSQLPrettifier::PostgresAdapterNiceQL

Defined in:
lib/rails_sql_prettifier.rb

Instance Method Summary collapse

Instance Method Details

#exec_query(sql, name = "SQL", binds = [], prepare: false) ⇒ Object


24
25
26
27
# File 'lib/rails_sql_prettifier.rb', line 24

def exec_query(sql, name = "SQL", binds = [], prepare: false)
  # replacing sql with prettified sql, thats all
  super( Niceql::Prettifier.prettify_sql(sql, false), name, binds, prepare: prepare )
end