class ActiveRecord::ExplainRegistry
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/active_record/explain_registry.rbs class ActiveRecord::ExplainRegistry def collect?: (*unused *, **unused **, ) -> false def instance: () -> ActiveRecord::ExplainRegistry end
:nodoc:
returns the collected queries local to the current thread.
ActiveRecord::ExplainRegistry.queries
This is a thread locals registry for EXPLAIN. For example
def collect?
Experimental RBS support (using type sampling data from the type_fusion
project).
def collect?: (*unused *, **unused **, ) -> false
This signature was generated using 104 samples from 2 applications.
def collect? @collect end
def initialize
def initialize reset end
def instance
Experimental RBS support (using type sampling data from the type_fusion
project).
def instance: () -> ActiveRecord::ExplainRegistry
This signature was generated using 56 samples from 2 applications.
def instance ActiveSupport::IsolatedExecutionState[:active_record_explain_registry] ||= new end
def reset
def reset @collect = false @queries = [] end