Module: Swagger::Commands::Helpers

Defined in:
lib/swagger/commands/helpers.rb

Class Method Summary collapse

Class Method Details

.sanitize(sql) ⇒ Object



10
11
12
# File 'lib/swagger/commands/helpers.rb', line 10

def sanitize(sql)
  ResqueValue.send(:sanitize_sql, sql)
end

.select_values(sql) ⇒ Object



6
7
8
# File 'lib/swagger/commands/helpers.rb', line 6

def select_values(sql)
  ResqueValue.connection.select_values(sanitize(sql))
end