Class: SoqlDashboard::RunStatement

Inherits:
Object
  • Object
show all
Defined in:
app/services/soql_dashboard/run_statement.rb

Instance Method Summary collapse

Instance Method Details

#call(query_text, options = {}) ⇒ Object



5
6
7
8
9
10
11
12
# File 'app/services/soql_dashboard/run_statement.rb', line 5

def call(query_text, options = {})
  audit = create_audit_record(query_text, options) if audit_enabled?

  execution_result = execute_with_timing(query_text, options)
  update_audit_record(audit, execution_result) if audit

  build_response(execution_result)
end