Module: Atatus::Sql Private
- Defined in:
- lib/atatus/sql.rb,
lib/atatus/sql/tokens.rb,
lib/atatus/sql/signature.rb,
lib/atatus/sql/tokenizer.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: Tokens Classes: Signature, Tokenizer
Class Method Summary collapse
-
.summarizer ⇒ Object
private
This method is only here as a shortcut while the agent ships with both implementations ~mikker.
Class Method Details
.summarizer ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method is only here as a shortcut while the agent ships with both implementations ~mikker
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/atatus/sql.rb', line 25 def self.summarizer @summarizer ||= if Atatus.agent&.config&.use_legacy_sql_parser require 'atatus/sql_summarizer' SqlSummarizer.new else require 'atatus/sql/signature' Sql::Signature::Summarizer.new end end |