Class: SoqlDashboard::RunStatement
- Inherits:
-
Object
- Object
- SoqlDashboard::RunStatement
- 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, = {}) audit = create_audit_record(query_text, ) if audit_enabled? execution_result = execute_with_timing(query_text, ) update_audit_record(audit, execution_result) if audit build_response(execution_result) end |