Module NewRelic::Agent::Database::ExplainPlanHelpers
In: lib/new_relic/agent/database/explain_plan_helpers.rb

Methods

Constants

SUPPORTED_ADAPTERS_FOR_EXPLAIN = [:postgres, :mysql2, :mysql, :sqlite]
SELECT = 'select'.freeze
QUERY_PLAN = 'QUERY PLAN'.freeze
SQLITE_EXPLAIN_COLUMNS = %w[addr opcode p1 p2 p3 p4 p5 comment]

Public Instance methods

Sequel returns explain plans as just one big pre-formatted String In that case, we send a nil headers array, and the single string wrapped in an array for the values. Note that we don‘t use this method for Postgres explain plans, since they need to be passed through the explain plan obfuscator first.

[Validate]